:root {
  --green: #028A5B;
  --green-deep: #0B3B26;
  --gold: #F2C14E;
  --gold-soft: rgba(242, 193, 78, 0.55);
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.72);
  --serif-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gold-light: #F7D98B;
  --cream: #F6F0DF;
  --gutter: 16px;
  /* Softened foil for larger gold surfaces (buttons, ticker) */
  --gold-foil: linear-gradient(rgba(255, 210, 90, 0.45), rgba(255, 210, 90, 0.45)), url("assets/gold.jpg") center / 150px auto, #F2C14E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='linear' slope='0' intercept='1'/></feComponentTransfer></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Gold foil text: texture clipped to glyphs, flat gold as fallback */
.gold-text {
  color: var(--gold);
  background: url("assets/gold.jpg") center / 320px auto, var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating halos */
.halos {
  position: absolute;
  inset: 0;
  height: 900px;
  pointer-events: none;
  overflow: hidden;
}

.halo {
  position: absolute;
  width: 46px;
  height: 16px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  opacity: 0.85;
  animation: drift 7s ease-in-out infinite;
}

.h1 { top: 330px; left: 21%; transform: rotate(-14deg); }
.h2 { top: 220px; right: 18%; transform: rotate(16deg); animation-delay: -2s; }
.h3 { top: 560px; right: 12%; transform: rotate(12deg); animation-delay: -4s; width: 38px; height: 13px; }
.h4 { top: 640px; left: 9%; transform: rotate(-8deg); animation-delay: -5s; width: 30px; height: 11px; opacity: 0.5; }

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(var(--gutter), calc((100vw - 1168px) / 2));
  border-bottom: 1px solid var(--gold-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 36px; width: auto; }

.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.01em;
}

.toplink {
  font-family: var(--serif-caps);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-decoration: none;
}

.toplink:hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px var(--gutter) 44px;
}

.hero-art {
  width: auto;
  height: clamp(300px, 48vh, 470px);
  max-width: 100%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.headline {
  margin: 28px 0 6px;
  font-family: var(--serif-caps);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.05;
}

.subline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 3vw, 34px);
  margin: 30px 0 34px;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(56px, 10vw, 104px);
}

.num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.95;
  font-variant-numeric: lining-nums tabular-nums;
}

.dot {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.5;
}

.label {
  margin-top: 10px;
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.32em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 54px;
  padding: 0 28px;
  border-radius: 8px;
  font-family: var(--serif-caps);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }

.btn-gold {
  border: 0;
  color: var(--green-deep);
  background: var(--gold-foil);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 160, 0.55);
}

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover { background: rgba(242, 193, 78, 0.08); }

/* Ticker tape */
.ticker {
  overflow: hidden;
  background: var(--gold-foil);
  border-block: 1px solid rgba(255, 236, 160, 0.6);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker-track span {
  padding: 14px 18px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  white-space: nowrap;
}

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

/* Sections */
.how,
.waitlist {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px var(--gutter);
  text-align: center;
}

.waitlist { border-top: 1px solid var(--gold-soft); max-width: none; }

.section-title {
  margin: 0 0 28px;
  font-family: var(--serif-caps);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 26px 22px 30px;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
}

.icon {
  width: 92px;
  height: 92px;
}

.card-title {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
}

.card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--white);
}

/* Waitlist form */
.waitlist .subline { margin-top: -14px; }

.join {
  display: flex;
  max-width: 720px;
  margin: 26px auto 0;
  border: 1.5px solid var(--gold);
  border-radius: 9px;
  overflow: hidden;
}

.join input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 20px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--white);
  font: 500 17px var(--sans);
}

.join input::placeholder { color: var(--muted); }
.join:focus-within { box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.35); }

.join .btn {
  min-width: 180px;
  border-radius: 0;
}

.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-msg {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--gold);
}

.form-msg.error { color: #FFD7C2; }

/* Footer */
.footer {
  padding: 34px var(--gutter) 40px;
  border-top: 1px solid var(--gold-soft);
  text-align: center;
}

.footer img { height: 42px; width: auto; }

.footer-links {
  font-family: var(--serif-caps);
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.fine {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 720px) {
  .brand span { font-size: 26px; }
  .brand img { height: 30px; }
  .hero { padding-top: 24px; }
  .hero-art { height: 300px; }
  .actions { flex-direction: column; width: 100%; max-width: 360px; }
  .btn { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .join { flex-direction: column; border-radius: 10px; }
  .join input { flex: none; text-align: center; }
  .join .btn { width: 100%; min-width: 0; }
  .ticker-track span { font-size: 16px; padding: 12px 14px; }
  .h1 { top: 150px; left: 6%; }
  .h2 { top: 90px; right: 8%; }
  .h3, .h4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .halo, .hero-art, .ticker-track { animation: none; }
}
