:root {
  --bg: #0a0d14;
  --bg-soft: #11151f;
  --card: #131822;
  --border: #232a37;
  --fg: #ededed;
  --muted: #8a909c;
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.14);
  --radius: 16px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Amber bloom behind the hero, echoing the up-arrow accent in the mark. */
.glow {
  position: fixed;
  top: -28dvh;
  left: 50%;
  width: min(900px, 120dvw);
  height: 70dvh;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    var(--accent-soft) 0%,
    rgba(245, 165, 36, 0.05) 38%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(3rem, 10dvh, 8rem) 1.5rem 4rem;
}

/* Hero */
.hero {
  text-align: center;
}

.mark {
  /* Block + auto margins so the logo sits on its own centered line; otherwise the inline-block eyebrow
     pill shares the logo's line and floats to its lower-right instead of centering below it. */
  display: block;
  margin: 0 auto 1.75rem;
  border-radius: 22%;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  font-weight: 500;
  color: var(--fg);
}

.lede {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a1206;
}

.btn-primary:hover {
  background: #ffb733;
}

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: #313a4a;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: clamp(3.5rem, 10dvh, 6rem);
}

.feature {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* A lone last card (odd count) spans both columns so the 2-up grid stays balanced. */
.feature:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.foot {
  margin-top: clamp(3rem, 8dvh, 5rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot p {
  margin: 0;
}

.copyright {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.6s ease both;
  }
  .hero .eyebrow {
    animation-delay: 0.05s;
  }
  .hero .wordmark {
    animation-delay: 0.1s;
  }
  .hero .tagline {
    animation-delay: 0.16s;
  }
  .hero .lede {
    animation-delay: 0.22s;
  }
  .hero .actions {
    animation-delay: 0.28s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
