  /* ---------- Local Persian font (YekanBakh FaNum) ---------- */
  @font-face{
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }
  @font-face{
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakhFaNum-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

  :root{
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
    --ff-body: 'YekanBakh', Tahoma, sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;
  }

  html[data-theme="dark"]{
    --bg-void:#06070d;
    --bg-page:#0a0c18;
    --glow-a: 42,20,102;
    --glow-b: 77,16,96;
    --glow-c: 20,60,110;
    --accent:#38bdf8;
    --accent-ink:#06111c;
    --link:#7dd3fc;
    --glass-bg: rgba(22,24,42,0.55);
    --glass-bg-strong: rgba(22,24,42,0.82);
    --nav-dropdown-bg: rgba(9,10,18,0.97);
    --glass-border: rgba(255,255,255,0.09);
    --glass-border-strong: rgba(255,255,255,0.16);
    --text-1:#f8fafc;
    --text-2:#b9c2d6;
    --text-3:#7c88a6;
    --divider: rgba(255,255,255,0.09);
    --shadow: 0 20px 60px rgba(0,0,0,0.45);
    --nav-bg: rgba(8,9,16,0.65);
    color-scheme: dark;
  }
  html[data-theme="light"]{
    --bg-void:#eceaff;
    --bg-page:#f5f4ff;
    --glow-a: 175,179,255;
    --glow-b: 233,206,255;
    --glow-c: 203,210,255;
    --accent:#0ea5e9;
    --accent-ink:#03222f;
    --link:#0369a1;
    --glass-bg: rgba(255,255,255,0.62);
    --glass-bg-strong: rgba(255,255,255,0.85);
    --nav-dropdown-bg: rgba(247,246,255,0.97);
    --glass-border: rgba(15,23,42,0.08);
    --glass-border-strong: rgba(15,23,42,0.14);
    --text-1:#0f172a;
    --text-2:#47506b;
    --text-3:#6b7590;
    --divider: rgba(15,23,42,0.08);
    --shadow: 0 20px 60px rgba(80,70,150,0.18);
    --nav-bg: rgba(245,244,255,0.7);
    color-scheme: light;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family: var(--ff-body);
    background: var(--bg-page);
    color: var(--text-1);
    line-height:1.7;
    overflow-x:hidden;
    transition: background .4s ease, color .4s ease;
  }
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  ul{list-style:none;}
  section, header, main, footer{position:relative; z-index:1;}

  .mono{ font-family: var(--ff-mono); direction:ltr; unicode-bidi:isolate; letter-spacing:.02em; }

  /* ---------- Aurora background ---------- */
  .aurora{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background: var(--bg-void);
  }
  .aurora::before, .aurora::after, .aurora span{
    content:""; position:absolute; border-radius:50%;
    filter: blur(90px);
    opacity:.75;
  }
  .aurora::before{
    width:56vw; height:56vw; max-width:820px; max-height:820px;
    top:-14vw; inset-inline-end:-12vw;
    background: radial-gradient(circle, rgba(var(--glow-a),0.9) 0%, rgba(var(--glow-a),0) 70%);
    animation: drift1 22s ease-in-out infinite alternate;
  }
  .aurora::after{
    width:50vw; height:50vw; max-width:760px; max-height:760px;
    bottom:-16vw; inset-inline-start:-10vw;
    background: radial-gradient(circle, rgba(var(--glow-b),0.9) 0%, rgba(var(--glow-b),0) 70%);
    animation: drift2 26s ease-in-out infinite alternate;
  }
  .aurora span{
    width:38vw; height:38vw; max-width:600px; max-height:600px;
    top:38%; inset-inline-start:32%;
    background: radial-gradient(circle, rgba(var(--glow-c),0.55) 0%, rgba(var(--glow-c),0) 70%);
    animation: drift3 30s ease-in-out infinite alternate;
  }
  @keyframes drift1{ from{ transform:translate(0,0) scale(1);} to{ transform:translate(-3vw,4vw) scale(1.08);} }
  @keyframes drift2{ from{ transform:translate(0,0) scale(1);} to{ transform:translate(4vw,-3vw) scale(1.1);} }
  @keyframes drift3{ from{ transform:translate(0,0) scale(1);} to{ transform:translate(-2vw,-2vw) scale(0.94);} }
  @media (prefers-reduced-motion: reduce){
    .aurora::before,.aurora::after,.aurora span{ animation:none; }
    html{ scroll-behavior:auto; }
  }

  /* ---------- Glass ---------- */
  .glass{
    background: var(--glass-bg);
    border:1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--shadow);
  }

  /* ---------- Layout helpers ---------- */
  .wrap{ max-width: var(--container); margin-inline:auto; padding-inline: 24px; }
  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:12.5px; color: var(--link); font-weight:600;
    text-transform:uppercase; letter-spacing:.08em;
    margin-bottom:14px;
  }
  .eyebrow.center{ display:flex; justify-content:center; width:100%; }
  .eyebrow::before{
    content:""; width:16px; height:1px; background: var(--link); display:inline-block;
  }
  h1,h2,h3{ font-weight:800; letter-spacing:-0.01em; color:var(--text-1); }
  .section-head{ text-align:center; max-width:640px; margin-inline:auto; margin-bottom:48px; }
  .section-head h2{ font-size: clamp(26px,4vw,38px); }

  /* reveal */
  .reveal{ opacity:0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in-view{ opacity:1; transform:none; }
  @media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

  /* ---------- Buttons ---------- */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:14px 26px; border-radius: 999px; font-weight:700; font-size:14.5px;
    font-family: var(--ff-body);
    border:1px solid transparent; cursor:pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space:nowrap;
  }
  .btn-primary{ background:var(--accent); color:var(--accent-ink); box-shadow: 0 10px 30px -8px rgba(56,189,248,.55); }
  .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(56,189,248,.65); }
  .btn-ghost{ background: var(--glass-bg); border-color:var(--glass-border-strong); color:var(--text-1); }
  .btn-ghost:hover{ transform: translateY(-2px); border-color: var(--link); }
  .btn-sm{ padding:9px 18px; font-size:13px; }
  a.btn:focus-visible, button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

  /* ---------- Nav ---------- */
  .nav{
    position:sticky; top:0; z-index:50;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom:1px solid var(--divider);
  }
  .nav-inner{ position:relative; max-width: var(--container); margin-inline:auto; padding: 14px 24px; display:flex; align-items:center; gap:20px; }
  .brand{ display:flex; align-items:center; }
  .brand-mark{ height:64px; width:auto; flex-shrink:0; object-fit:contain; }
  .nav-links{ display:flex; gap:26px; margin-inline-end:auto; font-size:14px; color:var(--text-2); }
  .nav-links a{ position:relative; padding-bottom:4px; }
  .nav-links a:hover{ color: var(--text-1); }
  .nav-links a.active{ color: var(--text-1); }
  .nav-links a.active::after{ content:""; position:absolute; right:0; left:0; bottom:-2px; height:2px; border-radius:2px; background:var(--accent); }
  .nav-actions{ display:flex; align-items:center; gap:12px; }
  .theme-toggle{
    width:38px; height:38px; border-radius:50%; border:1px solid var(--glass-border-strong);
    background:var(--glass-bg); color:var(--text-1); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
  }
  .theme-toggle svg{ width:17px; height:17px; }
  .icon-sun{ display:none; }
  html[data-theme="light"] .icon-moon{ display:none; }
  html[data-theme="light"] .icon-sun{ display:block; }

  /* ---------- Mobile burger (animated hamburger -> X) ---------- */
  .nav-burger{
    display:none; position:relative; z-index:70;
    width:40px; height:40px; padding:0;
    align-items:center; justify-content:center;
    border-radius:50%; border:0;
    background:transparent; color:var(--text-1); cursor:pointer;
    transition: transform .25s ease;
  }
  .nav-burger:active{ transform:scale(.92); }
  .nav-burger.open{ background:transparent; border:0; }
  .burger-box{ position:relative; width:17px; height:12px; display:inline-block; }
  .burger-bar{
    position:absolute; left:0; width:100%; height:2px; border-radius:2px;
    background:currentColor;
    transition: transform .32s cubic-bezier(.4,0,.2,1), top .32s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  }
  .burger-bar:nth-child(1){ top:0; }
  .burger-bar:nth-child(2){ top:5px; }
  .burger-bar:nth-child(3){ top:10px; }
  .nav-burger.open .burger-bar:nth-child(1){ top:5px; transform:rotate(45deg); }
  .nav-burger.open .burger-bar:nth-child(2){ opacity:0; transform:scaleX(0); }
  .nav-burger.open .burger-bar:nth-child(3){ top:5px; transform:rotate(-45deg); }

  @media (max-width: 1024px){
    .nav-links{
      display:flex; flex-direction:column; gap:2px;
      position:absolute; top:calc(100% + 12px);
      inset-inline-end:24px; inset-inline-start:auto;
      width:min(230px, calc(100vw - 48px));
      margin-inline-end:0; font-size:14.5px;
      padding:10px;
      background: var(--nav-dropdown-bg);
      border:1px solid var(--glass-border-strong);
      border-radius: var(--radius-md);
      backdrop-filter: blur(28px) saturate(160%);
      -webkit-backdrop-filter: blur(28px) saturate(160%);
      box-shadow: var(--shadow);
      transform-origin: top right;
      opacity:0; visibility:hidden; pointer-events:none;
      transform: translateY(-10px) scale(.94);
      transition: opacity .26s ease, transform .3s cubic-bezier(.16,1,.3,1), visibility .26s;
      z-index:60;
    }
    .nav-burger{ margin-inline-start:auto; }
    /* The menu sits on the inline-end side, which is physically left in RTL
       and right in LTR — so the animation origin mirrors too. */
    html[dir="rtl"] .nav-links{ transform-origin: top left; }
    html[dir="ltr"] .nav-links{ transform-origin: top right; }
    .nav-links.open{ opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0) scale(1); }
    .nav-links a{
      padding:10px 12px; border-radius:10px; padding-bottom:10px;
      opacity:0; transform:translateY(-6px);
      transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease;
    }
    .nav-links a::after{ display:none !important; }
    .nav-links a:hover, .nav-links a:active{ background:var(--glass-border); color:var(--text-1); }
    .nav-links a.active{ background:rgba(56,189,248,0.12); }
    .nav-links.open a{ opacity:1; transform:translateY(0); }
    .nav-links.open a:nth-child(1){ transition-delay:.04s; }
    .nav-links.open a:nth-child(2){ transition-delay:.08s; }
    .nav-links.open a:nth-child(3){ transition-delay:.12s; }
    .nav-links.open a:nth-child(4){ transition-delay:.16s; }
    .nav-links.open a:nth-child(5){ transition-delay:.2s; }
    .nav-links.open a:nth-child(6){ transition-delay:.24s; }
    .nav-burger{ display:flex; }
  }
  @media (max-width: 480px){
    /* Reclaim width from the CTA and icon buttons so the logo can breathe */
    .nav-inner{ padding:12px 14px; gap:8px; }
    .nav-links{ inset-inline-end:14px; width:min(230px, calc(100vw - 28px)); }
    .nav-actions{ gap:7px; }
    .brand-mark{ height:54px; }
    .nav-actions .btn-sm{ padding:8px 13px; font-size:11.5px; }
    .theme-toggle{ width:33px; height:33px; }
    .theme-toggle svg{ width:15px; height:15px; }
    .lang-label{ font-size:10.5px; }
  }
  @media (max-width: 380px){
    .brand-mark{ height:46px; }
    .nav-actions .btn-sm{ padding:7px 11px; font-size:11px; }
  }

  /* ---------- Hero ---------- */
  .hero{ padding: 76px 0 40px; position:relative; overflow:hidden; }
  .hero-inner{
    position:relative; z-index:1;
    max-width: var(--container); margin-inline:auto; padding-inline:24px;
    display:grid; grid-template-columns: 1.05fr 0.95fr; gap:56px; align-items:center;
  }

  /* Neon wave background — spans the full hero width edge-to-edge (simple,
     reliable, since .hero itself has no side padding). Vertical position is
     tracked precisely by JS to the phone's center (--wave-top custom prop),
     since that center moves depending on the responsive layout (desktop:
     beside the text; mobile: stacked below it) in a way pure CSS can't know. */
  .hero-wave{
    position:absolute; top: var(--wave-top, 50%); left:0; width:100%;
    height:220px;
    transform: translateY(-50%);
    z-index:0; overflow:hidden; pointer-events:none;
    transition: top .25s ease;
  }
  .hero-wave-bob{
    position:absolute; inset:0;
    animation: waveBob 10s ease-in-out infinite;
  }
  .hero-wave-svg{
    position:absolute; top:0; left:50%; margin-left:-2400px; height:200px; width:4800px;
    overflow:visible;
  }
  .hero-wave-svg path{
    fill:none;
    stroke:#ef4444;
    stroke-width:3;
    stroke-linecap:round;
    filter: drop-shadow(0 0 10px rgba(239,68,68,.85)) drop-shadow(0 0 26px rgba(220,38,38,.55));
  }
  .hero-wave-a{ animation: waveFlowLeft 26s linear infinite; opacity:.9; }
  .hero-wave-b{ height:160px; width:5100px; margin-left:-2550px; animation: waveFlowRight 19s linear infinite; opacity:.32; }
  .hero-wave-b path{ stroke-width:2; filter: drop-shadow(0 0 8px rgba(239,68,68,.6)); }
  @keyframes waveFlowLeft{ from{ transform: translateX(0); } to{ transform: translateX(-400px); } }
  @keyframes waveFlowRight{ from{ transform: translateX(-340px); } to{ transform: translateX(0); } }
  @keyframes waveBob{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(10px); } }
  @media (prefers-reduced-motion: reduce){
    .hero-wave-a, .hero-wave-b, .hero-wave-bob{ animation:none; }
    .hero-wave{ transition:none; }
  }
  @media (max-width: 640px){ .hero-wave{ height:150px; } }
  .hero-copy h1{ font-size: clamp(32px, 4.6vw, 54px); line-height:1.22; }
  .hero-sub{ color:var(--text-2); font-size:16.5px; max-width:520px; margin-top:18px; }
  .hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
  .hero-meta{ margin-top:26px; font-size:12px; color:var(--text-3); }

  .hero-visual{ display:flex; justify-content:center; position:relative; }
  .phone-stage{ perspective:1300px; position:relative; z-index:1; padding:40px 0; }
  .phone-stage::after{
    content:""; position:absolute; left:50%; bottom:18px; width:200px; height:34px;
    background: radial-gradient(ellipse, rgba(0,0,0,.45), rgba(0,0,0,0) 72%);
    transform: translateX(-50%);
    animation: groundShadow 6s ease-in-out infinite;
    pointer-events:none;
  }
  html[data-theme="light"] .phone-stage::after{ background: radial-gradient(ellipse, rgba(80,70,150,.28), rgba(80,70,150,0) 72%); }
  @keyframes groundShadow{ 0%,100%{ transform:translateX(-50%) scale(1); opacity:.8; } 50%{ transform:translateX(-50%) scale(.82); opacity:.5; } }
  .phone-spin{
    transform-style:preserve-3d;
    transform: rotateX(calc(6deg + var(--tilt-y, 0deg))) rotateY(calc(-20deg + var(--tilt-x, 0deg)));
    transition: transform .5s cubic-bezier(.16,1,.3,1);
  }
  .phone-spin.spinning{ animation: phoneSpin 1.1s cubic-bezier(.5,.06,.5,.94); }
  @keyframes phoneSpin{ from{ transform: rotateX(6deg) rotateY(-20deg); } to{ transform: rotateX(6deg) rotateY(340deg); } }
  @media (prefers-reduced-motion: reduce){ .phone-spin.spinning{ animation:none; } .phone-stage::after{ animation:none; } }

  .phone{
    position:relative;
    width:264px; padding:16px 15px 22px;
    border-radius:26px;
    background:
      linear-gradient(200deg, rgba(255,255,255,.5), rgba(255,255,255,.04) 30%, rgba(255,255,255,.03) 70%, rgba(255,255,255,.35)),
      rgba(24,28,46,.42);
    box-shadow:
      0 40px 70px -20px rgba(0,0,0,.5),
      0 10px 24px -8px rgba(0,0,0,.34),
      inset 0 0 0 1px rgba(255,255,255,.42),
      inset 0 0 30px rgba(150,190,255,.10);
    transform-style: preserve-3d;
    transform: rotateZ(-3deg);
    animation: floaty 6s ease-in-out infinite;
  }
  html[data-theme="light"] .phone{
    background:
      linear-gradient(200deg, rgba(255,255,255,.75), rgba(255,255,255,.25) 30%, rgba(255,255,255,.2) 70%, rgba(255,255,255,.6)),
      rgba(255,255,255,.34);
    box-shadow:
      0 40px 70px -20px rgba(80,70,150,.32),
      0 10px 24px -8px rgba(80,70,150,.2),
      inset 0 0 0 1px rgba(255,255,255,.8),
      inset 0 0 24px rgba(255,255,255,.5);
  }
  .phone::before{
    content:"";
    position:absolute; inset:0; border-radius:inherit; z-index:0; pointer-events:none;
    background: linear-gradient(120deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 74%, rgba(255,255,255,.22) 100%);
  }
  /* Extruded rim: stacked slices share the phone's rounded silhouette,
     so the curved corners stay solid instead of leaving gaps. */
  .phone-rim{
    position:absolute; inset:0;
    transform-style: preserve-3d;
    pointer-events:none;
  }
  .phone-slice{
    position:absolute; inset:0;
    border-radius:26px;
    background: transparent;
    box-shadow: inset 0 0 0 4px #7f8799;
  }
  html[data-theme="light"] .phone-slice{
    background: transparent;
    box-shadow: inset 0 0 0 4px #c3cad9;
  }

  /* Back face of the phone — solid panel (opaque so screen content can't bleed through mid-spin) */
  .phone-back{
    position:absolute; inset:0; border-radius:26px;
    transform: translateZ(-15px);
    background:
      linear-gradient(155deg, #333949 0%, #222738 34%, #2b3142 60%, #191d2a 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 45px rgba(0,0,0,.45);
  }
  html[data-theme="light"] .phone-back{
    background: linear-gradient(155deg, #f4f5fa 0%, #dcdfe9 34%, #eaecf3 60%, #cbcfdc 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), inset 0 0 45px rgba(120,125,150,.22);
  }

  /* iPhone-style rear camera module */
  .phone-cameras{
    position:absolute; top:18px; right:18px;
    width:78px; height:78px; border-radius:24px;
    background: linear-gradient(150deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 3px 10px rgba(0,0,0,.4);
    padding:9px;
  }
  html[data-theme="light"] .phone-cameras{
    background: linear-gradient(150deg, rgba(255,255,255,.75), rgba(190,195,215,.35));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 3px 10px rgba(120,125,150,.25);
  }
  .phone-lens{
    position:absolute; width:27px; height:27px; border-radius:50%;
    background: radial-gradient(circle at 34% 30%, #6f7a93 0%, #2a2f3d 42%, #0d1016 78%);
    box-shadow: inset 0 0 0 2px rgba(200,208,225,.32), 0 1px 3px rgba(0,0,0,.5);
  }
  .phone-lens::after{
    content:""; position:absolute; top:22%; left:24%;
    width:7px; height:7px; border-radius:50%;
    background: radial-gradient(circle, rgba(140,200,255,.85), rgba(140,200,255,0) 70%);
  }
  .phone-lens-1{ top:9px; left:9px; }
  .phone-lens-2{ top:9px; right:9px; }
  .phone-lens-3{ bottom:9px; left:9px; }
  .phone-flash{
    position:absolute; bottom:14px; right:14px;
    width:13px; height:13px; border-radius:50%;
    background: radial-gradient(circle, #fff8e1 0%, #d8ce9e 55%, #6b6650 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  }
  .phone-back-logo{
    position:absolute; top:50%; left:50%;
    transform: translate(-50%,-50%);
    width:34px; height:34px; border-radius:50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,.04) 70%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  }
  @keyframes floaty{ 0%,100%{ transform: rotateZ(-3deg) translateY(0);} 50%{ transform: rotateZ(-3deg) translateY(-14px);} }
  @media (prefers-reduced-motion: reduce){ .phone{ animation:none; } }

  .phone-topbar{ position:relative; z-index:1; transform: translateZ(1px); display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
  .phone-speaker{ width:48px; height:5px; border-radius:4px; background:rgba(120,130,160,.4); }
  .phone-camera{ position:absolute; inset-inline-end:26%; width:7px; height:7px; border-radius:50%; background:rgba(120,130,160,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

  .phone-display{
    position:relative; z-index:1;
    transform: translateZ(1px);
    height:360px;
    display:flex; align-items:center; justify-content:center;
    border-radius:14px;
    background: var(--bg-page);
    box-shadow: inset 0 0 0 1px var(--glass-border-strong), inset 0 1px 14px rgba(0,0,0,.18);
    padding:14px;
    overflow:hidden;
  }
  .phone-screens{ width:100%; }

  .phone-home{
    position:relative; z-index:1;
    transform: translateZ(1px);
    width:34px; height:34px; margin:14px auto 0;
    border-radius:50%;
    border:2px solid rgba(120,130,160,.45);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  }

  .phone-screen{ display:none; }
  .phone-screen.active{ display:block; }
  .app-card{ padding:16px; margin-bottom:12px; border-radius: var(--radius-md); }
  .app-card-head{ font-size:12.5px; font-weight:700; color:var(--text-2); margin-bottom:12px; }
  .task-row{ display:flex; align-items:center; gap:8px; font-size:11.5px; color:var(--text-1); padding:8px 0; border-top:1px solid var(--divider); }
  .task-row:first-of-type{ border-top:none; }
  .dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }
  .status-progress{ background:#38bdf8; }
  .status-review{ background:#facc15; }
  .status-done{ background:#4ade80; }
  .pill{ margin-inline-start:auto; font-size:9.5px; font-weight:700; padding:3px 9px; border-radius:999px; white-space:nowrap; }
  .pill-progress{ background:rgba(56,189,248,.16); color:#7dd3fc; }
  .pill-review{ background:rgba(250,204,21,.16); color:#fde047; }
  .pill-done{ background:rgba(74,222,128,.16); color:#86efac; }
  .app-card.small .app-card-head{ margin-bottom:10px; }
  .progress-bar{ height:8px; border-radius:999px; background: var(--divider); overflow:hidden; }
  .progress-fill{ height:100%; border-radius:999px; background: linear-gradient(90deg,#38bdf8,#a78bfa); }

  /* ---------- About ---------- */
  .about{ padding: 30px 0 100px; }
  .panel{ max-width: var(--container); margin-inline:auto; padding: 46px; }
  .about-text{ font-size:17px; color:var(--text-2); max-width:820px; }
  .about-foot{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:26px; padding-top:22px; border-top:1px solid var(--divider); font-size:12.5px; color:var(--text-3); }

  /* ---------- Features ---------- */
  .features{ padding: 20px 0 100px; }
  .feature-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
  .feature-card{ padding:28px; transition: transform .3s ease, border-color .3s ease; }
  .feature-card:hover{ transform: translateY(-6px); border-color: var(--glass-border-strong); }
  .feature-icon{ width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; background: rgba(56,189,248,.14); color: var(--accent); margin-bottom:18px; }
  .feature-icon svg{ width:22px; height:22px; }
  .feature-card h3{ font-size:17px; margin-bottom:8px; }
  .feature-card p{ font-size:14px; color:var(--text-2); }
  @media (max-width: 900px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 620px){ .feature-grid{ grid-template-columns: 1fr; } }

  /* ---------- App Download ---------- */
  .app-download{ padding: 20px 0 100px; }
  .download-panel{
    position:relative; overflow:hidden;
    max-width: var(--container); margin-inline:auto; padding:52px;
    display:grid; grid-template-columns: 1.15fr 0.85fr; gap:44px; align-items:center;
    border-color: var(--glass-border-strong);
  }
  .download-glow{
    position:absolute; inset:0; z-index:0; pointer-events:none;
    background:
      radial-gradient(60% 90% at 12% 15%, rgba(56,189,248,.20), transparent 70%),
      radial-gradient(55% 80% at 92% 95%, rgba(167,139,250,.16), transparent 70%);
  }
  .download-content, .download-visual{ position:relative; z-index:1; }
  .download-content .eyebrow{ margin-bottom:14px; }
  .download-content h2{ font-size: clamp(24px,3.3vw,34px); line-height:1.35; margin-bottom:14px; }
  .download-sub{ color:var(--text-2); font-size:15px; max-width:480px; margin-bottom:28px; }
  .download-stats{ display:flex; gap:28px; margin-bottom:30px; flex-wrap:wrap; }
  .download-stat{ display:flex; flex-direction:column; gap:3px; }
  .download-stat .stat-num{ font-size:16px; font-weight:700; color:var(--text-1); }
  .download-stat .stat-label{ font-size:11.5px; color:var(--text-3); }
  .download-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .btn-lg{ padding:16px 30px; font-size:15.5px; }
  .btn-lg svg{ width:19px; height:19px; }
  .download-note{ font-size:12px; color:var(--text-3); }
  .download-visual{ display:flex; justify-content:center; }
  .download-badge{
    width:148px; height:148px; border-radius:36px;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(155deg, rgba(220,38,38,.16), rgba(56,189,248,.12));
    border:1px solid var(--glass-border-strong);
    position:relative;
    overflow:visible;
  }
  .download-badge::before{
    content:""; position:absolute; inset:18px; border-radius:50%;
    background: radial-gradient(circle, rgba(220,38,38,.35), transparent 72%);
    filter: blur(10px);
    animation: shutterGlow 3.2s ease-in-out infinite;
  }
  .download-badge img{
    position:relative; width:76px; height:76px; object-fit:contain;
    filter: drop-shadow(0 6px 18px rgba(220,38,38,.5));
    animation: shutterSpin 16s linear infinite;
  }
  .download-badge::after{
    content:""; position:absolute; inset:-10px; border-radius:46px;
    border:1px solid rgba(220,38,38,.4);
    animation: pulseRing 2.6s ease-out infinite;
  }
  @keyframes shutterSpin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
  @keyframes shutterGlow{ 0%,100%{ opacity:.55; transform:scale(.92); } 50%{ opacity:1; transform:scale(1.06); } }
  @keyframes pulseRing{
    0%{ transform:scale(.9); opacity:.75; }
    70%{ transform:scale(1.2); opacity:0; }
    100%{ opacity:0; }
  }
  @media (prefers-reduced-motion: reduce){
    .download-badge::after{ animation:none; }
    .download-badge img{ animation:none; }
    .download-badge::before{ animation:none; }
  }
  @media (max-width: 860px){
    .download-panel{ grid-template-columns:1fr; padding:36px 26px; text-align:center; }
    .download-stats, .download-actions{ justify-content:center; }
    .download-sub{ margin-inline:auto; }
    .download-visual{ order:-1; }
  }

  /* ---------- Floating Download Button ---------- */
  .fab-download{
    position:fixed; bottom:26px; inset-inline-end:26px; z-index:40;
    display:flex; align-items:center; gap:9px;
    padding:15px 20px; border-radius:999px;
    background: #dc2626; color:#fff; font-weight:700; font-size:13.5px;
    box-shadow: 0 14px 34px -8px rgba(220,38,38,.55);
    opacity:0; transform: translateY(18px) scale(.9); pointer-events:none;
    transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease;
  }
  .fab-download.visible{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
  .fab-download:hover{ box-shadow: 0 18px 40px -6px rgba(220,38,38,.65); transform: translateY(-2px); }
  .fab-download svg{ width:18px; height:18px; flex-shrink:0; }
  .fab-label{ white-space:nowrap; }
  @media (prefers-reduced-motion: reduce){ .fab-download{ transition:opacity .2s linear; } }
  @media (max-width: 640px){
    .fab-download{ bottom:18px; inset-inline-end:18px; padding:14px; }
    .fab-label{ display:none; }
  }

  /* ---------- Doors ---------- */
  .doors{ padding: 20px 0 100px; }
  .doors-grid{ display:grid; grid-template-columns: 1fr auto 1fr; gap:0; align-items:stretch; max-width: var(--container); margin-inline:auto; }
  .door{ padding:38px; display:flex; flex-direction:column; }
  .door h3{ font-size:20px; margin-bottom:10px; }
  .door p{ color:var(--text-2); font-size:14px; margin-bottom:18px; }
  .door ul{ margin-bottom:26px; display:flex; flex-direction:column; gap:10px; }
  .door li{ font-size:13.5px; color:var(--text-2); display:flex; gap:10px; align-items:flex-start; }
  .door li::before{ content:"—"; color:var(--link); flex-shrink:0; }
  .door .btn{ margin-top:auto; align-self:flex-start; }
  .door-divider{ width:1px; background:var(--divider); margin:38px 26px; position:relative; }
  .door-divider::after{
    content:"یا"; font-size:12px; color:var(--text-3);
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    background:var(--bg-page); padding:6px 4px;
  }
  @media (max-width: 780px){
    .doors-grid{ grid-template-columns:1fr; }
    .door-divider{ width:auto; height:1px; margin:0; }
    .door-divider::after{ background:var(--bg-page); }
  }

  /* ---------- Feature Spotlight ---------- */
  .spotlight-row{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; margin-bottom:72px; }
  .spotlight-row:last-of-type{ margin-bottom:0; }
  .spotlight-copy .eyebrow{ margin-bottom:12px; }
  .spotlight-copy h3{ font-size: clamp(20px,2.4vw,26px); line-height:1.4; margin-bottom:14px; }
  .spotlight-copy p{ color:var(--text-2); font-size:15px; max-width:440px; margin-bottom:20px; }
  .spotlight-copy ul{ display:flex; flex-direction:column; gap:10px; }
  .spotlight-copy li{ font-size:13.5px; color:var(--text-2); display:flex; gap:10px; align-items:flex-start; }
  .spotlight-copy li::before{ content:"—"; color:var(--link); flex-shrink:0; }
  .spotlight-visual{ display:flex; justify-content:center; }
  .spotlight-card{ width:100%; max-width:360px; padding:28px; }
  .mini-phone-title{ font-size:12.5px; font-weight:700; color:var(--text-2); margin-bottom:16px; }
  .cal-grid{ display:grid; grid-template-columns: repeat(7,1fr); gap:5px; }
  .cal-cell{ aspect-ratio:1; border-radius:6px; background:var(--divider); }
  .cal-cell.active{ background: var(--accent); }
  .cal-cell.tag{ background: rgba(167,139,250,.5); }
  .portal-percent{ font-family:var(--ff-mono); direction:ltr; unicode-bidi:isolate; font-size:32px; font-weight:700; color:var(--text-1); }
  .portal-percent-label{ font-size:11.5px; color:var(--text-3); margin-bottom:16px; }
  .portal-checklist{ display:flex; flex-direction:column; gap:11px; margin-top:18px; }
  .portal-check{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--text-3); }
  .portal-check.done{ color:var(--text-1); }
  .portal-check .check-dot{ width:17px; height:17px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; flex-shrink:0; background:var(--divider); color:transparent; }
  .portal-check.done .check-dot{ background: var(--accent); color:var(--accent-ink); }
  @media (max-width: 860px){
    .spotlight-row{ grid-template-columns:1fr; gap:26px; margin-bottom:44px; }
    .spotlight-visual{ order:-1; }
    .spotlight-copy p{ max-width:none; }
  }

  /* ---------- More features grid ---------- */
  .more-features-head{ margin-top:88px; }
  @media (max-width: 860px){ .more-features-head{ margin-top:52px; } }

  /* ---------- FAQ ---------- */
  .faq{ padding:20px 0 100px; }
  .faq-list{ max-width:820px; margin-inline:auto; display:flex; flex-direction:column; gap:14px; }
  .faq-item{ padding:4px 26px; }
  .faq-item summary{ cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 0; font-weight:700; font-size:15px; color:var(--text-1); }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item summary::after{ content:"+"; font-family:var(--ff-mono); font-size:19px; color:var(--link); transition: transform .25s ease; flex-shrink:0; }
  .faq-item[open] summary::after{ transform: rotate(45deg); }
  .faq-item p{ padding-bottom:19px; margin-top:-6px; color:var(--text-2); font-size:14px; max-width:680px; }

  /* ---------- Connect ---------- */
  .connect{ padding:20px 0 110px; }
  .connect-panel{ max-width: var(--container); margin-inline:auto; padding:44px; }
  .connect-links{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; }
  .connect-card{ display:flex; align-items:center; gap:14px; padding:16px; border-radius: var(--radius-md); border:1px solid; }
  .connect-card.telegram{ background: rgba(38,165,228,.08); border-color: rgba(38,165,228,.25); }
  .connect-card.whatsapp{ background: rgba(37,211,102,.08); border-color: rgba(37,211,102,.25); }
  .connect-badge{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:12px; flex-shrink:0; }
  .connect-card.telegram .connect-badge{ background:#26a5e4; }
  .connect-card.whatsapp .connect-badge{ background:#25d366; }
  .connect-card strong{ display:block; font-size:13.5px; }
  .connect-card span{ display:block; font-size:11px; color:var(--text-3); margin-top:2px; }
  @media (max-width: 640px){ .connect-links{ grid-template-columns:1fr; } }

  /* ---------- Footer ---------- */
  .footer{ border-top:1px solid var(--divider); padding: 64px 0 28px; }
  .footer-grid{ max-width: var(--container); margin-inline:auto; padding-inline:24px; display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap:40px; }
  .footer-brand .brand-mark{ height:32px; margin-bottom:16px; }
  .footer-brand p{ font-size:13px; color:var(--text-2); max-width:280px; margin-bottom:14px; }
  .footer-col h4{ font-size:12px; color:var(--text-3); text-transform:uppercase; letter-spacing:.07em; margin-bottom:16px; font-weight:700; }
  .footer-col{ display:flex; flex-direction:column; gap:12px; }
  .footer-col a{ font-size:14px; color:var(--text-2); }
  .footer-col a:hover{ color:var(--text-1); }
  .footer-bottom{ max-width: var(--container); margin-inline:auto; padding: 22px 24px 0; margin-top:40px; border-top:1px solid var(--divider); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:11.5px; color:var(--text-3); }
  @media (max-width: 720px){ .footer-grid{ grid-template-columns:1fr; gap:30px; } }

  @media (max-width: 980px){
    .hero-inner{ grid-template-columns:1fr; }
    .hero-copy{ text-align:center; }
    .hero-actions{ justify-content:center; }
    .hero-sub{ margin-inline:auto; }
  }

  .lang-label{ font-family: var(--ff-mono); font-size:11.5px; font-weight:700; letter-spacing:.03em; }

  /* English mode: Latin system fonts — no extra font download, so the
     bilingual switch adds no page weight. */
  html[data-lang="en"]{
    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
  html[data-lang="en"] .eyebrow{ letter-spacing:.10em; }
  html[data-lang="en"] .hero-copy h1{ letter-spacing:-0.02em; }

  /* ---------- Toast (download availability) ---------- */
  .toast{
    position:fixed; bottom:110px; left:50%; transform: translateX(-50%) translateY(14px);
    z-index:250; max-width: calc(100vw - 40px);
    display:flex; align-items:center; gap:10px;
    padding:14px 20px; border-radius:999px;
    background: var(--glass-bg-strong);
    border:1px solid var(--glass-border-strong);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: var(--shadow);
    color: var(--text-1); font-size:14px; font-weight:700; white-space:nowrap;
    opacity:0; visibility:hidden; pointer-events:none;
    transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1), visibility .3s;
  }
  .toast.show{ opacity:1; visibility:visible; transform: translateX(-50%) translateY(0); }
  .toast svg{ width:19px; height:19px; flex-shrink:0; color:#f87171; }
  @media (max-width: 520px){
    .toast{ font-size:13px; padding:12px 16px; white-space:normal; text-align:center; }
  }
  @media (prefers-reduced-motion: reduce){ .toast{ transition: opacity .2s linear; } }

  /* ---------- Client Portal Login Modal ---------- */
  .modal-overlay{
    position:fixed; inset:0; z-index:200;
    display:flex; align-items:center; justify-content:center;
    padding:20px;
    opacity:0; visibility:hidden; pointer-events:none;
    transition: opacity .28s ease, visibility .28s;
  }
  .modal-overlay.open{ opacity:1; visibility:visible; pointer-events:auto; }
  .modal-backdrop{
    position:absolute; inset:0;
    background: rgba(4,5,10,.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .modal-dialog{
    position:relative; z-index:1;
    width:100%; max-width:380px;
    padding:32px 28px 28px;
    border-radius: 24px;
    text-align:center;
    transform: translateY(18px) scale(.95);
    opacity:0;
    transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .28s ease;
    max-height: calc(100vh - 40px);
    overflow-y:auto;
  }
  .modal-overlay.open .modal-dialog{ transform:translateY(0) scale(1); opacity:1; }
  .modal-close{
    position:absolute; top:14px; inset-inline-start:14px;
    width:32px; height:32px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background: var(--glass-bg); border:1px solid var(--glass-border-strong);
    color:var(--text-2); font-size:18px; line-height:1; cursor:pointer;
  }
  .modal-close:hover{ color:var(--text-1); }
  .modal-logo{ width:70%; max-width:220px; margin:0 auto 16px; display:block; }
  .modal-subtitle{ font-size:17px; font-weight:800; color:var(--text-1); margin-bottom:24px; }
  .modal-form{ text-align:start; }
  .modal-label{ display:block; font-size:12.5px; font-weight:700; color:var(--text-1); margin-bottom:8px; }
  .modal-input-wrap{ position:relative; margin-bottom:6px; }
  .modal-input-icon{
    position:absolute; top:50%; inset-inline-end:14px; transform:translateY(-50%);
    width:18px; height:18px; color:var(--text-3); pointer-events:none;
  }
  .modal-input{
    width:100%; height:52px; border-radius:14px;
    background: var(--glass-bg); border:1px solid var(--glass-border-strong);
    color:var(--text-1); font-family:var(--ff-body); font-size:14.5px;
    padding: 0 44px 0 16px;
    outline:none;
    transition: border-color .2s ease;
  }
  .modal-input::placeholder{ color:var(--text-3); }
  .modal-input:focus{ border-color:var(--accent); }
  .modal-error{
    font-size:11.5px; color:#f87171; margin:8px 2px 0; text-align:start;
  }
  .modal-error[hidden]{ display:none; }
  .modal-submit{ width:100%; height:54px; margin-top:22px; }
  .modal-spinner{
    width:18px; height:18px; border-radius:50%;
    border:2px solid rgba(6,17,28,.35); border-top-color:var(--accent-ink);
    animation: modalSpin .7s linear infinite;
    display:inline-block; vertical-align:middle; margin-inline-end:10px;
  }
  @keyframes modalSpin{ to{ transform:rotate(360deg); } }
  @media (prefers-reduced-motion: reduce){
    .modal-overlay, .modal-dialog{ transition:opacity .15s linear; }
    .modal-spinner{ animation-duration:1.2s; }
  }

  /* ---------- Contact cards: link state + extra networks (LumiVox Manager) ---------- */
  a.connect-card.is-link{ transition: transform .25s ease, box-shadow .25s ease; }
  a.connect-card.is-link:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
  .connect-card.instagram{ background: rgba(225,48,108,.08); border-color: rgba(225,48,108,.25); }
  .connect-card.instagram .connect-badge{ background: linear-gradient(45deg,#f9a825,#e1306c,#833ab4); }
  .connect-card.eitaa{ background: rgba(239,120,40,.08); border-color: rgba(239,120,40,.25); }
  .connect-card.eitaa .connect-badge{ background:#ef7828; }
  .connect-card.bale{ background: rgba(0,170,140,.08); border-color: rgba(0,170,140,.25); }
  .connect-card.bale .connect-badge{ background:#00aa8c; }
  .connect-card.rubika{ background: rgba(140,80,230,.08); border-color: rgba(140,80,230,.25); }
  .connect-card.rubika .connect-badge{ background: linear-gradient(45deg,#e53935,#8e24aa,#1e88e5); }
  .connect-card.aparat{ background: rgba(237,20,91,.08); border-color: rgba(237,20,91,.25); }
  .connect-card.aparat .connect-badge{ background:#ed145b; }
  .connect-card.youtube{ background: rgba(255,0,0,.07); border-color: rgba(255,0,0,.22); }
  .connect-card.youtube .connect-badge{ background:#ff0000; }
  .connect-card.linkedin{ background: rgba(10,102,194,.08); border-color: rgba(10,102,194,.25); }
  .connect-card.linkedin .connect-badge{ background:#0a66c2; }
  .connect-card.email, .connect-card.phone, .connect-card.website{ background: var(--glass-bg); border-color: var(--glass-border-strong); }
  .connect-card.email .connect-badge, .connect-card.phone .connect-badge, .connect-card.website .connect-badge{ background: var(--accent); color: var(--accent-ink); font-size:11px; }

  /* ---------- Logo tagline follows the theme (white on dark, black on light) ---------- */
  html[data-theme="dark"] .lv-logo--light{ display:none !important; }
  html[data-theme="light"] .lv-logo--dark{ display:none !important; }
