/* Gold101 pre-launch landing page. Self-hosted fonts (SIL OFL — see assets/fonts/README.md). */
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* only the ₹ sign comes from the extended subset */
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+20B9;
}

:root {
  --bg: #0b0907;
  --bg-raise: #15110c;
  --gold-hi: #f6e3a6;
  --gold: #e0b452;
  --gold-mid: #c8963a;
  --gold-lo: #8c6324;
  --ink: #f4eee2;
  --ink-soft: #d9d0c0;
  --ink-mute: #a89e8c;
  --line: rgba(224, 180, 82, .38);
  --danger: #ff9b8a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; }
p { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ backdrop */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, #1d160d 0%, transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, #120e09 0%, transparent 60%),
    var(--bg);
}
.scene::after { /* vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 110% 85% at 50% 42%, transparent 50%, rgba(0, 0, 0, .65) 100%);
}
.scene__glow { /* warm halo behind the logo */
  position: absolute; left: 50%; top: 4vh; width: min(720px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224, 180, 82, .16) 0%, rgba(224, 180, 82, .05) 38%, transparent 66%);
  animation: breathe 9s ease-in-out infinite alternate;
}
.scene__dawn { /* low sunrise on the right horizon */
  position: absolute; right: -14vw; top: 30vh; width: 62vw; aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center, rgba(246, 210, 130, .22) 0%, rgba(200, 140, 50, .08) 30%, transparent 64%);
}
.scene__path { position: absolute; right: 0; bottom: 0; width: min(40vw, 560px); height: auto; opacity: .9; }
.scene__path-steps { animation: walk 22s linear infinite; }
.scene__coins { position: absolute; left: clamp(-24px, -1vw, 0px); bottom: 3vh; width: min(30vw, 420px); height: auto;
  filter: drop-shadow(0 12px 28px rgba(224, 180, 82, .14)); opacity: .92; }
.scene__motes { position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 28%, rgba(240, 210, 140, .55) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 64%, rgba(240, 210, 140, .4) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 16%, rgba(240, 210, 140, .35) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 22%, rgba(240, 210, 140, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 46%, rgba(240, 210, 140, .5) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 88% 30%, rgba(240, 210, 140, .35) 0 1px, transparent 2px),
    radial-gradient(circle at 93% 62%, rgba(240, 210, 140, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 6% 50%, rgba(240, 210, 140, .3) 0 1px, transparent 2px);
  animation: float 28s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: .75; } to { opacity: 1; } }
@keyframes walk { to { stroke-dashoffset: -220; } }
@keyframes float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -18px, 0); } }

/* ------------------------------------------------------------ layout */
.page {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.brand, .rule, .teaser { animation: rise .9s var(--ease) both; }
.rule { animation-delay: .1s; }
.teaser { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------ brand */
.brand { display: flex; flex-direction: column; align-items: center; }
.brand__emblem { width: 156px; height: auto;
  filter: drop-shadow(0 0 26px rgba(224, 180, 82, .28)) drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); }
.brand__name { margin: 14px 0 0; line-height: 1; font-size: inherit; }
.wordmark { display: inline-flex; align-items: flex-start; font-family: var(--sans); font-weight: 800;
  font-size: 66px; letter-spacing: -.04em; line-height: .95; }
.wordmark__gold { /* charcoal steel, as in the brand mark — lifted enough to read on near-black */
  background: linear-gradient(180deg, #8d9096 0%, #5b5e64 52%, #3b3d42 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark__num {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .02em; }
.wordmark__tm { font-size: .2em; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin: .2em 0 0 .25em; }
.tagline { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-soft); padding-left: .34em; /* balance trailing letter-spacing */ }

.rule { display: flex; align-items: center; gap: 14px; margin: 26px 0 30px; }
.rule span { width: 88px; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.rule span:last-child { transform: scaleX(-1); }
.rule i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(224, 180, 82, .6); }

/* ------------------------------------------------------------ teaser */
.teaser { width: 100%; display: flex; flex-direction: column; align-items: center; }
.headline { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.1;
  letter-spacing: -.005em; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; text-wrap: balance; }
.headline > span { display: block; }
.headline__gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-mid));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline__light { color: var(--ink); }
.rupee { padding-right: .03em; }
.watch { margin-top: 22px; font-size: 15px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); padding-left: .42em; }

/* ------------------------------------------------------------ signup */
.signup { width: 100%; max-width: 600px; margin-top: 34px; }
.signup__lede { color: var(--ink-soft); font-size: 16px; line-height: 1.65; letter-spacing: .015em; }

.notify {
  position: relative; margin-top: 20px;
  display: flex; align-items: stretch; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 22, 14, .88), rgba(14, 11, 8, .92));
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, .55), 0 0 40px rgba(224, 180, 82, .06);
  transition: box-shadow .25s ease;
}
.notify:focus-within { box-shadow: inset 0 0 0 1px rgba(224, 180, 82, .85), 0 0 0 4px rgba(224, 180, 82, .16), 0 18px 50px rgba(0, 0, 0, .55); }
.notify.is-invalid { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 4px rgba(255, 155, 138, .14), 0 18px 50px rgba(0, 0, 0, .55); }

.notify__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 20px; }
.notify__icon { width: 22px; height: 22px; flex: none; color: var(--ink-mute); }
.notify input {
  flex: 1; min-width: 0; height: 54px; border: 0; outline: 0; background: transparent;
  color: var(--ink); caret-color: var(--gold);
  font: 500 16px/1.2 var(--sans); letter-spacing: .01em; /* 16px stops iOS zoom-on-focus */
}
.notify input::placeholder { color: var(--ink-mute); opacity: 1; }
.notify input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s; }

.notify__button {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--sans); letter-spacing: .02em; color: #241703;
  background: linear-gradient(180deg, #f7dc8e 0%, #e3b654 52%, #c8963a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(90, 60, 10, .35), 0 6px 18px rgba(224, 180, 82, .22);
  transition: transform .2s var(--ease), box-shadow .25s ease, filter .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.notify__arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.notify__button:hover { filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(90, 60, 10, .35), 0 8px 26px rgba(224, 180, 82, .36); }
.notify__button:hover .notify__arrow { transform: translateX(3px); }
.notify__button:active { transform: translateY(1px); }
.notify__button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.notify__button:disabled { cursor: progress; filter: saturate(.75) brightness(.95); }
.notify__spinner { display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(36, 23, 3, .25); border-top-color: #241703; animation: spin .8s linear infinite; }
.notify.is-busy .notify__arrow { display: none; }
.notify.is-busy .notify__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 22px; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--danger); }
.form-status:empty { margin-top: 0; min-height: 0; }

.privacy { margin-top: 14px; font-size: 13px; color: var(--ink-mute); letter-spacing: .01em; }

/* success state */
.signup__done {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 26px 24px 24px; border-radius: 22px; outline: none;
  background: linear-gradient(180deg, rgba(30, 24, 14, .85), rgba(14, 11, 8, .9));
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, .5), 0 0 60px rgba(224, 180, 82, .08);
  animation: settle .6s var(--ease) both;
}
.signup__tick { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 50%;
  color: #241703; background: linear-gradient(180deg, #f7dc8e, #c8963a);
  box-shadow: 0 0 0 6px rgba(224, 180, 82, .12), 0 6px 18px rgba(224, 180, 82, .3); }
.signup__tick svg { width: 24px; height: 24px; }
.signup__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick .5s .2s var(--ease) forwards; }
.signup__done-title, .signup__done-text { text-wrap: balance; }
.signup__done-title { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--gold-hi); }
.signup__done-text { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.signup__form-wrap.is-leaving { animation: leave .28s ease forwards; }
@keyframes settle { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes leave { to { opacity: 0; transform: translateY(-6px); } }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------ footer */
.foot { margin-top: 44px; font-size: 12px; letter-spacing: .08em; color: #8a816f; }
.noscript { position: relative; z-index: 2; margin: 0 auto 24px; text-align: center; color: var(--ink-soft); }

/* ------------------------------------------------------------ responsive */
/* Large/wide desktops: the scene spreads out; on big tall screens the content scales up too. */
@media (min-width: 1600px) {
  .scene__coins { width: 460px; left: 4vw; }
  .scene__path { width: 600px; right: 3vw; }
}
@media (min-width: 1800px) and (min-height: 1050px) {
  .page { max-width: 900px; }
  .brand__emblem { width: 196px; }
  .wordmark { font-size: 84px; }
  .tagline { font-size: 14px; margin-top: 18px; }
  .rule { margin: 32px 0 36px; }
  .rule span { width: 110px; }
  .headline { font-size: 72px; }
  .watch { font-size: 18px; margin-top: 28px; }
  .signup { max-width: 700px; margin-top: 42px; }
  .signup__lede { font-size: 19px; }
  .notify input { height: 64px; font-size: 18px; }
  .notify__button { min-height: 64px; padding: 0 36px; font-size: 18px; }
  .privacy { font-size: 15px; margin-top: 18px; }
  .foot { font-size: 13px; margin-top: 56px; }
}

/* Short laptop screens (e.g. 1366×768, 1440×800): tighten vertical rhythm. */
@media (min-width: 821px) and (max-height: 860px) {
  .brand__emblem { width: 128px; }
  .wordmark { font-size: 56px; }
  .rule { margin: 20px 0 22px; }
  .headline { font-size: 50px; }
  .watch { margin-top: 18px; }
  .signup { margin-top: 26px; }
  .foot { margin-top: 32px; }
}

/* Tablets: decoration recedes and shrinks so it stays clear of the text column. */
@media (max-width: 1100px) {
  .scene__coins { width: 22vw; opacity: .7; }
  .scene__path { width: 36vw; opacity: .7; }
}
@media (max-width: 820px) {
  .headline { font-size: 46px; }
  .scene__coins { width: 34vw; bottom: 1vh; opacity: .45; }
  .scene__path { width: 44vw; opacity: .45; }
}

/* Phones */
@media (max-width: 560px) {
  .page { justify-content: flex-start; padding-top: max(36px, env(safe-area-inset-top)); }
  .brand__emblem { width: 112px; }
  .brand__name { margin-top: 12px; }
  .wordmark { font-size: 50px; }
  .tagline { margin-top: 12px; font-size: 10.5px; letter-spacing: .26em; padding-left: .26em; }
  .rule { margin: 22px 0 24px; }
  .rule span { width: 56px; }
  .headline { font-size: clamp(31px, 9.2vw, 38px); line-height: 1.14; }
  .watch { margin-top: 18px; font-size: 13px; letter-spacing: .34em; padding-left: .34em; }
  .signup { margin-top: 26px; }
  .signup__lede { font-size: 15px; }
  .notify { flex-direction: column; gap: 8px; padding: 8px; border-radius: 20px; }
  .notify__field { padding: 0 12px 0 14px; }
  .notify input { height: 52px; }
  .notify__button { width: 100%; min-height: 54px; border-radius: 14px; font-size: 17px; }
  .signup__done { padding: 22px 18px; }
  .signup__done-title { font-size: 24px; }
  .privacy { font-size: 12.5px; }
  .foot { margin-top: 32px; }
  .scene__glow { top: 0; }
  .scene__dawn { display: none; }
  .scene__path { display: none; }
  .scene__coins, .scene__motes { display: none; } /* no free space on phones — keep decoration off the text */
}
/* Short phones (iPhone SE / small Androids): keep the form and privacy note above the fold. */
@media (max-width: 560px) and (max-height: 740px) {
  .page { padding-top: max(22px, env(safe-area-inset-top)); }
  .brand__emblem { width: 84px; }
  .brand__name { margin-top: 8px; }
  .wordmark { font-size: 42px; }
  .tagline { margin-top: 10px; }
  .rule { margin: 16px 0 16px; }
  .headline { font-size: clamp(28px, 8.4vw, 32px); }
  .watch { margin-top: 12px; }
  .signup { margin-top: 18px; }
  .signup__lede { font-size: 14px; line-height: 1.55; }
  .notify { margin-top: 14px; }
  .privacy { margin-top: 10px; }
  .foot { margin-top: 22px; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 44px; }
  .tagline { letter-spacing: .2em; padding-left: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .signup__tick path { stroke-dashoffset: 0; }
}

@media (forced-colors: active) {
  .wordmark__gold, .wordmark__num, .headline__gold { color: CanvasText; background: none; }
  .notify { border: 1px solid CanvasText; }
}
