/* Reachy Mini Super Fan — HF Space landing page */

:root {
  --primary: #ff9900;        /* Pollen orange */
  --pitch: #0b3d20;
  --night: #0d1117;
  --panel: #141b24;
  --edge: #26313f;
  --text: #eaf0f6;
  --dim: #93a1b3;
  --us: #2ecc71;
  --gold: #ffd166;
  --them: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--text);
  line-height: 1.6;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 32px;
}

section { padding: 64px 20px; }

/* ------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 153, 0, .14), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 115%, #123822 0%, transparent 55%),
    var(--night);
  padding: 72px 20px 56px;
}
.hero-inner {
  max-width: 1060px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -.01em;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero .emoji { margin-right: 4px; }
.tags { margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--edge); border-radius: 999px;
  padding: 3px 12px;
}
.lead { font-size: 1.08rem; color: var(--text); }
.lead-sub { margin-top: 12px; color: var(--dim); }
.cta-row { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta {
  background: var(--primary); color: #221200; font-weight: 800;
  text-decoration: none; padding: 13px 24px; border-radius: 12px;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 24px rgba(255, 153, 0, .25);
}
.cta:hover { transform: translateY(-2px); }
.cta.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--edge); box-shadow: none;
}

/* hero demo animation ------------------------------------------------ */
.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-video {
  width: min(300px, 70vw); aspect-ratio: 9 / 16; border-radius: 22px; display: block;
  object-fit: cover; background: #0a0f15; border: 1px solid var(--edge);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.03);
}
.hero-video img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.demo-caption { margin-top: 8px; font-size: .72rem; color: var(--dim); text-align: center; max-width: 320px; }

/* -------------------------------------------------------------- how */
.how { background: #0f1520; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.steps {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 22px; }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  color: #221200; font-weight: 900; display: grid; place-items: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .87rem; color: var(--dim); }

/* --------------------------------------------------------- features */
.grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feat {
  background: var(--panel); border: 1px solid var(--edge);
  border-radius: 14px; padding: 20px;
}
.feat span { font-size: 1.6rem; }
.feat h3 { font-size: .98rem; margin: 8px 0 6px; }
.feat p { font-size: .85rem; color: var(--dim); }

/* ---------------------------------------------------------- install */
.install { background: #0f1520; border-top: 1px solid var(--edge); }
.install ol { max-width: 620px; margin: 0 auto; padding-left: 24px; }
.install li { margin-bottom: 14px; }
.install code {
  background: #0a0f15; border: 1px solid var(--edge); border-radius: 6px;
  padding: 2px 8px; font-size: .85em; color: var(--gold);
}
.sim-note { max-width: 620px; margin: 22px auto 0; color: var(--dim); text-align: center; font-size: .9rem; }

/* ----------------------------------------------------------- footer */
footer { padding: 48px 20px 40px; border-top: 1px solid var(--edge); }
.foot-grid {
  max-width: 640px; margin: 0 auto 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: center;
}
footer h4 { color: var(--text); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
footer a { display: block; color: var(--dim); text-decoration: none; font-size: .88rem; padding: 3px 0; }
footer a:hover { color: var(--primary); }
.foot-note { text-align: center; color: var(--dim); font-size: .75rem; }

/* -------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .tags, .cta-row { justify-content: center; }
  .steps { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .steps, .grid { grid-template-columns: 1fr; }
  section { padding: 48px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none !important; }
  .b-calm { opacity: 1; }
}
