:root {
  --ink: #0e1015;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --text-muted: #e4e4e4;
  --gold: #2a706b;
  --gold-dim: #1d524e;
  --teal: #35a695;
  --violet: #8b7cf6;
  --border: rgba(255, 255, 255, 0.1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

a {
  color: inherit;
}

/* Subtle grain overlay for depth */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glass surface used across cards */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(14, 16, 21, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #16423f);
  color: #fff;
  overflow: hidden;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(231, 181, 75, 0.28);
}

.btn-magnetic {
  transition: transform 0.15s ease-out, box-shadow 0.2s ease;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn:focus-visible,
.scroll-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hero */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(231, 181, 75, 0.22), transparent 45%),
    radial-gradient(circle at 80% 15%, rgba(139, 124, 246, 0.18), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(53, 166, 149, 0.16), transparent 45%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}

.mesh-small {
  inset: -40%;
  opacity: 0.7;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -3%, 0) scale(1.06);
  }
}

.spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(./assets/banner.webp);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-inner {
  max-width: 640px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(53, 166, 149, 0.18);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 20px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--gold) 10%, #49aaa4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 auto 40px;
  max-width: 460px;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 18px;
  margin-bottom: 40px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}

.countdown-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.countdown-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.countdown-sep {
  color: var(--text-muted);
  font-weight: 600;
  transform: translateY(-6px);
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Marquee */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
  background: var(--surface);
}

.marquee-track {
  display: inline-flex;
  gap: 14px;
  white-space: nowrap;
  animation: scroll-left 26s linear infinite;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.marquee .dot {
  color: var(--gold);
}

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

/* Stats */

.stats {
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: 18px;
}

.stat-value {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat-suffix {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Bento benefits */

.benefits {
  padding: 8px 0 72px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
}

.bento-item {
  padding: 30px 28px;
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-item:hover {
  transform: translateY(-3px);
  border-color: #2a706b46;
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-large h3 {
  font-size: 1.35rem;
}

.bento-large p {
  font-size: 1rem;
}

.benefit-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(231, 181, 75, 0.12);
  color: var(--gold);
  margin-bottom: 20px;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.bento-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.bento-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Banner */

.banner {
  padding: 12px 0 100px;
}

.banner-inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  isolation: isolate;
}

.banner-inner h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.banner-inner p {
  color: var(--text-muted);
  margin: 0 0 30px;
  font-size: 1rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-inner a:hover {
  color: var(--gold);
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 40;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Reveal-on-scroll */

.stat,
.bento-item {
  opacity: 0;
  transform: translateY(10px);
}

.is-visible {
  animation: rise 0.5s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 18px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-large {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 72px 0 56px;
  }

  .countdown {
    gap: 8px;
    padding: 12px 14px;
  }

  .countdown-unit {
    min-width: 36px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
  }

  .banner-inner {
    padding: 44px 24px;
  }
}
