:root {
    --bg: #0a0a0a;
    --bg-2: #111111;
    --panel: #141414;
    --panel-2: #1a1a1a;
    --border: #222222;
    --border-2: #2a2a2a;
    --text: #ededed;
    --text-dim: #a3a3a3;
    --text-faint: #6b6b6b;
    --accent: #FF7A1A;
    --accent-2: #FFB347;
    --accent-soft: rgba(255, 122, 26, 0.22);
    --accent-glow: rgba(255, 122, 26, 0.65);
    --accent-glow-strong: rgba(255, 140, 40, 0.9);
    --red: #ff6b6b;
    --yellow: #ffd166;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

  /* ------------ Top banner ------------ */
  .topbar {
    background: var(--accent);
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 500;
    text-shadow: 0 1px 0 rgba(0,0,0,0.18);
  }
  .topbar a { font-weight: 600; }
  .topbar a::after { content: " →"; }

  /* ------------ Nav ------------ */
  nav.main {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: rgba(20,20,20,0.7);
    backdrop-filter: blur(14px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 28px;
    position: sticky;
    top: 12px;
    z-index: 100;
  }
  .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
  .brand-wordmark {
    display: block;
    height: 80px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    object-position: left center;
  }
  .brand { text-decoration: none; }

  nav.main ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--text-dim); font-weight: 500; }
  nav.main ul a:hover { color: var(--text); }
  .nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  }
  .btn-primary {
    background: var(--accent); color: #ffffff;
    text-shadow: 0 1px 0 rgba(0,0,0,0.22);
    box-shadow:
      0 0 0 1px rgba(255,180,80,0.4),
      0 0 10px rgba(255,140,40,0.25),
      0 6px 26px -10px rgba(255,122,26,0.4);
  }
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
      0 0 0 1px rgba(255,200,120,0.55),
      0 0 14px rgba(255,140,40,0.35),
      0 8px 34px -8px rgba(255,122,26,0.5);
  }
  .btn-ghost { color: var(--text); border: 1px solid var(--border-2); background: transparent; }
  .btn-ghost:hover { border-color: #3a3a3a; }
  .btn-primary::after { content: "↗"; font-weight: 700; }

  @media (max-width: 760px) { nav.main ul { display: none; } .btn-ghost { display: none; } }

  /* ------------ Logo marquee ------------ */
  .logos {
    margin: 24px auto 60px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
  }
  .logos-label {
    text-align: center;
    color: var(--text-faint);
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 22px;
  }
  .marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
  .marquee + .marquee { margin-top: 16px; }
  .logos-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.01em;
  }
  .marquee-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: marqueeLeft 60s linear infinite;
  }
  .marquee-track.reverse {
    animation: marqueeRight 75s linear infinite;
  }
  .marquee:nth-of-type(3) .marquee-track {
    animation-duration: 90s;
  }
  @keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
  }
  .logo-item {
    color: rgba(235, 220, 200, 0.85);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.005em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    opacity: 0.95;
    transition: opacity 0.2s ease, color 0.2s ease;
  }
  .logo-item:hover { opacity: 1; color: #ffffff; }
  .logo-item .glyph {
    width: 22px; height: 22px;
    display: inline-grid; place-items: center;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 180, 80, 0.32), rgba(255, 122, 26, 0.18));
    border: 1px solid rgba(255, 170, 70, 0.55);
    box-shadow:
      0 0 0 1px rgba(255, 200, 120, 0.10),
      0 0 10px rgba(255, 140, 40, 0.28),
      inset 0 0 6px rgba(255, 180, 80, 0.18);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    color: #FFE0BD;
    text-shadow: 0 0 6px rgba(255, 140, 40, 0.7);
    letter-spacing: 0;
  }
  @media (prefers-reduced-motion: reduce) {
    .marquee-track, .marquee-track.reverse { animation: none; }
  }

  /* ------------ Section heading ------------ */
  .section { max-width: 1200px; margin: 0 auto; padding: 80px 20px 16px; }
  h2.section-title {
    font-size: clamp(28px, 3.4vw, 44px);
    letter-spacing: -0.022em;
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.08;
  }
  .section-sub { color: var(--text-dim); font-size: 16px; max-width: 580px; margin-bottom: 40px; line-height: 1.55; }

  /* ------------ Feature grid ------------ */
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  @media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }

  .feature {
    background: #0e0e0e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 24px 26px;
    position: relative;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
  }
  .feature::before {
    content: "";
    position: absolute;
    top: -160px; left: -160px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, var(--accent-glow) 35%, transparent 70%);
    filter: blur(50px);
    opacity: 0.9;
    pointer-events: none;
  }
  .feature:nth-child(even)::before { left: auto; right: -120px; }
  .feature:hover { border-color: var(--border-2); }

  .mockup {
    position: relative;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.02),
      0 18px 50px -20px rgba(0,0,0,0.6);
    margin-bottom: 22px;
  }
  .mockup-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
    border-bottom: 1px solid #1f1f1f;
  }
  .mockup-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
  .dot.r { background: #ff5f57; }
  .dot.y { background: #febc2e; }
  .dot.g { background: #28c840; }
  .mockup-title { margin-left: 12px; font-size: 12px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
  .mockup-body { padding: 18px 20px; min-height: 240px; }

  /* Mockup 1: Pipeline dashboard */
  .pipeline-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #131313;
    border: 1px solid #1d1d1d;
    border-radius: 8px;
    font-size: 13px;
  }
  .pipeline-row .role { display: flex; align-items: center; gap: 9px; }
  .role-avatar { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #2a2a2a, #1a1a1a); display: grid; place-items: center; font-size: 11px; color: var(--accent); font-weight: 700; }
  .role-meta .name { font-weight: 600; color: var(--text); }
  .role-meta .time { font-size: 11px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }
  .progress-bar { width: 80px; height: 6px; background: #1f1f1f; border-radius: 99px; overflow: hidden; }
  .progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; box-shadow: 0 0 6px var(--accent), 0 0 14px var(--accent-glow-strong), 0 0 28px var(--accent-glow); }
  .badge { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); }

  /* Mockup 2: Metrics chart */
  .chart-wrap { padding: 6px 6px 0; }
  .chart-header { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 6px 14px; }
  .chart-stat .label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
  .chart-stat .value { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; color: var(--text); }
  .chart-stat .value .accent { color: var(--accent); }
  .chart-live { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
  .chart-live .live-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 6px var(--accent), 0 0 16px var(--accent-glow-strong), 0 0 28px var(--accent-glow); animation: pulseGlow 1.8s ease-in-out infinite; }
  @keyframes pulseGlow {
    0%,100% { box-shadow: 0 0 6px var(--accent), 0 0 16px var(--accent-glow-strong), 0 0 28px var(--accent-glow); opacity: 1; }
    50% { box-shadow: 0 0 10px var(--accent), 0 0 26px var(--accent-glow-strong), 0 0 50px var(--accent-glow); opacity: 0.7; }
  }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

  /* Mockup 3: Voice interview transcript */
  .transcript { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.7; }
  .transcript .speaker { color: var(--accent); font-weight: 600; }
  .transcript .speaker.cand { color: #FFD27A; }
  .transcript .line { margin-bottom: 10px; color: var(--text-dim); }
  .transcript .meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-faint); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed #1f1f1f; }
  .transcript .meta .pill { padding: 2px 8px; border-radius: 99px; background: #1a1a1a; border: 1px solid #232323; }
  .wave { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
  .wave span { display: block; width: 2px; background: var(--accent); border-radius: 1px; box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent-glow-strong); animation: wave 1s ease-in-out infinite; }
  .wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
  .wave span:nth-child(2) { height: 10px; animation-delay: .1s; }
  .wave span:nth-child(3) { height: 14px; animation-delay: .2s; }
  .wave span:nth-child(4) { height: 9px; animation-delay: .3s; }
  .wave span:nth-child(5) { height: 5px; animation-delay: .4s; }
  @keyframes wave { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

  /* Mockup 4: Integrations grid */
  .integ-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .integ-tile {
    aspect-ratio: 1 / 1;
    background: #131313;
    border: 1px solid #1d1d1d;
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
    padding: 4px;
    line-height: 1.2;
  }
  .integ-tile:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow-strong), 0 0 18px var(--accent-glow); }
  .integ-tile.active {
    border-color: var(--accent);
    color: var(--accent-2);
    background: var(--accent-soft);
    box-shadow:
      0 0 0 1px var(--accent-glow-strong),
      0 0 14px var(--accent-glow),
      0 0 30px rgba(255,122,26,0.35),
      inset 0 0 18px rgba(255,140,40,0.12);
    text-shadow: 0 0 8px var(--accent-glow-strong);
  }

  .feature-label { font-size: 11px; color: var(--text-faint); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
  .feature-title { font-size: 20px; font-weight: 600; letter-spacing: -0.012em; margin: 0 0 8px; line-height: 1.25; }
  .feature-desc { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; margin: 0; }

  /* ------------ Problem section ------------ */
  .problem-stage {
    position: relative;
    isolation: isolate;
  }
  .agent-stage-top {
    position: relative;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 28px;
    background:
      radial-gradient(800px circle at 50% 0%, rgba(255,122,26,0.08), transparent 60%),
      linear-gradient(180deg, rgba(20,14,8,0.6), rgba(10,8,4,0.85));
    border: 1px solid rgba(255,140,40,0.18);
    box-shadow: inset 0 0 60px rgba(255,122,26,0.05), 0 0 40px -10px rgba(255,122,26,0.18);
  }
  @media (max-width: 800px) { .agent-stage-top { height: 420px; } }
  #agent-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    opacity: 1;
  }
  .problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
  }
  @media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }

  .problem-card {
    background: #0e0e0e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
  }
  .problem-card .num { color: var(--text-faint); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; position: relative; z-index: 1; }
  .problem-card h3, .problem-card p { position: relative; z-index: 1; }
  .problem-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 10px; }
  .problem-card p { color: var(--text-dim); margin: 0; font-size: 14.5px; line-height: 1.6; }

  /* ------------ Pipeline timeline ------------ */
  .pipeline {
    background: #0e0e0e;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
  }
  .pipeline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px circle at 50% -120px, var(--accent-glow) 0%, var(--accent-soft) 25%, transparent 60%);
    pointer-events: none;
    opacity: 0.85;
  }
  .steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; position: relative; }
  @media (max-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
  .step {
    background: #0e0e0e;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    padding: 16px 14px;
    position: relative;
    z-index: 2;
  }
  .step .step-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); margin-bottom: 8px; display: flex; justify-content: space-between; transition: color 0.3s ease; }
  .step .step-num .who { color: var(--accent); }
  .step .step-num .who.you { color: var(--yellow); }
  .step .step-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
  .step .step-desc { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
  .step.human { border-color: rgba(255, 210, 122, 0.3); background: linear-gradient(180deg, rgba(255, 210, 122, 0.04), transparent); }
  .step.human .step-title { color: #FFD27A; }
  .step.lit {
    border-color: rgba(255,122,26,0.55) !important;
    box-shadow: 0 0 20px -4px var(--accent-glow), inset 0 0 0 1px rgba(255,180,80,0.18);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
  }
  .step.lit .step-title { color: var(--accent-2); transition: color 0.4s ease; }

  .ribbon-line {
    position: absolute;
    left: 36px; right: 36px;
    top: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,140,40,0.12), transparent);
    z-index: 1;
    pointer-events: none;
  }
  .ribbon-pulse {
    position: absolute;
    top: -3px;
    width: 80px;
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
    box-shadow: 0 0 14px var(--accent-glow-strong), 0 0 28px var(--accent-glow);
    animation: ribbonFlow 5.5s linear infinite;
  }
  @keyframes ribbonFlow {
    0% { left: -80px; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }


  /* ------------ CTA ------------ */
  .cta {
    margin: 80px auto 60px;
    max-width: 1200px;
    padding: 60px 40px;
    background:
      radial-gradient(900px circle at 30% 0%, var(--accent-glow) 0%, var(--accent-soft) 25%, transparent 55%),
      radial-gradient(600px circle at 80% 100%, var(--accent-soft), transparent 55%),
      linear-gradient(180deg, #0e0e0e, var(--bg));
    border: 1px solid rgba(255,122,26,0.22);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px -20px var(--accent-glow);
  }
  .cta h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.022em; font-weight: 600; margin: 0 0 12px; line-height: 1.1; }
  .cta p { color: var(--text-dim); font-size: 16px; max-width: 520px; margin: 0 auto 28px; line-height: 1.55; }

  /* ------------ Footer ------------ */
  footer {
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    color: var(--text-faint);
    font-size: 13.5px;
    text-align: center;
  }
  footer .brand { justify-content: center; margin-bottom: 12px; }
  .footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
  .footer-legal a { color: var(--text-faint); transition: color .15s; }
  .footer-legal a:hover { color: var(--text-dim); }
