:root {
  --ink: #102018;
  --muted: #3d5548;
  --paper: #f3f7f2;
  --leaf: #1f7a4c;
  --leaf-deep: #145c38;
  --glow: rgba(47, 168, 104, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM 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: var(--paper);
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, var(--glow), transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(20, 92, 56, 0.12), transparent 55%),
    linear-gradient(160deg, #eef5ee 0%, #f7faf6 42%, #e6f0e8 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23145c38' stroke-opacity='0.06' d='M0 60h120M60 0v120'/%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 52rem;
  animation: rise 700ms ease-out both;
}

.hero.narrow {
  max-width: 40rem;
}

.brand {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.55rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--leaf);
  color: #fff;
}

.btn.primary:hover {
  background: var(--leaf-deep);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid rgba(16, 32, 24, 0.18);
  background: rgba(255, 255, 255, 0.45);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.8);
}

.steps {
  margin: 1.25rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.steps code {
  font-size: 0.9em;
  padding: 0.12rem 0.35rem;
  border-radius: 0.3rem;
  background: rgba(16, 32, 24, 0.06);
  color: var(--ink);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero,
  .btn {
    animation: none;
    transition: none;
  }
}
