/* ════════════════════════════════════════
   NAVBAR — matches docs nav exactly
════════════════════════════════════════ */
:root {
  --nav-h-lp: 60px;
}

.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h-lp);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.lp-nav-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.lp-nav-logo img { height: 30px; width: auto; }

.lp-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}
.lp-nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-2); text-decoration: none;
  transition: color 0.12s;
}
.lp-nav-links a:hover { color: var(--ink); }

.lp-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-nav-cta {
  position: relative;
  overflow: hidden;
  padding: 8px 18px;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
  color: #09090b;
  /* Brand gradient: yellow → teal */
  background: linear-gradient(105deg, #FFE700 0%, #4AECBE 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 0 0 0 rgba(255,231,0,0);
  transition:
    background-position 0.5s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.3s ease,
    transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

/* Shimmer sweep on hover */
.lp-nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255,255,255,0.45) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}

.lp-nav-cta:hover {
  background-position: 100% 50%;
  transform: translateY(-1px) scale(1.03);
}
.lp-nav-cta:hover::before {
  transform: translateX(100%);
}
.lp-nav-cta:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Bolt icon: spin on hover */
.lp-nav-cta .material-symbols-outlined {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.lp-nav-cta:hover .material-symbols-outlined {
  transform: rotate(20deg) scale(1.2);
}

/* Dark (Home) variant — black background */
.lp-nav-cta--dark {
  background: #09090b;
  background-size: unset;
  color: #ffffff;
}
.lp-nav-cta--dark::before { display: none; }
.lp-nav-cta--dark:hover {
  background: #1c1c1f;
  background-position: unset;
}
.lp-nav-cta--dark:hover .material-symbols-outlined {
  transform: scale(1.15);
}

/* Mobile hamburger */
#mobile-nav-btn {
  display: none;
  padding: 8px 9px;
  background: none; border: none; cursor: pointer;
  border-radius: 7px; color: var(--ink);
  align-items: center; justify-content: center;
  transition: background 0.12s;
}
#mobile-nav-btn:hover { background: var(--surface-2); }

/* Animated 3-line icon */
.ham-icon {
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 20px; height: 18px;
}
.ham-icon span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease, width 0.22s ease;
  transform-origin: center;
}
.ham-icon span:nth-child(3) { width: 65%; }
.ham-icon.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham-icon.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham-icon.open span:nth-child(3) { width: 100%; transform: translateY(-6.5px) rotate(-45deg); }

/* Backdrop */
#mobile-nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 48;
  animation: fadeIn 0.18s ease forwards;
}
#mobile-nav-backdrop.open { display: block; }

/* Mobile: hide desktop links, show hamburger */
@media (max-width: 767px) {
  .lp-nav-links          { display: none !important; }
  #mobile-nav-btn        { display: flex !important; }
  .lp-nav-cta .cta-text  { display: none; }
  .lp-nav-cta            { padding: 7px 10px; }
  :root { --nav-h-lp: 56px; }
}


  *, *::before, *::after { box-sizing: border-box; }

  :root {
    --page-bg:        #ffffff;
    --surface:        #ffffff;
    --surface-2:      #f4f4f5;
    --surface-hover:  #f4f4f5;
    --surface-group:  #e4e4e7;
    --surface-strong: #d4d4d8;

    --border:         #e4e4e7;
    --border-default: #d4d4d8;
    --border-strong:  #09090b;
    --outline:        #a1a1aa;

    --ink:            #09090b;
    --ink-2:          #52525b;
    --ink-3:          #52525b;
    --ink-4:          #a1a1aa;

    --accent:         #09090b;
    --accent-bg:      #f4f4f5;
    --accent-border:  #e4e4e7;

    --success:        #16A34A;
    --danger:         #DC2626;

    --shadow-terminal: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  }

  * { font-family: 'Inter', -apple-system, sans-serif; }

  .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
  }

  body {
    background: #ffffff;
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }

  /* ── Dot grid bg ── */
  .dot-grid {
    background-image: radial-gradient(circle, #d4d4d8 1px, transparent 1px);
    background-size: 28px 28px;
  }

  /* ── Animations ── */
  @keyframes fadeUp {
    from { opacity:0; transform:translateY(24px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .animate-fade-up { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }

  @keyframes fadeIn {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0); }
  }

  .typewriter {
    overflow: hidden;
    border-right: 2px solid #3EC9A0;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(40, end) forwards, blink 0.75s step-end infinite;
  }
  @keyframes typing { from { width:0 } to { width:100% } }
  @keyframes blink  { from,to { border-color:transparent } 50% { border-color:#3EC9A0 } }

  @keyframes pulseAccent { 0%,100% { opacity:1; } 50% { opacity:0.65; } }
  .accent-pulse { animation: pulseAccent 2.2s ease-in-out infinite; }

  /* ── Scroll reveal ── */
  .reveal { opacity:0; transform:translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.in { opacity:1; transform:translateY(0); }

  /* ── Section divider ── */
  .section-divider { height:1px; background:var(--border); margin: 0 0; }

  /* ── Section label ── */
  .section-label-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-4); background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 12px; border-radius: 6px;
    margin-bottom: 16px;
  }

  /* ── Why section tabs ── */
  .why-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent; cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    white-space: nowrap; letter-spacing: -0.01em;
  }
  .why-tab:hover { background: var(--surface); border-color: var(--border); color: var(--ink); }
  .why-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }
  .why-tab.active .why-icon { color: #fff; }
  .why-icon { color: var(--ink-4); font-size: 15px; transition: color 0.15s; }

  /* ── Command reference tabs ── */
  .cmd-tab-btn {
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600;
    border-radius: 6px; border: none;
    background: transparent; cursor: pointer;
    color: var(--ink-2); transition: all 0.12s;
    white-space: nowrap; letter-spacing: 0.02em; text-transform: uppercase;
  }
  .cmd-tab-btn:hover { color: var(--ink); background: var(--surface-group); }
  .cmd-tab-btn.active { color: #ffffff; background: var(--ink); }
  .cmd-tab-pane { display: none; }
  .cmd-tab-pane.active { display: block; }

  /* Code pane highlight colors */
  .c-cmd  { color: var(--ink); font-weight: 600; }
  .c-val  { color: var(--ink); }
  .c-flag { color: var(--ink-2); }
  .c-cmt  { color: var(--ink-4); font-style: italic; }
  .c-prompt { color: var(--ink); font-weight: 700; }

  /* ── Stat badges ── */
  .stat-badge {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s;
  }
  .stat-badge:hover { border-color: var(--ink); }

  /* ── Step circle ── */
  .step-num {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--ink); color: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  }

  /* ── Step card ── */
  .step-card-inner {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px 24px 20px;
    transition: border-color 0.15s;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    height: 100%;
  }
  /* Description — reserve 3 lines so content rows align across cards */
  .step-card-inner > p:first-of-type {
    min-height: 3.75em;
    align-self: start;
  }
  .step-card-inner:hover { border-color: var(--ink); }

  /* ── Mac terminal ── */
  .mac-win {
    border-radius: 11px; overflow: hidden;
    box-shadow: var(--shadow-terminal);
    border: 1px solid rgba(0,0,0,0.14);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  .mac-win:hover {
    box-shadow: 0 14px 48px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
  }
  .mac-bar {
    background: linear-gradient(180deg, #3C3C3C 0%, #303030 100%);
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #1E1E1E;
  }
  .mac-dots { display:flex; align-items:center; gap:7px; }
  .mac-dot { width:11px; height:11px; border-radius:50%; }
  .mac-label { font-family:'JetBrains Mono',monospace; font-size:11.5px; color:#737373; letter-spacing:0.02em; }
  .mac-body {
    background: #161617; padding: 26px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; line-height: 1.9; color: #C9CDD4;
  }

  /* ── Light code block (command reference section) ── */
  .light-code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 20px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; line-height: 1.9;
    color: var(--ink);
  }

  /* ── Copy feedback ── */
  .copy-feedback { font-size:11px; color:var(--ink-2); margin-left:4px; opacity:0; transition:opacity 0.2s; }
  .copy-feedback.show { opacity:1; }

  /* ── Code block copy tab ── */
  /* ── Unified Copy Buttons ── */
  .copy-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
    border: 1px solid transparent;
    transition: opacity 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
  }
  /* Dark — sits on light backgrounds (cards, rows) */
  .copy-btn--dark {
    background: var(--ink); color: #fff; border-color: var(--ink);
  }
  .copy-btn--dark:hover { opacity: 0.85; }
  .copy-btn--dark.copy-btn--success {
    background: #16A34A; border-color: #16A34A; color: #fff; opacity: 1;
  }
  /* Light — floats above dark terminals or sits in light chrome */
  .copy-btn--light {
    background: var(--surface); color: var(--ink-2); border-color: var(--border);
  }
  .copy-btn--light:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink); }
  .copy-btn--light.copy-btn--success {
    color: #16A34A; border-color: rgba(22,163,74,0.35); background: #f0fdf4;
  }

  /* Legacy aliases — map old classes to unified styles */
  .code-copy-tab { display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.02em; cursor: pointer; white-space: nowrap;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  .code-copy-tab:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink); }
  .code-copy-tab.copy-btn--success { color: #16A34A; border-color: rgba(22,163,74,0.35); background: #f0fdf4; }

  /* Terminal wrapper + floating copy btn */
  .terminal-wrapper { position: relative; }
  .terminal-copy-btn {
    position: absolute; top: -32px; right: 0; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px; cursor: pointer;
    font-size: 11px; font-family: 'Inter', sans-serif; font-weight: 600;
    letter-spacing: 0.02em; white-space: nowrap;
    color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  .terminal-copy-btn:hover { color: var(--ink); background: var(--surface-2); border-color: var(--ink); }
  .terminal-copy-btn.copy-btn--success { color: #16A34A; border-color: rgba(22,163,74,0.35); background: #f0fdf4; }

  /* ── Hover lift (no shadow, just border change) ── */
  .lift { transition: border-color 0.2s ease; }
  .lift:hover { border-color: var(--ink) !important; }



  /* ── Ring Particles (CSS Houdini PaintWorklet) ── */
  @property --animation-tick   { syntax: '<number>'; inherits: false; initial-value: 0; }
  @property --ring-radius      { syntax: '<number> | auto'; inherits: false; initial-value: auto; }
  @property --ring-x           { syntax: '<number>'; inherits: false; initial-value: 50; }
  @property --ring-y           { syntax: '<number>'; inherits: false; initial-value: 50; }
  @property --ring-interactive { syntax: '<number>'; inherits: false; initial-value: 0; }

  @keyframes dip-ripple { 0% { --animation-tick: 0; } 100% { --animation-tick: 1; } }
  @keyframes dip-ring   { 0% { --ring-radius: 120;  } 100% { --ring-radius: 260;  } }

  @supports (background: paint(something)) {
    #hero-bg {
      --ring-radius:        120;
      --ring-thickness:     900;
      --particle-count:     120;
      --particle-rows:      28;
      --particle-size:      1.8;
      --particle-color:     #09090b;
      --particle-min-alpha: 0.05;
      --particle-max-alpha: 0.55;
      --seed:               42;

      background-image: paint(ring-particles);
      animation: dip-ripple 6s linear infinite,
                 dip-ring   6s ease-in-out infinite alternate;
      transition: --ring-x 3s ease, --ring-y 3s ease;
    }
  }

  /* ════════════════════════════════════════
     LANDING RESPONSIVE
  ════════════════════════════════════════ */

  /* Mobile nav drawer */
  #mobile-nav {
    position: fixed;
    top: 52px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 20px;
    z-index: 49;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; gap: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  #mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  #mobile-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.12s, padding-left 0.12s;
  }
  #mobile-nav a:hover { color: var(--ink); padding-left: 6px; }
  /* CTA link at bottom */
  .mnav-cta-link {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 11px 18px !important;
    background: var(--ink) !important;
    color: #fff !important;
    border-radius: 8px;
    border-bottom: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    justify-content: center;
    transition: opacity 0.12s !important;
  }
  .mnav-cta-link:hover { opacity: 0.85; padding-left: 18px !important; }

  /* Hamburger button */
  #mobile-nav-btn {
    display: none;
    padding: 6px 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    color: var(--ink);
    align-items: center;
    transition: background 0.12s;
  }
  #mobile-nav-btn:hover { background: var(--surface-2); }

  /* ─── Mobile (< 768px) ─── */
  @media (max-width: 767px) {

    #mobile-nav-btn { display: flex; }

    /* Sections: tighter padding */
    section { padding-left: 16px !important; padding-right: 16px !important; }
    section[id="quickstart"],
    section[id="why"],
    section[id="commands"],
    section[id="about"] {
      padding-top: 52px !important;
      padding-bottom: 52px !important;
    }

    /* Hero: smaller bottom padding */
    main[style*="padding: 100px"] {
      padding-top: 80px !important;
      padding-bottom: 40px !important;
    }

    /* Hero CTA stack vertically */
    #hero-bg > main > div > div[style*="flex-wrap:wrap"] {
      flex-direction: column !important;
      align-items: stretch !important;
    }
    #hero-bg > main > div > div[style*="flex-wrap:wrap"] > a,
    #hero-bg > main > div > div[style*="flex-wrap:wrap"] > div {
      width: 100% !important;
    }
    #hero-bg > main > div > div[style*="flex-wrap:wrap"] > div {
      justify-content: flex-start !important;
    }

    /* Why tabs — horizontal scroll */
    #why-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; justify-content: flex-start !important; padding-bottom: 6px !important; -webkit-overflow-scrolling: touch; }
    .why-tab { flex-shrink: 0 !important; }

    /* Command Reference tab bar — horizontal scroll */
    #commands [style*="display:flex; gap:4px"] { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Command pane tables */
    .cmd-tab-pane table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cmd-tab-pane table thead,
    .cmd-tab-pane table tbody,
    .cmd-tab-pane table tr { display: table; width: 100%; min-width: 480px; }

    /* Light code block */
    .light-code { overflow-x: auto; }
    .code-lines { min-width: 340px; }

    /* Quick start grid — single column on very small */
    #quickstart [style*="grid-template-columns"] {
      grid-template-columns: 1fr !important;
    }

    /* Section dividers: smaller margin */
    .section-divider { margin-bottom: 48px !important; }

    /* Why terminal min-height */
    #why-terminal { min-height: 200px !important; }

    /* Mac terminal body font */
    .mac-body { font-size: 12px !important; padding: 14px 14px !important; }

    /* Section label */
    .section-label-tag { font-size: 10.5px; }
  }

  /* ─── Tablet (768px–1023px) ─── */
  @media (min-width: 768px) and (max-width: 1023px) {
    section { padding-left: 24px !important; padding-right: 24px !important; }
    #quickstart [style*="minmax(280px"] {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }
  }


  /* ── Footer-reveal wrapper effect ── */
  #lp-wrapper {
    position: relative;
    z-index: 1;
    transform-origin: center bottom;
    transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.55s ease;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    cursor: default;
  }
  body.footer-open #lp-wrapper {
    transform: translateY(-68px) scale(0.915);
    cursor: pointer;
  }
  body.footer-open #lp-wrapper:hover {
    transform: translateY(-72px) scale(0.918);
  }
  #site-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 0;
    background: #09090b;
  }
  body {
    background: #09090b !important;
  }



}

/* ── Agent terminal animation ── */
.agent-act {
  opacity: 0;
  animation: fadeIn 0.45s ease forwards;
}

/* ── Hero title typewriter cursor ── */
@keyframes blink-block { 0%,49% { opacity:1 } 50%,100% { opacity:0 } }
#hero-title-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  background: #09090b;
  margin-left: 3px;
  vertical-align: -0.05em;
  animation: blink-block 0.75s step-end infinite;
}

/* ── Copy button inside mac-bar ── */
.mac-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.03em; cursor: pointer; white-space: nowrap;
  color: #7B808C;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.mac-copy-btn:hover { color: #C9CDD4; background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.2); }
.mac-copy-btn.copy-btn--success { color: #3EC9A0; border-color: rgba(62,201,160,0.35); background: rgba(62,201,160,0.08); }

/* ── Hero tab switcher — sliding pill ── */
#hero-tab-switcher {
  display: inline-flex;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
#hero-tab-pill {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--ink);
  border-radius: 9px;
  /* spring: slight overshoot then settle */
  transition: transform 0.45s cubic-bezier(0.34, 1.45, 0.64, 1);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
#hero-tab-pill.agent {
  transform: translateX(calc(100%));
}
.hero-tab-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.2s ease;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.hero-tab-btn.active { color: #fff; }
.hero-tab-btn:not(.active):hover { color: var(--ink); }

/* ─── Footer mobile padding ─── */
@media (max-width: 767px) {
  #site-footer > div { padding: 20px 20px !important; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ════════════════════════════════════════
   SECTION TAB PANEL TRANSITION
════════════════════════════════════════ */
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.section-tab-enter {
  animation: sectionFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ════════════════════════════════════════
   AGENT PROMPT GRID
════════════════════════════════════════ */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .prompt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .prompt-grid { grid-template-columns: 1fr; }
}

.prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  cursor: default;
}
.prompt-card:hover {
  border-color: #a1a1aa;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.prompt-card-top {
  margin-bottom: 10px;
}

.prompt-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}

.prompt-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ════════════════════════════════════════
   AGENT CHAT MOCK UI
════════════════════════════════════════ */
.agent-chat-wrap {
  max-width: 680px;
  height: 520px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  background: var(--surface);
}

/* Header */
.agent-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.html.dark .agent-chat-header { background: #111113; }

.agent-chat-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #09090b;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agent-chat-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.agent-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.agent-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

/* Messages area */
.agent-chat-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  background: var(--surface);
}

/* Individual message row */
.chat-msg {
  display: flex;
}
.chat-msg.user  { justify-content: flex-end; }
.chat-msg.agent { justify-content: flex-start; }

/* Bubbles */
.chat-bubble {
  max-width: 78%;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}
.user-bubble {
  background: #09090b;
  color: #fff;
  padding: 10px 15px;
  border-bottom-right-radius: 4px;
  font-style: italic;
}
.agent-bubble {
  background: #f4f4f5;
  color: var(--ink);
  padding: 11px 15px;
  border-bottom-left-radius: 4px;
  min-width: 220px;
}
.html.dark .user-bubble  { background: #27272a; }
.html.dark .agent-bubble { background: #18181b; }

/* Agent response internals */
.agent-resp-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.agent-resp-icon {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agent-resp-icon.ok   { background: #dcfce7; color: #16a34a; }
.agent-resp-icon.info { background: #eff6ff; color: #2563eb; }

.agent-resp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  padding: 2px 0;
  color: var(--ink-2);
}
.agent-resp-row.dim { opacity: 0.5; }

.agent-resp-label {
  font-weight: 500;
  white-space: nowrap;
}
.agent-resp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  text-align: right;
}
.agent-resp-val.green { color: #16a34a; }
.agent-resp-val.red   { color: #dc2626; }
.agent-resp-val.bold  { font-weight: 600; }

.agent-resp-divider {
  height: 1px;
  background: var(--border);
  margin: 7px 0;
}

/* Input bar */
.agent-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.html.dark .agent-chat-input-bar { background: #111113; }

.agent-chat-input-field {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: text;
}
.agent-input-placeholder {
  color: var(--ink-3);
  opacity: 0.7;
}

.agent-chat-send {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #09090b;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.agent-chat-send:hover { opacity: 0.8; }

@media (max-width: 600px) {
  .agent-chat-body { max-height: 360px; padding: 14px 12px; }
  .chat-bubble { max-width: 90%; font-size: 13px; }
  .agent-chat-header { padding: 12px 14px; }
}

/* ─── Chat message enter animation ─── */
.chat-enter {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
.chat-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Typing dots ─── */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  min-width: 52px;
}
.typing-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a1a1aa;
  display: inline-block;
  animation: dotBounce 1.1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ─── Live input text + cursor ─── */
.agent-input-live {
  color: var(--ink);
  font-size: 13px;
}
.agent-input-cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--ink);
  margin-left: 1px;
  vertical-align: middle;
  animation: cursorBlink 0.9s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── Send button transition ─── */
.agent-chat-send {
  transition: opacity 0.2s ease;
}
