/* Lubdi site. Dark cinematic chapters + light, bordered product sections. */
:root {
  --ink: #0b0b12;
  --ink-2: #12121a;
  --ink-3: #1a1a25;
  --paper: #f6f5fb;
  --paper-2: #ffffff;
  --text-d: #ececf4;
  --muted-d: #a2a2b6;
  --text-l: #16161f;
  --muted-l: #5a5a70;
  --violet: #a5a5ff;
  --violet-2: #6e6ee8;
  --line-l: #16161f;
  --good: #4bb47a;
  --warn: #e5a64b;
  --bad: #ff8c8c;
  --r: 18px;
  --shadow-hard: 4px 4px 0 var(--line-l);
  --serif: 'Instrument Serif', Georgia, serif;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); background: var(--ink); color: var(--text-d); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }

.container { width: min(1160px, 100% - 40px); margin: 0 auto; position: relative; }
.container.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

section { position: relative; padding: 120px 0; }
.dark { background: var(--ink); color: var(--text-d); }
.light { background: var(--paper); color: var(--text-l); }

.eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin: 0 0 16px; }
.light .eyebrow { color: var(--violet-2); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 56px; }
.big-serif { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 84px); line-height: 1; letter-spacing: -.02em; margin: 0 0 28px; }
.big-serif em, h1 em { font-style: italic; color: var(--violet); }
.hl { background: var(--violet); padding: 0 .18em; border-radius: 10px; box-shadow: var(--shadow-hard); border: 2px solid var(--line-l); display: inline-block; line-height: 1.05; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted-d); max-width: 34em; }
.light .lead, .muted { color: var(--muted-l); }

/* Buttons: bordered with a hard offset shadow, like the reference. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 16px; border: 2px solid var(--line-l); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); }
.btn-primary { background: var(--violet); color: var(--ink); box-shadow: 4px 4px 0 #000; border-color: #000; }
.btn-primary:hover { box-shadow: 6px 6px 0 #000; }
.btn-ghost { color: var(--text-d); border-color: rgba(236,236,244,.35); }
.btn-light { background: var(--paper-2); color: var(--ink); box-shadow: 3px 3px 0 var(--line-l); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: opacity .9s ease .2s, visibility 0s linear 1.1s; }
.curtain.gone { opacity: 0; visibility: hidden; }
.curtain-line { position: absolute; width: min(600px, 80vw); height: 80px; margin-top: 170px; fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.4s ease forwards; }
.curtain-word { font-family: var(--serif); font-style: italic; font-size: clamp(60px, 12vw, 140px); color: var(--text-d); opacity: 0; animation: rise 1s ease .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.04em; color: var(--text-d); }
.brand-mark { width: 34px; height: 34px; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.1); }
.word { display: inline-flex; align-items: baseline; }
.word .i { position: relative; }
.i-dot { position: absolute; width: 11px; height: 11px; left: 50%; top: -.05em; transform: translateX(-50%); fill: var(--violet); animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: translateX(-50%) rotate(0) scale(1); } 50% { transform: translateX(-50%) rotate(90deg) scale(1.35); } }

/* ---------- nav: dark glass, shrinks on scroll ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--violet), #ff9ad5, var(--violet)); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.nav-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 50; transition: top .4s; }
.nav { width: min(1160px, 100% - 28px); margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 18px; background: rgba(11,11,18,.35); color: var(--text-d); border: 1px solid rgba(236,236,244,.10); border-radius: 22px; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); transition: width .5s cubic-bezier(.2,.8,.2,1), background .4s, box-shadow .4s, border-color .4s; }
.nav-wrap.scrolled { top: 10px; }
.nav-wrap.scrolled .nav { width: min(920px, 100% - 28px); background: rgba(11,11,18,.82); border-color: rgba(165,165,255,.22); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.nav-links { position: relative; display: flex; gap: 4px; margin-left: auto; font-size: 15px; }
.nav-links a { position: relative; z-index: 1; padding: 9px 15px; border-radius: 12px; color: var(--muted-d); transition: color .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-d); }
.nav-pill { position: absolute; top: 0; height: 100%; border-radius: 12px; background: rgba(165,165,255,.16); border: 1px solid rgba(165,165,255,.25); opacity: 0; transition: left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.btn-nav { padding: 11px 20px; font-size: 15px; background: var(--violet); color: var(--ink); border: 0; border-radius: 14px; box-shadow: 0 0 0 0 rgba(165,165,255,.5); }
.btn-nav:hover { box-shadow: 0 0 28px rgba(165,165,255,.55); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(236,236,244,.15); background: none; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text-d); border-radius: 2px; transition: transform .35s, top .35s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: -1; background: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 28px; clip-path: circle(0 at calc(100% - 46px) 42px); transition: clip-path .6s cubic-bezier(.7,0,.2,1); }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 48px; color: var(--text-d); opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; opacity: 0; transition: opacity .4s .3s; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 42px); }
.menu-open .mobile-menu a { opacity: 1; transform: none; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .08s; } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .16s; } .menu-open .mobile-menu a:nth-child(4) { transition-delay: .24s; }

/* ---------- cursor glow + sparkles + split headline ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(165,165,255,.13), transparent 60%); pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s; mix-blend-mode: screen; }
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparkle { position: absolute; width: 14px; height: 14px; fill: var(--violet); opacity: 0; animation: drift linear infinite; }
@keyframes drift { 0% { opacity: 0; transform: translateY(40px) rotate(0) scale(.6); } 15% { opacity: .8; } 85% { opacity: .6; } 100% { opacity: 0; transform: translateY(-220px) rotate(180deg) scale(1); } }
.split .line { display: block; overflow: hidden; padding-bottom: .08em; }
.split .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.split .line:nth-child(2) > span { transition-delay: .12s; }
.split.in .line > span { transform: none; }
.hero-copy > *:not(h1) { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.hero-copy.in > *:not(h1) { opacity: 1; transform: none; }
.hero-copy.in > .lead { transition-delay: .35s; } .hero-copy.in > .hero-ctas { transition-delay: .5s; } .hero-copy.in > .fine { transition-delay: .65s; }
.phone { transform-style: preserve-3d; transition: transform .2s ease-out; }
.magnetic { will-change: transform; }

/* ---------- stats ---------- */
.stats { padding: 70px 0; border-bottom: 1px solid rgba(236,236,244,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1; background: linear-gradient(180deg, #fff, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--muted-d); font-size: 15px; }
.stat:nth-child(2) { transition-delay: .1s; } .stat:nth-child(3) { transition-delay: .2s; } .stat:nth-child(4) { transition-delay: .3s; }

/* ---------- extra motion ---------- */
.feature-grid .fcard:nth-child(3n+2) { transition-delay: .08s; } .feature-grid .fcard:nth-child(3n) { transition-delay: .16s; }
.fcard.tilt { transition: transform .15s ease-out, box-shadow .2s; }
.store.alt { background: var(--ink-3); color: var(--text-d); border-color: rgba(236,236,244,.25); box-shadow: 5px 5px 0 rgba(165,165,255,.45); }
.store.alt small { color: var(--muted-d); }
.dl-note { margin-top: 22px; }
.final h2 em { background: linear-gradient(90deg, var(--violet), #ff9ad5, var(--violet)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 5s linear infinite; }
@keyframes sweep { to { background-position: -200% 0; } }
.curtain-logo { display: flex; align-items: center; gap: 16px; opacity: 0; animation: rise 1s ease .5s forwards; }
.curtain-logo img { width: clamp(56px, 9vw, 96px); height: auto; animation: spinIn 1.2s cubic-bezier(.3,1.5,.5,1) .5s both; }
.curtain-logo span { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 11vw, 120px); letter-spacing: -.05em; color: var(--text-d); }
@keyframes spinIn { from { transform: rotate(-90deg) scale(.4); } to { transform: none; } }
details p { animation: none; }
details[open] p { animation: rise .4s ease; }
.orb svg { width: 18px; height: 18px; fill: currentColor; }
.orb.harsh svg { animation: shake .4s ease 2; }
@keyframes shake { 25% { transform: rotate(-20deg); } 75% { transform: rotate(20deg); } }

/* ---------- hero ---------- */
.hero { min-height: 100vh; padding: 150px 0 90px; overflow: hidden; display: flex; align-items: center; }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -250px; top: -250px; background: radial-gradient(circle, rgba(165,165,255,.30), transparent 60%); filter: blur(10px); pointer-events: none; animation: breathe 8s ease-in-out infinite; }
.hero-glow.low { top: auto; bottom: -450px; left: 50%; right: auto; transform: translateX(-50%); }
@keyframes breathe { 50% { opacity: .65; } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7vw, 92px); line-height: .98; letter-spacing: -.04em; margin: 22px 0 24px; }
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 16px; }
.fine { color: var(--muted-d); font-size: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(165,165,255,.35); background: rgba(165,165,255,.08); font-size: 14px; color: var(--text-d); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(75,180,122,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(75,180,122,0); } 100% { box-shadow: 0 0 0 0 rgba(75,180,122,0); } }

/* phone demo */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone { width: 330px; height: 620px; border-radius: 44px; background: #0f1a14; border: 10px solid #1d1d28; box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; overflow: hidden; position: relative;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 18px 18px; }
.phone-top { display: flex; gap: 10px; align-items: center; padding: 16px 16px 12px; background: #16231c; color: #e9edef; }
.phone-top small { display: block; color: #8fa79a; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #3b5d4a; display: grid; place-items: center; font-weight: 600; }
.chat { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: #e9edef; }
.bubble.them { background: #1f2c24; align-self: flex-start; border-top-left-radius: 4px; }
.bubble.me { background: #144d37; align-self: flex-end; border-top-right-radius: 4px; animation: pop .35s ease; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.capsules { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 8px; }
.cap { display: flex; gap: 8px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 16px; border: 0; background: #151520; color: #ececf4; font-size: 12.5px; line-height: 1.3; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s, background .2s; }
.cap.show { opacity: 1; transform: none; }
.cap.picked { background: var(--violet); color: var(--ink); }
.cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cdot.g { background: var(--good); } .cdot.a { background: var(--warn); } .cdot.v { background: var(--violet); }
.composer { display: flex; gap: 8px; align-items: center; padding: 8px 10px 14px; }
.field { flex: 1; min-height: 42px; border-radius: 22px; background: #1f2c24; color: #e9edef; font-size: 14px; padding: 11px 14px; line-height: 1.35; }
.caret { display: inline-block; width: 1.5px; height: 16px; background: var(--violet); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.orb { width: 40px; height: 40px; border-radius: 50%; background: var(--violet); color: var(--ink); font-family: var(--display); font-weight: 700; display: grid; place-items: center; flex: none; transition: background .3s, box-shadow .3s; }
.orb.harsh { background: var(--bad); box-shadow: 0 0 0 6px rgba(255,140,140,.2); }
.orb.calm { background: var(--good); box-shadow: 0 0 0 6px rgba(75,180,122,.2); }
.float-tag { position: absolute; padding: 10px 14px; border-radius: 14px; background: var(--paper-2); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 14px; border: 2px solid var(--line-l); box-shadow: var(--shadow-hard); animation: bob 5s ease-in-out infinite; }
.t1 { left: -10px; top: 18%; } .t2 { right: -6px; bottom: 22%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- marquee ---------- */
.marquee { background: var(--violet); color: var(--ink); border-top: 2px solid var(--line-l); border-bottom: 2px solid var(--line-l); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: slide 30s linear infinite; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.marquee i { font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- story ---------- */
.story { overflow: hidden; }
.thread { position: absolute; left: 50%; top: 0; width: 120px; height: 100%; transform: translateX(-50%); fill: none; stroke: rgba(165,165,255,.5); stroke-width: .6; vector-effect: non-scaling-stroke; }
.thread path { stroke-width: 2px; }
.story h2 { margin-bottom: 90px; }
.chapter { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; width: min(470px, 100%); margin: 0 0 110px; padding: 28px; border-radius: var(--r); background: rgba(18,18,26,.75); border: 1px solid rgba(165,165,255,.16); backdrop-filter: blur(6px); }
.chapter.right { margin-left: auto; }
.chapter:last-child { margin-bottom: 0; }
.ch-num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: .8; color: var(--violet); }
.chapter h3 { font-family: var(--display); font-size: 26px; margin: 4px 0 10px; letter-spacing: -.02em; }
.chapter p { margin: 0; color: var(--muted-d); line-height: 1.6; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard { background: var(--paper-2); border: 2px solid var(--line-l); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-hard); transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--line-l); }
.fcard.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--ink); color: var(--text-d); }
.fcard.wide p, .fcard.wide li { color: var(--muted-d); }
.fnum { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--violet-2); }
.fcard.wide .fnum { color: var(--violet); }
.fcard h3 { font-family: var(--display); font-size: 23px; letter-spacing: -.02em; margin: 10px 0 10px; }
.fcard p { margin: 0; color: var(--muted-l); line-height: 1.6; }
.fcard ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 8px; }
.fcard li::before { content: "✓  "; color: var(--violet); font-weight: 700; }
.caps-mock { display: grid; gap: 10px; }
.m-cap { display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 18px; background: #151520; border: 1px solid #26263a; font-size: 15px; color: #ececf4; }
.m-cap:nth-child(2) { margin-left: 22px; } .m-cap:nth-child(3) { margin-left: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line-l); font-size: 13px; font-weight: 500; }
.chips .on { background: var(--violet); }
.lines-demo { margin-top: 18px !important; padding: 14px; border-radius: 12px; background: var(--paper); color: var(--text-l) !important; font-size: 15px; }
u.red { text-decoration: underline wavy var(--bad); text-underline-offset: 4px; }
u.yellow { text-decoration: underline dotted var(--warn); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- urdu ---------- */
.urdu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.ba { background: var(--ink-2); border: 1px solid rgba(165,165,255,.18); border-radius: 24px; padding: 22px; }
.ba-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.ba-tabs button { padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(236,236,244,.25); background: none; color: var(--text-d); font-size: 14px; }
.ba-tabs button.on { background: var(--violet); color: var(--ink); border-color: var(--violet); }
.ba-card { border-radius: 16px; padding: 16px 18px; min-height: 92px; }
.ba-card small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.ba-card p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; }
.ba-card.before { background: rgba(255,140,140,.08); border: 1px solid rgba(255,140,140,.25); }
.ba-card.before small { color: var(--bad); }
.ba-card.after { background: rgba(75,180,122,.08); border: 1px solid rgba(75,180,122,.3); }
.ba-card.after small { color: var(--good); }
.ba-arrow { text-align: center; color: var(--violet); font-family: var(--display); font-weight: 600; padding: 12px 0; }
.fade { animation: rise .45s ease; }

/* ---------- privacy ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { background: var(--paper-2); border: 2px solid var(--line-l); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-hard); }
.pcard b { font-family: var(--display); font-size: 18px; display: block; margin-bottom: 8px; }
.pcard p { margin: 0; color: var(--muted-l); line-height: 1.55; font-size: 15px; }

/* ---------- pricing ---------- */
.pricing { padding-top: 40px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: var(--paper-2); border: 2px solid var(--line-l); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-hard); }
.plan.featured { background: var(--ink); color: var(--text-d); transform: translateY(-12px); }
.plan.featured .muted, .plan.featured li { color: var(--muted-d); }
.plan h3 { font-family: var(--display); font-size: 22px; margin: 0; }
.price { font-family: var(--serif); font-size: 64px; margin: 8px 0 4px; line-height: 1; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li::before { content: "✓  "; color: var(--violet-2); font-weight: 700; }
.plan.featured li::before { color: var(--violet); }
.badge { position: absolute; top: -14px; right: 22px; background: var(--violet); color: var(--ink); border: 2px solid var(--line-l); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.invite { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 34px; border-radius: 24px; background: var(--violet); border: 2px solid var(--line-l); box-shadow: var(--shadow-hard); }
.invite h3 { font-family: var(--display); font-size: 26px; margin: 0 0 6px; }
.invite p { margin: 0; }
.code-card { background: var(--paper-2); border: 2px dashed var(--line-l); border-radius: 16px; padding: 14px 22px; text-align: center; flex: none; }
.code-card small { display: block; font-size: 12px; color: var(--muted-l); }
.code-card span { font-family: 'Courier New', monospace; font-weight: 700; font-size: 26px; letter-spacing: .06em; }

/* ---------- faq ---------- */
.faq { padding-top: 40px; }
details { background: var(--paper-2); border: 2px solid var(--line-l); border-radius: 16px; margin-bottom: 14px; box-shadow: 3px 3px 0 var(--line-l); }
summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--display); font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted-l); line-height: 1.65; }

/* ---------- final ---------- */
.final { overflow: hidden; padding: 160px 0; }
.final .lead { margin: 0 auto; }
.dl-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.store { display: inline-flex; align-items: center; gap: 14px; padding: 14px 26px; border-radius: 18px; background: var(--paper-2); color: var(--ink); border: 2px solid #000; box-shadow: 5px 5px 0 var(--violet); text-align: left; font-family: var(--display); font-weight: 700; font-size: 20px; transition: transform .15s, box-shadow .15s; }
.store:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--violet); }
.store small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted-l); }
.store-ico { font-size: 26px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid rgba(236,236,244,.1); padding: 40px 0; color: var(--muted-d); }
.foot-grid { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-grid .brand { color: var(--text-d); }
.foot-grid nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.foot-grid nav a:hover { color: var(--violet); }
.foot-grid small { width: 100%; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%); background: var(--paper-2); color: var(--ink); border: 2px solid var(--line-l); box-shadow: var(--shadow-hard); padding: 14px 22px; border-radius: 16px; font-family: var(--display); font-weight: 600; z-index: 90; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), visibility 0s linear .35s; max-width: calc(100% - 32px); text-align: center; visibility: hidden; transform: translate(-50%, calc(100% + 60px)); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

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

/* ---------- legal pages ---------- */
.legal { background: var(--paper); color: var(--text-l); padding: 140px 0 80px; min-height: 100vh; }
.legal h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); letter-spacing: -.03em; margin: 0 0 8px; }
.legal h2 { font-family: var(--display); font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { line-height: 1.7; color: #33334a; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .urdu-grid, .fcard.wide { grid-template-columns: 1fr; }
  .hero-grid { gap: 70px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .nav-links a { padding: 9px 10px; }
}
@media (max-width: 680px) {
  section { padding: 90px 0; }
  .nav-links, .nav .btn-nav { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .cursor-glow { display: none; }
  .feature-grid, .pgrid { grid-template-columns: 1fr; }
  .chapter, .chapter.right { margin-left: 0; margin-bottom: 60px; grid-template-columns: 1fr; gap: 10px; }
  .thread { opacity: .5; }
  .phone { width: 300px; height: 580px; }
  .float-tag { font-size: 12px; }
  .t1 { left: 0; } .t2 { right: 0; }
  .invite { flex-direction: column; align-items: flex-start; }
  .m-cap:nth-child(2), .m-cap:nth-child(3) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Motion pass 2: ideas from the two reference videos.
   Pinned scroll scenes (.pin): the section is tall, its stage sticks to the
   viewport, and main.js feeds each one a 0..1 progress value.
   ===================================================================== */
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pin { position: relative; height: var(--len, 300vh); padding: 0; }
.pin-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* grain + HUD frame */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 95; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* ---------- isometric pipeline ---------- */
.iso-pin { background: radial-gradient(ellipse at 60% 60%, #17172a, var(--ink) 70%); }
.iso-copy { position: absolute; left: 6vw; top: 110px; width: min(420px, 88vw); z-index: 3; }
.iso-copy .big-serif { font-size: clamp(34px, 4.4vw, 58px); }
.iso-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.iso-steps li { color: var(--muted-d); font-size: 16px; opacity: .45; transition: opacity .3s, transform .3s, color .3s; }
.iso-steps li b { font-family: 'JetBrains Mono', monospace; color: var(--violet); margin-right: 10px; font-size: 13px; }
.iso-steps li.on { opacity: 1; color: var(--text-d); transform: translateX(8px); }
.iso-view { position: absolute; inset: 0; }
.iso-plane { position: absolute; left: 50%; top: 62%; width: 1540px; height: 560px; transform-style: preserve-3d;
  transform: translate(-50%, -50%) scale(var(--s, .7)) rotateX(58deg) rotateZ(-34deg); }
.floor-grid { position: absolute; inset: -300px; background-image: linear-gradient(rgba(165,165,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(165,165,255,.07) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(closest-side, #000 50%, transparent); }
.box { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--d); transform-style: preserve-3d; }
.box .f { position: absolute; backface-visibility: visible; }
.box .top { inset: 0; transform: translateZ(var(--h)); border-radius: 10px; }
.box .s { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); }
.box .n { left: 0; bottom: 100%; width: 100%; height: var(--h); transform-origin: bottom; transform: rotateX(-90deg); }
.box .e { left: 100%; top: 0; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(-90deg); }
.box .w { right: 100%; top: 0; width: var(--h); height: 100%; transform-origin: right; transform: rotateY(90deg); }
.pad .top { background: #14141e; border: 1.5px solid #2c2c44; box-shadow: inset 0 0 0 10px #101018; display: grid; place-items: center;
  background-image: linear-gradient(rgba(165,165,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(165,165,255,.12) 1px, transparent 1px); background-size: 40px 40px; }
.pad .s, .pad .e, .pad .n, .pad .w { background: repeating-linear-gradient(0deg, #0d0d14 0 5px, var(--violet) 5px 6px, #0d0d14 6px 9px); }
.pad-label { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: rgba(165,165,255,.5); letter-spacing: .3em; position: absolute; bottom: 14px; left: 16px; }
.belt { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--d); transform: translateZ(14px); border-radius: 6px;
  background: repeating-linear-gradient(90deg, #191926 0 22px, #0c0c13 22px 26px); border-top: 6px solid #3a3a52; border-bottom: 6px solid #3a3a52; }
.belt.run { animation: belt .6s linear infinite; }
@keyframes belt { to { background-position: 26px 0; } }
.engine-glow { position: absolute; left: var(--x); top: var(--y); width: 360px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(165,165,255,.55), transparent); filter: blur(30px); transform: translateZ(2px); opacity: .5; transition: opacity .4s; }
.engine-glow.hot { opacity: 1; }
.engine .s, .engine .e, .engine .n, .engine .w { background: linear-gradient(180deg, rgba(185,185,255,.35), rgba(110,110,232,.22)), repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,.12) 28px 30px); border: 1.5px solid rgba(200,200,255,.55); }
.engine.hot .s, .engine.hot .e { background: linear-gradient(180deg, rgba(200,200,255,.6), rgba(130,130,255,.45)), repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,.25) 28px 30px); }
.engine .top { background: #101018; border: 2px solid #3d3d5c; display: grid; place-items: center; }
.engine-name { position: absolute; right: 18px; bottom: 16px; font-family: var(--display); font-weight: 700; letter-spacing: .25em; color: #fff; font-size: 22px; }
.engine-screen { display: grid; justify-items: center; gap: 12px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 22px; }
.engine-screen img { width: 64px; }
.engine-screen .bar { width: 180px; height: 10px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.5); overflow: hidden; }
.engine-screen .bar i { display: block; height: 100%; width: 0; background: var(--violet); }
.card .top { background: #f3f2fb; color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; }
.card .s, .card .e, .card .n, .card .w { background: #b9b8cc; }
.card.better .top { background: var(--violet); }
.card.better .s, .card.better .e, .card.better .n, .card.better .w { background: var(--violet-2); }
.mover { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.capsule .top { background: #151520; color: #ececf4; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-family: var(--display); font-weight: 600; font-size: 18px; border: 1.5px solid #34344d; }
.capsule .s, .capsule .e, .capsule .n, .capsule .w { background: #0b0b12; }
.capsule { opacity: 0; transition: opacity .4s; }
.capsule.up { opacity: 1; }
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings i { position: absolute; width: 60%; height: 60%; border: 2px solid var(--violet); border-radius: 18px; opacity: 0; }
.rings.on i { animation: ring 1.6s ease-out infinite; }
.rings.on i:nth-child(2) { animation-delay: .5s; } .rings.on i:nth-child(3) { animation-delay: 1s; }
@keyframes ring { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(1.4); } }
.float-screen { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #0c0c13; border: 1.5px solid #34344d; box-shadow: 0 30px 60px rgba(0,0,0,.6); color: #fff;
  transform: perspective(900px) rotateY(-24deg) rotateX(6deg); transition: opacity .4s, transform .5s; }
.picker { left: 30%; top: 30%; }
.fs-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; }
.fs-grid i { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1.5px solid #3b3b55; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 13px; color: #a2a2b6; }
.fs-grid i.on { border-color: var(--violet); color: var(--violet); box-shadow: 0 0 18px rgba(165,165,255,.4); }
.fs-arrow { color: #6f6f85; font-size: 22px; }
.done { right: 16%; top: 20%; font-family: var(--display); font-weight: 700; font-size: 22px; opacity: 0; }
.done b { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--good); color: var(--good); display: grid; place-items: center; font-size: 16px; }
.done.on { opacity: 1; }
.picker.off { opacity: 0; transform: perspective(900px) rotateY(-24deg) rotateX(6deg) translateY(-30px); }

/* ---------- giant sideways text ---------- */
.giant-pin { background: #e8e7f3; color: var(--ink); }
.giant-stage { display: grid; place-items: center; }
.giant-line { position: absolute; top: 96px; left: 6vw; right: 6vw; display: flex; justify-content: center; border-top: 1.5px solid var(--ink); padding-top: 10px; }
.giant { position: absolute; top: 50%; left: 0; white-space: nowrap; font-family: 'Anton', var(--display); font-size: 46vh; line-height: 1; letter-spacing: -.01em; transform: translate(0, -50%); will-change: transform; text-transform: uppercase; }
.giant-phone { position: relative; z-index: 2; width: 250px; height: 500px; border-radius: 40px; padding: 12px; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.15)); border: 1.5px solid rgba(255,255,255,.8); box-shadow: 0 40px 80px rgba(20,20,40,.35), inset 0 0 30px rgba(255,255,255,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); will-change: transform; }
.gp-screen { height: 100%; border-radius: 30px; background: #0f1a14; padding: 18px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.gp-bubble { align-self: flex-end; max-width: 85%; background: #144d37; color: #e9edef; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 10px; }
.gp-cap { display: flex; gap: 8px; align-items: center; background: #151520; color: #ececf4; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; }

/* ---------- exploded view ---------- */
.ex-pin { background: var(--ink); }
.ex-copy { position: absolute; left: 6vw; top: 50%; transform: translateY(-50%); width: min(440px, 88vw); z-index: 2; }
.ex-copy .big-serif { font-size: clamp(36px, 4.6vw, 62px); }
.ex-view { position: absolute; inset: 0; }
.ex-plane { position: absolute; left: 64%; top: 62%; width: 230px; height: 440px; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-34deg); }
.slab { position: absolute; inset: 0; border-radius: 34px; transform-style: preserve-3d; transform: translateZ(calc(var(--z, 0) * 1px)); }
.slab-in { position: absolute; inset: 0; border-radius: 34px; border: 1.5px solid rgba(165,165,255,.45); }
.l1 .slab-in { background: #0f1a14; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 26px 20px; box-shadow: 0 0 0 10px #1d1d28; }
.l1 i { height: 30px; width: 70%; border-radius: 10px; background: #1f2c24; }
.l1 i.me { align-self: flex-end; background: #144d37; width: 60%; }
.l2 .slab-in { background: rgba(165,165,255,.12); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--violet); font-family: 'JetBrains Mono', monospace; background-image: linear-gradient(rgba(165,165,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(165,165,255,.18) 1px, transparent 1px); background-size: 23px 23px; }
.l2 .meter { width: 150px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bad), var(--warn), var(--good)); position: relative; }
.l2 .meter i { position: absolute; top: -5px; left: 80%; width: 4px; height: 22px; background: #fff; border-radius: 2px; animation: needle 3s ease-in-out infinite; }
@keyframes needle { 50% { left: 12%; } }
.l3 .slab-in { background: rgba(21,21,32,.6); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 0 18px 90px; }
.l3 i { height: 34px; border-radius: 17px; background: #151520; border: 1.5px solid #3a3a55; }
.l3 i:nth-child(1) { border-left: 8px solid var(--good); } .l3 i:nth-child(2) { border-left: 8px solid var(--warn); } .l3 i:nth-child(3) { border-left: 8px solid var(--violet); }
.l4 .slab-in { border-color: transparent; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 22px 30px; }
.l4 img { width: 62px; filter: drop-shadow(0 0 18px rgba(165,165,255,.8)); }
.tag { position: absolute; left: 100%; top: 40%; white-space: nowrap; transform-origin: 0 50%; transform: translate3d(26px, 0, 0) rotateZ(34deg) rotateX(-58deg); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .14em; color: var(--text-d); opacity: 0; transition: opacity .4s; display: flex; align-items: center; gap: 10px; }
.tag::before { content: ""; width: 50px; height: 1.5px; background: var(--violet); }
.ex-pin.open .tag { opacity: 1; }

/* ---------- final flip ---------- */
.final.flip { background: var(--violet); color: var(--ink); padding: 0 0 120px; overflow: clip; }
.final.flip .big-serif em { color: var(--ink); background: none; -webkit-text-fill-color: var(--ink); animation: none; }
.final.flip .lead { color: #2b2b45; }
.final.flip .fine { color: #2b2b45; }
.flip-stage { display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.flip-wave { display: flex; align-items: center; gap: 4px; height: 130px; padding: 0 4vw; }
.flip-wave i { flex: 1; height: 100%; background: var(--ink); border-radius: 99px; transform: scaleY(.05); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.flip-giant { position: relative; top: auto; left: auto; font-size: clamp(90px, 15vw, 210px); transform: none; margin: 0; color: var(--ink); align-self: flex-start; }
.spring { display: block; width: 60px; height: 220px; margin: -10px auto 10px; fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.spring circle { fill: var(--ink); stroke: none; }
.final.flip .store { box-shadow: 5px 5px 0 var(--ink); }
.final.flip .store.alt { background: var(--ink); color: var(--text-d); box-shadow: 5px 5px 0 #fff; }

@media (max-width: 860px) {
  .iso-copy { top: 90px; }
  .iso-copy .big-serif { font-size: 32px; }
  .iso-steps li { font-size: 14px; }
  .iso-plane { left: 50%; top: 72%; }
  .picker { left: 8%; top: 52%; } .done { right: 6%; top: 50%; }
  .float-screen { transform: scale(.75); }
  .ex-copy { top: 100px; transform: none; }
  .ex-plane { left: 50%; top: 68%; }
  .tag { display: none; }
  .giant { font-size: 30vh; }
  .giant-phone { width: 200px; height: 400px; }
}

/* ---------- landing: moving 3D floor + messages that rewrite themselves ---------- */
.hero-floor { position: absolute; left: -50%; right: -50%; bottom: 0; height: 80%; pointer-events: none;
  background-image: linear-gradient(rgba(165,165,255,.22) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(165,165,255,.22) 1.5px, transparent 1.5px);
  background-size: 70px 70px; transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 1.1s linear infinite; }
@keyframes floor { to { background-position: 0 70px; } }
.hero-chips { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.hpair { position: absolute; bottom: -120px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transform: scale(var(--scale, 1)); filter: blur(var(--blur, 0)); opacity: 0; animation: chipRise linear infinite; }
.hchip { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 18px 18px 18px 6px; white-space: nowrap; font-size: 15px; font-family: var(--body); }
.hchip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hchip.bad { background: rgba(255,140,140,.10); border: 1px solid rgba(255,140,140,.5); color: #ffc9c9; }
.hchip.bad i { background: var(--bad); }
.hchip.bad span { text-decoration: line-through; text-decoration-color: rgba(255,140,140,.6); }
.hchip.good { margin-left: 28px; background: rgba(75,180,122,.14); border: 1px solid rgba(75,180,122,.6); color: #c9f2da; box-shadow: 0 0 26px rgba(75,180,122,.22); }
.hchip.good i { background: var(--good); }
.hchip.good::before { content: "↳"; color: var(--good); margin-right: -2px; }
@keyframes chipRise {
  0% { transform: translateY(0) scale(var(--scale)); opacity: 0; }
  8% { opacity: .7; }
  85% { opacity: .7; }
  100% { transform: translateY(calc(-100vh - 120px)) scale(var(--scale)); opacity: 0; }
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy::before { content: ""; position: absolute; inset: -40px -60px; background: radial-gradient(closest-side, rgba(11,11,18,.85), transparent); z-index: -1; }
.phone-stage { z-index: 3; position: relative; }
@media (max-width: 980px) { .hchip { font-size: 13px; } }
