/* HomeMate product page.
   Layout concept: a dark liquid-glass stage. Frosted panels float over drifting colour, a 3D phone leads the hero,
   then rides a sticky scroll story through each feature. Colours below come from the app's own tile palette. */

:root {
  /* page */
  --bg: #070b16;
  --bg-2: #0d1426;
  --fg: #f3f6ff;
  --muted: #a3afc9;
  --accent: #4d8dff;
  --accent-2: #8b6bff;
  --accent-ink: #ffffff;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff6b81;
  /* glass */
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-edge-2: rgba(255, 255, 255, 0.04);
  --glass-shadow: rgba(0, 0, 0, 0.45);
  --orb-1: rgba(60, 120, 255, 0.55);
  --orb-2: rgba(150, 90, 255, 0.45);
  --orb-3: rgba(40, 210, 180, 0.35);
  /* phone + app screens */
  --bezel: #1b2236;
  --bezel-edge: #3a4562;
  --app-bg: #0b1020;
  --app-card: #151c30;
  --app-line: rgba(255, 255, 255, 0.07);
  --app-fg: #eef2ff;
  --app-muted: #8f9bb8;
  --app-nav: #10172a;
  /* feature colours (from the app's tiles) */
  --c-milk: #3a8dff;
  --c-staff: #a04bd6;
  --c-egg: #f6a623;
  --c-grocery: #35a867;
  --c-expense: #e8505b;
  --c-shop: #12998a;
  --c-bill: #ee7a1f;
  --c-report: #4b57b8;
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-urdu: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Segoe UI", serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef2fc; --bg-2: #e2e9f8; --fg: #0a1226; --muted: #4b587a;
    --accent: #1565ff; --accent-2: #6d4cf5;
    --glass: rgba(255, 255, 255, 0.55); --glass-strong: rgba(255, 255, 255, 0.78);
    --glass-edge: rgba(255, 255, 255, 0.95); --glass-edge-2: rgba(20, 40, 100, 0.08);
    --glass-shadow: rgba(30, 55, 120, 0.22);
    --orb-1: rgba(70, 130, 255, 0.5); --orb-2: rgba(170, 120, 255, 0.4); --orb-3: rgba(60, 215, 190, 0.38);
    --bezel: #d7dcea; --bezel-edge: #ffffff;
    --app-bg: #f3f5fb; --app-card: #ffffff; --app-line: rgba(10, 20, 50, 0.08);
    --app-fg: #0e1530; --app-muted: #5d6a8c; --app-nav: #ffffff;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef2fc; --bg-2: #e2e9f8; --fg: #0a1226; --muted: #4b587a;
  --accent: #1565ff; --accent-2: #6d4cf5;
  --glass: rgba(255, 255, 255, 0.55); --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.95); --glass-edge-2: rgba(20, 40, 100, 0.08);
  --glass-shadow: rgba(30, 55, 120, 0.22);
  --orb-1: rgba(70, 130, 255, 0.5); --orb-2: rgba(170, 120, 255, 0.4); --orb-3: rgba(60, 215, 190, 0.38);
  --bezel: #d7dcea; --bezel-edge: #ffffff;
  --app-bg: #f3f5fb; --app-card: #ffffff; --app-line: rgba(10, 20, 50, 0.08);
  --app-fg: #0e1530; --app-muted: #5d6a8c; --app-nav: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang="ur"] body { font-family: var(--f-urdu); line-height: 2; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { font-family: var(--f-urdu); line-height: 1.7; letter-spacing: 0; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* language switch: one copy of the text per language */
html[lang="en"] .ur, html[lang="ur"] .en { display: none !important; }

/* ambient colour behind the glass */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb.o1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -12vmax; background: radial-gradient(circle, var(--orb-1), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.orb.o2 { width: 46vmax; height: 46vmax; right: -16vmax; top: 18vmax; background: radial-gradient(circle, var(--orb-2), transparent 65%); animation: drift2 31s ease-in-out infinite alternate; }
.orb.o3 { width: 40vmax; height: 40vmax; left: 20vmax; bottom: -16vmax; background: radial-gradient(circle, var(--orb-3), transparent 65%); animation: drift3 29s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, -5vmax, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(8vmax, -9vmax, 0) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.wrap { position: relative; z-index: 1; max-width: 1180px; margin-inline: auto; overflow-x: clip; }
section { position: relative; z-index: 1; }

/* ---------- glass material ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, var(--glass-strong), var(--glass));
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid var(--glass-edge-2);
  border-radius: 28px;
  box-shadow: 0 24px 60px -24px var(--glass-shadow), inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 var(--glass-edge-2);
}
.glass::before { /* specular rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, var(--glass-edge), transparent 38%, transparent 62%, var(--glass-edge-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass.pill { border-radius: 999px; }
.tilt { transform-style: preserve-3d; transition: transform 0.25s ease; will-change: transform; }
.tilt::after { /* moving glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.22), transparent 60%);
}
.tilt:hover::after { opacity: 1; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand .logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #5b9bff, #1b55e6); box-shadow: 0 6px 16px -6px #1b55e6; }
.brand .logo svg { width: 20px; height: 20px; fill: #fff; }
.nav .links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav .links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav .links a:hover { color: var(--fg); background: var(--glass); }
.nav .tools { display: flex; gap: 8px; align-items: center; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-edge-2); background: var(--glass); color: var(--fg); cursor: pointer; display: grid; place-items: center; font: 700 13px var(--f-body); }
.ibtn:hover { background: var(--glass-strong); }
.ibtn svg { width: 18px; height: 18px; fill: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 700 16px var(--f-body); border-radius: 999px; padding: 14px 24px; transition: transform 0.2s, box-shadow 0.2s; }
.btn.primary { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 34px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.ghost { color: var(--fg); background: var(--glass); border: 1px solid var(--glass-edge-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn.ghost:hover { background: var(--glass-strong); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.sm { padding: 10px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 7vw, 84px) clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; font: 700 12.5px var(--f-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
html[lang="ur"] .hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.95; }
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 700; margin: 20px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #7db2ff, #b49bff 55%, #7ff0d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.micro > span::before { content: "✓"; color: var(--ok); margin-inline-end: 7px; font-weight: 800; }

/* the 3D stage */
.stage3d { position: relative; height: clamp(600px, 62vw, 780px); perspective: 1600px; display: grid; place-items: center; }
.rig { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.12s linear; display: grid; place-items: center; }
.floatloop { transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(-8px) rotateZ(-0.6deg); } 50% { transform: translateY(10px) rotateZ(0.6deg); } }
.halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 90deg, #3a8dff, #a04bd6, #12998a, #3a8dff); filter: blur(60px); opacity: 0.45; animation: spin 24s linear infinite; transform: translateZ(-120px); }
@keyframes spin { to { transform: translateZ(-120px) rotate(360deg); } }

/* phone: a flagship Android in black titanium. Flat brushed frame, chamfered rim light, real 3D thickness,
   sapphire-glass back with a three-lens camera. Tap it in the hero and it turns over. */
.phone { direction: ltr; width: var(--pw, 290px); aspect-ratio: 9 / 19.5; position: relative; border-radius: 36px; padding: 7px; transform-style: preserve-3d; backface-visibility: hidden; cursor: default;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    linear-gradient(145deg, #8a93a7 0%, #272c39 16%, #b4bccd 31%, #1a1e29 47%, #98a1b4 63%, #232834 80%, #7f889c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 1px #090b10,
    0 60px 90px -34px rgba(0, 0, 0, 0.75), 0 26px 44px -22px rgba(0, 0, 0, 0.55); }
.phone .layer { position: absolute; inset: 0; border-radius: 36px; background: linear-gradient(145deg, #4a5264, #151922 55%, #3a4152); box-shadow: 0 0 0 1px #0a0c11; backface-visibility: hidden; pointer-events: none; }
.phone .rear { position: absolute; inset: 0; border-radius: 36px; transform: rotateY(180deg) translateZ(17px); backface-visibility: hidden; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, 0.18), transparent 55%), linear-gradient(150deg, #2c3243 0%, #0d1017 55%, #1c2130 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 0 0 7px #151922; }
.phone .rear::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.12) 46%, transparent 54%); }
.phone .rear .lens { position: absolute; left: 13%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #5b6dff 0%, #1a1f55 38%, #05060d 70%); box-shadow: 0 0 0 3px #aab3c6, 0 0 0 5px #0a0c12, inset 0 0 0 4px #000, 0 6px 14px rgba(0, 0, 0, 0.6); }
.phone .rear .lens::after { content: ""; position: absolute; left: 22%; top: 18%; width: 22%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, 0.75); filter: blur(1px); }
.phone .rear .lens.l1 { top: 4.5%; } .phone .rear .lens.l2 { top: 15.5%; } .phone .rear .lens.l3 { top: 26.5%; }
.phone .rear .flash { position: absolute; left: 46%; top: 6%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff3c8, #b89b4a 60%, #3a2f12); box-shadow: 0 0 0 2px #2b3040; }
.phone .rear .mark { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font: 700 11px var(--f-display); letter-spacing: 0.42em; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }
.phone .ant { position: absolute; width: 4px; height: 100%; top: 0; pointer-events: none; }
.phone::after { /* moving glass reflection across the display */ content: ""; position: absolute; inset: 7px; border-radius: 29px; pointer-events: none; z-index: 5;
  background: linear-gradient(112deg, transparent 22%, rgba(255, 255, 255, 0.2) 38%, rgba(255, 255, 255, 0.04) 48%, transparent 60%); background-size: 260% 100%; background-position: calc(var(--sx, 50) * 1%) 0; }
.phone .island { position: absolute; top: 17px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #3a4a86, #05060c 58%); box-shadow: 0 0 0 3px #000, 0 0 0 4px rgba(255, 255, 255, 0.08); z-index: 6; }
.phone .side { position: absolute; left: 100%; width: 4px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #5d667a, #d3dae7 45%, #6b748a); box-shadow: 1px 0 0 #090b10; transform: translateZ(-8px); }
.phone .side.pwr { top: 24%; height: 42px; } .phone .side.vol { top: 34%; height: 78px; }
.display { position: relative; width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: var(--app-bg); backface-visibility: hidden; box-shadow: 0 0 0 2.5px #04050a; }
.phone.sm { --pw: 250px; }
.phone.spin { animation: turnover 2.6s cubic-bezier(0.45, 0.05, 0.25, 1) both; }
@keyframes turnover { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
#heroPhone { cursor: pointer; }
.stage3d::after { /* floor shadow */ content: ""; position: absolute; left: 50%; bottom: 4%; width: 44%; height: 28px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); filter: blur(8px); pointer-events: none; }
.tap-hint { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); padding: 7px 14px; font: 700 12.5px var(--f-body); color: var(--muted); white-space: nowrap; z-index: 4; }

/* ---------- the duck ---------- */
.assembly { position: relative; width: var(--pw, 290px); transform-style: preserve-3d; animation: rise 1.2s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 40px, -120px) rotateX(10deg); } to { opacity: 1; transform: none; } }
@keyframes carryIn { from { opacity: 0; transform: translate3d(34vw, 6vh, 0) rotateZ(12deg) scale(0.86); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.duck-layer { position: absolute; width: calc(var(--pw) * 1.5172); left: calc(var(--pw) * -0.2586); top: calc(var(--pw) * -0.4483); pointer-events: none; transform-style: preserve-3d; }
.duck-layer svg { display: block; width: 100%; height: auto; overflow: visible; }
.duck-layer.back { transform: translateZ(-28px); }
.duck-layer.front { transform: translateZ(22px); }
.duck-layer .hit { pointer-events: auto; cursor: pointer; }
.duck-layer .head { transform-origin: 220px 150px; animation: nod 5s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg) translateY(-2px); } }
.duck-layer .lid { transform-box: fill-box; transform-origin: 50% 0; animation: blink 4.6s infinite; }
.duck-layer .lid.b { animation-delay: 0.02s; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
.duck-layer .wing { transition: transform 0.25s; }
.duck-layer .wing.l { transform-origin: 98px 395px; } .duck-layer .wing.r { transform-origin: 98px 395px; }
.duck-layer .wing:hover { animation: flap 0.45s ease-in-out 3; }
@keyframes flap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-16deg); } }
.duck-layer .beak-lo { transform-origin: 220px 106px; transition: transform 0.12s; }
.duck.talk .beak-lo { animation: yap 0.22s ease-in-out infinite alternate; }
@keyframes yap { to { transform: rotate(14deg) translateY(2px); } }
.duck.hop .head, .duck.hop .wing { animation-duration: 0.5s; }
.duck.hop .duck-layer.back { animation: hop 0.6s cubic-bezier(0.3, 0.8, 0.4, 1); }
@keyframes hop { 0% { transform: translateZ(-28px) translateY(0); } 35% { transform: translateZ(-28px) translateY(-26px); } 100% { transform: translateZ(-28px) translateY(0); } }
.duck-say { position: absolute; left: calc(var(--pw) * -0.62); top: calc(var(--pw) * -0.66); width: max-content; max-width: 230px; padding: 10px 16px; border-radius: 18px; font: 700 14.5px/1.35 var(--f-body); color: var(--fg);
  transform: translateZ(70px) scale(0.85); transform-origin: 85% 100%; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1); z-index: 8; }
html[lang="ur"] .duck-say { font-family: var(--f-urdu); line-height: 1.9; }
.duck-say.show { opacity: 1; transform: translateZ(70px) scale(1); }
.duck-say::after { content: ""; position: absolute; right: 18px; bottom: -8px; width: 16px; height: 16px; background: inherit; border-radius: 4px; transform: rotate(45deg); border-right: 1px solid var(--glass-edge-2); border-bottom: 1px solid var(--glass-edge-2); }
.sticky .assembly { --pw: min(280px, 31vh); }
.sticky .duck-say { left: auto; right: calc(var(--pw) * 0.1); top: calc(var(--pw) * -0.72); }
.hero .assembly { --pw: clamp(200px, 19.5vw, 268px); }

/* floating glass chips around the hero phone */
.chip3d { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; font: 700 14px var(--f-body); white-space: nowrap; z-index: 3; animation: bob 6s ease-in-out infinite; }
.chip3d b { display: block; font-size: 15px; font-family: var(--f-display); letter-spacing: -0.01em; }
.chip3d small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.chip3d .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.chip3d .ic svg { width: 20px; height: 20px; fill: #fff; }
.chip3d.c1 { top: 12%; left: -2%; transform: translateZ(110px); animation-delay: -1s; }
.chip3d.c2 { top: 30%; right: -4%; transform: translateZ(150px); animation-delay: -3s; }
.chip3d.c3 { bottom: 24%; left: -6%; transform: translateZ(130px); animation-delay: -2s; }
.chip3d.c4 { bottom: 8%; right: 2%; transform: translateZ(100px); animation-delay: -4s; }
@keyframes bob { 0%, 100% { margin-top: -6px; } 50% { margin-top: 8px; } }

/* ---------- trust strip ---------- */
.strip { margin-block: 8px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 8px; }
.strip div { padding: 16px 18px; text-align: center; font-weight: 700; font-size: 15px; }
.strip div + div { border-inline-start: 1px solid var(--glass-edge-2); }
.strip small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- headings ---------- */
.sec-head { text-align: center; max-width: 780px; margin: 0 auto clamp(30px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; margin: 14px 0 14px; }
.sec-head p { color: var(--muted); font-size: clamp(16px, 1.8vw, 19px); }
.band { padding-block: clamp(56px, 8vw, 110px); }

/* ---------- sticky showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { padding-block: 10vh 22vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.38; transition: opacity 0.4s; padding-inline-end: 12px; }
.step.on { opacity: 1; }
.step .tag { display: inline-flex; align-items: center; gap: 9px; font: 700 13px var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html[lang="ur"] .step .tag { letter-spacing: 0; text-transform: none; font-size: 15px; }
.step .tag i { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--accent)); box-shadow: 0 0 16px var(--c, var(--accent)); }
.step h3 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
.step p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.step ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; max-width: 46ch; }
.step li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 16px; }
.step li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 7px; background: color-mix(in srgb, var(--c, var(--accent)) 26%, transparent); box-shadow: inset 0 0 0 1.5px var(--c, var(--accent)); }
.step-phone { display: none; justify-content: center; padding-block: 22px 6px; }
.sticky { position: sticky; top: 12vh; height: 76vh; min-height: 560px; perspective: 1700px; display: grid; place-items: center; }
.sticky .rig2 { transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sticky .glowdisc { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--glow, var(--accent)), transparent 66%); opacity: 0.55; filter: blur(30px); transition: background 0.6s; transform: translateZ(-80px); }
.screens { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.5s, transform 0.6s; }
.scr.on { opacity: 1; transform: none; }

/* ---------- app screen kit ---------- */
.scr { padding: 46px 12px 62px; color: var(--app-fg); font: 600 11px/1.35 var(--f-body); display: flex; flex-direction: column; gap: 8px; background: var(--app-bg); }
html[lang="ur"] .scr { font-family: var(--f-body); line-height: 1.35; }
.scr.rtl { direction: rtl; font-family: var(--f-urdu); line-height: 1.9; }
.a-title { font: 700 16px var(--f-display); letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; }
.scr.rtl .a-title { font-family: var(--f-urdu); }
.a-card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 15px; padding: 10px; }
.a-muted { color: var(--app-muted); font-weight: 600; }
.a-big { font: 800 20px var(--f-display); letter-spacing: -0.02em; }
.a-row { display: flex; align-items: center; gap: 8px; }
.a-row.sb { justify-content: space-between; }
.a-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.a-btn { border-radius: 11px; padding: 9px 6px; text-align: center; font: 800 10.5px var(--f-body); color: #fff; background: var(--accent); }
.scr.rtl .a-btn { font-family: var(--f-urdu); }
.a-btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.a-btn.ok { background: #2d9d5c; } .a-btn.bad { background: transparent; color: #ec5b66; box-shadow: inset 0 0 0 1.5px #ec5b66; }
.a-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 800 9.5px var(--f-body); }
.a-pill.ok { background: rgba(45, 157, 92, 0.2); color: #3ddc97; } .a-pill.warn { background: rgba(255, 181, 71, 0.2); color: #ffb547; } .a-pill.bad { background: rgba(255, 107, 129, 0.2); color: #ff6b81; }
.a-tile { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 15px; padding: 10px 4px 8px; text-align: center; font: 700 10.5px var(--f-body); }
.scr.rtl .a-tile { font-family: var(--f-urdu); }
.a-ic { width: 34px; height: 34px; margin: 0 auto 5px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 6px 14px -6px var(--c); }
.a-ic svg { width: 18px; height: 18px; fill: #fff; }
.a-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: var(--app-nav); border-top: 1px solid var(--app-line); display: flex; justify-content: space-around; align-items: center; font: 700 8.5px var(--f-body); color: var(--app-muted); }
.a-nav div { display: grid; justify-items: center; gap: 2px; }
.a-nav svg { width: 17px; height: 17px; fill: currentColor; }
.a-nav .cur { color: var(--accent); }
.a-fab { position: absolute; right: 12px; bottom: 62px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--accent); color: #fff; font: 800 11px var(--f-body); box-shadow: 0 10px 20px -8px var(--accent); }
.scr.rtl .a-fab { right: auto; left: 12px; font-family: var(--f-urdu); }
.a-fab svg { width: 14px; height: 14px; fill: #fff; }
.a-bar { height: 7px; border-radius: 99px; background: var(--app-line); overflow: hidden; }
.a-bar i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--accent)); }
.a-chipset { display: flex; flex-wrap: wrap; gap: 5px; }
.a-chip { padding: 5px 9px; border-radius: 999px; font: 700 9.5px var(--f-body); background: var(--app-line); color: var(--app-fg); }
.a-chip.sel { background: var(--accent); color: #fff; }
.a-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--app-line); font: 800 14px var(--f-body); }
.a-step.f { background: var(--accent); color: #fff; }
.a-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 12px var(--f-display); background: linear-gradient(135deg, #a04bd6, #6a3bd0); }
.a-listrow { display: flex; align-items: center; gap: 8px; }
.a-listrow .grow { flex: 1; min-width: 0; }
.a-listrow b { font: 700 12px var(--f-body); display: block; }
.scr.rtl .a-listrow b { font-family: var(--f-urdu); }
.a-egg { font: 800 46px/1 var(--f-display); letter-spacing: -0.03em; }
.a-chart { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.a-chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.a-mic { width: 62px; height: 62px; border-radius: 50%; margin: 2px auto; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent); }
.a-mic svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- voice ---------- */
.voice { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 52px); }
.voice h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin: 14px 0; }
.voice p.lead { color: var(--muted); font-size: 18px; max-width: 46ch; }
.say-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.say { padding: 9px 15px; border-radius: 999px; font: 700 14px var(--f-body); background: var(--glass); border: 1px solid var(--glass-edge-2); color: var(--fg); }
.demo { display: grid; gap: 14px; justify-items: center; perspective: 1200px; }
.wave { display: flex; align-items: center; gap: 5px; height: 64px; }
.wave i { width: 6px; border-radius: 6px; background: linear-gradient(var(--accent), var(--accent-2)); height: 12px; animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -0.3s; } .wave i:nth-child(3n) { animation-delay: -0.6s; } .wave i:nth-child(5n) { animation-delay: -0.8s; }
@keyframes eq { 0%, 100% { height: 10px; } 50% { height: 56px; } }
.wave.idle i { animation: none; height: 10px; opacity: 0.5; }
.bubble { width: min(100%, 440px); padding: 16px 20px; font: 700 20px var(--f-display); text-align: center; min-height: 62px; }
.bubble .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-inline-start: 3px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.confirm { width: min(100%, 440px); padding: 18px 20px; display: grid; gap: 14px; transition: opacity 0.4s, transform 0.5s; }
.confirm.hide { opacity: 0; transform: translateY(14px) rotateX(18deg); }
.confirm .q { font: 700 17px var(--f-body); }
.confirm .yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm .yn span { padding: 11px; border-radius: 14px; text-align: center; font-weight: 800; }
.confirm .yn .y { background: var(--accent); color: #fff; } .confirm .yn .n { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.confirm.done .y { background: var(--ok); color: #04210f; }

/* ---------- easy-to-use playground ---------- */
.easy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 26px; display: grid; gap: 14px; align-content: start; }
.card h3 { font-size: 22px; font-weight: 700; }
.card p { color: var(--muted); font-size: 16px; }
.card .play { margin-top: 4px; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--glass-edge-2); display: grid; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 50px; height: 50px; border-radius: 16px; border: 0; cursor: pointer; font: 800 24px var(--f-body); color: var(--fg); background: var(--glass-strong); }
.stepper button:active { transform: scale(0.94); }
.stepper output { flex: 1; text-align: center; font: 800 30px var(--f-display); letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { cursor: pointer; border: 1px solid var(--glass-edge-2); background: var(--glass); color: var(--fg); border-radius: 999px; padding: 9px 14px; font: 700 14px var(--f-body); }
.chips button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }
.amount { font: 800 26px var(--f-display); letter-spacing: -0.02em; }
.amount small { font: 600 13px var(--f-body); color: var(--muted); display: block; letter-spacing: 0; }

/* ---------- language ---------- */
.langs { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 5vw, 70px); align-items: center; padding: clamp(24px, 4vw, 54px); }
.langs h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin: 14px 0; }
.langs p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.pair { display: flex; gap: 22px; perspective: 1500px; padding: 10px; }
.pair .phone { --pw: 220px; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pair .phone:first-child { transform: rotateY(18deg) rotateZ(-2deg); }
.pair .phone:last-child { transform: rotateY(-18deg) rotateZ(2deg) translateY(26px); }
.pair:hover .phone { transform: none; }

/* ---------- safety cube ---------- */
.safe { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.cubebox { height: 440px; perspective: 1100px; display: grid; place-items: center; }
.cube { --s: 230px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: cube 22s linear infinite; }
.cubebox:hover .cube { animation-play-state: paused; }
@keyframes cube { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; border-radius: 26px; padding: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-2) 80%, var(--c)), var(--bg-2)); border: 1px solid var(--glass-edge); box-shadow: inset 0 0 40px color-mix(in srgb, var(--c) 28%, transparent), 0 0 0 1px var(--glass-edge-2); font: 700 15px/1.25 var(--f-display); }
.face svg { width: 38px; height: 38px; fill: var(--c); }
.face small { font: 600 12px var(--f-body); color: var(--muted); }
.f1 { transform: rotateY(0deg) translateZ(115px); } .f2 { transform: rotateY(90deg) translateZ(115px); } .f3 { transform: rotateY(180deg) translateZ(115px); }
.f4 { transform: rotateY(-90deg) translateZ(115px); } .f5 { transform: rotateX(90deg) translateZ(115px); } .f6 { transform: rotateX(-90deg) translateZ(115px); }
.points { display: grid; gap: 14px; }
.point { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; }
.point .pi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); }
.point .pi svg { width: 22px; height: 22px; fill: var(--c); }
.point b { font: 700 18px var(--f-display); display: block; }
.point span { color: var(--muted); font-size: 15.5px; }

/* ---------- pricing ---------- */
.plans { max-width: 880px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 28px; display: grid; gap: 16px; align-content: start; }
.plan h3 { font-size: 24px; }
.plan .price { font: 700 17px var(--f-body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-weight: 600; font-size: 15.5px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan.pro { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 34%, var(--glass-strong)), var(--glass)); transform: translateY(-14px); }
.plan .badge { justify-self: start; padding: 5px 12px; border-radius: 999px; font: 800 12px var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
html[lang="ur"] .plan .badge { letter-spacing: 0; text-transform: none; }
.plan.soon { opacity: 0.8; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { padding: 4px 22px; border-radius: 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 700 18px var(--f-display); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px var(--f-body); color: var(--accent); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- closing + footer ---------- */
.final { text-align: center; padding: clamp(36px, 6vw, 80px) clamp(20px, 4vw, 48px); display: grid; gap: 20px; justify-items: center; overflow: hidden; }
.final h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 700; max-width: 16ch; }
.final p { color: var(--muted); font-size: 19px; max-width: 48ch; }
footer { position: relative; z-index: 1; padding-block: 48px 40px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; font-weight: 600; } footer a:hover { color: var(--fg); }

/* ---------- legal pages ---------- */
.doc { max-width: 820px; margin: clamp(28px, 6vw, 70px) auto; padding: clamp(24px, 4vw, 52px); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-inline-start: 20px; display: grid; gap: 6px; }
.doc .when { color: var(--muted); font-weight: 600; }
.doc a { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; } .cta-row, .micro { justify-content: center; }
  .stage3d { height: 640px; }
  .showcase { grid-template-columns: 1fr; }
  .sticky { display: none; }
  .steps { padding-block: 0; }
  .step { min-height: 0; opacity: 1; padding-block: 34px; align-items: center; text-align: center; }
  .step ul { text-align: start; }
  .step-phone { display: flex; }
  .voice, .langs, .safe { grid-template-columns: 1fr; }
  .langs { justify-items: center; text-align: center; } .langs p { margin-inline: auto; }
  .easy, .plans { grid-template-columns: 1fr; }
  .plan.pro { transform: none; }
  .strip { grid-template-columns: 1fr 1fr; } .strip div:nth-child(3) { border-inline-start: 0; }
  .nav .links { display: none; }
  .nav { margin-inline: 0; } .nav .tools { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero .assembly { --pw: 190px; }
  .chip3d { transform: scale(0.84) translateZ(90px); }
  .chip3d.c1 { left: 1%; } .chip3d.c3 { left: 0; } .chip3d.c2 { right: 0; }
  .pair { flex-direction: column; align-items: center; } .pair .phone:last-child { transform: rotateY(-12deg); }
  .btn { padding: 13px 20px; }
  .nav .btn.sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rig { transform: none !important; }
}
