
/* ===== Base styles ===== */
  :root{
    --bg: #05070c;
    --surface: #101827;
    --surface-soft: rgba(16,24,39,0.55);
    --surface-glass: rgba(148,163,184,0.06);
    --border: rgba(148,163,184,0.14);
    --border-strong: rgba(148,163,184,0.26);
    --text-hi: #f4f6fb;
    --text-mid: #b8c1d1;
    --text-muted: #64748b;
    --blue: #155DFC;
    --blue-hover: #1d4ed8;
    --blue-glow: rgba(21,93,252,0.35);
    --green: #17d38a;
    --green-deep: #063E2A;
    --red: #ff4d4d;
    --red-deep: #870000;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --header-bg: rgba(5,7,12,0.72);
    --hero-visual-bg-1: rgba(16,24,39,0.9);
    --hero-visual-bg-2: rgba(10,14,22,0.9);
    --shadow-strong: rgba(0,0,0,0.7);
    --shadow-soft: rgba(0,0,0,0.6);
    --stats-band-bg-1: rgba(16,24,39,0.5);
    --stats-band-bg-2: rgba(16,24,39,0.15);
    --grid-line: rgba(148,163,184,0.055);
    --orb-blue-op: 0.30;
    --orb-green-op: 0.16;
    --scrollbar-thumb: rgba(148,163,184,0.25);
  }

  [data-theme="light"]{
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: rgba(255,255,255,0.75);
    --surface-glass: rgba(15,23,42,0.035);
    --border: #e5eaf3;
    --border-strong: #cbd5e1;
    --text-hi: #101827;
    --text-mid: #475569;
    --text-muted: #64748b;
    --blue: #155DFC;
    --blue-hover: #1d4ed8;
    --blue-glow: rgba(21,93,252,0.22);
    --green: #0f9d67;
    --green-deep: #063E2A;
    --red: #b91c1c;
    --red-deep: #870000;

    --header-bg: rgba(247,248,250,0.78);
    --hero-visual-bg-1: rgba(255,255,255,0.9);
    --hero-visual-bg-2: rgba(247,248,250,0.9);
    --shadow-strong: rgba(15,23,42,0.12);
    --shadow-soft: rgba(15,23,42,0.10);
    --stats-band-bg-1: rgba(16,24,39,0.035);
    --stats-band-bg-2: rgba(16,24,39,0.01);
    --grid-line: rgba(15,23,42,0.05);
    --orb-blue-op: 0.16;
    --orb-green-op: 0.10;
    --scrollbar-thumb: rgba(15,23,42,0.15);
  }

  body{transition:background-color .35s ease, color .35s ease;}

  *{margin:0;padding:0;box-sizing:border-box;}

  html{scroll-behavior:smooth;}

  body{
    background:var(--bg);
    color:var(--text-hi);
    font-family:'Fredoka',-apple-system,BlinkMacSystemFont,sans-serif;
    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
  }

  .mono, .stat-num, .eyebrow-num{font-family:'Space Grotesk',monospace;}

  a{color:inherit;text-decoration:none;}
  ul{list-style:none;}
  img{max-width:100%;display:block;}

  ::selection{background:var(--blue-glow);color:#fff;}

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

  .wrap{max-width:1240px;margin:0 auto;padding:0 32px;}

  /* ---------- Ambient background ---------- */
  .bg-fx{
    position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
  }
  .bg-grid{
    position:absolute;inset:-1px;
    background-image:
      linear-gradient(var(--grid-line) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size:64px 64px;
    mask-image:radial-gradient(ellipse 70% 55% at 50% 0%, black 40%, transparent 90%);
  }
  .orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:0.55;}
  .orb-blue{width:620px;height:620px;background:radial-gradient(circle, var(--blue) 0%, transparent 70%);top:-220px;left:-120px;opacity:var(--orb-blue-op);}
  .orb-green{width:520px;height:520px;background:radial-gradient(circle, var(--green) 0%, transparent 70%);top:120px;right:-160px;opacity:var(--orb-green-op);}

  /* ---------- Nav ---------- */
  header{
    position:sticky;top:0;z-index:50;
    background:var(--header-bg);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
  }
  nav{
    display:flex;align-items:center;justify-content:space-between;
    padding:18px 20px 18px 32px;max-width:1240px;margin:0 auto;
  }
  .logo{display:flex;align-items:center;gap:10px;font-weight:550;font-size:17px;letter-spacing:-0.01em;}
  .logo-mark{width:30px;height:30px;flex-shrink:0;display:block;}
  .logo-mark img{width:100%;height:100%;object-fit:contain;display:block;}
  .footer-wordmark img{height:26px;width:auto;display:block;}
  .footer-wordmark .logo-light{display:none;}
  [data-theme="light"] .footer-wordmark .logo-dark{display:none;}
  [data-theme="light"] .footer-wordmark .logo-light{display:block;}
  .nav-links{display:flex;gap:34px;align-items:center;}
  .nav-links a{font-size:14.5px;color:var(--text-mid);font-weight:500;transition:color .2s;}
  .nav-links a:hover{color:var(--text-hi);}
  .mobile-cta{display:none;}
  .nav-cta{display:flex;gap:12px;align-items:center;}
  .nav-toggle{display:none;background:none;border:none;color:var(--text-hi);}

  .theme-toggle{
    display:inline-flex;align-items:center;justify-content:center;
    width:36px;height:36px;border-radius:999px;
    background:var(--surface-glass);border:1px solid var(--border);
    color:var(--text-mid);cursor:pointer;position:relative;flex-shrink:0;
    transition:background .2s, border-color .2s, color .2s;
  }
  .theme-toggle:hover{color:var(--text-hi);border-color:var(--border-strong);}
  .theme-toggle svg{width:17px;height:17px;position:absolute;transition:opacity .25s ease, transform .35s ease;}
  .theme-toggle .icon-sun{opacity:0;transform:scale(0.5) rotate(-40deg);}
  .theme-toggle .icon-moon{opacity:1;transform:scale(1) rotate(0deg);}
  [data-theme="light"] .theme-toggle .icon-sun{opacity:1;transform:scale(1) rotate(0deg);}
  [data-theme="light"] .theme-toggle .icon-moon{opacity:0;transform:scale(0.5) rotate(40deg);}

  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    padding:11px 20px;border-radius:999px;font-size:14.5px;font-weight:500;
    border:1px solid transparent;cursor:pointer;transition:all .2s ease;white-space:nowrap;
  }
  .btn-primary{
    background:var(--blue);color:#fff;
    box-shadow:0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -8px var(--blue-glow);
  }
  .btn-primary:hover{background:var(--blue-hover);transform:translateY(-1px);}
  .btn-ghost{background:transparent;color:var(--text-hi);border-color:var(--border-strong);}
  .btn-ghost:hover{background:var(--surface-glass);border-color:rgba(148,163,184,0.4);}
  .btn-sm{padding:9px 16px;font-size:13.5px;}

  /* ---------- Hero ---------- */
  .hero{position:relative;padding:118px 32px 90px;z-index:1;}
  .hero-inner{max-width:1240px;margin:0 auto;text-align:center;}
  .eyebrow{
    display:inline-flex;align-items:center;gap:8px;
    padding:7px 14px 7px 8px;border-radius:999px;
    background:var(--surface-glass);border:1px solid var(--border);
    font-size:12.5px;color:var(--text-mid);font-weight:500;margin-bottom:28px;
  }
  .eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green);}
  h1.hero-title{
    font-size:clamp(40px, 6vw, 84px);
    font-weight:500;line-height:1.02;letter-spacing:-0.035em;
    color:var(--text-hi);max-width:920px;margin:0 auto;
  }
  h1.hero-title .accent{
    background:linear-gradient(100deg, #7fb3ff 0%, var(--blue) 45%, var(--green) 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .hero-sub{
    max-width:600px;margin:26px auto 0;font-size:18px;line-height:1.6;color:var(--text-mid);
    font-weight:400;
  }
  .hero-ctas{display:flex;gap:14px;justify-content:center;margin-top:38px;flex-wrap:wrap;}
  .hero-meta{margin-top:22px;font-size:13px;color:var(--text-muted);}

  /* ---------- Dashboard mock (hero visual) ---------- */
  .hero-visual{
    margin-top:64px;position:relative;
    border-radius:20px;
    background:linear-gradient(180deg, var(--hero-visual-bg-1), var(--hero-visual-bg-2));
    border:1px solid var(--border-strong);
    box-shadow:0 40px 100px -30px var(--shadow-strong), 0 0 0 1px rgba(255,255,255,0.02) inset;
    padding:18px;
    max-width:1080px;margin-left:auto;margin-right:auto;
  }
  .hero-visual-bar{display:flex;gap:6px;margin-bottom:16px;padding:0 4px;}
  .hero-visual-bar span{width:10px;height:10px;border-radius:50%;background:rgba(148,163,184,0.25);}
  .mock-grid{
    display:grid;grid-template-columns:180px 1fr;gap:14px;
  }
  .mock-side{
    background:rgba(148,163,184,0.04);border:1px solid var(--border);border-radius:14px;padding:16px 12px;
    display:flex;flex-direction:column;gap:4px;
  }
  .mock-side .item{
    font-size:12.5px;color:var(--text-muted);padding:8px 10px;border-radius:8px;font-weight:500;
    display:flex;align-items:center;gap:8px;
  }
  .mock-side .item.active{background:rgba(21,93,252,0.14);color:#cfe0ff;}
  .mock-side .item .ic{width:6px;height:6px;border-radius:2px;background:currentColor;opacity:.6;}
  .mock-main{display:grid;grid-template-rows:auto 1fr;gap:14px;}
  .mock-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
  .mock-stat{
    background:rgba(148,163,184,0.04);border:1px solid var(--border);border-radius:12px;padding:14px 16px;
    text-align:left;
  }
  .mock-stat .lbl{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;}
  .mock-stat .val{font-family:'Space Grotesk';font-size:19px;font-weight:600;margin-top:6px;color:var(--text-hi);}
  .mock-stat .val.up{color:var(--green);}
  .mock-chart{
    background:rgba(148,163,184,0.04);border:1px solid var(--border);border-radius:12px;padding:18px;
    position:relative;min-height:180px;overflow:hidden;
  }
  .mock-chart svg{width:100%;height:150px;display:block;}

  /* ---------- Section shell ---------- */
  section{position:relative;z-index:1;padding:100px 32px;}
  .section-head{max-width:640px;margin:0 auto 56px;text-align:center;}
  .section-tag{font-size:13px;font-weight:600;color:var(--blue);letter-spacing:.04em;text-transform:uppercase;margin-bottom:14px;}
  .section-title{font-size:clamp(30px,3.6vw,46px);font-weight:500;letter-spacing:-0.03em;line-height:1.12;color:var(--text-hi);}
  .section-sub{margin-top:16px;font-size:16.5px;color:var(--text-mid);line-height:1.6;}

  /* ---------- Bento modules ---------- */
  .bento{
    display:grid;grid-template-columns:repeat(6,1fr);gap:16px;max-width:1240px;margin:0 auto;
  }
  .bcard{
    background:var(--surface-soft);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:28px;
    position:relative;overflow:hidden;
    transition:border-color .25s, transform .25s;
  }
  .bcard:hover{border-color:var(--border-strong);transform:translateY(-3px);}
  .bcard::before{
    content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
    background:linear-gradient(135deg, rgba(255,255,255,0.08), transparent 40%);
    -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;
  }
  .b-icon{
    width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    margin-bottom:20px;
  }
  .b-icon svg{width:22px;height:22px;}
  .b-icon.blue{background:rgba(21,93,252,0.14);color:#7fb3ff;}
  .b-icon.green{background:rgba(6,62,42,0.5);color:var(--green);}
  .b-icon.red{background:rgba(135,0,0,0.22);color:#ff8080;}
  .b-title{font-size:19px;font-weight:700;letter-spacing:-0.01em;margin-bottom:8px;}
  .b-desc{font-size:14.5px;color:var(--text-mid);line-height:1.6;}
  .b-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px;}
  .b-tags span{font-size:11.5px;color:var(--text-muted);background:rgba(148,163,184,0.08);border:1px solid var(--border);padding:4px 9px;border-radius:999px;}

  .span-3{grid-column:span 3;}
  .span-2{grid-column:span 2;}
  .span-4{grid-column:span 4;}
  .span-6{grid-column:span 6;}

  /* ---------- Feature split ---------- */
  .feature-row{
    display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;max-width:1240px;margin:0 auto;
  }
  .feature-row.reverse{direction:rtl;}
  .feature-row.reverse > *{direction:ltr;}
  .feature-copy .section-tag{margin-bottom:16px;}
  .feature-copy h3{font-size:clamp(26px,3vw,36px);font-weight:500;letter-spacing:-0.025em;line-height:1.16;margin-bottom:18px;}
  .feature-copy p{font-size:16px;color:var(--text-mid);line-height:1.7;margin-bottom:24px;}
  .feature-list{display:flex;flex-direction:column;gap:14px;}
  .feature-list li{display:flex;gap:12px;align-items:flex-start;font-size:14.5px;color:var(--text-mid);}
  .feature-list .check{
    width:20px;height:20px;border-radius:6px;background:rgba(23,211,138,0.14);color:var(--green);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;
  }
  .feature-list .check svg{width:12px;height:12px;}

  .panel{
    background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-lg);
    padding:22px;box-shadow:0 30px 60px -30px var(--shadow-soft);
  }
  .panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;}
  .panel-header .t{font-size:13px;color:var(--text-muted);font-weight:600;letter-spacing:.03em;text-transform:uppercase;}
  .panel-header .pill{font-size:11.5px;padding:4px 10px;border-radius:999px;background:rgba(23,211,138,0.14);color:var(--green);font-weight:600;}

  .row-line{
    display:flex;justify-content:space-between;align-items:center;
    padding:12px 0;border-bottom:1px solid var(--border);font-size:14px;
  }
  .row-line:last-child{border-bottom:none;}
  .row-line .name{color:var(--text-hi);font-weight:500;}
  .row-line .sub{color:var(--text-muted);font-size:12.5px;margin-top:2px;}
  .row-line .amt{font-family:'Space Grotesk';font-weight:600;}
  .amt.pos{color:var(--green);}
  .amt.neg{color:#ff8080;}

  .pos-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .pos-tile{
    background:rgba(148,163,184,0.05);border:1px solid var(--border);border-radius:12px;padding:16px;
    text-align:left;
  }
  .pos-tile .name{font-size:13.5px;font-weight:600;}
  .pos-tile .price{font-family:'Space Grotesk';font-size:16px;color:var(--blue);margin-top:6px;}

  /* ---------- Stats band ---------- */
  .stats-band{
    background:linear-gradient(180deg, var(--stats-band-bg-1), var(--stats-band-bg-2));
    border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  }
  .stats-grid{
    display:grid;grid-template-columns:repeat(4,1fr);gap:32px;max-width:1240px;margin:0 auto;text-align:center;
  }
  .stat-num{font-size:clamp(32px,4vw,48px);font-weight:700;color:var(--text-hi);letter-spacing:-0.02em;}
  .stat-num .u{color:var(--blue);}
  .stat-lbl{margin-top:8px;font-size:14px;color:var(--text-muted);}

  /* ---------- Workflow ---------- */
  .flow{
    display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:1240px;margin:0 auto;position:relative;
  }
  .flow-step{
    background:var(--surface-soft);border:1px solid var(--border);border-radius:18px;padding:24px;position:relative;
  }
  .flow-step .n{
    font-family:'Space Grotesk';font-size:13px;color:var(--text-muted);margin-bottom:14px;font-weight:600;
  }
  .flow-step h4{font-size:16.5px;font-weight:550;margin-bottom:8px;letter-spacing:-0.01em;}
  .flow-step p{font-size:13.5px;color:var(--text-mid);line-height:1.6;}

  /* ---------- Security strip ---------- */
  .sec-strip{
    display:flex;justify-content:center;gap:44px;flex-wrap:wrap;max-width:1000px;margin:0 auto;
  }
  .sec-item{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--text-mid);font-weight:500;}
  .sec-item svg{width:18px;height:18px;color:var(--green);flex-shrink:0;}

  /* ---------- CTA banner ---------- */
  .cta-banner{
    max-width:1240px;margin:0 auto;border-radius:32px;
    background:
      radial-gradient(120% 160% at 15% 0%, rgba(21,93,252,0.25), transparent 55%),
      radial-gradient(120% 160% at 85% 100%, rgba(23,211,138,0.16), transparent 55%),
      var(--surface);
    border:1px solid var(--border-strong);
    padding:72px 48px;text-align:center;position:relative;overflow:hidden;
  }
  .cta-banner h2{font-size:clamp(28px,4vw,44px);font-weight:500;letter-spacing:-0.03em;margin-bottom:16px;}
  .cta-banner p{font-size:16.5px;color:var(--text-mid);max-width:520px;margin:0 auto 32px;}
  .cta-row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

  /* ---------- Footer ---------- */
  footer{border-top:1px solid var(--border);padding:64px 32px 32px;position:relative;z-index:1;}
  .footer-grid{
    display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:40px;max-width:1240px;margin:0 auto 48px;
  }
  .footer-brand p{font-size:13.5px;color:var(--text-muted);margin-top:14px;line-height:1.6;max-width:240px;}
  .footer-col h5{font-size:12.5px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:16px;font-weight:600;}
  .footer-col a{display:block;font-size:14px;color:var(--text-mid);margin-bottom:12px;transition:color .2s;}
  .footer-col a:hover{color:var(--text-hi);}
  .footer-bottom{
    max-width:1240px;margin:0 auto;padding-top:28px;border-top:1px solid var(--border);
    display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;
    font-size:13px;color:var(--text-muted);
  }

  /* ---------- Reveal on scroll ---------- */
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease, transform .7s ease;}
  .reveal.in{opacity:1;transform:translateY(0);}

  @media (prefers-reduced-motion: reduce){
    .reveal{opacity:1;transform:none;transition:none;}
    html{scroll-behavior:auto;}
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 980px){
    .bento{grid-template-columns:repeat(2,1fr);}
    .span-2,.span-3,.span-4,.span-6{grid-column:span 2;}
    .feature-row{grid-template-columns:1fr;gap:36px;}
    .feature-row.reverse{direction:ltr;}
    .feature-row .panel-wrap{order:2;}
    .stats-grid{grid-template-columns:repeat(2,1fr);gap:36px;}
    .flow{grid-template-columns:repeat(2,1fr);}
    .footer-grid{grid-template-columns:repeat(2,1fr);}
    .mock-grid{grid-template-columns:1fr;}
    .mock-side{flex-direction:row;overflow-x:auto;}

    /* Mobile responsive nav toggle & drawer styles */
    .nav-toggle {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 8px;
      background: var(--surface-glass);
      border: 1px solid var(--border);
      color: var(--text-hi);
      cursor: pointer;
      z-index: 101;
      order: 10;
    }
    
    .nav-toggle svg {
      width: 20px;
      height: 20px;
      transition: transform 0.2s;
    }
    
    /* Mobile drawer wrapper styling */
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 300px;
      height: 100vh;
      background: var(--surface);
      border-left: 1px solid var(--border-strong);
      padding: 96px 24px 32px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      z-index: 100;
      transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    nav.mobile-active .nav-links {
      right: 0;
    }
    
    .nav-links a {
      font-size: 18px !important;
      width: 100%;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
    }
    
    /* Make dropdown triggers and menus look good inside mobile navigation */
    .nav-links .dropdown {
      width: 100%;
    }
    .nav-links .dropdown-trigger {
      font-size: 18px !important;
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
    }
    .nav-links .dropdown-menu {
      position: static;
      display: none;
      transform: none;
      box-shadow: none;
      background: transparent;
      border: none;
      border-left: 2px solid var(--blue);
      margin-top: 8px;
      padding-left: 16px;
      width: 100%;
      min-width: 0;
    }
    .nav-links .dropdown.mobile-expanded .dropdown-menu {
      display: flex;
      flex-direction: column;
    }
    .nav-links .dropdown.mobile-expanded .dropdown-arrow {
      transform: rotate(180deg);
    }
    .mobile-cta {
      display: flex;
      flex-direction: column;
      width: 100% !important;
      align-self: stretch !important;
      gap: 12px;
      margin-top: auto !important;
      padding-top: 32px;
    }
    .nav-links .mobile-cta a.btn {
      width: 100% !important;
      box-sizing: border-box !important;
      justify-content: center !important;
      padding: 12px 20px !important;
      font-size: 15px !important;
      border-radius: 999px !important;
      display: inline-flex !important;
      border-bottom: none !important;
    }
    .nav-links .mobile-cta a.btn-ghost {
      color: var(--text-hi) !important;
      border: 1px solid var(--border-strong) !important;
      background: transparent !important;
    }
    .nav-links .mobile-cta a.btn-primary {
      background: var(--blue) !important;
      color: #fff !important;
    }
    
    /* Nav CTA sizing & display on mobile */
    .nav-cta {
      display: flex;
      align-items: center;
      gap: 12px;
      order: 9;
    }
    .nav-cta .theme-toggle {
      width: 36px;
      height: 36px;
    }
    .nav-cta .btn {
      padding: 8px 14px;
      font-size: 12.5px;
    }
    .nav-cta .btn-ghost {
      display: none; /* Hide ghost login button to save space next to hamburger icon */
    }
    
    /* Overlay for clicking outside of active mobile nav menu */
    .nav-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(5, 7, 12, 0.6);
      backdrop-filter: blur(4px);
      z-index: 99;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    nav.mobile-active .nav-overlay {
      opacity: 1;
      pointer-events: auto;
    }
  }
  @media (max-width: 680px){
    .nav-links {
      width: 100%; /* Fullscreen width on smaller screens */
    }
    .nav-cta .btn-primary {
      display: none; /* Hide trial button on narrow phones, keep only hamburger and theme toggle */
    }
    nav{padding:16px 20px;}
    .hero{padding:70px 20px 60px;}
    section{padding:64px 20px;}
    .mock-stats{grid-template-columns:repeat(2,1fr);}
    .bento{grid-template-columns:1fr;}
    .span-2,.span-3,.span-4,.span-6{grid-column:span 1;}
    .stats-grid{grid-template-columns:1fr 1fr;}
    .flow{grid-template-columns:1fr;}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .sec-strip{gap:20px;justify-content:flex-start;}
    .cta-banner{padding:48px 24px;}
  }

/* ===== Footer (big wordmark) ===== */

  /* ---------- Big wordmark footer ---------- */
  .big-footer{border-top:1px solid var(--border);padding:88px 32px 32px;position:relative;z-index:1;text-align:center;}
  .footer-links-inline{display:flex;justify-content:center;gap:32px;flex-wrap:wrap;margin-bottom:52px;}
  .footer-links-inline a{font-size:14.5px;color:var(--text-mid);font-weight:500;transition:color .2s;}
  .footer-links-inline a:hover{color:var(--text-hi);}
  .big-wordmark-wrap{max-width:1120px;margin:0 auto 44px;padding:0 12px;}
  .big-wordmark-wrap a{display:block;}
  .big-wordmark-wrap img{width:100%;height:auto;max-height:190px;object-fit:contain;display:block;margin:0 auto;
    filter:drop-shadow(0 30px 70px rgba(21,93,252,0.18));transition:filter .3s;}
  .big-wordmark-wrap .logo-light { display: none !important; }
  .big-wordmark-wrap .logo-dark { display: block !important; }
  [data-theme="light"] .big-wordmark-wrap .logo-light { display: block !important; }
  [data-theme="light"] .big-wordmark-wrap .logo-dark { display: none !important; }
  .footer-tagline{max-width:520px;margin:0 auto 40px;font-size:15px;color:var(--text-mid);line-height:1.6;}
  .footer-bottom-bar{
    display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;
    max-width:1120px;margin:0 auto;padding-top:26px;border-top:1px solid var(--border);
    font-size:13px;color:var(--text-muted);
  }
  .footer-bottom-bar a{color:var(--text-mid);text-decoration:underline;text-underline-offset:3px;transition:color .2s;}
  .footer-bottom-bar a:hover{color:var(--text-hi);}

  @media (max-width:680px){
    .big-footer{padding:60px 20px 24px;}
    .footer-links-inline{gap:18px;margin-bottom:36px;}
    .big-wordmark-wrap img{max-height:110px;}
    .footer-bottom-bar{flex-direction:column;text-align:center;}
  }


/* ===== Modules page ===== */

  .module-nav{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;max-width:1000px;margin:0 auto 8px;}
  .module-nav a{
    font-size:13.5px;font-weight:600;color:var(--text-mid);
    background:var(--surface-glass);border:1px solid var(--border);
    padding:9px 18px;border-radius:999px;transition:all .2s;
  }
  .module-nav a:hover{color:var(--text-hi);border-color:var(--border-strong);background:rgba(21,93,252,0.1);}


/* ===== How it Works page ===== */

  .timeline{max-width:900px;margin:0 auto;}
  .tl-step{display:grid;grid-template-columns:64px 1fr;gap:20px;margin-bottom:8px;position:relative;}
  .tl-step .tl-marker{
    width:44px;height:44px;border-radius:50%;background:var(--surface-soft);border:1px solid var(--border-strong);
    display:flex;align-items:center;justify-content:center;font-family:'Space Grotesk';font-weight:700;color:var(--blue);
    flex-shrink:0;position:relative;z-index:1;
  }
  .tl-step .tl-line{
    position:absolute;left:22px;top:44px;bottom:-8px;width:1px;background:var(--border);
  }
  .tl-step:last-child .tl-line{display:none;}
  .tl-body{padding-bottom:36px;}
  .tl-body h4{font-size:19px;font-weight:500;margin-bottom:8px;letter-spacing:-0.01em;}
  .tl-body p{font-size:15px;color:var(--text-mid);line-height:1.65;max-width:560px;}
  .tl-body .tl-tag{font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-weight:500;}


/* ===== Pricing page ===== */

  .pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:1120px;margin:0 auto;}
  .price-card{
    background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-lg);
    padding:32px 28px;position:relative;display:flex;flex-direction:column;
  }
  .price-card.featured{
    border-color:var(--blue);
    box-shadow:0 0 0 1px var(--blue), 0 30px 70px -30px var(--blue-glow);
  }
  .price-badge{
    position:absolute;top:-13px;left:50%;transform:translateX(-50%);
    background:var(--blue);color:#fff;font-size:11.5px;font-weight:700;
    padding:5px 14px;border-radius:999px;letter-spacing:.03em;text-transform:uppercase;
    white-space:nowrap;
  }
  .price-tier-name{font-size:15px;font-weight:700;color:var(--text-mid);text-transform:uppercase;letter-spacing:.04em;margin-bottom:14px;}
  .price-amount{font-family:'Space Grotesk';font-size:40px;font-weight:700;color:var(--text-hi);letter-spacing:-0.02em;}
  .price-amount .per{font-size:14px;font-weight:500;color:var(--text-muted);font-family:'Inter';}
  .price-desc{font-size:14px;color:var(--text-mid);margin:12px 0 24px;line-height:1.6;min-height:40px;}
  .price-features{display:flex;flex-direction:column;gap:12px;margin-bottom:28px;flex:1;}
  .price-features li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--text-mid);list-style:none;}
  .price-features .check{width:18px;height:18px;border-radius:5px;background:rgba(23,211,138,0.14);color:var(--green);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px;}
  .price-features .check svg{width:11px;height:11px;}
  .price-card .btn{width:100%;}

  .addon-table{
    max-width:900px;margin:0 auto;border-collapse:collapse;width:100%;
  }
  .addon-table th, .addon-table td{
    text-align:left;padding:14px 16px;border-bottom:1px solid var(--border);font-size:14px;
  }
  .addon-table th{color:var(--text-muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.04em;}
  .addon-table td.mod-name{color:var(--text-hi);font-weight:600;}
  .addon-table td.mod-price{font-family:'Space Grotesk';color:var(--blue);font-weight:600;white-space:nowrap;}

  .faq-list{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:4px;}
  .faq-item{border-bottom:1px solid var(--border);padding:20px 4px;}
  .faq-item h4{font-size:16px;font-weight:500;margin-bottom:8px;letter-spacing:-0.005em;}
  .faq-item p{font-size:14.5px;color:var(--text-mid);line-height:1.65;}

  @media (max-width:980px){
    .pricing-grid{grid-template-columns:1fr;max-width:460px;}
    .addon-table{font-size:13px;}
  }


/* ===== About page ===== */

  .about-hero-sub{max-width:680px;}
  .values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1120px;margin:0 auto;}
  .value-card{
    background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-lg);
    padding:26px;
  }
  .value-card .b-icon{margin-bottom:16px;}
  .value-card h4{font-size:17px;font-weight:700;margin-bottom:8px;letter-spacing:-0.01em;}
  .value-card p{font-size:14px;color:var(--text-mid);line-height:1.6;}

  .powered-by{
    max-width:820px;margin:0 auto;text-align:center;
    background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-lg);
    padding:44px 36px;
  }
  .powered-by .pb-label{font-size:12.5px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600;margin-bottom:16px;}
  .powered-by .pb-name{font-size:26px;font-weight:500;letter-spacing:-0.02em;margin-bottom:12px;}
  .powered-by .pb-name a{color:var(--blue);}
  .powered-by p{font-size:14.5px;color:var(--text-mid);line-height:1.7;max-width:560px;margin:0 auto 20px;}

  @media (max-width:980px){
    .values-grid{grid-template-columns:1fr;max-width:460px;}
  }

/* Dropdown Menu CSS */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 10px 30px var(--shadow-strong);
  z-index: 1000;
  backdrop-filter: blur(16px);
}

/* Invisible bridge to prevent hover loss over the 10px visual gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

@media (min-width: 981px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

.dropdown-menu a {
  display: block !important;
  padding: 10px 16px !important;
  border-radius: var(--radius-sm);
  color: var(--text-mid) !important;
  text-decoration: none;
  font-size: 13.5px !important;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: var(--surface-glass);
  color: var(--text-hi) !important;
}

/* ===== Responsive Navigation Drawer ===== */
@media (max-width: 980px) {
  .nav-toggle {
    display: block !important;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: var(--surface-glass);
    border: 1px solid var(--border);
  }
  
  .nav-links, .nav-cta {
    display: none !important;
  }

  /* Overlay when drawer is active */
  .nav-overlay {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 90;
  }

  nav.mobile-active .nav-overlay {
    opacity: 1;
    visibility: visible;
  }

  /* Side drawer design */
  nav.mobile-active .nav-links {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 24px 140px 24px;
    gap: 20px;
    z-index: 95;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  nav.mobile-active .nav-links {
    transform: translateX(0);
  }

  nav.mobile-active .nav-links a {
    font-size: 16px;
    width: 100%;
    padding: 8px 0;
  }

  /* Place CTA buttons and theme toggle inside/at the bottom of the drawer */
  nav.mobile-active .nav-cta {
    display: flex !important;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 290px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 24px 24px;
    gap: 12px;
    z-index: 96;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  nav.mobile-active .nav-cta {
    transform: translateX(0);
  }

  nav.mobile-active .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Dropdown accordion on mobile */
  .dropdown {
    width: 100%;
  }

  .dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(148, 163, 184, 0.04);
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    display: none;
    width: 100%;
    min-width: unset;
  }

  .dropdown.mobile-expanded .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .dropdown.mobile-expanded .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Position theme toggle and hamburger on the same horizontal axis inside active drawer */
  nav.mobile-active .theme-toggle {
    position: fixed !important;
    top: 24px !important;
    right: 230px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 1001 !important;
    margin: 0 !important;
    display: inline-flex !important;
  }
  
  nav.mobile-active .nav-toggle {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 1001 !important;
    margin: 0 !important;
  }
}

/* ===== Legal Pages Styles ===== */
.legal-hero {
  text-align: center;
  padding: 120px 32px 48px;
  position: relative;
  z-index: 1;
}
.legal-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-hi);
}
.legal-hero .last-updated {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.legal-wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 32px 100px;
  position: relative;
  z-index: 1;
}
.legal-content {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 30px 60px -30px var(--shadow-soft);
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 16px;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  letter-spacing: -0.01em;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.legal-content ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 24px;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.75;
}
.legal-content li {
  margin-bottom: 10px;
}
.legal-content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}
@media (max-width: 680px) {
  .legal-wrapper {
    padding: 0 20px 60px;
  }
  .legal-content {
    padding: 28px 20px;
  }
}

/* --- Center Screen Promo Modal --- */
.promo-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.45); /* Dark translucent background for high contrast */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.promo-modal-card {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.78) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(240, 253, 244, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border-radius: 24px;
  padding: 36px;
  max-width: 450px;
  width: 100%;
  color: #0f172a; /* Dark Slate 900 text */
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  box-sizing: border-box;
  animation: modalScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.promo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-modal-badge {
  background: #155DFC; /* Vibrant blue badge */
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.promo-modal-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  width: 32px;
  height: 32px;
}

.promo-modal-close:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.promo-modal-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.promo-modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: #475569; /* Slate 600 text */
}

.promo-modal-body strong {
  color: #0f172a;
  font-weight: 600;
}

.promo-modal-code-wrapper {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.03);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.promo-modal-code-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.promo-modal-code {
  font-family: 'Space Grotesk', monospace;
  background: rgba(21, 93, 252, 0.07);
  border: 1px dashed rgba(21, 93, 252, 0.35);
  padding: 8px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: #155DFC;
}

.promo-modal-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.promo-modal-btn {
  background: #155DFC;
  color: #fff;
  padding: 14px 28px;
  border-radius: 9999px; /* Pill-shaped */
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(21, 93, 252, 0.25);
  border: none;
  cursor: pointer;
}

.promo-modal-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 93, 252, 0.35);
}

.promo-modal-limit {
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

