/* رصدخانه — public website. Plain CSS, no build step.
   The theme lives in [data-theme] on <html>, shared with the panels
   (localStorage key "madar-theme"), so one choice follows the visitor everywhere. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --font: "Vazirmatn", -apple-system, "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-glyph: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Symbols", "Apple Symbols", var(--font);

  --ink: #171236;
  --muted: #6c6796;
  --nav: #524d7d;
  --accent: #5b3fd6;
  --accent-soft: #7b63e8;
  --line: #e4defa;
  --panel: #fbfaff;
  --card: #ffffffcc;
  --halo: #b8a6ff;
  --gold: #c99a3f;
  --ok: #059669;
  --bad: #e11d48;
  --base: #f3f2ff;

  --sky: radial-gradient(ellipse 120% 90% at 88% 4%, #fffdf7 0%, #faf7ff 38%, #edeeff 100%);
  --stars: 0;
  --aurora: 0.95;
  --aurora-tint: radial-gradient(ellipse at 42% 34%, #fffdfb 27%, #f4f2ff 58%, #e7e5fc88 76%, transparent 81%);
  --glow: 0;
  --scrim: #f4f2ffe0;
  --cloud-hi: #ffffff;
  --cloud-lo: #e9e6fb;

  --mark-light: #8f7bf3;
  --mark-deep: #4c33c2;
  --mark-ring: #b9abf0;
  --mark-star: #d7a94d;

  --r: 22px;
  --shadow: 0 1px 2px #1b124512, 0 20px 50px -24px #1b124540;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1edff;
  --muted: #a49dcd;
  --nav: #c0b9e6;
  --accent: #b6a0ff;
  --accent-soft: #c5b4ff;
  --line: #2c2456;
  --panel: #150f33;
  --card: #150f33cc;
  --halo: #7b64d8;
  --gold: #e8c26a;
  --ok: #34d399;
  --bad: #fb7185;
  --base: #080518;

  --sky: radial-gradient(ellipse 120% 90% at 88% 4%, #241c56 0%, #150e36 42%, #080518 100%);
  --stars: 1;
  --aurora: 0.55;
  --aurora-tint: radial-gradient(ellipse at 42% 34%, #6f5fd0cc 22%, #40358f88 52%, #1d1550aa 72%, transparent 80%);
  --glow: 1;
  --scrim: #0a0620e6;
  --cloud-hi: #4a3f8c;
  --cloud-lo: #1d1650;

  --mark-light: #b9a6ff;
  --mark-deep: #5b3fd6;
  --mark-ring: #5a4da3;
  --mark-star: #e8c26a;
  --shadow: 0 1px 2px #0006, 0 24px 60px -24px #000a;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.glyph { font-family: var(--font-glyph); font-style: normal; line-height: 1; }
.num { font-feature-settings: "tnum" 1; direction: ltr; display: inline-block; unicode-bidi: isolate; }

/* ---------- page frame ---------- */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh; /* the hero always ends on the bottom edge of the visitor's screen */
  overflow: hidden;
  background: var(--sky);
  transition: background 0.5s ease;
}
.shell {
  position: relative;
  background: var(--sky);
  padding-bottom: 72px;
  min-height: 70svh;
  overflow: hidden;
}
.starfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--stars); transition: opacity 0.6s ease;
}
.starfield i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.aurora {
  position: absolute; inset-block: auto -90px; inset-inline: 24% -12%; height: 250px; z-index: 2;
  pointer-events: none; filter: blur(18px); opacity: var(--aurora); transition: opacity 0.5s ease;
}
.aurora i { position: absolute; bottom: 0; border-radius: 50%; background: var(--aurora-tint); }
.aurora i:nth-child(1) { width: 390px; height: 200px; inset-inline-end: 0; bottom: -28px; transform: rotate(-25deg); }
.aurora i:nth-child(2) { width: 265px; height: 195px; inset-inline-end: 14%; bottom: 32px; }
.aurora i:nth-child(3) { width: 270px; height: 170px; inset-inline-end: 29%; bottom: -2px; }
.aurora i:nth-child(4) { width: 350px; height: 200px; inset-inline-start: 7%; bottom: -20px; }
.aurora i:nth-child(5) { width: 280px; height: 215px; inset-inline-start: -2%; bottom: 70px; }

/* ---------- top banner ---------- */
.topban {
  position: relative; z-index: 10; display: flex; justify-content: center; gap: 10px; padding: 8px 20px;
  font-size: 13px; text-align: center; background: var(--accent); color: #fff;
}
.topban a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topban.tone-wrn { background: #b45309; } .topban.tone-pos { background: #047857; }
.topban.tone-neg { background: #be123c; } .topban.tone-inf { background: #0369a1; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 5; flex: none; height: 104px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 6.5%;
}
.wordmark { display: flex; align-items: center; gap: 13px; font-size: 31px; font-weight: 700; color: var(--ink); }
.wordmark > svg, .wordmark > img { width: 38px; height: 38px; flex: none; }
.logo-dark, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.brand-type { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.brand-type small { font-size: 9px; font-weight: 500; color: var(--muted); }
.site-nav { position: absolute; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 34px; align-items: center; }
:dir(ltr) .site-nav { transform: translateX(-50%); }
.site-nav a { font-size: 15px; color: var(--nav); padding: 12px 0; transition: color 0.2s; position: relative; }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 30%; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold);
}
.header-side { display: flex; align-items: center; gap: 10px; }
.round-button {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--nav); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.round-button svg { width: 19px; height: 19px; }
.theme-button .icon-moon, [data-theme="dark"] .theme-button .icon-sun { display: none; }
[data-theme="dark"] .theme-button .icon-moon { display: block; }
.menu-button { display: none; }
.header-link { font-size: 14px; color: var(--nav); padding: 10px 6px; }
.header-cta {
  background: var(--accent); color: #fff; border-radius: 23px; padding: 13px 22px; font-size: 14px;
  box-shadow: inset 0 1px 0 #ffffff33; transition: background 0.2s, transform 0.2s; white-space: nowrap;
}
[data-theme="dark"] .header-cta, [data-theme="dark"] .explore-button, [data-theme="dark"] .btn-accent { color: #140c3a; }
.mobile-nav {
  position: absolute; inset-inline: 16px; top: 88px; z-index: 30; padding: 10px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.mobile-nav a { padding: 12px 14px; border-radius: 12px; font-size: 15px; }

@media (hover: hover) {
  .site-nav a:hover, .header-link:hover { color: var(--accent); }
  .round-button:hover { color: var(--accent); border-color: var(--accent); }
  .header-cta:hover { background: var(--accent-soft); }
  .mobile-nav a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
}

/* ---------- hero ---------- */
main.hero-main { flex: 1; min-height: 0; display: flex; }
.hero { position: relative; width: 100%; }
.hero-copy {
  position: relative; z-index: 3; margin-inline-start: 6.5%; padding-top: clamp(40px, 8vh, 96px);
  width: 46%; max-width: 620px; pointer-events: none;
}
.hero-copy a, .hero-copy button { pointer-events: auto; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--accent); margin: 0 0 20px; opacity: 0.85; }
.hero h1 { font-size: clamp(50px, 4.9vw, 88px); font-weight: 700; line-height: 1.28; margin: 0 0 24px; }
.hero h1 em, .accent-em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 calc(var(--glow) * 34px) color-mix(in srgb, var(--accent) 45%, transparent);
}
.hero-description { color: var(--muted); font-size: clamp(15px, 1.15vw, 19px); line-height: 2; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.explore-button, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 55px; padding: 15px 28px;
  border-radius: 32px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 500;
  box-shadow: inset 0 1px 0 #ffffff38; transition: background 0.2s, transform 0.2s;
}
.explore-button svg { width: 21px; height: 21px; }
.explore-button:active { transform: translateY(0); }
.ghost-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 55px; padding: 15px 22px;
  border-radius: 32px; border: 1px solid var(--line); color: var(--nav); font-size: 14px; transition: border-color 0.2s, color 0.2s;
}
@media (hover: hover) {
  .explore-button:hover, .btn-accent:hover { background: var(--accent-soft); transform: translateY(-2px); }
  .ghost-button:hover { border-color: var(--accent); color: var(--accent); }
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; font-size: 12px; color: var(--muted); }
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.visual-column { position: absolute; inset-block-start: 0; inset-inline-end: -5%; width: 76%; height: calc(100% + 12px); z-index: 1; }
.orbit-ring { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: var(--halo); opacity: 0.45; }
.orbit-ring svg { width: min(88%, 720px); height: auto; animation: drift 90s linear infinite; }
@keyframes drift { to { transform: rotate(360deg); } }
.planet-stage { position: relative; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; outline: none; }
/* The globe is cut where the hero ends; its last stretch fades out instead, so it sinks into the cloud
   layer below (.cloud-seam) rather than stopping on a straight line. Only the picture fades: dragging works. */
.planet-stage canvas {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--sink, 150px)), transparent calc(100% - 10px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--sink, 150px)), transparent calc(100% - 10px));
}
.planet-stage:focus-visible { outline: 1px dashed var(--halo); outline-offset: -15px; border-radius: 36px; }
.planet-stage.dragging { cursor: grabbing; }
@media (pointer: coarse) { .planet-stage { touch-action: pan-y; } }
/* the globe itself turns in every direction under a finger (hero.js places this disc over it) */
.planet-grip { position: absolute; border-radius: 50%; touch-action: none; pointer-events: none; }
@media (pointer: coarse) { .planet-grip { pointer-events: auto; } }
.planet-stage canvas { display: block; width: 100%; height: 100%; }
.loading, .scene-fallback {
  position: absolute; inset-block-start: 42%; inset-inline: 20%; display: flex; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); font-size: 13px; text-align: center; pointer-events: none;
}
.loading > span { width: 17px; height: 17px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene-fallback { flex-direction: column; pointer-events: auto; gap: 16px; }
.scene-fallback button { background: var(--accent); color: #fff; border-radius: 20px; padding: 10px 20px; font-size: 13px; }
.planet-caption { position: absolute; inset-inline-end: 6.2%; inset-block-start: 15%; z-index: 3; width: 165px; pointer-events: none; color: var(--muted); transition: opacity 0.25s; }
.planet-caption p { margin: 0; font-size: 14px; line-height: 1.7; text-align: start; }
.planet-caption svg { width: 155px; height: 145px; margin-top: -14px; margin-inline-start: 26px; opacity: 0.75; }
.planet-caption.is-dragging { opacity: 0.55; }

.hero-footer {
  position: absolute; inset-block-end: 40px; inset-inline: 6.5% 5.1%; z-index: 4;
  display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none;
}
.hero-footer p { text-shadow: 0 1px 10px var(--scrim), 0 0 22px var(--scrim); }
.hero-footer p { margin: 0; font-size: 10px; line-height: 2; color: var(--muted); }
.footer-left::before { content: ""; display: block; width: 25px; height: 1px; background: var(--line); margin-bottom: 14px; }
.footer-right { text-align: end; }
/* Pause / play: a glass pill with a slowly turning gradient stroke, so it reads
   over clouds, ocean and stars alike. The stroke stops turning while paused. */
.motion-button {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding-inline: 6px 18px; margin-bottom: 40px; border-radius: 999px; pointer-events: auto;
  font: 700 13px/1 var(--font); color: var(--ink);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 12px 34px -12px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.motion-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.6px; border-radius: inherit;
  background: conic-gradient(from var(--mb-angle, 0deg), var(--accent), var(--gold), var(--halo), var(--accent-soft), var(--accent));
  -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);
  animation: mb-turn 6s linear infinite;
}
@property --mb-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes mb-turn { to { --mb-angle: 360deg; } }
.motion-button[aria-pressed="true"]::before { animation-play-state: paused; }
.motion-button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 85%, transparent), 0 0 0 7px color-mix(in srgb, var(--accent) 14%, transparent); }
.motion-button:active { transform: translateY(0) scale(0.97); }
.motion-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mb-ic { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--base); background: linear-gradient(145deg, var(--accent-soft), var(--accent)); box-shadow: inset 0 1px 0 #ffffff55; }
.mb-ic svg { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity 0.2s, transform 0.3s cubic-bezier(.2,.8,.2,1); }
.motion-button .icon-play { opacity: 0; transform: scale(0.4) rotate(-90deg); }
.motion-button[aria-pressed="true"] .icon-pause { opacity: 0; transform: scale(0.4) rotate(90deg); }
.motion-button[aria-pressed="true"] .icon-play { opacity: 1; transform: none; }
.motion-button[aria-pressed="true"] .mb-ic { animation: mb-call 2.4s ease-in-out infinite; }
@keyframes mb-call { 0%, 100% { box-shadow: inset 0 1px 0 #ffffff55, 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: inset 0 1px 0 #ffffff55, 0 0 0 8px transparent; } }

/* «drag me» hint: a line-art hand presses on the globe, drags it a little
   (the globe really turns) and lets go. Played by hero.js only until the
   visitor turns the globe once. */
.drag-hint { position: absolute; inset-inline-start: 50%; inset-block-start: 56%; z-index: 3; width: 0; height: 0; pointer-events: none; opacity: 0; }
.drag-hint svg { max-width: none; }
.drag-hint.play { opacity: 1; }
.dh-hand { position: absolute; left: -33px; top: -11px; width: 84px; height: 84px; color: #241a52; overflow: visible; transform-origin: 33px 11px;
  filter: drop-shadow(0 6px 14px rgba(20, 10, 60, .55)) drop-shadow(0 0 10px color-mix(in srgb, var(--accent-soft) 70%, transparent)); }
.dh-hand path { fill: #fff; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }
.dh-ripple { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid #fff; opacity: 0;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent-soft) 80%, transparent), inset 0 0 12px color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.dh-trail { position: absolute; left: -130px; top: -40px; width: 150px; height: 60px; overflow: visible; }
.dh-trail path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 150; stroke-dashoffset: 150; opacity: 0; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-soft) 90%, transparent)); }
.drag-hint.play .dh-hand { animation: dh-hand 2.6s cubic-bezier(.45, 0, .25, 1) both; }
.drag-hint.play .dh-ripple { animation: dh-ripple 2.6s ease-out both; }
.drag-hint.play .dh-trail path { animation: dh-trail 2.6s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes dh-hand {
  0% { opacity: 0; transform: translate(26px, 18px) scale(1.18) rotate(-10deg); }
  16% { opacity: 1; transform: translate(0, 0) scale(1.08) rotate(-6deg); }
  26% { transform: translate(0, 0) scale(0.9) rotate(-6deg); }
  64% { transform: translate(-112px, -14px) scale(0.9) rotate(6deg); }
  74% { opacity: 1; transform: translate(-118px, -16px) scale(1.06) rotate(8deg); }
  100% { opacity: 0; transform: translate(-126px, -26px) scale(1.12) rotate(10deg); }
}
@keyframes dh-ripple {
  0%, 22% { opacity: 0; transform: scale(0.3); }
  28% { opacity: 0.95; transform: scale(0.55); }
  48% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; }
}
@keyframes dh-trail {
  0%, 26% { opacity: 0; stroke-dashoffset: 150; }
  30% { opacity: 0.85; }
  64% { opacity: 0.85; stroke-dashoffset: 10; }
  88%, 100% { opacity: 0; stroke-dashoffset: 10; }
}
.scroll-cue {
  position: absolute; inset-inline-start: 50%; bottom: 22px; z-index: 4; transform: translateX(50%);
  width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid var(--line); pointer-events: auto;
}
.scroll-cue::after { content: ""; position: absolute; inset-inline-start: 50%; top: 8px; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- cloud seam ----------
   A thin, uneven layer of clouds straddling the line where the hero ends (the globe is cut there).
   Every cloud is placed relative to that line (--dy: px above it when negative), with its own size,
   height and opacity, so the tops never line up: a few faint high clouds behind, a broken row of
   fuller clouds right on the line hiding the cut, and low wisps melting into section two. Under them
   the hero fades into the page colour, so there is no band and no straight edge anywhere. */
.cloud-seam { position: relative; z-index: 3; height: 0; pointer-events: none; --up: 170px; --down: 150px; --k: 1; --s: 1; }
.cloud-seam .bank {
  position: absolute; inset-inline: 0; top: calc(-1 * var(--up)); height: calc(var(--up) + var(--down)); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 78%, transparent 100%);
}
/* the hero melts into the page colour just around the line */
.cloud-seam .bank::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent calc(var(--up) - 54px * var(--s)),
    color-mix(in srgb, var(--base) 70%, transparent) calc(var(--up) - 12px * var(--s)), var(--base) calc(var(--up) + 18px * var(--s)));
}
.cloud-seam i {
  position: absolute; border-radius: 50%; aspect-ratio: 2.3; width: calc(var(--w) * var(--k)); inset-inline-start: var(--x);
  top: calc(var(--up) + var(--dy) * var(--s) - var(--w) * var(--k) / 4.6);
  background:
    radial-gradient(ellipse 34% 46% at 34% 46%, var(--cloud-hi) 0 50%, transparent 100%),
    radial-gradient(ellipse 30% 52% at 62% 40%, var(--cloud-hi) 0 48%, transparent 100%),
    radial-gradient(ellipse 50% 44% at 50% 58%, color-mix(in srgb, var(--cloud-hi) 85%, var(--cloud-lo)) 0 44%, transparent 100%);
  filter: blur(var(--b, 9px)); opacity: var(--o, 1);
  animation: cloud-drift var(--t, 26s) ease-in-out infinite alternate; animation-delay: var(--d, 0s);
}
@keyframes cloud-drift { from { transform: translateX(-2.2%) scale(1); } to { transform: translateX(2.2%) scale(1.04); } }
/* behind: faint and high, each at its own height */
.cloud-seam i:nth-child(1)  { --w: 30vw; --x: -7%; --dy: -46px; --o: .42; --b: 14px; --t: 31s; }
.cloud-seam i:nth-child(2)  { --w: 21vw; --x: 22%; --dy: -70px; --o: .32; --b: 14px; --t: 27s; --d: -6s; }
.cloud-seam i:nth-child(3)  { --w: 33vw; --x: 44%; --dy: -36px; --o: .4;  --b: 14px; --t: 33s; --d: -12s; }
.cloud-seam i:nth-child(4)  { --w: 19vw; --x: 79%; --dy: -78px; --o: .3;  --b: 14px; --t: 29s; --d: -3s; }
/* on the line: a broken row of fuller clouds hiding the cut */
.cloud-seam i:nth-child(5)  { --w: 25vw; --x: -5%; --dy: 8px;   --o: .95; --t: 24s; --d: -9s; }
.cloud-seam i:nth-child(6)  { --w: 17vw; --x: 16%; --dy: -10px; --o: .82; --t: 22s; --d: -2s; }
.cloud-seam i:nth-child(7)  { --w: 24vw; --x: 29%; --dy: 16px;  --o: .9;  --t: 26s; --d: -14s; }
.cloud-seam i:nth-child(8)  { --w: 15vw; --x: 49%; --dy: -16px; --o: .78; --t: 23s; --d: -5s; }
.cloud-seam i:nth-child(9)  { --w: 27vw; --x: 59%; --dy: 10px;  --o: .92; --t: 25s; --d: -11s; }
.cloud-seam i:nth-child(10) { --w: 18vw; --x: 84%; --dy: -4px;  --o: .85; --t: 21s; --d: -7s; }
/* small bumps that break the silhouette */
.cloud-seam i:nth-child(11) { --w: 11vw; --x: 39%; --dy: -28px; --o: .6;  --t: 19s; --d: -4s; }
.cloud-seam i:nth-child(12) { --w: 9vw;  --x: 73%; --dy: -34px; --o: .55; --t: 20s; --d: -10s; }
/* low wisps melting into section two */
.cloud-seam i:nth-child(13) { --w: 36vw; --x: 6%;  --dy: 52px;  --o: .4;  --b: 16px; --t: 28s; --d: -15s; }
.cloud-seam i:nth-child(14) { --w: 32vw; --x: 54%; --dy: 60px;  --o: .35; --b: 16px; --t: 30s; --d: -8s; }
/* at night the clouds are dusk-lit and see-through: a veil, not a wall */
[data-theme="dark"] .cloud-seam i { opacity: calc(var(--o, 1) * .62); }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 6.5%; }
.cloud-seam + .section { padding-top: calc(var(--seam-clear, 170px) + 20px); }
.section.tint { background: color-mix(in srgb, var(--panel) 70%, transparent); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; line-height: 1.45; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 2.1; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step-card {
  position: relative; padding: 32px 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.step-card .step-n { font-size: 44px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--halo); line-height: 1; margin-bottom: 20px; display: block; }
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; line-height: 2; }
.step-card:not(:last-child)::after {
  content: ""; position: absolute; top: 58px; inset-inline-end: -22px; width: 22px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--halo) 0 4px, transparent 4px 8px);
}

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pillar { padding: 34px 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.pillar .glyph { font-size: 38px; color: var(--accent); margin-bottom: 18px; text-shadow: 0 0 calc(var(--glow) * 24px) color-mix(in srgb, var(--accent) 50%, transparent); }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar small { display: block; color: var(--gold); font-size: 12px; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 2; }

.analyses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.a-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s;
}
@media (hover: hover) { .a-card:hover { transform: translateY(-4px); border-color: var(--halo); } }
.a-card .a-glyph {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--accent);
  font-family: var(--font-glyph); background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 75%);
  border: 1px solid var(--line);
}
.a-card h3 { font-size: 18px; line-height: 1.6; }
.a-card p { color: var(--muted); font-size: 14px; line-height: 1.95; flex: 1; }
.a-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 13px;
  border: 1px solid var(--line); font-size: 12px; color: var(--nav);
}
.tag.gold { border-color: color-mix(in srgb, var(--gold) 50%, transparent); color: var(--gold); }
.tag.sale { border-color: transparent; background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.a-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price { font-weight: 700; font-size: 17px; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 12px; margin-inline-end: 6px; }
.a-link { font-size: 14px; color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.a-link svg { width: 17px; height: 17px; }

.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-list li { display: flex; gap: 16px; }
.why-list .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); font-family: var(--font-glyph); }
.why-list h3 { font-size: 16px; margin-bottom: 4px; }
.why-list p { color: var(--muted); font-size: 14px; line-height: 1.95; }
.quote-card {
  position: relative; padding: 44px 40px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.8;
}
.quote-card::before { content: "“"; position: absolute; top: -10px; inset-inline-start: 26px; font-size: 90px; line-height: 1; color: var(--halo); opacity: 0.6; }
.quote-card small { display: block; margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--muted); }

.reviews-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.review p { font-size: 14.5px; line-height: 2; }
.review footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.stars { color: var(--gold); letter-spacing: 2px; }

.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 0 24px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--halo); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; line-height: 2.1; }

.cta-band {
  position: relative; margin: 0 6.5% 110px; padding: 64px 7%; border-radius: 32px; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%), var(--panel);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(26px, 2.8vw, 40px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 64px 6.5% 32px; background: var(--base); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-grid a { color: var(--nav); }
.foot-about p { color: var(--muted); font-size: 14px; line-height: 2; margin-top: 16px; max-width: 360px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
@media (hover: hover) { .foot-grid a:hover { color: var(--accent); } }

/* ---------- inner pages ---------- */
.page-hero { position: relative; z-index: 3; padding: 30px 6.5% 10px; max-width: 900px; }
.page-hero h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.4; margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 16px; line-height: 2; }
.inner { position: relative; z-index: 3; padding: 30px 6.5% 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filters a { padding: 9px 18px; border-radius: 22px; border: 1px solid var(--line); font-size: 14px; color: var(--nav); background: var(--card); }
.filters a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .filters a[aria-current="page"] { color: #140c3a; }

.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.panel-card { padding: 32px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.prose { line-height: 2.15; font-size: 16px; }
.prose p { margin-bottom: 14px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.check-list li { display: flex; gap: 10px; }
.check-list li::before { content: "✦"; color: var(--gold); flex: none; }
.buy-box { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.buy-box .price { font-size: 28px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv span:first-child { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); line-height: 1.9; }
.warn { color: #b45309; } [data-theme="dark"] .warn { color: #fbbf24; }

/* ---------- forms (same class names as the panels) ---------- */
.form-card { max-width: 760px; margin-inline: auto; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--nav); }
.label .req { color: var(--bad); margin-inline-start: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--ink); font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.input[dir="ltr"] { text-align: left; }
.select {
  appearance: none; -webkit-appearance: none; padding-inline-start: 38px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 16px 55%, 21px 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.select:disabled { opacity: 0.45; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--bad); font-size: 12.5px; }
.errorlist.nonfield { padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.field.has-error .input, .field.has-error .select { border-color: var(--bad); }
.multi { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; }
.multi.two { grid-template-columns: 1fr 1fr; }
.radios { display: flex; flex-direction: column; gap: 8px; }
.radios.inline { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.radios label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 16px; border-radius: 14px;
  border: 1px solid var(--line); font-size: 14px; background: color-mix(in srgb, var(--panel) 85%, transparent); transition: border-color 0.2s, background 0.2s;
}
.radios label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.radios input, .check-input, .check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--halo);
  border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}
.check-input, .check input { border-radius: 5px; }
.radios input:checked, .check-input:checked, .check input:checked { background: var(--accent); border-color: var(--accent); }
.radios input:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--panel); }
.check-input:checked::after, .check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--panel); border-top: 0; border-inline-end: 0; transform: translateY(-1px) rotate(-45deg); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.6; }
.check input { margin-top: 2px; }
.bf { display: flex; flex-direction: column; gap: 30px; }
.bf-sec { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bf-legend { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.bf-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--accent); border: 1px solid var(--halo); }

.wizard-steps { display: flex; justify-content: center; gap: 0; margin: 0 auto 34px; max-width: 520px; }
.wizard-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); position: relative; text-align: center; }
.wizard-steps li::before { content: ""; position: absolute; top: 15px; inset-inline-start: 50%; width: 100%; height: 1px; background: var(--line); }
.wizard-steps li:last-child::before { display: none; }
.wizard-steps i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; border: 1px solid var(--line); background: var(--base); }
.wizard-steps .on { color: var(--ink); font-weight: 600; }
.wizard-steps .on i { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.wizard-steps .done i { border-color: var(--accent); color: var(--accent); }
.privacy { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.9; }
.privacy svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 2px; }

.auth-wrap { position: relative; z-index: 3; display: grid; place-items: center; padding: 20px 16px 40px; }
.auth-card { width: min(480px, 100%); }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.btn-block { width: 100%; }
.alt-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
/* «قبلاً حساب ساخته‌ای؟» above the birth form: one slim row, so the form stays the first thing on screen */
.returning { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto 18px; padding: 8px 8px 8px 10px;
  border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, color-mix(in srgb, var(--base) 80%, transparent)); }
.returning-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); }
.returning-ic svg { width: 16px; height: 16px; }
.returning-text { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.returning-text b { font-size: 14px; color: var(--ink); }
.returning-text span { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.returning-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px; white-space: nowrap; color: #fff; background: var(--accent); transition: transform .2s, box-shadow .2s; }
.returning-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px var(--accent); }
.returning-btn svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .returning-text span { display: none; }
}
.alt-link a { color: var(--accent); font-weight: 600; }
.flash { position: relative; z-index: 4; max-width: 760px; margin: 0 auto 18px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.flash.error { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.flash.success { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.pending-chip { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 13.5px; margin-bottom: 20px; }
.pending-chip .glyph { font-size: 22px; color: var(--accent); }

.error-page { position: relative; z-index: 3; text-align: center; padding: 60px 20px 20px; }
.error-page .code { font-size: clamp(90px, 14vw, 180px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--halo); }
.error-page h1 { font-size: 28px; margin: 14px 0 10px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

.reveal-up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,1,.36,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (min-width: 1800px) { .hero-copy { padding-top: 12vh; } }
@media (max-width: 1150px) {
  .site-header { height: 92px; padding-inline: 5%; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 13px; }
  .wordmark { font-size: 27px; }
  .header-cta { font-size: 12px; padding: 12px 16px; }
  .hero-copy { margin-inline-start: 5%; width: 50%; }
  .hero h1 { font-size: clamp(42px, 5.2vw, 62px); }
  .hero-description { font-size: 15px; max-width: 400px; }
  .planet-caption { inset-inline-end: 4%; width: 120px; }
  .planet-caption p { font-size: 12px; }
  .planet-caption svg { width: 125px; height: 118px; margin-inline-start: 16px; }
  .hero-footer { inset-inline: 5%; }
  .section { padding: 90px 5%; }
  .why { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 960px) {
  .site-nav, .header-link { display: none; }
  .menu-button { display: grid; }
  .steps3, .pillars, .reviews-row { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .buy-box { position: static; }
}
@media (max-width: 759px) {
  .site-header { height: 84px; padding-inline: 16px; }
  .wordmark { font-size: 25px; gap: 9px; }
  .wordmark > svg { width: 33px; height: 33px; }
  .header-cta { padding: 11px 14px; border-radius: 20px; font-size: 12px; }
  .round-button { width: 40px; height: 40px; }
  main.hero-main { display: flex; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: auto; margin-inline: 16px; padding-top: 18px; pointer-events: auto; }
  .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(27px, 8.2vw, 44px); line-height: 1.36; margin-bottom: 14px; }
  .hero-description { font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
  .desktop-break { display: none; }
  .explore-button, .ghost-button, .btn-accent { min-height: 50px; padding: 14px 22px; font-size: 14px; }
  .trust-row { margin-top: 16px; font-size: 11px; gap: 8px 16px; }
  .visual-column { position: relative; inset: auto; width: 134%; margin-inline: -17%; height: auto; flex: 1 1 0; min-height: 240px; margin-top: -4px; }
  .orbit-ring { opacity: 0.3; }
  .loading, .scene-fallback { inset-inline: 10%; }
  .planet-caption { inset-block-start: auto; inset-block-end: 24%; inset-inline-end: 14px; width: 96px; }
  .planet-caption p { font-size: 11px; }
  .planet-caption svg { width: 92px; height: 88px; margin-inline-start: 6px; margin-top: -4px; }
  .aurora { inset: auto -20% -50px -20%; height: 185px; filter: blur(14px); }
  /* phones: the same layer, wider clouds and a shallower rise, so most of the globe still shows */
  .cloud-seam { --up: 96px; --down: 110px; --k: 2; --s: .62; }
  .planet-stage canvas { --sink: 90px; }
  [data-theme="dark"] .cloud-seam i { --b: 5px; opacity: calc(var(--o, 1) * .72); }
  .cloud-seam + .section { --seam-clear: 96px; }
  .cloud-seam i { --b: 6px; }
  .hero-footer { inset-block-end: 20px; inset-inline: 16px; }
  .hero-footer p { font-size: 8px; }
  .footer-left::before { width: 20px; margin-bottom: 9px; }
  .motion-button { height: 44px; width: 44px; padding: 0; gap: 0; justify-content: center; margin-bottom: 0; }
  .motion-button [data-motion-label] { display: none; }
  .mb-ic { width: 36px; height: 36px; }
  .drag-hint { inset-block-start: 58%; }
  .dh-hand { width: 66px; height: 66px; left: -26px; top: -8px; transform-origin: 26px 8px; }
  .scroll-cue { display: none; }
  .section { padding: 70px 16px; }
  .section-head { margin-bottom: 32px; }
  .cta-band { margin: 0 16px 70px; padding: 44px 22px; border-radius: 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-foot { padding: 48px 16px 28px; }
  .page-hero, .inner { padding-inline: 16px; }
  .panel-card { padding: 22px 18px; border-radius: 22px; }
  .f2 { grid-template-columns: 1fr; }
  .input, .select { font-size: 16px; }
  .multi { grid-template-columns: 1fr 1.3fr 1.2fr; }
}
@media (max-height: 760px) and (min-width: 760px) {
  .hero-copy { padding-top: 28px; }
  .hero h1 { font-size: clamp(40px, 7.4vh, 70px); margin-bottom: 16px; }
  .hero-description { margin-bottom: 20px; }
  .trust-row { margin-top: 20px; }
}
@media (max-height: 700px) and (max-width: 759px) {
  .hero-copy { padding-top: 12px; }
  .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: clamp(25px, 7.2vw, 34px); margin-bottom: 12px; }
  .hero-description { font-size: 13px; margin-bottom: 14px; }
  .trust-row, .planet-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-up { opacity: 1; transform: none; }
}

.span-all { grid-column: 1 / -1; }

/* ---------- phones: the 3D frame is small, keep the globe in sight ---------- */
/* In the light theme the near-white aurora and the white cloud bank sat over most of the small globe frame
   (Safari's toolbars make it even shorter); at night the same layers are a dim veil, so only light changes. */
@media (max-width: 759px) {
  [data-theme="light"] .aurora { opacity: .3; height: 120px; }
  [data-theme="light"] .cloud-seam { --up: 58px; }
  [data-theme="light"] .cloud-seam i { opacity: calc(var(--o, 1) * .78); }
  [data-theme="light"] .planet-stage canvas { --sink: 46px; }
}
/* short phone screens: a tighter headline block leaves the globe more room */
@media (max-width: 759px) and (max-height: 760px) {
  .hero-copy { padding-top: 6px; }
  .eyebrow { display: none; }
  .hero h1 { font-size: clamp(24px, 7.4vw, 36px); line-height: 1.32; margin-bottom: 10px; }
  .hero-description { font-size: 13px; line-height: 1.85; margin-bottom: 14px; }
  .explore-button, .ghost-button { min-height: 44px; padding: 11px 18px; }
  .trust-row { display: none; }
  .visual-column { min-height: 260px; }
}
