/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #c45c26;          /* terracotta / emergency warm */
  --accent-dark: #9a4519;
  --solar: #2d6a4f;           /* green for solar */
  --cardboard: #d4a574;
  --border: #e0d9cc;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--accent); }

.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--accent-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #f0e6dc;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn.primary {
  background: var(--accent);
  color: white;
}
.btn.primary:hover { background: var(--accent-dark); }

.btn.secondary {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn.large { padding: 16px 28px; font-size: 1.05rem; }

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Radio mockup */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radio-mockup {
  width: 280px;
  perspective: 800px;
}

.radio-front, .radio-back {
  background: var(--cardboard);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.radio-front {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border: 2px solid #c08a5a;
}

.speaker-grill {
  width: 120px;
  height: 80px;
  background: repeating-linear-gradient(
    0deg,
    #8b6914 0px,
    #8b6914 3px,
    transparent 3px,
    transparent 8px
  );
  border-radius: 8px;
  opacity: 0.5;
}

.controls {
  display: flex;
  gap: 20px;
}

.knob {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5c4033;
  border: 3px solid #3d2b1f;
}

.brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #5c4033;
}

.radio-back {
  margin-top: 12px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2d2d2d;
  border: 2px solid #1a1a1a;
}

.solar-panel {
  width: 160px;
  height: 50px;
  background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 50%, #1a3a2a 100%);
  border-radius: 4px;
  border: 1px solid #0d2818;
  position: relative;
}

.solar-panel::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.08) 18px,
    rgba(255,255,255,0.08) 19px
  );
}

.radio-back p {
  font-size: 0.7rem;
  color: #aaa;
}

.mockup-caption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}

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

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* Why cards */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.why-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.why-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

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

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  text-align: center;
  padding: 20px;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  margin: 0 auto 14px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* Frequency table */
.freq-table-wrap {
  overflow-x: auto;
  margin: 32px 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.freq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.freq-table th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.freq-table tr:last-child td { border-bottom: none; }
.freq-table tr:hover td { background: #faf8f4; }

.freq-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Kit section */
.kit-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.kit-content ul {
  margin: 16px 0 24px;
  padding-left: 20px;
}

.kit-content li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.kit-highlight {
  font-weight: 600;
  color: var(--solar);
  font-size: 1.05rem;
}

.kit-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.kit-box h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.kit-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.kit-list li:last-child { border-bottom: none; }

/* BNPB */
.bnpb {
  background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
  color: white;
  text-align: center;
}

.bnpb h2 { color: white; }
.bnpb p {
  max-width: 640px;
  margin: 12px auto 0;
  opacity: 0.92;
}

/* CTA */
.cta {
  text-align: center;
}

.cta p {
  max-width: 520px;
  margin: 12px auto 28px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer strong {
  color: white;
  font-family: var(--font-display);
  display: block;
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .kit-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 56px; }
  .section { padding: 48px 0; }
}
