 /* ============ TOKENS ============ */
  :root{
    --bg:#F5F3EE;
    --surface:#FFFFFF;
    --surface-2:#FAF8F2;
    --ink:#1C221F;
    --ink-soft:#5C665E;
    --ink-faint:#94998F;
    --line:#E2DED2;
    --line-strong:#CFC9B9;
    --accent:#2F6F5E;
    --accent-ink:#F6FBF8;
    --accent-soft:#E4EEE7;
    --accent-soft-strong:#CFE3D8;
    --danger:#AE5039;
    --danger-soft:#F3E4DF;
    --radius-sm:10px;
    --radius-md:18px;
    --radius-lg:28px;
    --shadow-sm:0 1px 2px rgba(28,34,31,.07);
    --shadow-md:0 10px 28px -12px rgba(28,34,31,.22);
    --shadow-lg:0 30px 70px -24px rgba(28,34,31,.32);
    --font-display:'Fraunces', Georgia, serif;
    --font-body:'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
    --ease:cubic-bezier(.22,.61,.36,1);
    --nav-h:76px;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg:#141917; --surface:#1B211E; --surface-2:#202723; --ink:#ECE9E1; --ink-soft:#A4ADA4; --ink-faint:#6C766D;
      --line:#2A3230; --line-strong:#3A4340; --accent:#6FC9AF; --accent-ink:#0D1613; --accent-soft:rgba(111,201,175,.14);
      --accent-soft-strong:rgba(111,201,175,.24); --danger:#E28A6E; --danger-soft:rgba(226,138,110,.14);
      --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow-md:0 10px 28px -12px rgba(0,0,0,.55); --shadow-lg:0 30px 70px -24px rgba(0,0,0,.65);
    }
  }
  :root[data-theme="dark"]{
    --bg:#141917; --surface:#1B211E; --surface-2:#202723; --ink:#ECE9E1; --ink-soft:#A4ADA4; --ink-faint:#6C766D;
    --line:#2A3230; --line-strong:#3A4340; --accent:#6FC9AF; --accent-ink:#0D1613; --accent-soft:rgba(111,201,175,.14);
    --accent-soft-strong:rgba(111,201,175,.24); --danger:#E28A6E; --danger-soft:rgba(226,138,110,.14);
    --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow-md:0 10px 28px -12px rgba(0,0,0,.55); --shadow-lg:0 30px 70px -24px rgba(0,0,0,.65);
  }

  *,*::before,*::after{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} *{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important;} }
  body{
    margin:0; background: var(--bg) !important; color:var(--ink); font-family:var(--font-body);
    -webkit-font-smoothing:antialiased; overflow-x:hidden; transition:background .35s var(--ease), color .35s var(--ease);
  }
  img,svg{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer;}
  ul{margin:0; padding:0; list-style:none;}
  h1,h2,h3,h4,p{margin:0;}
  h1,h2,h3{font-family:var(--font-display); text-wrap:balance; font-weight:500; letter-spacing:-.01em;}
  .num,.mono{font-family:var(--font-mono); font-variant-numeric:tabular-nums;}
  :focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:4px;}

  .wrap{max-width:1240px; margin:0 auto; padding:0 32px;}
  section{scroll-margin-top:calc(var(--nav-h) + 12px);}

  .eyebrow{
    display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:600; letter-spacing:.08em;
    text-transform:uppercase; color:var(--accent); background:var(--accent-soft); padding:8px 16px 8px 14px;
    border-radius:999px; border:1px solid var(--accent-soft-strong);
  }
  .section-head{max-width:640px; margin:0 auto 56px; text-align:center; display:flex; flex-direction:column; gap:16px; align-items:center;}
  .section-head h2{font-size:clamp(1.9rem,2.6vw + 1rem,2.7rem); line-height:1.15;}
  .section-head p{color:var(--ink-soft); font-size:1.05rem; line-height:1.6;}
  .section-pad{padding:112px 0;}
  .section-pad + .section-pad{border-top:1px solid var(--line);}

  /* buttons */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:10px; font-weight:600; font-size:.98rem;
    padding:15px 28px; border-radius:999px; border:1px solid transparent; transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
    white-space:nowrap; position:relative;
  }
  .btn:active{transform:scale(.97);}
  .btn-primary{background:var(--ink); color:var(--bg); box-shadow:var(--shadow-sm);}
  .btn-primary:hover{box-shadow:var(--shadow-md); transform:translateY(-2px);}
  .btn-accent{background:var(--accent); color:var(--accent-ink); box-shadow:var(--shadow-sm);}
  .btn-accent:hover{box-shadow:var(--shadow-md); transform:translateY(-2px);}
  .btn-ghost{background:transparent; color:var(--ink); border-color:var(--line-strong);}
  .btn-ghost:hover{border-color:var(--ink); background:var(--surface);}
  .btn-sm{padding:10px 18px; font-size:.88rem;}
  .btn-block{width:100%;}
  .icon{width:1em; height:1em; stroke:currentColor; fill:none; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0;}

  /* ============ NAVBAR ============ */
  .nav{
    position:sticky; top:0; z-index:100; height:var(--nav-h); display:flex; align-items:center;
    border-bottom:1px solid transparent; transition:background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  }
  .nav.scrolled{
    background:color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter:blur(16px) saturate(140%);
    -webkit-backdrop-filter:blur(16px) saturate(140%); border-bottom-color:var(--line);
  }
  .nav .wrap{display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%;}
  .brand{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.2rem; font-weight:600;}
  .brand .mark{width:30px; height:30px; color:var(--accent); object-fit:contain; flex-shrink:0;}
  .nav-links{display:flex; align-items:center; gap:6px;}
  .nav-links a{
    font-size:.94rem; font-weight:500; color:var(--ink-soft); padding:9px 14px; border-radius:999px; position:relative;
    transition:color .2s var(--ease), background .2s var(--ease);
  }
  .nav-links a:hover{color:var(--ink); background:var(--surface-2);}
  .nav-links a.active{color:var(--ink); background:var(--accent-soft);}
  .nav-right{display:flex; align-items:center; gap:10px;}
  .theme-toggle{
    display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%;
    border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); transition:border-color .2s, transform .35s var(--ease), background .2s;
  }
  .theme-toggle:hover{border-color:var(--ink);}
  .theme-toggle svg{transition:transform .4s var(--ease), opacity .3s;}
  .hamburger{display:none; width:42px; height:42px; align-items:center; justify-content:center; border-radius:50%; border:1px solid var(--line-strong); background:var(--surface);}
  .hamburger .bar{width:18px; height:1.5px; background:var(--ink); position:relative; transition:background .2s;}
  .hamburger .bar::before,.hamburger .bar::after{content:""; position:absolute; left:0; width:18px; height:1.5px; background:var(--ink); transition:transform .3s var(--ease), top .3s var(--ease);}
  .hamburger .bar::before{top:-6px;} .hamburger .bar::after{top:6px;}
  .hamburger.open .bar{background:transparent;}
  .hamburger.open .bar::before{top:0; transform:rotate(45deg);}
  .hamburger.open .bar::after{top:0; transform:rotate(-45deg);}

  .mobile-drawer{
    position:fixed; inset:0; z-index:99; visibility:hidden;
  }
  .mobile-drawer .backdrop{position:absolute; inset:0; background:rgba(10,14,12,.4); opacity:0; transition:opacity .35s var(--ease);}
  .mobile-drawer .panel{
    position:absolute; top:0; right:0; height:100%; width:min(340px,84vw); background:var(--surface);
    box-shadow:var(--shadow-lg); transform:translateX(100%); transition:transform .4s var(--ease); padding:100px 28px 40px;
    display:flex; flex-direction:column; gap:6px; overflow-y:auto;
  }
  .mobile-drawer.open{visibility:visible;}
  .mobile-drawer.open .backdrop{opacity:1;}
  .mobile-drawer.open .panel{transform:translateX(0);}
  .mobile-drawer a{font-size:1.15rem; font-weight:500; padding:14px 6px; border-bottom:1px solid var(--line); color:var(--ink);}
  .mobile-drawer .btn{margin-top:20px;}

  /* ============ HERO ============ */
  .hero{padding:76px 0 100px; position:relative;}
  .hero .wrap{display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;}
  .hero-copy{display:flex; flex-direction:column; align-items:flex-start; gap:26px;}
  .hero-copy h1{font-size:clamp(2.7rem,4vw + 1.2rem,4.4rem); line-height:1.05; letter-spacing:-.02em;}
  .hero-copy .sub{font-size:1.15rem; color:var(--ink-soft); line-height:1.65; max-width:46ch;}
  .hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
  .hero-fine{font-size:.88rem; color:var(--ink-faint); display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
  .hero-fine .dot{width:3px; height:3px; border-radius:50%; background:var(--ink-faint);}

  .hero-visual{position:relative; display:flex; justify-content:center; align-items:center; min-height:560px;}
  .phone{
    position:relative; width:300px; background:var(--surface); border-radius:44px; border:1px solid var(--line);
    box-shadow:var(--shadow-lg); padding:16px; z-index:2;
  }
  .phone::before{content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%); width:70px; height:6px; background:var(--line-strong); border-radius:99px;}
  .phone-screen{background:var(--surface-2); border-radius:30px; padding:26px 16px 18px; display:flex; flex-direction:column; gap:14px;}
  .phone-topline{display:flex; justify-content:space-between; align-items:center; font-size:.72rem; color:var(--ink-soft); padding:0 2px;}
  .phone-topline .badge-pill{display:flex; align-items:center; gap:5px; background:var(--accent-soft); color:var(--accent); padding:4px 9px; border-radius:99px; font-weight:600; font-family:var(--font-mono);}

  .float-card{
    position:absolute; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md);
    box-shadow:var(--shadow-md); padding:14px 18px; display:flex; flex-direction:column; gap:2px; z-index:3;
    animation:floaty 6s ease-in-out infinite;
  }
  .float-card .label{font-size:.72rem; color:var(--ink-faint); font-weight:600; text-transform:uppercase; letter-spacing:.05em;}
  .float-card .value{font-family:var(--font-mono); font-size:1.3rem; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:6px;}
  .float-card.fc-time{top:6%; left:-10%; animation-delay:.2s;}
  .float-card.fc-streak{bottom:16%; right:-14%; animation-delay:1.4s;}
  .float-card.fc-complete{bottom:-4%; left:2%; animation-delay:.8s;}
  .float-card .value.win{color:var(--accent);}
  @keyframes floaty{0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);}}

  /* Sudoku board (shared) */
  .sudoku{
    display:grid; grid-template-columns:repeat(9,1fr); width:100%; aspect-ratio:1; border:1.5px solid var(--ink);
    border-radius:12px; overflow:hidden; background:var(--surface);
  }
  .cell{
    position:relative; display:flex; align-items:center; justify-content:center; border:.5px solid var(--line);
    font-family:var(--font-mono); font-weight:500; user-select:none; background:var(--surface); color:var(--ink);
    transition:background .15s var(--ease); cursor:pointer;
  }
  .cell:nth-child(3n){border-right:1.5px solid var(--ink);}
  .cell:nth-child(9n+1){border-left:1.5px solid var(--ink);}
  .row-b1 .cell, .cell.row-top{border-top:1.5px solid var(--ink);}
  .cell.given{font-weight:600; color:var(--ink);}
  .cell.player{color:var(--accent); font-weight:600;}
  .cell.wrong{color:var(--danger);}
  .cell.peer{background:var(--surface-2);}
  .cell.selected{background:var(--accent-soft-strong); box-shadow:inset 0 0 0 2px var(--accent); z-index:2;}
  .cell.twin{background:var(--accent-soft);}
  .cell.shake{animation:shake .32s var(--ease);}
  @keyframes shake{0%,100%{transform:translateX(0);}25%{transform:translateX(-3px);}75%{transform:translateX(3px);}}
  .pencil{position:absolute; inset:2px; display:grid; grid-template-columns:repeat(3,1fr); font-family:var(--font-mono); font-weight:500; color:var(--ink-faint); pointer-events:none;}
  .pencil span{display:flex; align-items:center; justify-content:center; font-size:.55em;}

  .board-frame{width:100%; max-width:230px; margin:0 auto;}
  .numpad{display:grid; grid-template-columns:repeat(5,1fr); gap:6px;}
  .numpad button{
    aspect-ratio:1; border-radius:10px; border:1px solid var(--line); background:var(--surface); color:var(--ink);
    font-family:var(--font-mono); font-weight:600; font-size:.95rem; display:flex; align-items:center; justify-content:center;
    transition:background .15s, border-color .15s, transform .15s;
    padding: 2px;
  }
  .numpad button:hover{border-color:var(--accent); color:var(--accent);}
  .numpad button:active{transform:scale(.92);}
  .numpad button.notes-btn.on{background:var(--accent); color:var(--accent-ink); border-color:var(--accent);}
  .phone-controls{display:flex; align-items:center; justify-content:space-between; font-size:.72rem; color:var(--ink-soft); padding:0 2px;}

  /* ============ TRUST STRIP ============ */
  .trust{padding:36px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
  .trust .wrap{display:grid; grid-template-columns:repeat(4,1fr); gap:12px;}
  .trust-item{display:flex; align-items:center; gap:14px; padding:14px 8px;}
  .trust-item .icon-wrap{width:42px; height:42px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .trust-item .icon-wrap svg{width:20px; height:20px;}
  .trust-item strong{display:block; font-size:.98rem; font-weight:700;}
  .trust-item span{display:block; font-size:.82rem; color:var(--ink-soft);}

  /* ============ FEATURES ============ */
  .feature-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .feature-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px 28px;
    display:flex; flex-direction:column; gap:16px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  }
  .feature-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:var(--line-strong);}
  .feature-card .icon-wrap{width:48px; height:48px; border-radius:14px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center;}
  .feature-card .icon-wrap svg{width:22px; height:22px;}
  .feature-card h3{font-size:1.15rem; font-weight:600;}
  .feature-card p{color:var(--ink-soft); font-size:.96rem; line-height:1.6;}

  /* ============ DEMO ============ */
  .demo-panel{
    display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; background:var(--surface);
    border:1px solid var(--line); border-radius:var(--radius-lg); padding:48px; box-shadow:var(--shadow-md);
  }
  .demo-panel.flash{animation:ring-flash 1.2s var(--ease);}
  @keyframes ring-flash{0%{box-shadow:0 0 0 0 var(--accent-soft-strong), var(--shadow-md);} 40%{box-shadow:0 0 0 10px var(--accent-soft), var(--shadow-md);} 100%{box-shadow:var(--shadow-md);}}
  .demo-meta{display:flex; flex-direction:column; gap:26px;}
  .demo-stats{display:flex; gap:14px; flex-wrap:wrap;}
  .demo-stat{background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius-sm); padding:12px 18px; min-width:110px;}
  .demo-stat .label{font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-faint); font-weight:600;}
  .demo-stat .value{font-family:var(--font-mono); font-size:1.35rem; font-weight:600; margin-top:2px;}
  .demo-stat .value.danger{color:var(--danger);}
  .demo-board-wrap{max-width:420px; margin:0 auto; width:100%;}
  .demo-board-wrap .sudoku{font-size:clamp(1rem,2.6vw,1.5rem);}
  .demo-numpad{margin-top:16px; max-width:420px; margin-inline:auto;}
  .demo-numpad .numpad{grid-template-columns:repeat(10,1fr); gap:8px;}
  .demo-numpad button{font-size:1rem;}
  .demo-legend{display:flex; gap:18px; flex-wrap:wrap; font-size:.82rem; color:var(--ink-soft);}
  .demo-legend .swatch{display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:middle;}

  /* ============ DAILY ============ */
  .daily{background:var(--surface-2);}
  .daily-panel{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
  .daily-copy h2{font-size:clamp(1.9rem,2.6vw + 1rem,2.7rem); margin-bottom:16px;}
  .daily-copy p{color:var(--ink-soft); font-size:1.05rem; line-height:1.65; margin-bottom:28px; max-width:48ch;}
  .streak-line{display:flex; align-items:center; gap:12px; margin-bottom:28px;}
  .streak-line .flame{width:30px;height:30px; color:var(--accent);}
  .streak-line strong{font-size:1.1rem; font-family:var(--font-mono);}
  .cal-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px; box-shadow:var(--shadow-md);}
  .cal-row{display:grid; grid-template-columns:repeat(7,1fr); gap:10px; text-align:center;}
  .cal-row .d{font-size:.72rem; color:var(--ink-faint); font-weight:600; letter-spacing:.04em;}
  .cal-dot{width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:6px auto 0; font-size:.85rem; border:1.5px solid var(--line);}
  .cal-dot.done{background:var(--accent); color:var(--accent-ink); border-color:var(--accent);}
  .cal-dot.today{border-color:var(--accent); color:var(--accent); font-weight:700; box-shadow:0 0 0 3px var(--accent-soft);}
  .cal-dot.future{color:var(--ink-faint);}
  .cal-note{margin-top:20px; font-size:.85rem; color:var(--ink-faint); text-align:center; line-height:1.5;}

  /* ============ DIFFICULTY ============ */
  .diff-track{display:flex; align-items:center; gap:0; margin-bottom:44px;}
  .diff-track .seg{flex:1; height:4px; background:var(--line);}
  .diff-track .seg.on{background:var(--accent);}
  .diff-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:18px;}
  .diff-card{
    background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); padding:26px 20px;
    text-align:center; display:flex; flex-direction:column; align-items:center; gap:14px; transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s;
  }
  .diff-card:hover{transform:translateY(-6px) scale(1.01); box-shadow:var(--shadow-md);}
  .diff-card.active{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft);}
  .diff-dots{display:flex; gap:5px;}
  .diff-dots span{width:7px; height:7px; border-radius:50%; background:var(--line-strong);}
  .diff-dots span.fill{background:var(--accent);}
  .diff-card h3{font-size:1.05rem; font-weight:700;}
  .diff-card p{font-size:.85rem; color:var(--ink-soft); line-height:1.5;}

  /* ============ MULTIPLAYER ============ */
  .mp-layout{display:grid; grid-template-columns:.95fr 1.05fr; gap:56px; align-items:center;}
  .mp-tabs{display:flex; gap:8px; margin-bottom:22px; flex-wrap:wrap;}
  .mp-tab{padding:10px 18px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-size:.9rem; font-weight:600; color:var(--ink-soft); transition:all .2s var(--ease);}
  .mp-tab.active{background:var(--ink); color:var(--bg); border-color:var(--ink);}
  .mp-desc{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); padding:24px; min-height:110px;}
  .mp-desc h3{font-size:1.1rem; margin-bottom:8px; font-weight:700;}
  .mp-desc p{color:var(--ink-soft); font-size:.95rem; line-height:1.6;}
  .vs-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-md);}
  .vs-row{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:18px;}
  .vs-player{text-align:center; display:flex; flex-direction:column; gap:10px; align-items:center;}
  .vs-avatar{width:56px; height:56px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display); font-size:1.3rem;}
  .vs-player .time{font-family:var(--font-mono); font-size:1.4rem; font-weight:600;}
  .vs-mid{font-family:var(--font-display); font-style:italic; color:var(--ink-faint);}
  .vs-bar{height:8px; border-radius:99px; background:var(--line); margin-top:10px; overflow:hidden;}
  .vs-bar span{display:block; height:100%; background:var(--accent); border-radius:99px; transition:width 1.2s var(--ease);}
  .vs-winner{margin-top:24px; text-align:center; font-weight:700; padding:14px; border-radius:var(--radius-sm); background:var(--accent-soft); color:var(--accent);}

  /* ============ STATS ============ */
  .stats-dash{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:40px; box-shadow:var(--shadow-md);}
  .stats-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:36px;}
  .stat-tile{background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius-sm); padding:18px;}
  .stat-tile .label{font-size:.74rem; color:var(--ink-faint); font-weight:600; text-transform:uppercase; letter-spacing:.04em;}
  .stat-tile .value{font-family:var(--font-mono); font-size:1.5rem; font-weight:600; margin-top:6px;}
  .chart-wrap{border-top:1px solid var(--line); padding-top:28px;}
  .chart-wrap .cap{display:flex; justify-content:space-between; font-size:.82rem; color:var(--ink-soft); margin-bottom:14px;}
  .chart-line{stroke:var(--accent); stroke-width:2.5; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:600; stroke-dashoffset:600; transition:stroke-dashoffset 1.8s var(--ease);}
  .chart-wrap.in-view .chart-line{stroke-dashoffset:0;}
  .chart-fill{fill:url(#chartGrad); opacity:0; transition:opacity 1s var(--ease) .4s;}
  .chart-wrap.in-view .chart-fill{opacity:1;}
  .chart-dot{fill:var(--accent); opacity:0; transition:opacity .4s var(--ease) 1.6s;}
  .chart-wrap.in-view .chart-dot{opacity:1;}
  .chart-axis text{fill:var(--ink-faint); font-family:var(--font-mono); font-size:9px;}

  /* ============ OFFLINE ============ */
  .offline-section{background:var(--ink); color:var(--bg); border-radius:var(--radius-lg); margin:0 32px; padding:80px 48px; position:relative; overflow:hidden;}
  .offline-section::before{content:""; position:absolute; inset:0; background-image:linear-gradient(var(--line-strong) 1px, transparent 1px), linear-gradient(90deg, var(--line-strong) 1px, transparent 1px); background-size:64px 64px; opacity:.06; pointer-events:none;}
  .offline-inner{position:relative; max-width:720px; margin:0 auto; text-align:center; display:flex; flex-direction:column; align-items:center; gap:20px;}
  .offline-inner h2{color:var(--bg); font-size:clamp(1.9rem,2.6vw + 1rem,2.7rem);}
  .offline-inner p{color:#B9C0BA; font-size:1.05rem; line-height:1.7; max-width:56ch;}
  .offline-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:36px; width:100%;}
  .offline-item{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius-md); padding:24px 16px; display:flex; flex-direction:column; align-items:center; gap:10px;}
  .offline-item .icon-wrap{width:44px; height:44px; border-radius:12px; background:rgba(111,201,175,.18); color:#8FDABF; display:flex; align-items:center; justify-content:center;}
  .offline-item strong{font-size:.92rem; color:var(--bg);}

  /* ============ THEMES ============ */
  .theme-tabs{display:flex; justify-content:center; gap:8px; margin-bottom:36px;}
  .theme-tab{padding:10px 20px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-weight:600; font-size:.9rem; color:var(--ink-soft); display:flex; align-items:center; gap:8px;}
  .theme-tab.active{background:var(--ink); color:var(--bg); border-color:var(--ink);}
  .theme-preview{max-width:520px; margin:0 auto; border-radius:var(--radius-lg); border:1px solid var(--line); box-shadow:var(--shadow-md); overflow:hidden;}
  .tp-bar{display:flex; gap:6px; padding:14px 18px; border-bottom:1px solid var(--line);}
  .tp-bar span{width:9px; height:9px; border-radius:50%; background:var(--line-strong);}
  .tp-body{padding:36px 30px; display:flex; flex-direction:column; gap:14px; min-height:220px; transition:background .4s var(--ease), color .4s var(--ease);}
  .tp-body h4{font-family:var(--font-display); font-size:1.3rem; font-weight:500;}
  .tp-body .tp-row{display:flex; gap:10px;}
  .tp-body .tp-chip{padding:8px 14px; border-radius:999px; font-size:.8rem; font-weight:600;}
  .tp-light{background:#F5F3EE; color:#1C221F;}
  .tp-light .tp-chip{background:#2F6F5E; color:#F6FBF8;}
  .tp-light .tp-ghost{border:1px solid #CFC9B9; color:#5C665E; background:transparent;}
  .tp-dark{background:#141917; color:#ECE9E1;}
  .tp-dark .tp-chip{background:#6FC9AF; color:#0D1613;}
  .tp-dark .tp-ghost{border:1px solid #3A4340; color:#A4ADA4; background:transparent;}
  .tp-system{background:linear-gradient(115deg, #F5F3EE 50%, #141917 50%); color:#1C221F;}
  .tp-system h4{background:linear-gradient(115deg,#1C221F 50%,#ECE9E1 50%); -webkit-background-clip:text; background-clip:text; color:transparent;}
  .tp-system .tp-chip{background:linear-gradient(115deg,#2F6F5E 50%,#6FC9AF 50%); color:#F6FBF8;}
  .tp-system .tp-ghost{border:1px solid #CFC9B9; color:#5C665E; background:transparent;}

  /* ============ ACCESSIBILITY ============ */
  .a11y-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .a11y-card{display:flex; gap:16px; align-items:flex-start; padding:22px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface);}
  .a11y-card .icon-wrap{width:42px; height:42px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
  .a11y-card .icon-wrap svg{width:20px;height:20px;}
  .a11y-card h4{font-size:.98rem; font-weight:700; margin-bottom:4px;}
  .a11y-card p{font-size:.85rem; color:var(--ink-soft); line-height:1.55;}

  /* ============ TESTIMONIALS ============ */
  .testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .testi-card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px; display:flex; flex-direction:column; gap:16px;}
  .stars{color:var(--accent); letter-spacing:2px; font-size:.95rem;}
  .testi-card p{font-family:var(--font-display); font-size:1.12rem; line-height:1.55; font-style:italic;}
  .testi-name{font-size:.85rem; color:var(--ink-soft); font-weight:600;}
  .testi-flag{font-size:.72rem; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.05em;}

  /* ============ FAQ ============ */
  .faq-list{max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px;}
  .faq-item{border:1px solid var(--line); border-radius:var(--radius-md); background:var(--surface); overflow:hidden;}
  .faq-q{width:100%; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 26px; background: transparent !important; border:none; text-align:left; font-size:1.02rem; font-weight:600; color:var(--ink);}
  .faq-q .chev{width:20px; height:20px; color:var(--ink-faint); transition:transform .3s var(--ease); flex-shrink:0;}
  .faq-item.open .faq-q .chev{transform:rotate(180deg); color:var(--accent);}
  .faq-a{max-height:0; overflow:hidden; transition:max-height .35s var(--ease), padding .35s var(--ease);}
  .faq-item.open .faq-a{max-height:220px;}
  .faq-a p{padding:0 26px 22px; color:var(--ink-soft); font-size:.96rem; line-height:1.65; max-width:64ch;}

  /* ============ FINAL CTA ============ */
  .final-cta{position:relative; overflow:hidden; padding:120px 0; text-align:center;}
  .final-cta::before{
    content:""; position:absolute; inset:0; background-image:
      linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size:56px 56px; -webkit-mask-image:radial-gradient(circle at center, black, transparent 72%);
    mask-image:radial-gradient(circle at center, black, transparent 72%); pointer-events:none;
  }
  .final-cta .wrap{position:relative; display:flex; flex-direction:column; align-items:center; gap:22px; max-width:640px;}
  .final-cta h2{font-size:clamp(2.1rem,3.4vw + 1rem,3.3rem);}
  .final-cta p{color:var(--ink-soft); font-size:1.1rem;}
  .final-actions{display:flex; gap:14px; flex-wrap:wrap; justify-content:center;}

  /* ============ FOOTER ============ */
  footer{border-top:1px solid var(--line); padding:72px 0 32px;}
  .footer-top{display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:40px; padding-bottom:48px;}
  .footer-brand .brand{margin-bottom:14px;}
  .footer-brand p{color:var(--ink-soft); font-size:.92rem; max-width:32ch; line-height:1.6;}
  .footer-col h5{font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin-bottom:16px; font-weight:700;}
  .footer-col ul{display:flex; flex-direction:column; gap:11px;}
  .footer-col a{font-size:.92rem; color:var(--ink-soft); transition:color .2s;}
  .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(--line); flex-wrap:wrap; gap:16px;}
  .footer-bottom p{font-size:.82rem; color:var(--ink-faint);}
  .socials{display:flex; gap:10px;}
  .socials a{width:38px; height:38px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); transition:all .2s;}
  .socials a:hover{border-color:var(--accent); color:var(--accent);}
  .socials svg{width:16px;height:16px;}

  /* ============ TOAST ============ */
  .toast{
    position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--ink); color:var(--bg);
    padding:14px 24px; border-radius:999px; font-size:.9rem; font-weight:500; box-shadow:var(--shadow-lg); z-index:200;
    opacity:0; pointer-events:none; transition:opacity .3s var(--ease), transform .3s var(--ease); display:flex; align-items:center; gap:10px;
  }
  .toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

  /* ============ REVEAL ============ */
  .reveal{opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
  .reveal.in-view{opacity:1; transform:translateY(0);}

  /* ============ RESPONSIVE ============ */
  @media (max-width:1024px){
    .wrap{padding:0 24px;}
    .nav-links{display:none;}
    .hamburger{display:flex;}
    .hero .wrap{grid-template-columns:1fr; gap:56px;}
    .hero-visual{order:-1; min-height:auto; padding-top:20px;}
    .hero-copy{align-items:center; text-align:center;}
    .hero-copy .sub{max-width:56ch;}
    .float-card{display:none;}
    .feature-grid{grid-template-columns:repeat(2,1fr);}
    .trust .wrap{grid-template-columns:repeat(2,1fr);}
    .demo-panel{grid-template-columns:1fr; gap:36px; padding:32px;}
    .daily-panel{grid-template-columns:1fr; gap:40px;}
    .diff-grid{grid-template-columns:repeat(3,1fr);}
    .mp-layout{grid-template-columns:1fr; gap:40px;}
    .stats-grid{grid-template-columns:repeat(3,1fr);}
    .offline-grid{grid-template-columns:repeat(2,1fr);}
    .a11y-grid{grid-template-columns:repeat(2,1fr);}
    .testi-grid{grid-template-columns:repeat(2,1fr);}
    .footer-top{grid-template-columns:1fr 1fr; row-gap:36px;}
    .offline-section{margin:0 24px; padding:64px 32px;}
  }
  @media (max-width:768px){
    .section-pad{padding:80px 0;}
    .section-head{margin-bottom:40px;}
    .feature-grid{grid-template-columns:1fr;}
    .trust .wrap{grid-template-columns:1fr 1fr;}
    .demo-numpad .numpad{grid-template-columns:repeat(5,1fr);}
    .diff-grid{grid-template-columns:repeat(3,minmax(150px,1fr)); overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory;}
    .diff-card{scroll-snap-align:start; min-width:150px;}
    .stats-grid{grid-template-columns:repeat(2,1fr);}
    .offline-grid{grid-template-columns:1fr 1fr;}
    .a11y-grid{grid-template-columns:1fr;}
    .testi-grid{grid-template-columns:1fr;}
    .footer-top{grid-template-columns:1fr;}
    .vs-row{grid-template-columns:1fr; gap:10px;}
    .vs-mid{transform:rotate(90deg); margin:4px 0;}
  }
  @media (max-width:480px){
    .wrap{padding:0 18px;}
    .hero{padding:48px 0 64px;}
    .hero-actions{flex-direction:column; width:100%;}
    .hero-actions .btn{width:100%;}
    .btn{padding:14px 22px;}
    .phone{width:100%; max-width:280px;}
    .demo-panel{padding:22px;}
    .stats-grid{grid-template-columns:1fr 1fr;}
    .diff-grid{grid-template-columns:repeat(3,minmax(130px,1fr));}
    .offline-grid{grid-template-columns:1fr;}
    .final-cta{padding:80px 0;}
    .offline-section{padding:48px 20px; border-radius:20px;}
    .stats-dash{padding:24px;}
    .demo-panel{border-radius:20px;}
  }
  
  
  
  a:hover, a:focus {
    color: inherit;
}
button#themeToggle {
    padding: 2px;
    background: #fff;
    color: #1c221f;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #fff;
}
.offline-section h2 {
    color: #141917;
}
[data-theme="light"] .offline-section h2 {
    color: #fff;
}