:root {
  color-scheme: dark;
  --ink: #f7f4ff;
  --muted: #c5bddb;
  --accent: #d6c4ff;
  --line: #e8ddff28;
  --page: #11102b;
  font-family: Inter, Vazirmatn, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #ead8ff; outline-offset: 4px; }
[dir="rtl"] { font-family: Vazirmatn, Inter, system-ui, sans-serif; }
.shell { width: min(100% - 88px, 1216px); margin-inline: auto; }
.skip { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 5; background: #21174c; padding: 10px 16px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { background: radial-gradient(ellipse 70% 620px at 28% 260px, #342073 0%, transparent 82%); }
[dir="ltr"] .masthead { background: radial-gradient(ellipse 70% 620px at 72% 260px, #342073 0%, transparent 82%); }
.top { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: -.055em; font-family: Inter, sans-serif; }
.wordmark img, .download img { border-radius: 26%; }
.nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 54px); color: var(--muted); font-size: 14px; font-weight: 600; }
.nav a:hover, .footer a:hover { color: white; }
.languages { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; }
.languages button { padding: 4px 10px; min-height: 34px; background: transparent; border: 0; border-radius: 99px; color: var(--muted); font-size: 12px; }
.languages button[aria-pressed="true"] { background: #ffffff22; color: white; }
.preferences { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-family: Inter, sans-serif; font-size: 20px; }
.theme-toggle:hover { background: #a18bc42a; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; min-height: 625px; gap: 16px; }
.hero-copy { position: relative; z-index: 2; padding-block: 52px; }
.kicker { color: var(--accent); font-size: 14px; font-weight: 700; }
[dir="ltr"] .kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
h1 { margin-block: 16px 17px; font-size: clamp(43px, 5.25vw, 76px); line-height: 1.32; font-weight: 800; }
[dir="ltr"] h1 { font-size: clamp(49px, 6.25vw, 91px); line-height: 1.02; letter-spacing: -.073em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-intro { max-width: 455px; color: var(--muted); font-size: clamp(16px, 1.7vw, 20px); line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 54px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 700; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.primary { background: #e0ceff; color: #21143f; }
.primary:hover { background: #f2e7ff; }
.outline { border-color: var(--line); background: #ffffff09; }
.outline:hover { background: #ffffff17; }
.arrow { font-family: Inter, sans-serif; font-size: 17px; }
.hero-art { position: relative; isolation: isolate; height: min(48vw, 590px); min-height: 390px; }
.hero-art::before { content: ""; position: absolute; inset: 14% 5%; background: radial-gradient(ellipse, #a66dff76, transparent 68%); filter: blur(23px); }
.orbit, .feature-ring { position: absolute; border: 1px solid #ceb5ff42; border-radius: 50%; pointer-events: none; }
.orbit-one { inset: 13% 3%; transform: rotate(-24deg) scaleY(.8); }
.orbit-two { inset: 7% 9%; transform: rotate(28deg) scaleY(.9); }
.star { position: absolute; color: #e9d2ff; }
.star-one { inset: 16% auto auto 14%; font-size: 34px; }
.star-two { inset: auto 8% 15% auto; font-size: 28px; }
.phone { overflow: hidden; background: #151027; border: 6px solid #161128; border-radius: 16% / 7.4%; box-shadow: 0 0 0 1px #8e78b6, 0 24px 50px #07041988; }
.phone img { aspect-ratio: 585 / 1266; height: auto; width: 100%; }
.phone-front, .phone-back { position: absolute; width: clamp(148px, 39%, 240px); }
.phone-front { inset: 9% auto auto 20%; transform: rotate(-12deg); }
.phone-back { inset: 16% 13% auto auto; transform: rotate(13deg) scale(.92); opacity: .9; }
.value-strip { border-block: 1px solid var(--line); background: #ffffff07; }
.strip-items { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.strip-items > span { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 80px; padding: 12px; text-align: center; font-size: 14px; font-weight: 600; }
.strip-items > span + span { border-inline-start: 1px solid var(--line); }
.strip-items i { color: var(--accent); font-style: normal; }
.features { padding-block: 88px 64px; scroll-margin-top: 20px; }
h2 { margin-block-start: 6px; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.45; }
[dir="ltr"] h2 { letter-spacing: -.055em; line-height: 1.12; }
.feature-layout { display: grid; grid-template-columns: 1fr 1fr; margin-block-start: 26px; min-height: 440px; border: 1px solid var(--line); border-radius: 25px; overflow: hidden; background: #1b1539; }
.feature-copy { align-self: center; padding: clamp(22px, 5vw, 65px); }
.feature-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.feature-tabs button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 7px 14px; min-height: 44px; font-size: 14px; }
.feature-tabs button[aria-pressed="true"] { background: #e0ceff; color: #21143f; border-color: transparent; font-weight: 700; }
.feature-copy h3 { font-size: clamp(25px, 3vw, 40px); line-height: 1.36; }
.feature-copy p { margin-block-start: 15px; color: var(--muted); line-height: 1.85; max-width: 37ch; }
.feature-art { position: relative; min-height: 440px; overflow: hidden; display: grid; place-items: end center; isolation: isolate; background: radial-gradient(ellipse at 50% 70%, #6844bc, #30205c 65%, #241849); }
.feature-ring { width: 80%; aspect-ratio: 1; inset: 20% 10% auto; box-shadow: 0 0 0 24px #e4cdff12, 0 0 0 52px #e4cdff0b; }
.phone-detail { z-index: 1; position: absolute; width: min(51%, 242px); inset-block-start: 43px; }
.download { padding-block-end: 64px; }
.download-inner { display: flex; align-items: center; gap: 22px; padding: clamp(22px, 4vw, 45px); border: 1px solid var(--line); background: linear-gradient(120deg, #261b4d, #38246b); border-radius: 25px; }
.download-inner h2 { margin: 0; font-size: clamp(27px, 3.4vw, 45px); }
.download-inner p { color: var(--muted); margin-block-start: 5px; }
.download-inner .button { margin-inline-start: auto; flex-shrink: 0; }
.footer { min-height: 90px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; }
.footer > div { display: flex; flex-wrap: wrap; gap: 12px 25px; color: var(--muted); font-size: 14px; }

:root:not([data-theme="dark"]) {
  color-scheme: light;
  --ink: #251942;
  --muted: #5f536f;
  --accent: #643eb0;
  --line: #633eb22b;
  --page: #faf8ff;
}
:root:not([data-theme="dark"]) .masthead {
  background: radial-gradient(ellipse 54% 580px at 27% 260px, #eadfff, transparent 90%);
}
:root[dir="ltr"]:not([data-theme="dark"]) .masthead {
  background: radial-gradient(ellipse 54% 580px at 73% 260px, #eadfff, transparent 90%);
}
:root:not([data-theme="dark"]) :focus-visible { outline-color: #6b45ba; }
:root:not([data-theme="dark"]) .skip { color: white; }
:root:not([data-theme="dark"]) .nav a:hover,
:root:not([data-theme="dark"]) .footer a:hover { color: var(--accent); }
:root:not([data-theme="dark"]) .languages,
:root:not([data-theme="dark"]) .theme-toggle { background: #ffffffa8; }
:root:not([data-theme="dark"]) .languages button[aria-pressed="true"] { background: #ebdfff; color: #4c2b8b; }
:root:not([data-theme="dark"]) .primary,
:root:not([data-theme="dark"]) .feature-tabs button[aria-pressed="true"] { background: #633caf; color: white; }
:root:not([data-theme="dark"]) .primary:hover { background: #50308e; }
:root:not([data-theme="dark"]) .outline { background: #ffffffad; }
:root:not([data-theme="dark"]) .outline:hover { background: #fff; }
:root:not([data-theme="dark"]) .orbit,
:root:not([data-theme="dark"]) .feature-ring { border-color: #7652b74a; }
:root:not([data-theme="dark"]) .star { color: #8d68cb; }
:root:not([data-theme="dark"]) .hero-art::before { background: radial-gradient(ellipse, #b991f58c, transparent 70%); }
:root:not([data-theme="dark"]) .phone { box-shadow: 0 0 0 1px #a991cb, 0 24px 48px #4f287246; }
:root:not([data-theme="dark"]) .value-strip { background: #f0e8fc; }
:root:not([data-theme="dark"]) .feature-layout { background: #ffffff; }
:root:not([data-theme="dark"]) .feature-art { background: radial-gradient(ellipse at 50% 70%, #dec9ff, #eee4ff 65%, #f5efff); }
:root:not([data-theme="dark"]) .feature-ring { box-shadow: 0 0 0 24px #986ed219, 0 0 0 52px #986ed20d; }
:root:not([data-theme="dark"]) .download-inner { background: linear-gradient(120deg, #f5edff, #e8daff); }

@media (max-width: 1000px) {
  .hero { min-height: 535px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 530px); }
  .top { min-height: 72px; }
  .nav { display: none; }
  .masthead, [dir="ltr"] .masthead { background: radial-gradient(ellipse 100% 490px at 50% 510px, #352074, transparent); }
  :root:not([data-theme="dark"]) .masthead,
  :root[dir="ltr"]:not([data-theme="dark"]) .masthead { background: radial-gradient(ellipse 95% 420px at 50% 500px, #eadfff, transparent); }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 49px 12px; }
  h1 { font-size: clamp(36px, 8.4vw, 56px); }
  [dir="ltr"] h1 { font-size: clamp(42px, 10vw, 68px); }
  .hero-art { height: clamp(335px, 99vw, 515px); min-height: 0; }
  .phone-front, .phone-back { width: 41%; }
  .strip-items { grid-template-columns: 1fr; padding-block: 6px; }
  .strip-items > span { min-height: 44px; }
  .strip-items > span + span { border-inline-start: 0; }
  .features { padding-block: 54px 35px; }
  .feature-layout { grid-template-columns: 1fr; margin-block-start: 18px; }
  .feature-copy { padding: 24px; }
  .feature-art { min-height: 325px; }
  .phone-detail { inset-block-start: 32px; }
  .download { padding-block-end: 38px; }
  .download-inner { flex-wrap: wrap; gap: 14px; }
  .download-inner img { width: 46px; height: 46px; }
  .download-inner .button { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Spatial composition and scroll-driven product story. */
:root {
  --hero-progress: 0;
  --scene-turn: -18deg;
  --pointer-x: 0deg;
  --pointer-y: 0deg;
}
body { overflow-x: clip; }
.masthead { overflow: clip; }
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; background: #8250e8; transform: scaleX(0); transform-origin: left; z-index: 20; }
.top { position: relative; z-index: 10; min-height: 100px; }
.shell { width: min(100% - 96px, 1320px); }
.hero { min-height: min(900px, calc(100svh - 100px)); grid-template-columns: 1fr 1fr; gap: 40px; }
.hero-copy { transform: translate3d(0, calc(var(--hero-progress) * -70px), 0); }
.hero h1 { font-weight: 700; letter-spacing: -.035em; font-size: clamp(48px, 5.7vw, 86px); }
[dir="ltr"] .hero h1 { font-weight: 600; font-size: clamp(56px, 6.5vw, 98px); }
.hero h1 em { background: linear-gradient(120deg, #3c176a, #9363e6 65%, #4c29a2); background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="dark"] .hero h1 em { background-image: linear-gradient(120deg, #fff, #b387ff); }
.hero-intro { font-size: 1.125rem; max-width: 35ch; }
.hero-art { min-height: 560px; height: 660px; perspective: 1200px; transform-style: preserve-3d; }
.hero-art::before { inset: 20% -10% 0; filter: blur(45px); }
.phone-front, .phone-back { width: 43%; border-width: 7px; transform-style: preserve-3d; backface-visibility: hidden; }
.phone-front { inset: 9% auto auto 15%; transform: translate3d(0, calc(var(--hero-progress) * -110px), 100px) rotateX(calc(8deg + var(--pointer-y))) rotateY(calc(-20deg + var(--pointer-x) + var(--hero-progress) * 45deg)) rotateZ(-13deg); z-index: 3; }
.phone-back { inset: 19% 1% auto auto; opacity: 1; transform: translate3d(0, calc(var(--hero-progress) * 65px), -35px) rotateX(calc(12deg + var(--pointer-y))) rotateY(calc(25deg + var(--pointer-x) - var(--hero-progress) * 40deg)) rotateZ(14deg); }
.phone::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, #fff5, transparent 35%, transparent 75%, #fff2); }
.phone { position: relative; box-shadow: 2px 1px 0 #a19bac, 5px 3px 0 #5c5668, 9px 6px 0 #292333, 24px 34px 42px #35215e36 !important; }
.phone-front, .phone-back { position: absolute; }
.sculpture { position: absolute; inset: 1% -8% 1%; transform-style: preserve-3d; transform: rotateX(62deg) rotateY(-19deg) rotateZ(calc(-25deg + var(--hero-progress) * 65deg)); }
.sculpture-ring { position: absolute; inset: 4%; border-radius: 50%; border: 17px solid #b29bc8; border-color: #d4bcf6 #8b61c6 #ab83e3 #eee0ff; box-shadow: inset 0 0 10px #fff8, 0 8px 0 #a88acb, 0 13px 0 #b9a2d3, 0 24px 35px #53278030; transform-style: preserve-3d; }
.sculpture-ring:nth-child(2) { inset: 15%; transform: translateZ(47px); border-width: 9px; }
.sculpture-ring:nth-child(3) { inset: 26%; transform: translateZ(94px); border-width: 6px; }
.orbit { opacity: .35; }
.star { z-index: 4; }
.glass-orb { position: absolute; width: 76px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #cfb9f0 32%, #8762b9 66%, #ece0ff); box-shadow: inset -6px -8px 14px #6035854a, 10px 20px 30px #6f46a130; z-index: 4; }
.orb-one { inset: 3% 7% auto auto; transform: translateY(calc(var(--hero-progress) * -110px)); }
.orb-two { width: 36px; inset: auto auto 5% 9%; transform: translateY(calc(var(--hero-progress) * 50px)); }
.value-strip { background: transparent !important; }
.strip-items > span { min-height: 95px; font-size: 1rem; }
.features { position: relative; padding-block: 0; margin-block: 0; }
.feature-sticky { padding-block: 74px; }
.features h2 { max-width: 18ch; font-size: clamp(36px, 4.7vw, 70px); }
.feature-layout { border: 0; background: transparent !important; overflow: visible; min-height: 560px; margin-block-start: 12px; gap: 50px; }
.feature-copy { padding: 0; max-width: 470px; }
.feature-copy h3 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.03em; }
.feature-copy p { font-size: 1.125rem; }
.feature-tabs { gap: 12px; }
.feature-tabs button { background: transparent; font-size: 1rem; padding: 10px 22px; }
.feature-art { background: transparent !important; overflow: visible; min-height: 540px; perspective: 1100px; align-self: center; }
.feature-art::before { content: ""; position: absolute; inset: 12% 4%; border-radius: 50%; background: radial-gradient(ellipse, #c7a1ff88, #c7a1ff00 70%); }
.feature-ring { inset: 10% 1% auto; width: 98%; border: 25px solid #c9adee !important; box-shadow: 0 12px 0 #9d78cd, inset 0 0 20px #fff, 0 30px 50px #53316a22 !important; transform: rotateX(62deg) rotateZ(-25deg); }
.phone-detail { position: relative; inset: auto; width: min(46%, 230px); transform: rotateX(7deg) rotateY(var(--scene-turn)) rotateZ(-5deg); transition: filter .2s; }
.feature-art { display: grid; place-items: center; }
.download { position: relative; padding-block: 70px 100px; perspective: 1400px; }
.download-inner { position: relative; min-height: 300px; overflow: hidden; padding: 55px; border-radius: 34px; background: linear-gradient(130deg, #e7d8ff, #f7f0ff 40%, #e5d0ff) !important; box-shadow: inset 0 1px #fff, 0 30px 80px #7144941a; }
[data-theme="dark"] .download-inner { background: linear-gradient(130deg, #382052, #211632 40%, #4c2c6c) !important; }
.download-inner::after { content: ""; position: absolute; pointer-events: none; width: 380px; aspect-ratio: 1; border: 55px solid #ad84d433; border-radius: 50%; inset: -210px auto auto -70px; transform: rotateX(50deg); }
.download-inner img { width: 80px; height: 80px; transform: rotateY(-22deg) rotateZ(-8deg); box-shadow: 10px 10px 0 #7047aa25; }
.button { border-radius: 100px; padding: 15px 25px; font-size: 1rem; }
.primary { box-shadow: 0 8px 22px #633caf25; }
.nav, .footer > div { font-size: 1rem; }
.languages button { font-size: .875rem; }
.kicker { font-size: .875rem !important; }
.footer { min-height: 110px; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.motion-ready .features { height: 270svh; }
  html.motion-ready .feature-sticky { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 30px; }
  html.motion-ready .feature-layout { min-height: 0; }
  html.motion-ready .feature-art { min-height: min(58svh, 560px); }
  html.motion-ready .phone-detail { width: min(43%, 218px, 23svh); }
}
@media (max-width: 1100px) {
  .shell { width: min(100% - 56px, 1320px); }
  .hero { gap: 15px; }
  .hero-art { min-height: 480px; height: 530px; }
  .feature-layout { gap: 25px; }
  .download-inner { flex-wrap: wrap; padding: 35px; }
  .download-inner .button { margin-inline-start: 0; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 36px, 560px); }
  .top { min-height: 82px; }
  .wordmark { font-size: 21px; gap: 5px; }
  .wordmark img { width: 32px; height: 32px; }
  .preferences { gap: 5px; }
  .languages button { padding-inline: 7px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-block: 50px 0; transform: none; }
  .hero h1 { font-size: clamp(39px, 9vw, 57px); }
  [dir="ltr"] .hero h1 { font-size: clamp(48px, 11vw, 70px); }
  .hero-intro { font-size: 1rem; }
  .actions { gap: 8px; margin-block-start: 24px; }
  .button { font-size: .875rem; padding: 12px 17px; min-height: 48px; }
  .hero-art { height: 112vw; min-height: 0; max-height: 600px; margin-block: 25px 15px; }
  .phone-front { inset-inline-start: 14%; }
  .phone-back { inset-inline-end: 2%; }
  .glass-orb { width: 54px; }
  .orb-two { width: 28px; }
  .sculpture-ring { border-width: 10px; }
  .strip-items > span { min-height: 42px; font-size: .875rem; }
  .strip-items { padding-block: 17px; }
  .feature-sticky { padding-block: 54px 15px; }
  .feature-layout { grid-template-columns: 1fr; gap: 20px; }
  .feature-copy { padding-block: 20px 0; }
  .feature-tabs button { font-size: .875rem; padding: 9px 16px; }
  .feature-copy p { font-size: 1rem; max-width: 40ch; }
  .feature-art { min-height: 470px; }
  .phone-detail { width: min(46%, 210px); }
  .download { padding-block: 45px 55px; }
  .download-inner { padding: 27px; gap: 20px; }
  .download-inner img { width: 54px; height: 54px; }
  .download-inner h2 { font-size: 30px; }
  .download-inner p { font-size: 1rem; line-height: 1.8; }
  .footer { flex-wrap: wrap; padding-block: 22px; }
  .footer > div { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-front { transform: rotateZ(-9deg); }
  .phone-back { transform: rotateZ(10deg); }
  .hero-copy, .orb-one, .orb-two { transform: none; }
  .phone-detail { transform: rotateY(-12deg); }
}

/* Language-specific typography and a solid, consistent theme icon. */
html:lang(ckb), html:lang(ar) { font-family: Vazirmatn, Tahoma, sans-serif; }
html:lang(en) { font-family: Inter, system-ui, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
html[dir="rtl"] .hero h1 { line-height: 1.45; }
.languages button:lang(ar), .languages [data-lang="ckb"] { font-family: Vazirmatn, Tahoma, sans-serif; font-weight: 600; }
.languages button:lang(en) { font-family: Inter, sans-serif; font-weight: 600; }
.theme-toggle { width: 42px; height: 42px; flex-basis: 42px; color: var(--accent); }
.theme-toggle svg { overflow: visible; }
.moon-icon { fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sun-icon { display: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: initial; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art { perspective: 950px; }
  .phone-front {
    transform: translate3d(calc(var(--hero-progress) * -90px), calc(var(--hero-progress) * -150px), calc(100px + var(--hero-progress) * 100px))
      rotateX(calc(8deg + var(--pointer-y) + var(--hero-progress) * 24deg))
      rotateY(calc(-25deg + var(--pointer-x) + var(--hero-progress) * 92deg))
      rotateZ(calc(-13deg + var(--hero-progress) * 20deg));
  }
  .phone-back {
    transform: translate3d(calc(var(--hero-progress) * 75px), calc(var(--hero-progress) * 80px), calc(-35px - var(--hero-progress) * 80px))
      rotateX(calc(12deg + var(--pointer-y) - var(--hero-progress) * 24deg))
      rotateY(calc(30deg + var(--pointer-x) - var(--hero-progress) * 80deg))
      rotateZ(calc(14deg - var(--hero-progress) * 22deg));
  }
  .sculpture { transform: rotateX(calc(62deg - var(--hero-progress) * 38deg)) rotateY(calc(-19deg + var(--hero-progress) * 80deg)) rotateZ(calc(-25deg + var(--hero-progress) * 145deg)); }
  .orb-one { transform: translate3d(calc(var(--hero-progress) * 80px), calc(var(--hero-progress) * -160px), calc(var(--hero-progress) * 120px)); }
  .orb-two { transform: translate3d(calc(var(--hero-progress) * -60px), calc(var(--hero-progress) * 95px), 60px); }
  .feature-art { transform-style: preserve-3d; }
  .phone-detail {
    transform: translate3d(calc(var(--story-wave, 0) * 26px), calc(var(--story-wave, 0) * -18px), calc(55px + var(--story-progress, 0) * 50px))
      rotateX(calc(12deg + var(--story-wave, 0) * 9deg))
      rotateY(var(--scene-turn))
      rotateZ(calc(-7deg + var(--story-progress, 0) * 14deg));
  }
  .feature-ring {
    transform: translateZ(-80px) rotateX(calc(65deg - var(--story-progress, 0) * 30deg))
      rotateY(calc(var(--story-wave, 0) * 20deg))
      rotateZ(calc(-25deg + var(--story-progress, 0) * 150deg));
  }
}
@media (max-width: 760px) {
  html[dir="rtl"] .hero h1 { line-height: 1.4; }
  .theme-toggle { width: 38px; height: 38px; flex-basis: 38px; }
}

/* A Quran leaf rolls away to reveal the product beneath it. */
:root { --intro-progress: 0; --intro-fade: 1; }
.quran-intro { position: relative; z-index: 12; height: 100svh; }
.intro-stage { position: relative; height: 100svh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #e5d7fb, #faf8ff 72%); }
.intro-halo { position: absolute; width: min(80vw, 850px); aspect-ratio: 1; border-radius: 50%; border: 1px solid #a17cc32e; box-shadow: 0 0 0 70px #a17cc308, 0 0 0 140px #a17cc306; transform: rotateX(55deg); }
.paper-scene { position: relative; width: min(420px, 73vw, 57svh); aspect-ratio: .72; perspective: 1300px; filter: drop-shadow(0 24px 35px #482d6926); }
.quran-paper { position: absolute; inset: 0; margin: 0; color: #392b39; background: #fffdf7; padding: 16px; border: 1px solid #d7c5a4; transform-origin: left center; }
.paper-border { height: 100%; border: 3px double #a48c58; outline: 1px solid #b5a072; outline-offset: 5px; padding: 6% 6% 3%; display: flex; flex-direction: column; align-items: center; justify-content: space-around; }
.surah-title { font: 700 clamp(18px, 3svh, 27px)/1.5 Amiri, serif; width: 100%; margin: 0; text-align: center; background: #e8ddc34a; border-block: 1px solid #ad9561; padding: 4px; }
.bismillah { font: 400 clamp(19px, 3.6svh, 30px)/1.7 Amiri, serif; white-space: nowrap; text-align: center; }
.surah-verses { font: 400 clamp(19px, 3.7svh, 31px)/2 Amiri, serif; text-align: center; }
.page-ornament { font-size: 22px; color: #a48c58; line-height: 1; }
.paper-curl { display: none; position: absolute; inset-block: -1px; width: 11%; inset-inline: auto; left: 94.5%; border-radius: 50% / 2%; background: linear-gradient(90deg, #9989a8 0%, #e9e0d0 15%, #fffdf4 35%, #e8ddc8 65%, #ab957a 88%, #73605f 100%); box-shadow: -12px 4px 22px #32203a30, inset 2px 0 3px #fff9; }
.intro-prompt { position: absolute; inset-block-end: 4svh; color: #71538e; font-size: .95rem; display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 8px 18px; }
.scroll-cue { width: 17px; height: 27px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-cue::before { content: ""; position: absolute; width: 3px; height: 6px; top: 4px; left: 5px; background: currentColor; border-radius: 2px; }
.skip { z-index: 30; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .quran-intro { height: 220svh; pointer-events: none; }
  .motion-ready .intro-stage { position: sticky; top: 0; background: transparent; }
  .motion-ready .intro-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #e5d7fb, #faf8ff 72%); opacity: var(--intro-fade); }
  .motion-ready .quran-intro + .masthead { margin-top: -100svh; }
  .motion-ready .paper-scene { transform: translateX(calc(var(--intro-progress) * -18vw)) rotateY(calc(var(--intro-progress) * -24deg)) rotateZ(calc(var(--intro-progress) * -8deg)); opacity: var(--intro-fade); }
  .motion-ready .quran-paper { clip-path: inset(0 calc(var(--intro-progress) * 100%) 0 0); }
  .motion-ready .paper-curl { display: block; left: calc(94.5% - var(--intro-progress) * 100%); transform: scaleX(calc(.35 + var(--intro-progress) * 1.8)) translateZ(25px); opacity: min(1, calc(var(--intro-progress) * 18)); }
  .motion-ready .intro-halo { opacity: var(--intro-fade); transform: rotateX(calc(55deg + var(--intro-progress) * 25deg)) rotateZ(calc(var(--intro-progress) * 50deg)); }
  .motion-ready .intro-prompt { opacity: var(--intro-fade); pointer-events: auto; }
}
@media (max-width: 480px) {
  .quran-paper { padding: 12px; }
  .bismillah { font-size: clamp(19px, 5.5vw, 26px); }
  .surah-verses { font-size: clamp(19px, 5.8vw, 27px); line-height: 1.95; }
}
