:root {
  --bg: #fafaf7;
  --bg-alt: #ffffff;
  --bg-raised: #ffffff;
  --text: #1c1c1a;
  --text-muted: #5a5a55;
  --accent: #16a34a;
  --accent-dark: #0f7a37;
  --accent-soft: #e7f6ec;
  --warm: #f59e0b;
  --warm-dark: #b3720a;
  --border: #e5e3da;
  --shadow: 0 1px 2px rgba(20, 20, 10, 0.04), 0 8px 24px -12px rgba(20, 20, 10, 0.12);
  --shadow-hover: 0 4px 10px rgba(20, 20, 10, 0.06), 0 20px 40px -16px rgba(20, 20, 10, 0.18);
  --max-width: 760px;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101210;
    --bg-alt: #181a17;
    --bg-raised: #1f2220;
    --text: #f2f1ea;
    --text-muted: #a9a89e;
    --accent: #3ecb77;
    --accent-dark: #7ee2a5;
    --accent-soft: rgba(62, 203, 119, 0.12);
    --warm: #fbbf24;
    --warm-dark: #ffd873;
    --border: #2a2d28;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.35), 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-alt) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px -8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.logo .logo-mark {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.1);
}

nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  margin-left: 22px;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  position: relative;
}

h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-top: 0;
  max-width: 34ch;
}

.tagline .cycle {
  color: var(--accent-dark);
  font-weight: 700;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.badge .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 20px;
  isolation: isolate;
}

.hero-blobs {
  position: absolute;
  inset: -80px -40px auto -40px;
  height: 520px;
  z-index: -1;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}

.blob-a {
  width: 320px;
  height: 320px;
  top: -60px;
  left: -60px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.blob-b {
  width: 260px;
  height: 260px;
  top: 60px;
  right: -60px;
  background: color-mix(in srgb, var(--warm) 55%, transparent);
  animation-delay: -6s;
}

.blob-c {
  width: 200px;
  height: 200px;
  top: 220px;
  left: 40%;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -22px) scale(1.06); }
  66% { transform: translate(-14px, 14px) scale(0.96); }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  margin: 8px 0 4px;
}

.hero-cart {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--warm) 22%, var(--accent-soft)));
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.15));
}

.hero-cart svg {
  width: 52px;
  height: 52px;
  color: var(--accent-dark);
  display: block;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.hero-chip {
  position: absolute;
  font-size: 1.6rem;
  animation: orbit 6s ease-in-out infinite;
}

.hero-chip.c1 { top: 6px; left: calc(50% - 90px); animation-delay: 0s; }
.hero-chip.c2 { top: 20px; left: calc(50% + 60px); animation-delay: -2s; }
.hero-chip.c3 { top: 90px; left: calc(50% - 60px); animation-delay: -4s; }

@keyframes orbit {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob, .hero-cart, .hero-chip, .badge .dot {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Sections ---------- */

.section-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 3.6rem 0 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 2rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}

.step {
  position: relative;
  text-align: center;
  padding: 30px 18px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.step-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--warm) 18%, var(--accent-soft)));
  transition: transform 0.25s ease;
}

.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-dark);
  display: block;
}

.step:hover .step-icon {
  transform: scale(1.08) rotate(-4deg);
}

.step h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.step p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Features ---------- */

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.features li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.features li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--warm) 45%, var(--border));
}

.features li strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-dark);
  display: block;
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s ease;
}

.faq summary:hover {
  color: var(--accent-dark);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary .faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.faq summary .faq-icon::before,
.faq summary .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq summary .faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq summary .faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq details[open] summary .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.faq .faq-body {
  overflow: hidden;
}

.faq .faq-body p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Tech strip ---------- */

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.tech-chip {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- CTA ---------- */

.cta {
  margin-top: 3.2rem;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.cta a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
  margin: 0 8px;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-dark);
}

/* ---------- Legal pages ---------- */

.legal p {
  color: var(--text);
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -8px;
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  color: var(--text);
}

code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 20px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  nav a {
    margin-left: 0;
  }

  main {
    padding: 0 18px 60px;
  }

  .hero {
    padding: 40px 0 10px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .tagline {
    font-size: 1.02rem;
    max-width: none;
  }

  .section-title {
    font-size: 1.3rem;
    margin-top: 2.6rem;
  }

  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
