:root{
    --bg: #10151C;
    --bg-alt: #141A22;
    --surface: #1A212B;
    --surface-2: #212A36;
    --border: #2A323D;
    --border-soft: #232B36;
    --text: #EDEFF2;
    --text-muted: #8B96A5;
    --text-dim: #5C6773;
    --accent: #4FD1C5;
    --accent-dim: #3AA89E;
    --accent-glow: rgba(79,209,197,0.14);
    --warm: #F2A65A;
    --warm-dim: #C98444;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --radius-sm: 5px;
    --container: 1180px;
  }

  *{ box-sizing:border-box; margin:0; padding:0; }
  html{ scroll-behavior:smooth; background:var(--bg); }
  body{
    background:var(--bg);
    color:var(--text);
    font-family:var(--font-body);
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  section{ scroll-margin-top:76px; }
  img,svg{ display:block; max-width:100%; }
  a{ color:inherit; text-decoration:none; }
  ul{ list-style:none; }
  button{ font-family:inherit; cursor:pointer; }
  input,select,textarea{ font-family:inherit; }

  ::selection{ background:var(--accent); color:#0B1015; }

  :focus-visible{
    outline:2px solid var(--accent);
    outline-offset:3px;
    border-radius:3px;
  }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  }

  .container{
    max-width:var(--container);
    margin:0 auto;
    padding:0 32px;
  }

  .eyebrow{
    font-family:var(--font-mono);
    font-size:12.5px;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--accent);
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
  }
  .eyebrow::before{
    content:"";
    width:16px;
    height:1px;
    background:var(--accent-dim);
    display:inline-block;
  }

  h1,h2,h3,h4{
    font-family:var(--font-display);
    font-weight:600;
    letter-spacing:-0.01em;
    color:var(--text);
  }

  body{
    background-image:
      radial-gradient(ellipse 900px 500px at 15% -10%, rgba(79,209,197,0.09), transparent 60%),
      radial-gradient(ellipse 700px 500px at 100% 10%, rgba(242,166,90,0.06), transparent 55%);
    background-repeat:no-repeat;
  }

  /* ---------- Nav ---------- */
  .nav{
    position:sticky; top:0; z-index:100;
    background:rgba(16,21,28,0.78);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border-soft);
  }
  .nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    height:72px;
  }
  .logo{
    font-family:var(--font-mono);
    font-weight:600;
    font-size:16.5px;
    letter-spacing:0.02em;
    display:flex; align-items:center; gap:2px;
  }
  .logo .brace{ color:var(--text-dim); }
  .logo .cursor{
    display:inline-block; width:8px; height:16px; background:var(--accent);
    margin-left:6px; animation:blink 1.1s step-end infinite;
  }
  @keyframes blink{ 50%{ opacity:0; } }

  .nav-links{ display:flex; align-items:center; gap:20px; }
  .nav-links a{
    font-size:13px; color:var(--text-muted); transition:color .15s ease; white-space:nowrap;
  }
  .nav-links a:hover{ color:var(--text); }

  .btn{
    font-family:var(--font-body);
    font-weight:600;
    font-size:14.5px;
    padding:11px 20px;
    border-radius:var(--radius-sm);
    border:1px solid transparent;
    display:inline-flex; align-items:center; gap:8px;
    transition:transform .15s ease, background .15s ease, border-color .15s ease;
  }
  .btn:active{ transform:translateY(1px); }
  .btn-primary{ background:var(--accent); color:#0A1014; }
  .btn-primary:hover{ background:#5fdcd0; }
  .btn-ghost{ border-color:var(--border); color:var(--text); }
  .btn-ghost:hover{ border-color:var(--accent-dim); color:var(--accent); }
  .btn-block{ width:100%; justify-content:center; }

  .hamburger{ display:none; }

  /* ---------- Hero ---------- */
  .hero{ padding:96px 0 88px; }
  .hero-grid{
    display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
  }
  .hero h1{
    font-size:clamp(34px, 4.6vw, 54px);
    line-height:1.08;
    margin-bottom:22px;
  }
  .hero h1 .hl{ color:var(--accent); }
  .hero p.lead{
    font-size:17px; color:var(--text-muted); max-width:480px; margin-bottom:32px;
  }
  .hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }

  .terminal{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 20px 60px -20px rgba(0,0,0,0.5);
  }
  .terminal-bar{
    display:flex; align-items:center; gap:8px;
    padding:12px 16px;
    background:var(--surface-2);
    border-bottom:1px solid var(--border);
  }
  .terminal-dot{ width:9px; height:9px; border-radius:50%; }
  .terminal-dot:nth-child(1){ background:var(--text-dim); }
  .terminal-dot:nth-child(2){ background:var(--warm-dim); }
  .terminal-dot:nth-child(3){ background:var(--accent-dim); }
  .terminal-title{
    font-family:var(--font-mono); font-size:12px; color:var(--text-dim); margin-left:4px;
  }
  .terminal-body{
    font-family:var(--font-mono); font-size:13.5px; line-height:1.9;
    padding:22px 20px; min-height:230px; color:var(--text-muted);
  }
  .terminal-body .prompt{ color:var(--accent); }
  .terminal-body .ok{ color:var(--accent); }
  .terminal-body .val{ color:var(--warm); }

  /* ---------- Stat strip ---------- */
  .stats{
    border-top:1px solid var(--border-soft);
    border-bottom:1px solid var(--border-soft);
    padding:36px 0;
  }
  .stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); }
  .stat{ text-align:center; padding:0 12px; border-left:1px solid var(--border-soft); }
  .stat:first-child{ border-left:none; }
  .stat .num{ font-family:var(--font-mono); font-size:26px; font-weight:600; color:var(--text); }
  .stat .lbl{ font-size:12.5px; color:var(--text-muted); margin-top:6px; }

  /* ---------- Section heading ---------- */
  .section{ padding:100px 0; }
  .section-head{ max-width:620px; margin-bottom:56px; }
  .section-head h2{ font-size:clamp(26px,3vw,36px); margin-bottom:14px; }
  .section-head p{ color:var(--text-muted); font-size:15.5px; }

  /* ---------- Configurator ---------- */
  #configure{ background:var(--bg-alt); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
  .config-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:44px; align-items:start; }
  .config-panel{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:32px; }
  .field{ margin-bottom:28px; }
  .field:last-child{ margin-bottom:0; }
  .field-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
  .field-label{ font-size:14px; font-weight:600; color:var(--text); }
  .field-value{ font-family:var(--font-mono); font-size:14px; color:var(--accent); font-weight:600; }
  .field-hint{ font-size:12.5px; color:var(--text-dim); margin-top:8px; }

  input[type=range]{
    -webkit-appearance:none; appearance:none;
    width:100%; height:4px; border-radius:2px;
    background:var(--border);
    outline:none;
  }
  input[type=range]::-webkit-slider-thumb{
    -webkit-appearance:none; appearance:none;
    width:18px; height:18px; border-radius:50%;
    background:var(--accent);
    border:3px solid #0A1014;
    box-shadow:0 0 0 1px var(--accent);
    cursor:pointer;
    transition:transform .12s ease;
  }
  input[type=range]::-webkit-slider-thumb:hover{ transform:scale(1.12); }
  input[type=range]::-moz-range-thumb{
    width:18px; height:18px; border-radius:50%;
    background:var(--accent); border:3px solid #0A1014;
    box-shadow:0 0 0 1px var(--accent); cursor:pointer;
  }

  .pill-group{ display:flex; gap:8px; }
  .pill{
    flex:1; text-align:center;
    padding:12px 8px; border-radius:var(--radius-sm);
    border:1px solid var(--border);
    background:var(--surface-2);
    font-size:13.5px; font-weight:600; color:var(--text-muted);
    transition:all .15s ease;
  }
  .pill small{ display:block; font-family:var(--font-mono); font-weight:400; font-size:11.5px; color:var(--text-dim); margin-top:3px; }
  .pill.active{ border-color:var(--accent); color:var(--accent); background:var(--accent-glow); }
  .pill.active small{ color:var(--accent-dim); }

  select.select{
    width:100%; padding:12px 14px; border-radius:var(--radius-sm);
    border:1px solid var(--border); background:var(--surface-2); color:var(--text);
    font-size:14px; appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238B96A5'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 16px center;
  }

  .switch-row{ display:flex; align-items:center; gap:14px; }
  .switch{ position:relative; width:46px; height:26px; flex-shrink:0; }
  .switch input{ opacity:0; width:0; height:0; }
  .switch-track{
    position:absolute; inset:0; background:var(--surface-2); border:1px solid var(--border);
    border-radius:20px; transition:background .15s ease;
  }
  .switch-track::before{
    content:""; position:absolute; width:18px; height:18px; left:3px; top:2px;
    background:var(--text-muted); border-radius:50%; transition:transform .18s ease, background .15s ease;
  }
  .switch input:checked + .switch-track{ background:var(--accent-glow); border-color:var(--accent-dim); }
  .switch input:checked + .switch-track::before{ transform:translateX(19px); background:var(--accent); }
  .save-badge{
    font-family:var(--font-mono); font-size:11.5px; color:var(--warm);
    border:1px solid var(--warm-dim); padding:3px 8px; border-radius:20px;
  }

  textarea.notes{
    width:100%; min-height:88px; padding:12px 14px; border-radius:var(--radius-sm);
    border:1px solid var(--border); background:var(--surface-2); color:var(--text);
    font-size:13.5px; resize:vertical; line-height:1.6;
  }
  textarea.notes::placeholder{ color:var(--text-dim); }

  /* ---------- Ticket ---------- */
  .ticket{ background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; position:sticky; top:96px; }
  .ticket-bar{ display:flex; align-items:center; gap:8px; padding:12px 16px; background:var(--surface-2); border-bottom:1px solid var(--border); }
  .ticket-body{ padding:26px 24px 10px; font-family:var(--font-mono); font-size:13.5px; }
  .ticket-row{ display:flex; align-items:baseline; gap:8px; padding:9px 0; color:var(--text-muted); }
  .ticket-row .name{ white-space:nowrap; color:var(--text); }
  .ticket-row .leader{ flex:1; border-bottom:1px dotted var(--border); transform:translateY(-4px); }
  .ticket-row .amt{ white-space:nowrap; color:var(--text); }
  .ticket-divider{ border-top:1px dashed var(--border); margin:12px 0 0; }
  .ticket-total{ display:flex; justify-content:space-between; align-items:baseline; padding:20px 24px; background:var(--surface-2); border-top:1px solid var(--border); }
  .ticket-total .t-label{ font-size:13px; color:var(--text-muted); font-family:var(--font-mono); }
  .ticket-total .t-amt{ font-family:var(--font-mono); font-size:28px; font-weight:600; color:var(--accent); }
  .ticket-note{ padding:0 24px 20px; font-size:12px; color:var(--text-dim); font-family:var(--font-mono); }
  .ticket-actions{ padding:0 24px 26px; display:flex; flex-direction:column; gap:10px; }
  .copy-link{ text-align:center; font-size:12.5px; color:var(--text-muted); }
  .copy-link:hover{ color:var(--accent); }

  /* ---------- Plans ---------- */
  .plans-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  .plan-card{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:28px 24px; display:flex; flex-direction:column; transition:border-color .15s ease, transform .15s ease; }
  .plan-card:hover{ border-color:var(--accent-dim); transform:translateY(-3px); }
  .plan-card.featured{ border-color:var(--accent); position:relative; }
  .plan-tag{ position:absolute; top:-12px; right:24px; background:var(--accent); color:#0A1014; font-family:var(--font-mono); font-size:11px; font-weight:700; padding:4px 10px; border-radius:20px; }
  .plan-name{ font-family:var(--font-display); font-size:19px; font-weight:600; margin-bottom:6px; }
  .plan-desc{ font-size:12.5px; color:var(--text-dim); margin-bottom:18px; }
  .plan-price{ font-family:var(--font-mono); font-size:30px; font-weight:600; color:var(--text); margin-bottom:2px; }
  .plan-price span{ font-size:13px; color:var(--text-muted); font-weight:400; }
  .plan-specs{ margin:20px 0 24px; flex:1; }
  .plan-specs li{ display:flex; justify-content:space-between; font-size:12.5px; padding:7px 0; border-bottom:1px solid var(--border-soft); color:var(--text-muted); font-family:var(--font-mono); }
  .plan-specs li span{ color:var(--text); }
  .plan-actions{ display:flex; flex-direction:column; gap:8px; }

  /* ---------- Features ---------- */
  .features-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border-soft); border:1px solid var(--border-soft); border-radius:12px; overflow:hidden; }
  .feature{ background:var(--bg-alt); padding:32px 28px; }
  .feature-icon{ width:38px; height:38px; border-radius:8px; background:var(--accent-glow); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
  .feature h3{ font-size:16px; margin-bottom:8px; }
  .feature p{ font-size:13.5px; color:var(--text-muted); }

  /* ---------- FAQ ---------- */
  .faq-list{ max-width:760px; }
  details{ border-bottom:1px solid var(--border-soft); padding:20px 0; }
  details summary{
    list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center;
    font-family:var(--font-display); font-size:16px; font-weight:600; color:var(--text);
  }
  details summary::-webkit-details-marker{ display:none; }
  details summary .plus{ font-family:var(--font-mono); color:var(--accent); font-size:18px; flex-shrink:0; margin-left:16px; transition:transform .18s ease; }
  details[open] summary .plus{ transform:rotate(45deg); }
  details p{ color:var(--text-muted); font-size:14px; margin-top:14px; max-width:640px; line-height:1.7; }

  /* ---------- Final CTA ---------- */
  .cta-band{
    background:var(--surface); border:1px solid var(--border); border-radius:16px;
    padding:56px 48px; display:flex; justify-content:space-between; align-items:center;
    max-width:calc(var(--container) - 64px); margin:0 auto;
  }
  .cta-band h2{ font-size:26px; max-width:420px; }
  .cta-band p{ color:var(--text-muted); font-size:14px; margin-top:10px; max-width:420px; }

  /* ---------- Footer ---------- */
  footer{ border-top:1px solid var(--border-soft); padding:64px 0 32px; margin-top:100px; }
  .footer-grid{ display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:40px; margin-bottom:56px; }
  .footer-brand p{ color:var(--text-muted); font-size:13.5px; margin-top:14px; max-width:280px; }
  .footer-col h4{ font-size:12.5px; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-dim); margin-bottom:16px; font-family:var(--font-mono); font-weight:500; }
  .footer-col a{ display:block; font-size:13.5px; color:var(--text-muted); padding:6px 0; }
  .footer-col a:hover{ color:var(--accent); }
  .footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid var(--border-soft); font-size:12.5px; color:var(--text-dim); flex-wrap:wrap; gap:12px; }

  /* ---------- Toast ---------- */
  .toast{
    position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
    background:var(--surface-2); border:1px solid var(--accent-dim); color:var(--text);
    font-family:var(--font-mono); font-size:13px; padding:12px 20px; border-radius:8px;
    opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; z-index:200;
  }
  .toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

  /* ---------- Responsive ---------- */
  @media (max-width:960px){
    .hero-grid{ grid-template-columns:1fr; }
    .config-grid{ grid-template-columns:1fr; }
    .ticket{ position:static; }
    .plans-grid{ grid-template-columns:repeat(2,1fr); }
    .features-grid{ grid-template-columns:repeat(2,1fr); }
    .footer-grid{ grid-template-columns:1fr 1fr; }
    .stats-grid{ grid-template-columns:repeat(2,1fr); row-gap:24px; }
    .stat:nth-child(3){ border-left:none; }
    .cta-band{ flex-direction:column; text-align:center; gap:24px; }
  }
  @media (max-width:1040px){
    .container{ padding:0 20px; }
    .nav-links{
      position:fixed; inset:72px 0 0 0; background:var(--bg);
      flex-direction:column; align-items:flex-start; padding:32px 24px; gap:4px;
      transform:translateX(100%); transition:transform .2s ease; z-index:99;
    }
    .nav-links.open{ transform:translateX(0); }
    .nav-links a{ padding:14px 0; width:100%; border-bottom:1px solid var(--border-soft); font-size:16px; }
    .nav-links .btn{ margin-top:16px; }
    .hamburger{ display:flex; flex-direction:column; gap:5px; width:22px; z-index:101; background:none; border:none; }
    .hamburger span{ height:2px; width:100%; background:var(--text); border-radius:2px; }
    .plans-grid{ grid-template-columns:1fr; }
    .features-grid{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns:1fr; gap:32px; }
    .cta-band{ padding:40px 28px; }
    .section{ padding:72px 0; }
    .hero{ padding:56px 0 64px; }
  }