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

:root {
  color-scheme: light;
  --bg: #f3efe8;
  --bg-2: #e8e1d4;
  --ink: #1b1b1b;
  --muted: #5c5a55;
  --accent: #ff7a1a;
  --accent-2: #0f6b6b;
  --card: #fdfbf7;
  --border: rgba(27, 27, 27, 0.12);
  --shadow: 0 24px 60px rgba(27, 27, 27, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at top left, #fff7ed 0%, var(--bg) 45%, var(--bg-2) 100%);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: fixed;
  width: 520px;
  height: 520px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.28), rgba(255, 122, 26, 0));
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  background: rgba(243, 239, 232, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 27, 27, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: "Fraunces", serif;
}

.logo-text {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  position: relative;
  z-index: 1;
  padding: 48px 64px 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  min-height: 70vh;
}

.hero-copy h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 16px;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.secondary-btn {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(27, 27, 27, 0.3);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.hero-stats div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 27, 27, 0.08);
}

.hero-stats strong {
  font-size: 1.4rem;
  display: block;
}

.hero-panel {
  background: var(--card);
  border-radius: 26px;
  border: 1px solid rgba(27, 27, 27, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.85rem;
  background: var(--ink);
  color: #fff;
}

.panel-body {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.15);
  font-weight: 600;
  font-size: 0.85rem;
  width: fit-content;
}

pre {
  background: #111;
  color: #fef6e9;
  padding: 18px;
  border-radius: 16px;
  font-size: 0.85rem;
  overflow-x: auto;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  margin-top: 120px;
}

.section-title h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 20px;
}

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

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

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

.card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(27, 27, 27, 0.08);
  box-shadow: 0 12px 24px rgba(27, 27, 27, 0.08);
}

.workflow {
  background: rgba(255, 255, 255, 0.6);
  padding: 56px;
  border-radius: 32px;
}

.steps {
  display: grid;
  gap: 28px;
  list-style: none;
  margin-top: 32px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}

.metrics .metric {
  background: var(--card);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(27, 27, 27, 0.08);
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 27, 27, 0.12);
  margin: 18px 0 10px;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

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

.terminal {
  background: #151515;
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5656;
}

.terminal-bar span:nth-child(2) {
  background: #ffb347;
}

.terminal-bar span:nth-child(3) {
  background: #5ad67d;
}

.terminal-bar strong {
  margin-left: auto;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.docs-copy ul {
  list-style: none;
  margin: 18px 0 24px;
}

.docs-copy li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(27, 27, 27, 0.2);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 40px 64px 80px;
  border-top: 1px solid rgba(27, 27, 27, 0.1);
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.stagger {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible .stagger {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 32px 28px 100px;
  }

  .workflow {
    padding: 32px;
  }
}

@media (max-width: 600px) {
  .site-header {
    position: static;
  }

  .hero-panel {
    order: -1;
  }

  .site-footer {
    padding: 32px 28px 64px;
  }
}
