/* ==========================================================================
   Arta — Coming Soon
   ========================================================================== */

:root {
  /* Color */
  --bg: #0C0A09;
  --bg-2: #110F0D;
  --surface: rgba(255, 250, 240, 0.035);
  --surface-hover: rgba(255, 250, 240, 0.06);
  --text: #FAFAF9;
  --muted: #A8A29E;
  --border: rgba(255, 245, 225, 0.08);
  --border-strong: rgba(255, 245, 225, 0.16);
  --gold: #CA8A04;
  --gold-bright: #EAB308;
  --gold-soft: #F5D67A;
  --gold-deep: #8A5A00;
  --gold-grad: linear-gradient(110deg, #8A5A00 0%, #CA8A04 22%, #F5D67A 45%, #FFF1C2 50%, #F5D67A 55%, #CA8A04 78%, #8A5A00 100%);
  --on-gold: #1A1204;

  /* Type */
  --font-fa: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display-en: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --font-body: var(--font-fa);
  --font-display: var(--font-fa);
  --font-digits: var(--font-fa);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --intro: 1100ms;           /* when the curtain has opened */
  --stagger: 90ms;

  /* Shape */
  --radius: 20px;
  --gap: clamp(0.5rem, 2.2vw, 1.25rem);
  --gutter: clamp(16px, 4.5vw, 48px);

  /* The page is already dark: stop browsers (Samsung Internet, Chrome auto-dark)
     from re-colouring it, which turns the gold into a muddy red. */
  color-scheme: only dark;
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: only dark; }
}

html[lang="en"] {
  --font-body: var(--font-en);
  --font-display: var(--font-display-en);
  --font-digits: var(--font-display-en);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, #1d1710 0%, transparent 55%),
    radial-gradient(80% 60% at 50% 110%, #15110b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(202, 138, 4, 0.35); color: #fff; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  border-radius: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Ambient layers ---------- */

.dust,
.aura,
.glow,
.grain,
.flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.dust { z-index: 0; width: 100%; height: 100%; }

.aura {
  z-index: 0;
  background:
    radial-gradient(40vmax 28vmax at 50% 38%, rgba(202, 138, 4, 0.11), transparent 70%),
    radial-gradient(30vmax 20vmax at 20% 80%, rgba(138, 90, 0, 0.08), transparent 70%),
    radial-gradient(30vmax 20vmax at 85% 15%, rgba(245, 214, 122, 0.05), transparent 70%);
  animation: aura-breathe 12s var(--ease-in-out) infinite alternate;
}

@keyframes aura-breathe {
  from { opacity: 0.75; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.06); }
}

.glow {
  z-index: 1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 35%), rgba(234, 179, 8, 0.075), transparent 60%);
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}
.has-pointer .glow { opacity: 1; }

.grain {
  z-index: 2;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

.flash {
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 236, 170, 0.55), rgba(202, 138, 4, 0.18) 30%, transparent 65%);
}

/* ---------- Custom cursor (fine pointers only) ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(245, 214, 122, 0.55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(var(--cs, 1));
  transition: opacity 300ms ease, background-color 300ms ease, border-color 300ms ease;
}
.has-cursor .cursor { opacity: 1; }
.has-cursor .cursor.is-hover {
  background-color: rgba(234, 179, 8, 0.08);
  border-color: rgba(245, 214, 122, 0.9);
}
.has-cursor .cursor.is-down { background-color: rgba(234, 179, 8, 0.18); }
.cursor.is-hidden { opacity: 0 !important; }

/* ---------- Intro curtain ---------- */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.curtain__half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--bg);
}
.curtain__half--top { top: 0; }
.curtain__half--bottom { bottom: 0; }
.curtain__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -0.5px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-soft) 50%, var(--gold) 80%, transparent);
  box-shadow: 0 0 24px 2px rgba(234, 179, 8, 0.45);
  transform: scaleX(0);
}

.is-ready .curtain__line { animation: curtain-line 1500ms var(--ease-in-out) forwards; }
.is-ready .curtain__half--top { animation: curtain-top 1000ms 550ms var(--ease-in-out) forwards; }
.is-ready .curtain__half--bottom { animation: curtain-bottom 1000ms 550ms var(--ease-in-out) forwards; }
.is-ready .curtain { animation: curtain-done 1ms 1700ms forwards; }

@keyframes curtain-line {
  0%   { transform: scaleX(0); opacity: 1; }
  40%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes curtain-top { to { transform: translateY(-100%); } }
@keyframes curtain-bottom { to { transform: translateY(100%); } }
@keyframes curtain-done { to { visibility: hidden; } }

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(20px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}

/* ---------- Reveal choreography ---------- */

.js [data-reveal] { opacity: 0; }
.js.is-ready [data-reveal] {
  animation: reveal 1000ms var(--ease-out) forwards;
  animation-delay: calc(var(--intro) + var(--d, 0) * var(--stagger));
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none;             filter: blur(0); }
}

/* Language cross-fade */
[data-swap] { transition: opacity 220ms ease, filter 220ms ease, translate 220ms ease; }
[data-swap].is-swapping { opacity: 0; filter: blur(4px); translate: 0 6px; }

/* After the intro, drop the one-shot animations so transitions (language swap) run smoothly */
.js.is-settled [data-reveal],
.js.is-settled .lang { animation: none; opacity: 1; }
.js.is-settled [data-reveal].is-swapping { opacity: 0; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  direction: ltr;
  user-select: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.25));
}
.brand__mark path { stroke-dasharray: 100; stroke-dashoffset: 0; }
.js .brand__mark path { stroke-dashoffset: 100; }
.js.is-ready .brand__mark path {
  animation: draw 1600ms calc(var(--intro) - 300ms) var(--ease-in-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.brand__word {
  display: inline-flex;
  gap: 0.34em;
  font-family: var(--font-display-en);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.brand__word span {
  display: inline-block;
  background: var(--gold-grad);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1200ms var(--ease-out);
}
.js .brand__word span { opacity: 0; transform: translateY(60%); }
.js.is-ready .brand__word span {
  animation: letter-in 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--intro) + var(--i) * 80ms);
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(60%); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.brand:hover .brand__word span { background-position: 0 0; }

/* Language switch */
.lang {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(12, 10, 9, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.js .lang { opacity: 0; }
.js.is-ready .lang { animation: reveal 900ms calc(var(--intro) + 200ms) var(--ease-out) forwards; }

.lang__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 214, 122, 0.18), rgba(202, 138, 4, 0.12));
  box-shadow: inset 0 0 0 1px rgba(245, 214, 122, 0.3), 0 4px 18px -6px rgba(234, 179, 8, 0.45);
  transition: transform 500ms var(--ease-back);
}
html[lang="en"] .lang__pill { transform: translateX(100%); }

.lang__btn {
  position: relative;
  min-width: 64px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 250ms ease;
}
.lang__btn[lang="fa"] { font-family: var(--font-fa); }
.lang__btn[lang="en"] { font-family: var(--font-en); font-weight: 500; letter-spacing: 0.08em; }
.lang__btn:hover,
.lang__btn[aria-pressed="true"] { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(32px, 7vh, 72px) 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(18px, 3vh, 28px);
  color: var(--gold-soft);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
html[lang="en"] .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em; /* balance trailing tracking */
}
.eyebrow__line {
  position: relative;
  width: 36px;
  height: 1px;
  overflow: hidden;
  background: rgba(202, 138, 4, 0.35);
}
.eyebrow__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transform: translateX(-100%);
  animation: line-scan 3.2s var(--ease-in-out) infinite;
}
.eyebrow__line:last-child::after { animation-direction: reverse; }
@keyframes line-scan { 60%, 100% { transform: translateX(100%); } }

.title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[lang="en"] .title {
  max-width: 18ch;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* Word-by-word reveal (spans generated by app.js) */
.title .w {
  display: inline-block;
  overflow: hidden;
  padding: 0.08em 0.02em 0.16em;
  margin: -0.08em -0.02em -0.16em;
  vertical-align: top;
}
.title .w__i { display: inline-block; }
.js .title .w__i { transform: translateY(115%); }
.js.is-ready .title .w__i {
  animation: word-up 1100ms var(--ease-out) forwards;
  animation-delay: calc(var(--base, 0ms) + var(--i) * 75ms);
}
@keyframes word-up {
  from { transform: translateY(115%) rotate(2deg); }
  to   { transform: none; }
}

.title .gold {
  background: var(--gold-grad);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-flow 7s linear infinite;
}
html[lang="en"] .title .gold { font-style: italic; }
@keyframes gold-flow {
  from { background-position: 100% 0; }
  to   { background-position: -150% 0; }
}
/* When a word is both revealing and gold, run both animations on the right elements */
.js.is-ready .title .w__i.gold {
  animation:
    word-up 1100ms var(--ease-out) forwards calc(var(--base, 0ms) + var(--i) * 75ms),
    gold-flow 7s linear infinite;
}

.lede {
  max-width: 54ch;
  margin: clamp(18px, 3vh, 28px) 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  font-weight: 300;
  line-height: 2;
  text-wrap: pretty;
}
html[lang="en"] .lede { line-height: 1.8; max-width: 52ch; }

/* ---------- Countdown ---------- */

.countdown {
  width: 100%;
  max-width: 720px;
  margin-top: clamp(36px, 6vh, 56px);
}

.countdown__caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
html[lang="en"] .countdown__caption {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.8);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-bright);
  opacity: 0;
}
.pulse.is-beat::after { animation: beat 1000ms var(--ease-out); }
@keyframes beat {
  from { opacity: 0.9; transform: scale(1); }
  to   { opacity: 0;   transform: scale(3.2); }
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  perspective: 900px;
}

.unit {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1 / 1.08;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.055), rgba(255, 250, 240, 0.012) 60%),
    rgba(17, 15, 13, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 225, 0.06),
    0 24px 48px -28px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out), border-color 400ms ease, box-shadow 400ms ease;
}
.unit:hover {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 225, 0.1),
    0 30px 60px -30px rgba(202, 138, 4, 0.35);
}

/* Colon-like dots between units */
.unit:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: calc(var(--gap) / -2);
  width: 3px;
  height: 14px;
  margin-top: -14px;
  transform: translateX(50%);
  background:
    radial-gradient(circle, rgba(245, 214, 122, 0.55) 1.4px, transparent 1.6px) 0 0 / 3px 3px no-repeat,
    radial-gradient(circle, rgba(245, 214, 122, 0.55) 1.4px, transparent 1.6px) 0 11px / 3px 3px no-repeat;
  animation: blink 2s steps(1) infinite;
}
[dir="rtl"] .unit:not(:last-child)::after { transform: translateX(-50%); }
@keyframes blink { 50% { opacity: 0.25; } }

.unit__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.unit__ring rect {
  fill: none;
  stroke: var(--gold);
  rx: var(--radius);
  ry: var(--radius);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(234, 179, 8, 0.6));
  transition: stroke-dashoffset 1000ms linear;
}
.unit[data-unit="days"] .unit__ring rect,
.unit[data-unit="hours"] .unit__ring rect { transition-duration: 1600ms; transition-timing-function: var(--ease-out); }

.unit__spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--sx, 50%) var(--sy, 0%), rgba(234, 179, 8, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.unit:hover .unit__spot { opacity: 1; }

.unit__value {
  position: relative;
  display: inline-flex;
  direction: ltr;
  font-family: var(--font-digits);
  font-size: clamp(2.1rem, 8.4vw, 4.6rem);
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--text);
  transform: translateZ(30px);
  text-shadow: 0 0 30px rgba(245, 214, 122, 0.15);
}
html[lang="en"] .unit__value {
  font-size: clamp(2.5rem, 9.6vw, 5.2rem);
  font-weight: 500;
}

.digit {
  display: inline-grid;
  overflow: hidden;
  padding: 0.12em 0;
  margin: -0.12em 0;
}
html[lang="fa"] .digit { margin-inline: -0.035em; }
.digit > span {
  grid-area: 1 / 1;
  display: block;
  text-align: center;
}

.unit__label {
  position: relative;
  color: var(--muted);
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  transform: translateZ(20px);
}
html[lang="en"] .unit__label {
  font-size: clamp(0.58rem, 1.5vw, 0.7rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding-left: 0.26em;
}

/* Journey progress */
.journey {
  width: 100%;
  margin-top: clamp(22px, 3.5vh, 32px);
}
.journey__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}
html[lang="en"] .journey__meta { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; }
.journey__pct { color: var(--gold-soft); font-variant-numeric: tabular-nums; }

.journey__track {
  --p: 0;
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 245, 225, 0.08);
}
.journey__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
  transform: scaleX(var(--p));
  transform-origin: left center;
  transition: transform 1200ms var(--ease-out);
}
[dir="rtl"] .journey__fill {
  background: linear-gradient(270deg, var(--gold-deep), var(--gold), var(--gold-soft));
  transform-origin: right center;
}
.journey__head {
  position: absolute;
  top: 50%;
  inset-inline-start: calc(var(--p) * 100%);
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #FFF1C2;
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.18), 0 0 16px 3px rgba(234, 179, 8, 0.7);
  transition: inset-inline-start 1200ms var(--ease-out);
}
.journey__head::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(245, 214, 122, 0.6);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  from { opacity: 0.8; transform: scale(0.6); }
  to   { opacity: 0;   transform: scale(2); }
}

/* ---------- Actions ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(36px, 6vh, 52px);
}

.cta,
.ghost {
  --tx: 0px;
  --ty: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition:
    transform 500ms var(--ease-out),
    box-shadow 400ms ease,
    background-color 300ms ease,
    border-color 300ms ease,
    color 300ms ease;
}

.cta {
  overflow: hidden;
  isolation: isolate;
  padding: 0 30px;
  background: linear-gradient(135deg, #F5D67A 0%, #E0A91C 38%, #CA8A04 70%, #A86F02 100%);
  color: var(--on-gold);
  font-weight: 600;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 230, 0.6),
    inset 0 -1px 0 rgba(90, 55, 0, 0.35),
    0 14px 40px -14px rgba(202, 138, 4, 0.75),
    0 0 0 1px rgba(245, 214, 122, 0.25);
}
html[lang="en"] .cta { font-size: 0.92rem; letter-spacing: 0.02em; }
.cta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 230, 0.7),
    inset 0 -1px 0 rgba(90, 55, 0, 0.35),
    0 20px 56px -12px rgba(234, 179, 8, 0.85),
    0 0 0 5px rgba(245, 214, 122, 0.12);
}
.cta:active,
.ghost:active { transform: translate3d(var(--tx), var(--ty), 0) scale(0.97); transition-duration: 120ms; }

.cta__inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transform: translate3d(calc(var(--tx) * 0.35), calc(var(--ty) * 0.35), 0);
  transition: transform 500ms var(--ease-out);
}
.cta__icon {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 600ms var(--ease-back);
}
.cta:hover .cta__icon { transform: rotate(-12deg) scale(1.1); }
.cta__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 500ms var(--ease-out);
}
[dir="rtl"] .cta__arrow { transform: scaleX(-1); }
.cta:hover .cta__arrow { transform: translateX(4px); }
[dir="rtl"] .cta:hover .cta__arrow { transform: scaleX(-1) translateX(4px); }

/* Sweeping light — on hover and every few seconds as an idle invitation */
.cta__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.65) 48%, rgba(255, 255, 255, 0.2) 52%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 6s 3s var(--ease-in-out) infinite;
}
.cta:hover .cta__shine { animation: shine-once 900ms var(--ease-out); }
@keyframes shine { 0%, 80% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes shine-once { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.ripple {
  position: absolute;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: ripple 700ms var(--ease-out) forwards;
}
.ghost .ripple { background: rgba(245, 214, 122, 0.35); }
@keyframes ripple { to { transform: scale(26); opacity: 0; } }

.ghost {
  overflow: hidden;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 10, 9, 0.4);
  color: var(--muted);
  font-size: 0.92rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[lang="en"] .ghost { font-size: 0.85rem; }
.ghost svg { width: 18px; height: 18px; transition: transform 500ms var(--ease-back); }
.ghost:hover {
  border-color: rgba(245, 214, 122, 0.4);
  background: var(--surface-hover);
  color: var(--text);
}
.ghost:hover svg { transform: translateY(-2px); }

.hint {
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
}
html[lang="en"] .hint { font-size: 0.8rem; line-height: 1.7; }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}
.footer p { margin: 0; }
.footer__date { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__date time { color: var(--text); }
.footer__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 80;
  padding: 12px 20px;
  border: 1px solid rgba(245, 214, 122, 0.25);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.9);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  transition: opacity 300ms ease, transform 500ms var(--ease-back);
  pointer-events: none;
  white-space: nowrap;
}
.toast:empty { display: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Launched state ---------- */

.is-launched .eyebrow { color: var(--gold-bright); }
.is-launched .aura { animation-duration: 5s; }

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  :root { --radius: 14px; }
  .unit { aspect-ratio: 1 / 1.2; padding: 10px 4px; gap: 4px; }
  .unit:not(:last-child)::after { display: none; }
  .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .cta, .ghost { width: 100%; }
  .footer { justify-content: center; text-align: center; }
  .footer__date { justify-content: center; }
  .brand__word { font-size: 1.15rem; }
  .brand__mark { width: 28px; height: 28px; }
}

@media (max-height: 700px) and (min-width: 561px) {
  .hero { padding: 24px 0; }
  .countdown { margin-top: 28px; }
  .actions { margin-top: 28px; }
}

/* Hover-only effects stay off on touch devices */
@media (hover: none) {
  .unit { transform: none; }
  .unit__spot { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .curtain,
  .cursor,
  .cta__shine,
  .journey__head::after { display: none; }
  .title .gold { background-position: 50% 0; }
}
