/* ============================================================
   Topi-Master — Coming Soon
   Palette: charcoal #0e0e10 · gold #d4af37 · off-white #f5f1e8
   ============================================================ */

:root {
  --bg: #cccccc;
  --bg-raise: #f2f2f3;
  --gold: #ec5104;
  --gold-soft: #6200a3;
  --ink: #ec5104;
  --muted: #a8a29a;
  --line: rgba(212, 175, 55, 0.25);
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.1; }

p { margin: 0; }

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--gold); color: #0e0e10;
  padding: 0.6rem 1rem; border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600; text-decoration: none; z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============ Navbar ============ */
.nav {
  /*position: sticky; top: 0; z-index: 50; */
  position: relative;
 /* display: flex; align-items: center; justify-content: space-between; */
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__brand img { display: block; width: 100%; }

.nav__social { display: none; gap: 0.35rem; }

.nav__social a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  color: var(--muted);
  border-radius: 50%;
  transition: color 0.2s, transform 0.2s;
}
.nav__social a:hover { color: var(--gold); transform: translateY(-2px); }
.nav__social svg { width: 1.25rem; height: 1.25rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vh, 6.5rem) 1.25rem clamp(3rem, 8vh, 5rem);
  text-align: center;
  background:
    radial-gradient(60rem 30rem at 50% -12rem, rgba(212, 175, 55, 0.12), transparent 60%),
    var(--bg);
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 46rem; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 11vw, 5.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero__title-accent {
  color: var(--gold);
  text-shadow: 0 0 42px rgba(212, 175, 55, 0.35);
}

.hero__hinglish {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: var(--gold-soft);
}

.hero__sub {
  color: var(--muted);
  max-width: 34rem;
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
}

/* Floating cap silhouettes */
.hero__float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.hero__cap {
  position: absolute;
  fill: none; stroke: var(--gold); stroke-width: 2;
  opacity: 0.14;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__cap--1 { width: 11rem; top: 8%; left: -2.5rem; }
.hero__cap--2 { width: 13rem; bottom: 6%; right: -3rem; animation-duration: 18s; animation-delay: -6s; }
.hero__cap--3 { width: 8rem; top: 18%; right: 8%; animation-duration: 11s; animation-delay: -3s; }

@keyframes drift {
  from { transform: translateY(-14px) rotate(-4deg); }
  to   { transform: translateY(16px)  rotate(5deg); }
}

/* ============ Waitlist form ============ */
.waitlist-form { width: 100%; max-width: 30rem; display: none;}

.waitlist-form__row {
  display: flex; flex-direction: column; gap: 0.6rem; display: none;
}

.waitlist-form input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  font: inherit;
}
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }
.waitlist-form input[aria-invalid="true"] { border-color: #e05c5c; }

.btn {
  appearance: none; cursor: pointer;
  padding: 0.95rem 1.6rem;
  background: var(--gold); color: #0e0e10;
  border: 1px solid var(--gold); border-radius: 0.65rem;
  font: inherit; font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(212, 175, 55, 0.25); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; box-shadow: none; }

.waitlist-form__msg { min-height: 1.4em; margin-top: 0.55rem; font-size: 0.92rem; }
.waitlist-form__msg.is-error { color: #e88; }
.waitlist-form__msg.is-success { color: var(--gold-soft); }

@media (min-width: 34rem) {
  .waitlist-form__row { flex-direction: row; }
  .waitlist-form input { flex: 1; }
}

/* ============ Countdown ============ */
.countdown { margin-top: 0.5rem; display: none;}

.countdown__label {
  color: var(--muted);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.countdown__grid {
  display: flex; justify-content: center; gap: 0.7rem;
}

.countdown__unit {
  min-width: 4.3rem;
  padding: 0.7rem 0.4rem 0.6rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.countdown__cap {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ============ Sections ============ */
.section {
  padding: clamp(3rem, 8vh, 5rem) 1.25rem;
  max-width: 62rem; margin: 0 auto;
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section__sub { color: var(--muted); margin-top: 0.7rem; }

/* ============ Category cards ============ */
.categories__grid {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  text-align: center;
}

.cat-card {
  padding: 1.8rem 1.3rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  transition: transform 0.2s, border-color 0.2s;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.cat-card__icon {
  width: 3.4rem; height: 3.4rem;
  fill: none; stroke: var(--gold); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

.cat-card h3 {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 400; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.cat-card p { margin-top: 0.45rem; color: var(--muted); font-size: 0.93rem; }

@media (min-width: 36rem) { .categories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 54rem) { .categories__grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ Story ============ */
.story__text {
  max-width: 40rem; margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
}

/* ============ Waitlist section ============ */
.waitlist .waitlist-form { margin: 1.6rem auto 0; }

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  background: var(--bg-raise);
}

.marquee__track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Footer ============ */
.footer {
  padding: 2.5rem 1.25rem 6rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}

.footer__logo { width: 120px; opacity: 0.9; }

.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }

.footer__links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem;
}
.footer__links a:hover { color: var(--gold); }

.footer__note { color: var(--muted); font-size: 0.85rem; }

/* ============ Consent banner ============ */
.consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 34rem; margin: 0 auto;
  padding: 1rem 1.2rem;
  background: var(--bg-raise);
  border: 1px solid var(--gold);
  border-radius: 0.8rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
}

.consent[hidden] { display: none; }

.consent p { color: var(--muted); }

.consent__actions {
  display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.8rem;
}
.consent__actions .btn { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__cap, .marquee__track { animation: none; }
  * { transition: none !important; }
}
