:root {
  --bg: #f5f0e8;
  --bg-alt: #ece6d8;
  --fg: #1c1917;
  --fg-muted: #57534e;
  --accent: #c9a84c;
  --accent-dark: #a8863a;
  --surface: #ffffff;
  --border: #d4c9b8;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-dark);
}
.hero-body {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
}
.hero-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

/* ── DEVICE MOCKUP ── */
.hero-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.device-locker {
  background: var(--fg);
  border-radius: 8px;
  padding: 1.5rem;
  width: 280px;
  box-shadow: 0 20px 60px rgba(28,25,23,0.25);
}
.locker-doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.door {
  background: var(--bg-alt);
  height: 50px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.08);
}
.door-tall { height: 70px; }
.door-wide { grid-column: span 2; }
.locker-base {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 8px;
}
.locker-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
}
.locker-indicator.on { background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.locker-indicator.alert { background: #f97316; box-shadow: 0 0 6px #f97316; }
.device-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.label-status {
  background: #4ade80;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ── STATS ── */
.stats {
  background: var(--fg);
  padding: 3rem 2rem;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.stat {
  padding: 2rem 2.5rem;
  background: var(--fg);
}
.stat-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ── SECTION COMMONS ── */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 2rem;
}

/* ── SOLUTION ── */
.solution {
  padding: 5rem 2rem;
  background: var(--bg);
}
.solution-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.solution-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
}
.pillar-icon {
  margin-bottom: 1.25rem;
}
.pillar h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.pillar p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── HARDWARE ── */
.hardware {
  padding: 5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hardware-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.hardware-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-top: -0.5rem;
}
.config-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.config-item:last-child { border-bottom: none; }
.config-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
}
.config-specs {
  font-size: 0.8rem;
  color: var(--fg-muted);
  background: var(--bg);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 5rem 2rem;
  background: var(--fg);
  color: #fff;
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 1.5rem;
}
.manifesto-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ── CLOSING ── */
.closing {
  padding: 5rem 2rem;
  background: var(--bg);
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
}
.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.closing-body {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 600px;
}

/* ── FOOTER ── */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
}
.footer-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-headline { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-pillars { grid-template-columns: 1fr; }
  .hardware-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .solution, .hardware, .manifesto, .closing { padding: 3rem 1.25rem; }
  .device-locker { width: 220px; }
}