:root {
  --bg0: #0f1412;
  --bg1: #1a2420;
  --ink: #e8f0ea;
  --muted: #9aada3;
  --accent: #6fbf8a;
  --accent-ink: #0a120e;
  --line: rgba(232, 240, 234, 0.14);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -10%, #2a4036 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 20%, #1c2e3a 0%, transparent 50%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.9s ease both;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: fade 1.1s ease 0.1s both;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  max-width: 18ch;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  border-color: rgba(232, 240, 234, 0.35);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .ctas {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
