/* WS-088: the landing page styles (from the approved prototype). */
/* Alexandria and Readex Pro (SIL Open Font License 1.1; licence texts next to this file), from Google Fonts. */
/* arabic */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/alexandria-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/alexandria-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Alexandria';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/alexandria-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('fonts/readex-pro-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('fonts/readex-pro-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url('fonts/readex-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { --bg: #0E0E12; --coal: #17161A; --ink: #F4EFE6; --muted: #A9A294; --gold: #C9A45C; --gold2: #E8D3A2; --line: #2A2824; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Readex Pro', system-ui, sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; 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"); }
h1, h2, h3, .brand { font-family: 'Alexandria', system-ui, sans-serif; line-height: 1.2; margin: 0; }
a { color: inherit; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(14, 14, 18, .78); backdrop-filter: blur(14px); border-color: rgba(201, 164, 92, .12); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand small { display: block; font: 400 10px 'Readex Pro'; letter-spacing: 3px; color: var(--muted); direction: ltr; text-align: right; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 28px; font: 500 15px 'Readex Pro', sans-serif; text-decoration: none; cursor: pointer; background: linear-gradient(180deg, #D6B46E, #B8924A); color: #1B150A; box-shadow: 0 10px 30px rgba(201, 164, 92, .25), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 164, 92, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn svg { width: 18px; height: 18px; }
.btn.sm { padding: 9px 18px; font-size: 14px; box-shadow: none; }

/* Scroll scenes */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wrap { width: min(1180px, 100%); padding: 0 clamp(16px, 4vw, 48px); margin-inline: auto; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }

/* Card: art + chip + number + sheen */
.card { position: relative; aspect-ratio: 1.586; border-radius: 6.5% / 10.3%; overflow: hidden; background: #111; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 0 0 1px rgba(255,255,255,.07) inset, 0 18px 40px rgba(0,0,0,.5); isolation: isolate; }
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card .chip { position: absolute; top: 36%; right: 9%; width: 12.5%; aspect-ratio: 1.32; border-radius: 18%; z-index: 3; background: linear-gradient(135deg, #F3E3B5, #C9A65E 45%, #8F7036 70%, #E2CB8E); box-shadow: inset 0 0 0 1px rgba(80, 60, 20, .35); }
.card .chip::before, .card .chip::after { content: ""; position: absolute; inset: 22% 0; border-top: 1px solid rgba(80,60,20,.45); border-bottom: 1px solid rgba(80,60,20,.45); }
.card .chip::after { inset: 0 38%; border: 0; border-left: 1px solid rgba(80,60,20,.45); border-right: 1px solid rgba(80,60,20,.45); }
.card .num { position: absolute; bottom: 9%; right: 9%; z-index: 3; direction: ltr; font: 500 clamp(10px, 1.1vw, 14px) 'Readex Pro'; letter-spacing: .2em; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.card .sheen { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 48%, rgba(255,255,255,.05) 55%, transparent 65%); background-size: 260% 100%; background-position: var(--sx, 120%) 0; mix-blend-mode: soft-light; }
.card .layer { position: absolute; inset: 0; }

/* Scene 1: hero */
#hero { height: 330vh; }
#hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold2); font-size: 13px; letter-spacing: .5px; padding: 6px 14px; border: 1px solid rgba(201,164,92,.3); border-radius: 99px; background: rgba(201,164,92,.06); }
.hero h1 { font-weight: 800; font-size: clamp(42px, 6.4vw, 88px); letter-spacing: -.5px; margin: 22px 0 0; }
.hero h1 .g { background: linear-gradient(100deg, #F1DCA4, #C9A45C 45%, #F6E7BE 60%, #B98F45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); max-width: 28em; margin: 22px 0 34px; }
.ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ctas .soft { color: var(--muted); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ctas .soft span { width: 20px; height: 32px; border: 1.5px solid rgba(169,162,148,.6); border-radius: 12px; position: relative; }
.ctas .soft span::after { content: ""; position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.caption { margin-top: 30px; height: 2em; position: relative; font-size: 18px; }
.caption p { position: absolute; inset: 0; margin: 0; }
.caption b { font-weight: 500; color: var(--gold2); }

.phonebox { position: relative; perspective: 1400px; display: flex; justify-content: center; }
.tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.phone { position: relative; width: min(320px, 72vw); aspect-ratio: 320 / 660; border-radius: 54px; padding: 11px; background: linear-gradient(145deg, #4A4640, #1D1C1F 30%, #121114 60%, #3A3732); box-shadow: 0 0 0 1px #57524A, 0 50px 120px rgba(0,0,0,.6), 0 0 120px rgba(201,164,92,.12); transform: rotateY(var(--sy, -14deg)) rotateX(var(--sxr, 6deg)) scale(var(--ss, 1)); transform-style: preserve-3d; }
.phone .btn-side { position: absolute; width: 3px; border-radius: 2px; background: #3A3732; }
.phone .b1 { left: -3px; top: 22%; height: 9%; } .phone .b2 { left: -3px; top: 33%; height: 9%; } .phone .b3 { right: -3px; top: 27%; height: 14%; }
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #1E1C22, #0A0A0C 70%); padding: 16px 16px; }
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.09), transparent 35%); pointer-events: none; }
.island { width: 34%; height: 28px; margin: 0 auto 16px; border-radius: 20px; background: #000; }
.status { position: absolute; top: 20px; inset-inline: 30px; display: flex; justify-content: space-between; font: 500 12px 'Readex Pro'; color: #EEE; direction: ltr; }
.screen h4 { font: 700 24px 'Alexandria'; margin: 6px 4px 16px; }
.stack { margin-top: 18px; }
.stack .card { border-radius: 14px 14px 0 0; aspect-ratio: auto; height: 46px; margin-top: -8px; box-shadow: 0 -6px 14px rgba(0,0,0,.4); }
.stack .card:first-child { margin-top: 0; }
.spark { position: absolute; z-index: 6; width: 46px; height: 46px; top: -14px; left: -12px; opacity: 0; pointer-events: none; }

/* Scene 2: what you need */
#need { height: 260vh; }
#need .wrap { text-align: center; }
.kicker { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.h2 { font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); margin-top: 12px; }
.sub { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.rig { width: min(980px, 100%); margin: 26px auto 0; }
.rig svg { width: 100%; height: auto; overflow: visible; }

/* Steps */
#steps { padding: 150px 0 130px; position: relative; }
#steps .head { text-align: center; margin-bottom: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 34px 30px 32px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.07); overflow: hidden; opacity: 0; transform: translateY(50px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.step.in { opacity: 1; transform: none; }
.step:nth-child(2) { transition-delay: .12s; } .step:nth-child(3) { transition-delay: .24s; }
.step .big { position: absolute; top: -18px; left: 18px; font: 800 120px 'Alexandria'; color: rgba(201,164,92,.07); line-height: 1; }
.step .ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #2A2418, #17140F); border: 1px solid rgba(201,164,92,.25); }
.step .ic svg { width: 30px; height: 30px; }
.step h3 { font-weight: 700; font-size: 22px; margin: 22px 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* Gallery (cover flow) */
#gallery { height: 340vh; }
#gallery .stage { flex-direction: column; }
#gallery .head { text-align: center; padding: 0 16px; }
.track { display: flex; gap: clamp(18px, 3vw, 40px); padding: 70px 50vw 40px; will-change: transform; perspective: 1200px; align-self: stretch; }
.track figure { margin: 0; flex: 0 0 auto; text-align: center; transform-style: preserve-3d; }
.track .card { width: clamp(240px, 30vw, 380px); transition: none; }
.track figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }
.track .yours .art { background: repeating-linear-gradient(45deg, #1C1B1F 0 10px, #19181C 10px 20px); }
.track .yours .plus { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.track .yours .plus div { border: 1.5px dashed rgba(232,211,162,.6); border-radius: 14px; padding: 12px 20px; color: var(--gold2); font: 500 15px 'Readex Pro'; }

/* Download */
#download { position: relative; padding: 150px 0 110px; text-align: center; overflow: hidden; }
#download .wrap { position: relative; }
.choose { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.os { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 220px; padding: 26px 28px; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); color: var(--ink); text-decoration: none; font: 600 19px 'Alexandria', sans-serif; cursor: pointer; transition: border-color .25s, transform .25s; }
.os small { font: 400 13px 'Readex Pro'; color: var(--muted); }
.os.win:hover { border-color: var(--gold); transform: translateY(-3px); }
.os.yours { border-color: rgba(201,164,92,.7); box-shadow: 0 0 0 4px rgba(201,164,92,.08); }
.os.yours::before { content: "جهازك"; position: absolute; top: -12px; right: 50%; transform: translateX(50%); background: var(--gold); color: #1B150A; font: 500 12px 'Readex Pro'; padding: 2px 12px; border-radius: 99px; }
.os.mac { opacity: .5; cursor: default; }
.os svg { width: 34px; height: 34px; }
.note { max-width: 560px; margin: 24px auto 0; padding: 14px 18px; border-radius: 16px; font-size: 15px; display: none; }
.note.show { display: block; }
.note.warn { background: rgba(201,164,92,.08); border: 1px solid rgba(201,164,92,.35); }
.note.ph { background: rgba(244,239,230,.05); border: 1px solid var(--line); }
.req { color: var(--muted); font-size: 14px; margin-top: 26px; }

footer { border-top: 1px solid var(--line); padding: 30px 16px 44px; text-align: center; color: var(--muted); font-size: 13px; }
footer p { margin: 4px 0; }

@media (max-width: 860px) {
  #hero .wrap { grid-template-columns: 1fr; gap: 10px; text-align: center; padding-top: 64px; }
  .hero h1 { margin-top: 12px; } .hero p.lead { margin: 10px auto 16px; font-size: 15px; }
  .ctas { justify-content: center; } .ctas .btn { display: none; }
  .phone { width: min(200px, 50vw); border-radius: 36px; padding: 8px; } .screen { border-radius: 29px; padding: 10px; } .screen h4 { font-size: 16px; margin-bottom: 10px; } .island { height: 18px; margin-bottom: 10px; } .status { top: 12px; inset-inline: 18px; font-size: 9px; }
  .caption { margin-top: 10px; font-size: 15px; height: 3em; }
  #hero { height: 260vh; } #need { height: 200vh; } #gallery { height: 280vh; }
  .steps { grid-template-columns: 1fr; }
  .choose { grid-template-columns: 1fr; width: min(320px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene { height: auto !important; }
  .stage { position: relative; height: auto; min-height: 100vh; padding: 100px 0; }
  .track { overflow-x: auto; padding-inline: 24px; transform: none !important; }
  .step { opacity: 1; transform: none; transition: none; }
  .ctas .soft span::after { animation: none; }
}

/* WS-088: classes that replace the prototype's inline styles. */
.defs { position: absolute; }
.gold { color: #C9A45C; }
.hidden-start { opacity: 0; }
.glow-hero-gold { width: 520px; height: 520px; background: #C9A45C; opacity: .12; left: 6%; top: 18%; }
.glow-hero-green { width: 420px; height: 420px; background: #0F6E56; opacity: .18; left: 22%; top: 48%; }
.glow-need { width: 700px; height: 300px; background: #C9A45C; opacity: .1; left: 50%; margin-left: -350px; bottom: 8%; }
.glow-download { width: 800px; height: 420px; background: #C9A45C; opacity: .13; left: 50%; margin-left: -400px; top: 30%; }
.stack .card.tall { height: 90px; border-radius: 14px; }
.layer.flapwrap { filter: drop-shadow(-5px -5px 7px rgba(0, 0, 0, .45)); z-index: 2; }
#flap { background: linear-gradient(135deg, #FFFFFF 5%, #E6DECD 45%, #BDB197); }

/* WS-088: the privacy and terms page. */
.legal-page { padding-top: 110px; padding-bottom: 70px; max-width: 860px; }
.legal-page h1 { font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.legal-page h2 { font-weight: 600; font-size: 22px; margin: 34px 0 10px; color: var(--gold2); }
.legal-page h3 { font-weight: 600; font-size: 17px; margin: 20px 0 6px; }
.legal-page p, .legal-page li { color: #D9D3C8; }
.legal-page li { margin: 8px 0; }
.legal-page b { color: var(--ink); font-weight: 500; }
.legal-page .small { color: var(--muted); font-size: 14px; }
.legal-page hr { margin: 50px 0; border: 0; border-top: 1px solid var(--line); }
.legal-page .back a { color: var(--gold2); text-decoration: none; }
