@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --ink: #1b1c1f;
  --muted: #4e5563;
  --accent: #0b7a75;
  --accent-2: #e07a2e;
  --stroke: rgba(27, 28, 31, 0.12);
  --shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(224, 122, 46, 0.15), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(11, 122, 117, 0.16), transparent 45%),
    var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
}

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

main {
  padding: 2.5rem clamp(1.5rem, 4vw, 5rem) 4rem;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

.glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(224, 122, 46, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

.brand img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--accent), #1f9b90);
  color: white;
  box-shadow: 0 20px 40px rgba(11, 122, 117, 0.25);
}

.button.ghost {
  border-color: var(--stroke);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.15);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid rgba(11, 122, 117, 0.18);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.code-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2c94c;
}

.code-header span:first-child {
  background: #eb5757;
}

.code-header span:nth-child(2) {
  background: #27ae60;
}

pre {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #0f172a;
  white-space: pre-wrap;
}

.section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s ease forwards;
}

.section-title {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card.code {
  background: #0b1020;
  color: #f8fafc;
}

.card.code pre {
  color: #f8fafc;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--stroke);
}

.timeline-item span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

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

.text-link {
  font-weight: 600;
  color: var(--accent);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(130deg, rgba(11, 122, 117, 0.12), rgba(224, 122, 46, 0.12));
  border-radius: 28px;
  padding: 2.5rem;
  border: 1px solid var(--stroke);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1.5rem, 4vw, 5rem) 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
  }

  .hero-meta {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    gap: 0.8rem;
  }
}
