:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #171717;
  --muted: #6c6a63;
  --accent: #1f6b57;
  --line: rgba(23, 23, 23, 0.1);
  --shadow: 0 20px 60px -28px rgba(23, 23, 23, 0.22);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111311;
    --surface: rgba(23, 25, 23, 0.72);
    --surface-strong: rgba(28, 31, 28, 0.92);
    --ink: #f3f1ea;
    --muted: #a5a093;
    --accent: #9cd3b8;
    --line: rgba(243, 241, 234, 0.11);
    --shadow: 0 24px 70px -32px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #171717;
  --muted: #6c6a63;
  --accent: #1f6b57;
  --line: rgba(23, 23, 23, 0.1);
  --shadow: 0 20px 60px -28px rgba(23, 23, 23, 0.22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111311;
  --surface: rgba(23, 25, 23, 0.72);
  --surface-strong: rgba(28, 31, 28, 0.92);
  --ink: #f3f1ea;
  --muted: #a5a093;
  --accent: #9cd3b8;
  --line: rgba(243, 241, 234, 0.11);
  --shadow: 0 24px 70px -32px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(31, 107, 87, 0.08), transparent 42%),
    var(--bg);
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar,
.hero {
  max-width: 1080px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

:root[data-theme="light"] .theme-toggle-sun,
:root:not([data-theme="dark"]) .theme-toggle-sun {
  background: var(--ink);
  color: var(--bg);
}

:root[data-theme="dark"] .theme-toggle-moon {
  background: var(--ink);
  color: var(--bg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  display: grid;
  place-items: center;
  width: min(100%, 180px);
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 120px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  max-width: 11ch;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: center;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.feature-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  display: grid;
  justify-items: center;
}

.panel-card {
  width: min(100%, 680px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-head p,
.panel-head span,
.countdown-note {
  margin: 0;
}

.panel-head p {
  font-size: 0.95rem;
  color: var(--muted);
}

.panel-head span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.countdown-grid article {
  padding: 22px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  text-align: center;
}

.countdown-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px;
  }

  .topbar {
    margin-bottom: 36px;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .hero {
    gap: 24px;
  }

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