/* ===================================================================
   DewLogic — The Glass Web
   Design System: 4-Layer Glassmorphism
   Palette: Emerald, Deep Charcoal, Slate
   Font: Inter (SIL OFL — commercially free)
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-600: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --charcoal-950: #0a0f14;
  --charcoal-900: #0f1419;
  --charcoal-800: #151c24;
  --charcoal-700: #1c2530;
  --charcoal-600: #243040;

  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;

  --orange-500: #f97316;
  --orange-400: #fb923c;

  /* Glass tokens */
  --glass-bg: rgba(15, 20, 25, 0.6);
  --glass-bg-light: rgba(21, 28, 36, 0.5);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 18px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-section: 4.5rem;

  /* Transitions */
  --transition-base: 200ms ease;
  --transition-slow: 400ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--slate-300);
  background-color: var(--charcoal-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--emerald-300);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  border: none;
  border-radius: 10px;
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--emerald-500);
  color: var(--charcoal-950);
}
.btn--primary:hover {
  background: var(--emerald-400);
  color: var(--charcoal-950);
  box-shadow: 0 0 24px var(--emerald-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--slate-300);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--glass-border-hover);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn--outline {
  background: transparent;
  color: var(--slate-200);
  border: 1px solid var(--glass-border-hover);
}
.btn--outline:hover {
  border-color: var(--emerald-500);
  color: var(--emerald-400);
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: 12px;
}

.btn--full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 20, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-slow);
}

.nav--scrolled {
  background: rgba(10, 15, 20, 0.92);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
}
.nav__logo:hover { color: #fff; }
.nav__logo img {
  height: 32px;
  width: auto;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__links a {
  color: var(--slate-400);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-base);
}
.nav__links a:hover {
  color: #fff;
}

.nav__cta {
  font-size: var(--text-sm);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-300);
  border-radius: 1px;
  transition: all var(--transition-base);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--slate-400);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__trust {
  font-size: var(--text-sm);
  color: var(--slate-500);
  font-weight: 500;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__phone {
  position: relative;
}

.hero__phone-frame {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow:
    0 0 60px rgba(16, 185, 129, 0.1),
    0 25px 50px rgba(0, 0, 0, 0.5);
  background: var(--charcoal-900);
}

.hero__phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder for missing screenshots */
.hero__phone-frame img[src="screenshot-hero.webp"],
.hero__phone-frame img[src="screenshot-station.webp"] {
  aspect-ratio: 9/19.5;
  object-fit: cover;
  background: linear-gradient(135deg, var(--charcoal-800), var(--charcoal-700));
}

/* --- Stats Bar --- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  padding: 0 0 var(--space-section);
}

.stats__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem 3rem;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stats__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--emerald-400);
}

.stats__label {
  font-size: var(--text-xs);
  color: var(--slate-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stats__divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-400);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header__desc {
  font-size: var(--text-lg);
  color: var(--slate-400);
  line-height: 1.7;
}

/* --- Cards (Glass) --- */
.card {
  border-radius: 16px;
  padding: 2rem;
}

.card--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card--glass:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card--glass-dark {
  background: rgba(10, 15, 20, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.card--glass-accent {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.05);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-400);
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.7;
}

/* --- Features Grid --- */
.features {
  padding: var(--space-section) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- Reality Engine --- */
.engine {
  padding: var(--space-section) 0;
  background:
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
}

.engine__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.engine__visual {
  display: flex;
  justify-content: center;
}

.engine__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.engine__item {
  padding: 1.5rem;
  border-left: 2px solid var(--charcoal-600);
  transition: border-color var(--transition-base);
}

.engine__item:hover {
  border-left-color: var(--emerald-500);
}

.engine__item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.engine__item-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--emerald-400);
  font-variant-numeric: tabular-nums;
}

.engine__item-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
}

.engine__item-text {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.7;
}

/* --- Phone Mockups (CSS-only app UI) --- */
.phone-mockup {
  padding: 8px 12px 16px;
  font-size: 9px;
  color: var(--slate-300);
  line-height: 1.4;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-mockup__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  padding: 4px 0;
}

.phone-mockup__icons {
  display: flex;
  gap: 4px;
  color: #fff;
}

.phone-mockup__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  color: #fff;
}

.phone-mockup__nav img {
  height: 20px;
  width: auto;
}

.phone-mockup__hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
}

.phone-mockup__location {
  color: var(--emerald-400);
  font-weight: 600;
  font-size: 10px;
  margin-bottom: 2px;
}

.phone-mockup__temp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-mockup__temp {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.phone-mockup__ri {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-mockup__ri-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-mockup__ri-value {
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-400);
  line-height: 1;
}

.phone-mockup__ri-label {
  font-size: 5px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.phone-mockup__meta {
  font-size: 7px;
  color: var(--slate-500);
  margin-top: 2px;
}

.phone-mockup__alert {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-500);
  color: #fff;
  font-weight: 600;
  font-size: 9px;
  padding: 8px 10px;
  border-radius: 8px;
}

.phone-mockup__section-label {
  font-size: 7px;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.phone-mockup__insight {
  font-size: 8px;
  color: var(--slate-300);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px;
  line-height: 1.5;
}

.phone-mockup__activities {
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.phone-mockup__activity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 6px;
  color: var(--slate-400);
}

.phone-mockup__score {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--emerald-500);
  color: var(--emerald-400);
  font-size: 8px;
  font-weight: 700;
}

.phone-mockup__conditions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone-mockup__cond {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-mockup__cond-label {
  font-size: 6px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-mockup__cond-value {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

/* Station Manager mockup */
.phone-mockup--station {
  gap: 5px;
}

.phone-mockup__station-desc {
  font-size: 7px;
  color: var(--slate-500);
  line-height: 1.4;
  padding: 0 2px;
}

.phone-mockup__tabs {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 2px;
}

.phone-mockup__tab {
  flex: 1;
  text-align: center;
  font-size: 7px;
  font-weight: 600;
  color: var(--slate-500);
  padding: 5px 4px;
  border-radius: 6px;
  cursor: default;
}

.phone-mockup__tab--active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.phone-mockup__ri-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
}

.phone-mockup__ri-header {
  font-size: 8px;
  font-weight: 600;
  color: var(--emerald-400);
  margin-bottom: 4px;
}

.phone-mockup__ri-score-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.phone-mockup__ri-big {
  font-size: 28px;
  font-weight: 800;
  color: #eab308;
  line-height: 1;
}

.phone-mockup__ri-max {
  font-size: 10px;
  color: var(--slate-500);
}

.phone-mockup__ri-bar {
  height: 4px;
  background: var(--charcoal-600);
  border-radius: 2px;
  margin: 4px 0 2px;
  overflow: hidden;
}

.phone-mockup__ri-fill {
  height: 100%;
  background: linear-gradient(90deg, #eab308 0%, #eab308 80%, var(--charcoal-600) 80%);
  border-radius: 2px;
}

.phone-mockup__ri-conf {
  font-size: 7px;
  font-weight: 600;
  color: #eab308;
}

.phone-mockup__ri-note {
  font-size: 7px;
  color: var(--slate-400);
  line-height: 1.4;
}

.phone-mockup__chart {
  margin: 4px 0;
}

.phone-mockup__chart-svg {
  width: 100%;
  height: 80px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.phone-mockup__legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-mockup__legend-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  color: var(--slate-400);
}

.phone-mockup__legend-item span:first-child {
  width: 8px;
  height: 2px;
  border-radius: 1px;
  display: inline-block;
}

.phone-mockup__source-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  color: var(--slate-400);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.phone-mockup__source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-mockup__source-tag {
  font-size: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: auto;
}

/* --- Hardware --- */
.hardware {
  padding: var(--space-section) 0;
}

.hardware__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
}

.hardware__title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hardware__text {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.hardware__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
}

.hardware__graphic {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hardware__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.1);
  animation: hw-pulse 4s ease-in-out infinite;
}

.hardware__ring--2 {
  inset: 20px;
  border-color: rgba(16, 185, 129, 0.15);
  animation-delay: 1s;
}

.hardware__ring--3 {
  inset: 40px;
  border-color: rgba(16, 185, 129, 0.2);
  animation-delay: 2s;
}

.hardware__icon {
  color: var(--emerald-400);
  position: relative;
  z-index: 1;
}

@keyframes hw-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* --- Governance --- */
.governance {
  padding: var(--space-section) 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
}

.governance__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.governance__card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: border-color var(--transition-base);
}

.governance__card:hover {
  border-color: var(--glass-border-hover);
}

.governance__card-icon {
  color: var(--emerald-400);
  margin-bottom: 1.25rem;
}

.governance__card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem;
}

.governance__card-text {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.7;
}

.governance__pledge {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.governance__quote p {
  font-size: var(--text-lg);
  color: var(--slate-300);
  font-style: italic;
  line-height: 1.7;
}

/* --- Pricing --- */
.pricing {
  padding: var(--space-section) 0;
}

.pricing__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pricing__card {
  padding: 2.5rem;
}

.pricing__price {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.pricing__currency {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--emerald-400);
  margin-top: 0.5rem;
}

.pricing__amount {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing__cents {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--emerald-400);
  margin-top: 0.5rem;
}

.pricing__model {
  font-size: var(--text-sm);
  color: var(--slate-500);
  margin-bottom: 2rem;
}

.pricing__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: var(--slate-300);
}

.pricing__features svg {
  flex-shrink: 0;
  color: var(--emerald-400);
}

.pricing__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing__sidebar {
  padding-top: 1rem;
}

.pricing__sidebar-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.pricing__comparison {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pricing__comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
}

.pricing__comp-row--them {
  background: rgba(249, 115, 22, 0.06);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.pricing__comp-row--us {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pricing__comp-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate-300);
}

.pricing__comp-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
}

.pricing__comp-row--them .pricing__comp-value {
  color: var(--orange-400);
}

.pricing__comp-row--us .pricing__comp-value {
  color: var(--emerald-400);
}

.pricing__comp-value small {
  font-weight: 500;
  opacity: 0.7;
}

.pricing__comp-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.25rem 0;
}

.pricing__sidebar-text {
  font-size: var(--text-sm);
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__wordmark {
  font-weight: 700;
  font-size: var(--text-lg);
  color: #fff;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--slate-500);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--slate-500);
}
.footer__links a:hover {
  color: var(--slate-300);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--slate-500);
  margin-top: 0.5rem;
}

/* --- Meet the Developer --- */
.developer {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--glass-border);
}

.developer__card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2.5rem;
}

.developer__portrait-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--emerald-500);
  box-shadow: 0 0 30px var(--emerald-glow);
  margin-bottom: 1.5rem;
}

.developer__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.developer__name {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.developer__quote {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--slate-400);
  line-height: 1.8;
  max-width: 100%;
  margin-bottom: 2rem;
}

.developer__callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.04);
  margin-bottom: 2rem;
  width: 100%;
}

.developer__callout svg {
  flex-shrink: 0;
  color: var(--emerald-400);
  margin-top: 0.125rem;
}

.developer__callout-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald-400);
  margin-bottom: 0.375rem;
}

.developer__callout-text {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--slate-400);
  line-height: 1.6;
}

/* --- Isopleth Map --- */
.isopleth-map {
  width: 100%;
  max-width: 580px;
  padding: 1.5rem 1.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--charcoal-900);
  margin-bottom: 2rem;
}

.isopleth-map__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--charcoal-600);
  text-align: left;
}

.isopleth-map__svg {
  width: 100%;
  height: auto;
  display: block;
}

.isopleth-map__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--charcoal-600);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--emerald-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}

.isopleth-map__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
}

.developer__sig {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--slate-500);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Fallback to flat high-contrast design */
  .card--glass,
  .card--glass-dark,
  .card--glass-accent,
  .stats__inner,
  .governance__card,
  .nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--charcoal-800);
    border-color: var(--charcoal-600);
  }
}

/* === Responsive === */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .engine__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .engine__visual {
    order: -1;
  }

  .pricing__layout {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 3rem;
  }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 20, 0.96);
    backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 0.875rem 1.5rem;
    text-align: center;
    font-size: var(--text-base);
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Toggle open state */
  .nav__toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle--open span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 3rem;
  }

  .hero__phone-frame {
    width: 220px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .stats__inner {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .stats__divider {
    width: 60px;
    height: 1px;
  }

  .governance__grid {
    grid-template-columns: 1fr;
  }

  .hardware__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .hardware__badges {
    justify-content: center;
  }

  .hardware__graphic {
    margin: 0 auto;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .pricing__card {
    padding: 1.5rem;
  }
}
