/* ── Reset and base ───────────────────────────── */

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

:root {
  --max-w: 1100px;
  --gap: 24px;
  --text: #1a1a1a;
  --text-2: #555;
  --bg: #fff;
  --bg-alt: #f5f5f3;
  --border: #e0e0de;
  --accent: #b5451b;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { display: block; max-width: 100%; height: auto; }

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

/* ── Header ───────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-header nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms;
}

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

/* ── Buttons ──────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 150ms, box-shadow 150ms;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  text-decoration: none;
}

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

.btn-ghost:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gap) 40px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-text > p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 520px;
}

/* ── Video ────────────────────────────────────── */

.video-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap) 40px;
}

.video-section video {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #111;
}

/* ── Sections ─────────────────────────────────── */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--gap);
}

.section-alt {
  max-width: none;
  background: var(--bg-alt);
}

.section-alt > h2,
.section-alt > .section-desc,
.section-alt > .steps,
.section-alt > .build-photos,
.section-alt > .safety-items {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 8px;
  color: var(--text-2);
  max-width: 600px;
}

/* ── Card grid (what's included) ──────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 36px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .card-label {
  margin: 20px 20px 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card h3 {
  margin: 6px 20px 0;
  font-size: 1.1rem;
}

.card > p {
  margin: 8px 20px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
}

.card > p a { font-weight: 500; }

.card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top: 1px solid var(--border);
}

/* ── Steps ────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 36px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ── Build photos ─────────────────────────────── */

.build-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.build-photos figure { margin: 0; }

.build-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.build-photos figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: center;
}

/* ── Features list (software) ─────────────────── */

.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 36px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ── Safety ───────────────────────────────────── */

.safety-callout {
  padding: 72px var(--gap);
}

.safety-items {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.safety-items > div {
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 16px 20px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.safety-items strong { color: var(--text); }

/* ── Parts table ──────────────────────────────── */

.parts-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}

.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.parts-table th,
.parts-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.parts-table th {
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.parts-table td a { font-weight: 500; }

.parts-table tbody tr:hover { background: var(--bg-alt); }

/* ── CTA ──────────────────────────────────────── */

.cta {
  text-align: center;
  padding: 80px var(--gap);
}

.cta h2 { font-size: 2rem; }

.cta p {
  margin: 8px auto 0;
  color: var(--text-2);
}

.cta .hero-actions { justify-content: center; }

/* ── Footer ───────────────────────────────────── */

.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gap) 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--text-2);
  font-weight: 500;
}

.site-footer a:hover { color: var(--text); }

/* ── Reveal animation ─────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }

  .hero-image img { max-height: 400px; }

  .card-grid,
  .steps,
  .safety-items {
    grid-template-columns: 1fr;
  }

  .features-list { grid-template-columns: 1fr 1fr; }
  .build-photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-header nav { display: none; }

  .hero-text h1 { font-size: 1.75rem; }

  .features-list,
  .build-photos {
    grid-template-columns: 1fr;
  }

  .section { padding: 48px var(--gap); }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
