/* GEERA landing — the app's own palette (app/lib/core/theme), Vazirmatn served from here. */

@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Vazirmatn; src: url(fonts/Vazirmatn-Bold.ttf) format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #0a0710;
  --bg-deep: #07050b;
  --surface: #130e1c;
  --surface-high: #1b1428;
  --text-hi: #f7f2fb;
  --text-lo: #a99cb8;
  --text-faint: #6f6380;
  --blush: #ff5cb0;
  --magenta: #ff2c98;
  --orchid: #d622d6;
  --violet: #8034f8;
  --cyan: #5bd8ee;
  --success: #3ddc97;
  --glass: rgba(255, 255, 255, .05);
  --stroke: rgba(255, 255, 255, .09);
  --highlight: rgba(255, 255, 255, .14);
  --brand: linear-gradient(135deg, var(--blush) 0%, var(--magenta) 35%, var(--orchid) 62%, var(--violet) 100%);
  --radius: 26px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: min(1180px, 100% - 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-hi);
  font: 400 16px/1.9 Vazirmatn, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 10px; }

/* ── the opening shot ─────────────────────────────────────────────────────── */
.letterbox { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.letterbox i { position: absolute; inset-inline: 0; height: 50vh; background: #000; transition: height 1.5s var(--ease) .25s; }
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; }
body.ready .letterbox i { height: 0; }
/* If the script is slow (a bad connection), the curtain opens by itself. */
.letterbox i { animation: curtain 1.5s var(--ease) 3s forwards; }
@keyframes curtain { to { height: 0; } }
.no-js .letterbox { display: none; }
.no-js .mark { opacity: 1; transform: none; }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; 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");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ── navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; inset-inline: 0; z-index: 50; width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 18px;
  border: 1px solid var(--stroke); border-radius: 22px;
  background: rgba(13, 9, 20, .55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .5s var(--ease), background .3s;
}
.nav.hide { transform: translateY(-130%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; }
.brand span { font-size: 1.05rem; }
.nav nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav nav a { padding: 6px 12px; border-radius: 12px; color: var(--text-lo); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text-hi); background: var(--glass); }

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  padding: 14px 26px; border-radius: 18px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, opacity .2s;
}
.btn svg { font-size: 1.15em; }
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff; background: var(--brand); background-size: 160% 160%;
  box-shadow: 0 10px 40px -10px rgba(255, 44, 152, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: brandShift 6s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255, 44, 152, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-glass { color: var(--text-hi); background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .09); border-color: var(--highlight); }
.btn-small { padding: 8px 16px; border-radius: 14px; font-size: .9rem; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@keyframes brandShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  grid-template-columns: 1.05fr .95fr; gap: 40px; width: var(--wrap); margin-inline: auto; padding: 120px 0 80px;
}
.particles { position: absolute; top: 0; bottom: 0; left: calc((100% - 100vw) / 2); width: 100vw; height: 100%; z-index: -1; }
.aurora { position: absolute; top: -10%; bottom: 0; left: calc((100% - 100vw) / 2); width: 100vw; z-index: -2; overflow: hidden; filter: blur(70px); opacity: .85; }
.aurora b { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora b:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -8vw; background: radial-gradient(circle, rgba(128, 52, 248, .55), transparent 65%); }
.aurora b:nth-child(2) { width: 45vw; height: 45vw; right: -6vw; top: 6vw; background: radial-gradient(circle, rgba(255, 44, 152, .45), transparent 65%); animation-duration: 28s; }
.aurora b:nth-child(3) { width: 40vw; height: 40vw; left: 28vw; bottom: -18vw; background: radial-gradient(circle, rgba(214, 34, 214, .35), transparent 65%); animation-duration: 34s; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }

.hero-copy { position: relative; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  color: var(--text-lo); background: var(--glass); border: 1px solid var(--stroke);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.hero h1 .line { display: block; }
.shimmer {
  background: linear-gradient(100deg, var(--blush) 0%, var(--magenta) 25%, #fff 45%, var(--orchid) 60%, var(--violet) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s ease-in-out infinite;
}
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.lede { max-width: 36em; color: var(--text-lo); font-size: clamp(1rem, 1.5vw, 1.12rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-faint); font-size: .9rem; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { color: var(--success); }

/* the logo on its stage */
.hero-stage { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; display: grid; place-items: center; }
.hero-stage > * { grid-area: 1 / 1; }
.halo {
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--magenta), var(--orchid), var(--violet), var(--cyan), var(--blush), var(--magenta));
  filter: blur(46px); opacity: .55; animation: spin 14s linear infinite;
}
.ring { border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.ring.r1 { width: 92%; aspect-ratio: 1; border-top-color: rgba(255, 92, 176, .55); animation: spin 9s linear infinite; }
.ring.r2 { width: 70%; aspect-ratio: 1; border-bottom-color: rgba(128, 52, 248, .6); animation: spin 13s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark {
  width: 52%; height: auto; filter: drop-shadow(0 24px 60px rgba(255, 44, 152, .55)) drop-shadow(0 0 30px rgba(128, 52, 248, .5));
  animation: float 7s ease-in-out infinite, appear 1.4s var(--ease) 3.4s forwards; opacity: 0; transform: scale(.82);
  transition: opacity 1.4s var(--ease) .9s, transform 1.6s var(--ease) .9s, filter 1.6s var(--ease) .9s;
}
body.ready .mark { opacity: 1; transform: none; }
@keyframes appear { to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 10px; } }
.mark-shine {
  width: 52%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  background-size: 250% 100%; animation: sweep 5.5s ease-in-out 2.4s infinite;
  -webkit-mask: url(geera-mark.svg) center / contain no-repeat; mask: url(geera-mark.svg) center / contain no-repeat;
}
@keyframes sweep { 0% { background-position: 120% 0; } 45%, 100% { background-position: -40% 0; } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid var(--stroke); border-radius: 14px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blush); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── numbers ──────────────────────────────────────────────────────────────── */
.numbers {
  width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px); overflow: hidden;
}
.num { padding: 26px 18px; text-align: center; }
.num + .num { border-inline-start: 1px solid var(--stroke); }
.num b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; line-height: 1.2;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { color: var(--text-lo); font-size: .92rem; }

/* ── sections ─────────────────────────────────────────────────────────────── */
.section { width: var(--wrap); margin: 0 auto; padding: 120px 0 0; }
.section-head { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--blush); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.section-head h2, .network-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section-head p, .network-copy p { margin-top: 14px; color: var(--text-lo); }

.card {
  position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
}
.card::before { /* the light that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 92, 176, .13), transparent 45%);
}
.card:hover::before { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature.wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.feature h3 { margin: 16px 0 8px; font-size: 1.12rem; }
.feature p { color: var(--text-lo); font-size: .95rem; line-height: 1.85; }
.feature.wide h3 { font-size: 1.5rem; }
.feature.wide p { font-size: 1.02rem; max-width: 30em; }
.icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-size: 22px; color: #fff;
  background: var(--brand); box-shadow: 0 10px 30px -8px rgba(255, 44, 152, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* the backup-route picture in the wide card: three roads, the light takes the open one */
.route-viz { position: relative; flex: 1; min-height: 170px; margin-top: 26px; }
.route-viz i { position: absolute; inset-inline: 6%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.route-viz i:nth-child(1) { top: 22%; }
.route-viz i:nth-child(2) { top: 50%; background: linear-gradient(90deg, transparent, rgba(255, 92, 176, .6), transparent); }
.route-viz i:nth-child(3) { top: 78%; }
.route-viz i:nth-child(1)::after, .route-viz i:nth-child(3)::after {
  content: "✕"; position: absolute; left: 50%; top: -13px; translate: -50% 0; font-size: 14px; color: rgba(255, 77, 109, .75);
}
.route-viz em {
  position: absolute; top: calc(50% - 7px); right: 6%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 18px 6px rgba(255, 44, 152, .8); animation: travel 3.2s var(--ease) infinite;
}
@keyframes travel { 0% { right: 6%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { right: calc(94% - 14px); opacity: 0; } }

.marquee { position: relative; margin-top: 40px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; direction: ltr; }
.marquee span { padding: 10px 20px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text-lo); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── network ──────────────────────────────────────────────────────────────── */
.network { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 30px; }
.places { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.places li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); font-weight: 500; }
.flag { font-size: 1.2rem; line-height: 1; }
.globe-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.globe-wrap::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(128, 52, 248, .35), transparent 70%); filter: blur(30px); }
.globe { position: relative; width: 100%; height: 100%; }

/* ── steps ────────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; border: 1px solid var(--highlight); background: rgba(255, 255, 255, .06); }
.step h3 { margin: 16px 0 6px; font-size: 1.15rem; }
.step p { color: var(--text-lo); }

/* ── download ─────────────────────────────────────────────────────────────── */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.platform { display: flex; flex-direction: column; gap: 6px; transition: transform .35s var(--ease), border-color .3s; }
.platform:hover { transform: translateY(-4px); border-color: var(--highlight); }
.platform .p-icon { font-size: 30px; color: var(--blush); margin-bottom: 8px; }
.platform h3 { font-size: 1.15rem; }
.platform .note { color: var(--text-faint); font-size: .88rem; margin-bottom: 14px; }
.platform .btn { margin-top: auto; width: 100%; }
.platform.yours { border-color: rgba(255, 92, 176, .55); box-shadow: 0 0 0 1px rgba(255, 92, 176, .25), 0 20px 60px -20px rgba(255, 44, 152, .55); }
.platform .tag { position: absolute; top: 16px; left: 16px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--brand); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.store { display: inline-flex; flex-direction: column; align-items: center; min-width: 170px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--stroke); background: #000; text-align: center; transition: border-color .2s; }
.store small { color: var(--text-faint); font-size: .72rem; line-height: 1.3; }
.store strong { font-size: 1.05rem; line-height: 1.4; }
.store[aria-disabled="true"] { opacity: .55; }
.store:not([aria-disabled="true"]):hover { border-color: var(--highlight); }
.fine { margin-top: 22px; text-align: center; color: var(--text-faint); font-size: .9rem; }
.fine a { color: var(--blush); }

/* ── channel ──────────────────────────────────────────────────────────────── */
.channel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 34px;
  background: linear-gradient(120deg, rgba(255, 44, 152, .16), rgba(128, 52, 248, .14)), var(--surface); }
.channel h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.channel p { margin-top: 6px; color: var(--text-lo); }
.channel-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 30px; background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); }

/* ── faq ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--stroke); border-radius: 20px; background: var(--glass); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--highlight); background: rgba(255, 255, 255, .07); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blush); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-lo); }

/* ── footer ───────────────────────────────────────────────────────────────── */
.foot { width: var(--wrap); margin: 120px auto 0; padding: 30px 0 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; border-top: 1px solid var(--stroke); color: var(--text-faint); }
.foot nav { display: flex; gap: 18px; margin-inline-start: auto; }
.foot nav a:hover { color: var(--text-hi); }

/* ── reveal on scroll ─────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ── smaller screens ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .network { grid-template-columns: 1fr; }
  .network-copy { text-align: center; }
  .places { justify-content: center; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 0; text-align: center; }
  .hero-stage { width: min(78vw, 340px); order: -1; }
  .lede { margin-inline: auto; }
  .cta, .trust { justify-content: center; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { border-inline-start: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--stroke); }
  .grid { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .section { padding-top: 90px; }
  .channel { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot { justify-content: center; text-align: center; }
  .foot nav { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .letterbox { display: none; }
  .mark, [data-reveal] { opacity: 1; transform: none; filter: none; }
}
