/* ============ TOKENS ============ */
:root {
  --ink: #12160F;
  --ink-soft: #55604F;
  --paper: #F4F7F1;
  --surface: #FFFFFF;
  --line: #DDE6D8;
  --civic-green: #2B9B3A;
  --civic-green-deep: #123821;
  --shadow: 0 24px 60px -20px rgba(12, 26, 14, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(12, 26, 14, 0.22);

  --font-display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECF3E9;
    --ink-soft: #A9B7A4;
    --paper: #0B140C;
    --surface: #131F14;
    --line: #263323;
    --civic-green: #4ED164;
    --civic-green-deep: #050B06;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --ink: #ECF3E9;
  --ink-soft: #A9B7A4;
  --paper: #0B140C;
  --surface: #131F14;
  --line: #263323;
  --civic-green: #4ED164;
  --civic-green-deep: #050B06;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
:root[data-theme="light"] {
  --ink: #12160F;
  --ink-soft: #55604F;
  --paper: #F4F7F1;
  --surface: #FFFFFF;
  --line: #DDE6D8;
  --civic-green: #2B9B3A;
  --civic-green-deep: #123821;
  --shadow: 0 24px 60px -20px rgba(12, 26, 14, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(12, 26, 14, 0.22);
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 700px) { .container { padding: 0 2.5rem; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--civic-green);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--civic-green); outline-offset: 3px; }
.btn-primary { background: var(--civic-green); color: #FFFFFF; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--civic-green); color: var(--civic-green); }
.btn-on-dark { background: #FFFFFF; color: var(--civic-green-deep); }
.btn-on-dark:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; color: var(--civic-green); }
.brand span { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover { color: var(--civic-green); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
}
.hero-mark {
  position: absolute;
  top: -6rem;
  right: -8rem;
  width: 34rem;
  height: 34rem;
  color: var(--civic-green);
  opacity: 0.05;
  pointer-events: none;
  display: none;
}
@media (min-width: 960px) {
  .hero-mark { display: block; }
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}
.hero-copy .eyebrow { margin-bottom: 1.1rem; display: block; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw + 1rem, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.06;
}
.hero-copy p.lede {
  margin-top: 1.4rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40rem;
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-actions .link-more { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.hero-actions .link-more:hover { color: var(--civic-green); }

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-panel {
  position: absolute;
  inset: 6% 8% 0 8%;
  background: var(--civic-green-deep);
  border-radius: 2rem;
}

/* ============ DEVICE FRAME ============ */
.device {
  position: relative;
  width: min(280px, 74vw);
  aspect-ratio: 402 / 874;
  border-radius: 46px;
  padding: 11px;
  background: #05070C;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease;
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.device:hover { transform: translateY(-4px); }
.hero-stage .device { width: min(300px, 78vw); }

/* ============ TECH STRIP ============ */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.strip-row .dot { opacity: 0.5; }

/* ============ FEATURE SECTIONS ============ */
.feature {
  padding: 5rem 0;
}
.feature-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .feature-grid.reverse .feature-copy { order: 2; }
  .feature-grid.reverse .feature-stage { order: 1; }
}
.feature-copy h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.16;
}
.feature-copy p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 34rem;
  line-height: 1.65;
}
.feature-stage { display: flex; justify-content: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* category swatch legend */
.swatches {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.3rem;
}
@media (min-width: 500px) { .swatches { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.swatch { display: flex; align-items: center; gap: 0.5rem; font-size: 0.83rem; color: var(--ink-soft); }
.swatch i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ============ CRAFT BAND ============ */
.craft {
  background: var(--civic-green-deep);
  color: #F4F6FC;
  padding: 5rem 0;
}
.craft .eyebrow { color: #8FE2A0; }
.craft h2 {
  color: #FFFFFF;
  margin-top: 0.9rem;
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.35rem);
  font-weight: 600;
  max-width: 34rem;
}
.craft p {
  margin-top: 1.1rem;
  color: #CBDCC6;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.7;
}
.craft-badges {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.craft-badges span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(220,255,225,0.20);
  border-radius: 999px;
  color: #DCEBD8;
}

/* ============ FINAL CTA ============ */
.cta {
  padding: 5.5rem 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem);
  font-weight: 600;
}
.cta p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.05rem; }
.cta .btn { margin-top: 2rem; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.foot-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
@media (min-width: 700px) {
  .foot-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.foot-row a { text-decoration: none; color: var(--ink-soft); }
.foot-row a:hover { color: var(--civic-green); }
.foot-note { font-size: 0.78rem; opacity: 0.75; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .device, .btn-primary { transition: none; }
}
