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

:root {
  --bg: #f8f2e8;
  --ink: #1f1c16;
  --muted: #5d5243;
  --accent: #e07a5f;
  --accent-2: #2a9d8f;
  --accent-3: #3d405b;
  --card: #fffdf8;
  --border: #e6d7c2;
  --shadow: 0 18px 40px rgba(31, 28, 22, 0.12);
  --shadow-soft: 0 12px 24px rgba(31, 28, 22, 0.08);
  --radius: 20px;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8f2e8 0%, #f0f7f4 55%, #fdf6ef 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

main,
.site-header,
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
  pointer-events: none;
}

.orb--one {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #f4a261, transparent 60%);
}

.orb--two {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, #2a9d8f, transparent 60%);
  animation-delay: -4s;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  position: sticky;
  top: 0;
  background: rgba(248, 242, 232, 0.86);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

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

.button--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button--solid:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button--ghost {
  background: transparent;
  border-color: var(--accent-3);
  color: var(--accent-3);
}

.button--ghost:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 96px 0 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent-3);
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  margin: 0 0 18px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meta-value {
  font-weight: 600;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.panel-title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.panel-body {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent-3);
  margin: 0 0 12px;
  font-weight: 600;
}

h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  margin: 0 0 12px;
}

.grid {
  display: grid;
  gap: 20px;
}

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

.card,
.mode-card,
.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  animation: rise 0.8s ease both;
  animation-delay: calc(var(--stagger, 0) * 0.08s);
}

.card h3,
.mode-card h3,
.doc-card h3 {
  margin: 0 0 10px;
}

.card p,
.mode-card p,
.doc-card p {
  margin: 0;
  color: var(--muted);
}

.mode-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.mode-title {
  font-weight: 700;
  margin: 0 0 10px;
}

.mode-tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 157, 143, 0.15);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 600;
}

.downloads {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  padding-left: 32px;
  padding-right: 32px;
}

.release-status {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.download-head h3 {
  margin: 0 0 6px;
}

.download-head p {
  margin: 0 0 18px;
  color: var(--muted);
}

.download-cards {
  display: grid;
  gap: 12px;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.download-title {
  font-weight: 600;
}

.download-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent-3);
}

.download-footer {
  margin-top: 24px;
}

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

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(224, 122, 95, 0.18);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(244, 162, 97, 0.15), rgba(42, 157, 143, 0.12));
  border: 1px solid rgba(224, 122, 95, 0.2);
}

.callout p {
  margin: 0;
  color: var(--muted);
}

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

.doc-title {
  font-weight: 700;
  margin: 0 0 8px;
}

.doc-body {
  color: var(--muted);
  margin: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-3);
  font-weight: 600;
}

.text-link::after {
  content: "->";
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.site-footer {
  padding: 48px 24px 64px;
  text-align: center;
  color: var(--muted);
}

.site-footer .text-link {
  margin-top: 12px;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(18px);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }

  .downloads {
    padding-left: 24px;
    padding-right: 24px;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
