/* ==========================================================================
   Tokens — dark circuit-board mood: deep navy, neon-blue signal lines,
   one ruby-red accent used sparingly as the page's signature spark.
   ========================================================================== */
   :root {
    --color-bg: #060b18;
    --color-bg-elevated: #0c1730;
    --color-bg-elevated-hover: #101d3c;
    --color-surface: #0c1730;
    --color-ink: #eaf2ff;
    --color-ink-soft: #9fb2d6;
    --color-muted: #6b7fa0;
    --color-accent: #3fbcf9;
    --color-accent-dark: #7fd6ff;
    --color-accent-glow: rgba(63, 188, 249, 0.55);
    --color-ruby: #e0304f;
    --color-ruby-glow: rgba(224, 48, 79, 0.6);
    --color-border: rgba(127, 178, 224, 0.22);
  
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  
    --radius: 10px;
    --max-width: 880px;
  }
  
  /* ==========================================================================
     Reset & base
     ========================================================================== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    -webkit-text-size-adjust: 100%;
  }
  
  body {
    margin: 0;
    background-color: var(--color-bg);
    background-image:
      linear-gradient(rgba(127, 178, 224, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(127, 178, 224, 0.06) 1px, transparent 1px),
      radial-gradient(ellipse 900px 500px at 50% -10%, rgba(63, 188, 249, 0.12), transparent 60%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
    background-attachment: fixed;
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
  }
  
  img,
  svg {
    display: block;
    max-width: 100%;
  }
  
  a {
    color: var(--color-accent-dark);
  }
  
  .wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
  }
  
  /* Skip link for keyboard users */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-accent);
    color: #041018;
    font-weight: 600;
    padding: 12px 16px;
    z-index: 100;
    border-radius: 0 0 8px 0;
  }
  
  .skip-link:focus {
    left: 0;
  }
  
  :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(63, 188, 249, 0.2);
  }
  
  /* ==========================================================================
     Header
     ========================================================================== */
  .site-header {
    padding: 18px 0;
  }
  
  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .wordmark {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    text-shadow: 0 0 12px rgba(63, 188, 249, 0.35);
  }
  
  .nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .nav-list a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--color-ink-soft);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  
  .nav-list a:hover,
  .nav-list a:focus-visible {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent);
  }
  
  /* ==========================================================================
     Hero
     ========================================================================== */
  .hero {
    padding: 20px 0 4px;
    text-align: center;
  }
  
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin: 0 0 10px;
  }
  
  .hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--color-ink);
    text-shadow: 0 0 28px rgba(63, 188, 249, 0.25);
  }
  
  .intro {
    margin: 0 auto;
    color: var(--color-ink-soft);
    font-size: 1.05rem;
  }
  
  /* ==========================================================================
     Signature divider — a small "waveform", nodding to the chat below
     ========================================================================== */
  .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
  }
  
  .divider .bar {
    display: inline-block;
    width: 4px;
    border-radius: 2px;
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent-glow);
    opacity: 0.55;
  }
  
  .divider .bar:nth-child(1) { height: 8px; }
  .divider .bar:nth-child(2) { height: 16px; }
  .divider .bar:nth-child(3) { height: 24px; opacity: 0.85; }
  
  /* The centre bar breaks from blue signal to ruby — one point of warmth
     in an otherwise cool, circuit-blue field (echoing the reference image). */
  .divider .bar:nth-child(4) {
    height: 34px;
    opacity: 1;
    background-color: var(--color-ruby);
    box-shadow: 0 0 14px var(--color-ruby-glow);
  }
  
  .divider .bar:nth-child(5) { height: 24px; opacity: 0.85; }
  .divider .bar:nth-child(6) { height: 16px; }
  .divider .bar:nth-child(7) { height: 8px; }
  
  /* ==========================================================================
     Chat section
     ========================================================================== */
  .chat-section {
    padding: 0 0 48px;
    text-align: center;
  }
  
  .chat-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 0 10px;
    color: var(--color-ink);
  }
  
  .chat-copy {
    margin: 0 auto 18px;
    color: var(--color-ink-soft);
  }
  
  .chat-container {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(63, 188, 249, 0.08), 0 20px 60px rgba(4, 10, 24, 0.55),
      0 0 30px rgba(63, 188, 249, 0.08);
    padding: 8px;
    text-align: left;
    min-height: 320px;
    display: flex;
  }
  
  /* This placeholder is only a stand-in until a real embed is pasted in.
     See the HTML comment in index.html for exact embed markup. */
  .chat-placeholder {
    margin: auto;
    text-align: center;
    color: var(--color-muted);
    padding: 48px 24px;
  }
  
  .chat-placeholder p {
    margin: 0 0 8px;
    color: var(--color-ink-soft);
  }
  
  .chat-placeholder-sub {
    font-size: 0.9rem;
  }
  
  /* If a real iframe is pasted in, let it fill the container nicely */
  .chat-container iframe {
    width: 100%;
    min-height: 480px;
    border: 0;
    border-radius: calc(var(--radius) - 4px);
  }
  
  /* ==========================================================================
     Links / elsewhere section
     ========================================================================== */
  .links-section {
    padding: 12px 0 64px;
    text-align: center;
  }
  
  .links-section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 0 24px;
    color: var(--color-ink);
  }
  
  .link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: left;
  }
  
  .link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-ink);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease,
      background-color 0.15s ease;
  }
  
  .link-card:hover,
  .link-card:focus-visible {
    border-color: var(--color-accent);
    background-color: var(--color-bg-elevated-hover);
    box-shadow: 0 0 0 1px rgba(63, 188, 249, 0.15), 0 0 24px rgba(63, 188, 249, 0.18);
    transform: translateY(-2px);
  }
  
  .link-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--color-accent-dark);
    filter: drop-shadow(0 0 6px rgba(63, 188, 249, 0.45));
  }
  
  .link-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .link-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .site-footer {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    background: linear-gradient(180deg, transparent, rgba(63, 188, 249, 0.03));
  }
  
  .site-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
    text-align: center;
  }
  
  /* ==========================================================================
     Responsive — mobile
     ========================================================================== */
  @media (max-width: 600px) {
    .site-header .wrap {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .nav-list {
      gap: 16px;
    }
  
    .hero {
      padding-top: 32px;
    }
  
    .link-list {
      grid-template-columns: 1fr;
    }
  }
  
  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce) {
    * {
      transition: none !important;
    }
  }
  