/* ===== OmniION — v4 — device hero + ion canvas + trust rebuild ===== */

:root {
  --sage-50: oklch(0.97 0.012 150);
  --sage-100: oklch(0.94 0.022 150);
  --sage-200: oklch(0.88 0.038 150);
  --sage-300: oklch(0.80 0.058 150);
  --sage-400: oklch(0.70 0.080 150);
  --sage-500: oklch(0.60 0.090 152);
  --sage-600: oklch(0.50 0.080 154);
  --sage-700: oklch(0.40 0.060 155);

  --sky-50: oklch(0.97 0.012 220);
  --sky-100: oklch(0.94 0.025 220);
  --sky-200: oklch(0.88 0.042 220);
  --sky-300: oklch(0.82 0.058 220);

  --sand-50: oklch(0.975 0.008 85);
  --sand-100: oklch(0.95 0.015 82);
  --sand-200: oklch(0.91 0.022 80);

  --stone-700: oklch(0.35 0.012 160);
  --stone-800: oklch(0.26 0.014 160);
  --stone-900: oklch(0.18 0.012 160);

  --white: #FDFDFB;
  --cream: #FBFAF6;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(46, 72, 58, 0.04), 0 8px 24px rgba(46, 72, 58, 0.06);
  --shadow-lift: 0 2px 4px rgba(46, 72, 58, 0.04), 0 20px 48px rgba(46, 72, 58, 0.10);
  --shadow-glass: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 1px 2px rgba(46, 72, 58, 0.04), 0 12px 40px rgba(46, 72, 58, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--stone-800);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* Global ion canvas */
#ion-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: plus-lighter;
}

/* Keep content above canvas */
.nav,
.hero,
section,
footer,
.tweaks {
  position: relative;
  z-index: 2;
}

.nav {
  z-index: 50;
}

.tweaks {
  z-index: 100;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}

.reveal.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.delay-1 {
  transition-delay: 120ms;
}

.reveal.delay-2 {
  transition-delay: 240ms;
}

.reveal.delay-3 {
  transition-delay: 360ms;
}

.reveal.delay-4 {
  transition-delay: 480ms;
}

/* ----------------------------------------------------- NAV ----- */
.nav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 12px 14px 12px 24px;
  background: rgba(253, 253, 251, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
  transition: background 400ms var(--ease-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--stone-900);
}

.nav-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--sage-300), var(--sky-200));
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 4px 12px rgba(130, 170, 140, 0.35);
}

.nav-logo::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--stone-700);
  transition: color 200ms var(--ease);
}

.nav-links a:hover {
  color: var(--sage-600);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--stone-900);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform 300ms var(--ease), background 300ms var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--sage-700);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto;
  margin-left: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--stone-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(253, 253, 251, 0.98);
  backdrop-filter: blur(20px);
  padding: 120px 24px 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--stone-900);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.active .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links a:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-links a:nth-child(5) {
  transition-delay: 0.3s;
}

/* ----------------------------------------------------- HERO ----- */
.hero {
  min-height: 100vh;
  padding: 160px 0 80px;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  /* Ensure no flexbox leaks from parent */
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, var(--sky-100), transparent 70%),
    radial-gradient(ellipse 70% 50% at 80% 70%, var(--sage-100), transparent 70%),
    linear-gradient(180deg, var(--sky-50) 0%, var(--sand-50) 60%, var(--white) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(180, 210, 195, 0.35), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(190, 215, 225, 0.4), transparent 40%);
  animation: drift 24s ease-in-out infinite;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3%, -2%) scale(1.05);
  }
}

/* Hero text container: override .container centering to be full viewport-width.
   Use 20vw right padding so text starts visually 20% from right on any desktop. */
.hero-container {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-right: 20vw;
  padding-left: 24px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .hero-container {
    padding-right: 10vw;
  }
}

@media (max-width: 960px) {
  .hero-container {
    padding: 0 24px;
    justify-content: center;
    text-align: center;
  }
}

.hero-content {
  /* Keep text block narrow so it does not overlap the device illustration */
  max-width: 540px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--sage-700);
  font-weight: 500;
  margin-bottom: 28px;
  box-shadow: var(--shadow-soft);
}

.hero-eyebrow-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-300);
  display: grid;
  place-items: center;
}

.hero-eyebrow-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-600);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--stone-900);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage-600);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--stone-700);
  max-width: 560px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease), background 400ms var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sage-500);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 30px rgba(100, 150, 115, 0.35);
}

.btn-primary:hover {
  background: var(--sage-600);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--stone-800);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
}

.btn-play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-500);
  color: white;
  display: grid;
  place-items: center;
}

/* Hero device animation acting as background */
.hero-device {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 0.6fr 0.8fr 2.6fr;
  gap: 0;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(90deg,
      oklch(0.88 0.04 60) 0%,
      oklch(0.92 0.02 80) 15%,
      oklch(0.94 0.018 150) 35%,
      oklch(0.92 0.035 200) 65%,
      oklch(0.88 0.05 200) 100%);
  box-shadow: none;
  border: none;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero-device {
    display: none;
  }
}

.air-zone {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.air-zone .pollution-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.air-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--stone-800);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.air-zone.clean .air-label {
  color: var(--sage-700);
}

.air-zone.dirty .air-label {
  color: oklch(0.40 0.12 40);
}

.pm-reading {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.pm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.air-zone.clean {
  align-items: flex-end;
}

.air-zone.clean .air-label,
.air-zone.clean .pm-reading {
  align-self: flex-end;
}

.device-stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at center, rgba(142, 190, 162, 0.45), transparent 60%);
  animation: glowPulse 3.5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.device-wrapper {
  position: relative;
  width: clamp(150px, 18vw, 1000px);
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(30, 60, 40, 0.25));
  animation: floatDev 12s ease-in-out infinite;
}

@keyframes floatDev {

  0%,
  100% {
    transform: translateY(-20px);
  }

  50% {
    transform: translateY(20px);
  }
}

.device-img {
  width: 120%;
  max-width: 400px;
  border-radius: 12px;
}

.device-brand {
  position: absolute;
  top: 38%;
  left: 56%;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 20px);
  color: #f4f1e8;
  letter-spacing: 0.06em;
  transform: rotate(-2deg) skew(-8deg);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 3;
  font-style: italic;
}

.device-led {
  position: absolute;
  top: 72%;
  left: 42%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-500);
  box-shadow: 0 0 12px var(--sage-500), 0 0 20px var(--sage-300);
  animation: ledBlink 1.5s ease-in-out infinite;
}

@keyframes ledBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.device-stage .pollution-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Hero stats */
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.hero-stat {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--sage-700);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--stone-700);
  margin-top: 6px;
  line-height: 1.4;
}

/* ----------------------------------------------------- SECTIONS common ----- */
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--sage-50);
  border-radius: var(--radius-pill);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  color: var(--sage-600);
}

.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--stone-700);
  max-width: 640px;
  text-wrap: pretty;
}

.section-head {
  margin-bottom: 64px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

/* ----------------------------------------------------- PARADIGM ----- */
.paradigm {
  padding: 140px 0;
  background: var(--sand-50);
}

.paradigm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 64px;
}

.paradigm-card {
  border-radius: var(--radius-lg);
  padding: 44px 44px 48px;
  position: relative;
  overflow: hidden;
  transition: transform 500ms var(--ease);
}

.paradigm-card:hover {
  transform: translateY(-4px);
}

.paradigm-card.old {
  background: oklch(0.97 0.01 60);
  border: 1px solid oklch(0.90 0.02 60);
}

.paradigm-card.new {
  background: linear-gradient(155deg, var(--sage-100), var(--sage-50) 60%, var(--sky-50));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lift);
}

.paradigm-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.paradigm-card.old .paradigm-kicker {
  color: oklch(0.45 0.06 45);
}

.paradigm-card.new .paradigm-kicker {
  color: var(--sage-700);
}

.paradigm-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--stone-900);
}

.paradigm-card p {
  color: var(--stone-700);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 46ch;
}

.paradigm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.paradigm-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--stone-800);
}

.paradigm-tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.paradigm-card.old .paradigm-tick {
  background: oklch(0.92 0.04 40);
  color: oklch(0.45 0.10 40);
}

.paradigm-card.new .paradigm-tick {
  background: var(--sage-300);
  color: var(--white);
}

.paradigm-stat {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.paradigm-stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.paradigm-card.old .paradigm-stat-num {
  color: oklch(0.55 0.12 40);
}

.paradigm-card.new .paradigm-stat-num {
  color: var(--sage-700);
}

.paradigm-stat-label {
  font-size: 13px;
  color: var(--stone-700);
  max-width: 180px;
}

/* ----------------------------------------------------- VIDEO SECTION ----- */
.video-section {
  padding: 140px 0 180px;
  background: linear-gradient(180deg, var(--white), var(--sage-50));
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 600px;
  background: radial-gradient(ellipse 60% 100% at center, var(--sky-50), transparent 60%);
  pointer-events: none;
}

.video-wrap {
  position: relative;
  margin-top: 72px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, oklch(0.80 0.05 200), oklch(0.88 0.03 150));
  box-shadow: 0 2px 4px rgba(46, 72, 58, 0.04), 0 40px 80px rgba(46, 72, 58, 0.15);
}

.video-placeholder {
  position: absolute;
  inset: 0;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: transform 500ms var(--ease);
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play svg {
  color: var(--sage-600);
  margin-left: 4px;
}

.video-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.feature-badges {
  position: relative;
  margin-top: -12px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 40px;
}

.badge {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: transform 500ms var(--ease);
}

.badge:hover {
  transform: translateY(-4px);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sage-100);
  display: grid;
  place-items: center;
  color: var(--sage-600);
  margin-bottom: 14px;
}

.badge-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--stone-900);
  margin-bottom: 4px;
}

.badge-sub {
  font-size: 13px;
  color: var(--stone-700);
  line-height: 1.4;
}

/* ----------------------------------------------------- URBAN ----- */
.urban {
  padding: 160px 0;
  background: var(--white);
}

.urban-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.urban-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(165deg, oklch(0.82 0.04 220), oklch(0.88 0.04 150));
  box-shadow: var(--shadow-lift);
  perspective: 1200px;
}

.urban-image svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.urban-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.urban-image:hover img {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.urban-card-float {
  position: absolute;
  z-index: 5;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  min-width: 210px;
  pointer-events: none;
}

.urban-card-float.tl {
  top: 28px;
  left: 28px;
}

.urban-card-float.br {
  bottom: 28px;
  right: 28px;
}

.aqi-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--sage-100);
  color: var(--sage-700);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}

.aqi-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-500);
}

.aqi-value {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--stone-900);
  letter-spacing: -0.02em;
}

.aqi-label {
  font-size: 12px;
  color: var(--stone-700);
  margin-top: 4px;
}

.urban-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}

.urban-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid oklch(0.92 0.01 160);
}

.urban-item:last-child {
  border: none;
}

.urban-item-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--sage-500);
  line-height: 1;
  width: 36px;
}

.urban-item-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--stone-900);
  margin-bottom: 4px;
}

.urban-item-sub {
  font-size: 14px;
  color: var(--stone-700);
  line-height: 1.5;
}

/* ----------------------------------------------------- TRUST (rebuilt) ----- */
.trust {
  padding: 140px 0 160px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--sage-100), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, var(--sky-100), transparent 60%),
    linear-gradient(180deg, var(--sage-50) 0%, oklch(0.96 0.015 140) 100%);
  overflow: hidden;
}

.trust-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 1.5px at 10% 20%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 80% 40%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 30% 80%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 70% 70%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 50% 15%, rgba(80, 120, 90, 0.12), transparent 3px);
}

.trust-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}

.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  box-shadow: var(--shadow-glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.patent-seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage-400), var(--sage-600));
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(60, 100, 70, 0.3);
}

.patent-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--stone-800);
  letter-spacing: 0.02em;
}

.trust-kicker {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  margin-bottom: 16px;
}

.trust-kicker em {
  font-style: italic;
  color: var(--sage-700);
}

.trust-sub {
  font-size: 17px;
  color: var(--stone-700);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.55;
}

/* Featured card */
.trust-featured {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  box-shadow: var(--shadow-lift);
  margin-bottom: 48px;
}

.trust-featured-logo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, oklch(0.35 0.08 25), oklch(0.22 0.06 25));
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px rgba(80, 30, 30, 0.25);
  padding: 24px;
}

.trust-featured-logo svg {
  width: 100%;
  height: 100%;
}

.trust-featured-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-bottom: 12px;
}

.trust-featured-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  margin-bottom: 6px;
}

.trust-featured-dept {
  font-size: 15px;
  color: var(--sage-700);
  font-weight: 500;
  margin-bottom: 20px;
}

.trust-featured-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-700);
  margin-bottom: 28px;
  max-width: 56ch;
}

.trust-featured-desc strong {
  color: var(--stone-900);
  font-weight: 600;
}

.trust-featured-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid oklch(0.92 0.01 150);
}

.trust-featured-meta>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-featured-meta span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-700);
}

.trust-featured-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-900);
}

/* Institution grid */
.trust-inst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-inst-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}

.trust-inst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.trust-inst-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 6px 18px rgba(0, 0, 0, 0.12);
}

.trust-inst-logo svg {
  width: 100%;
  height: 100%;
}

.trust-inst-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--stone-900);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.trust-inst-dept {
  font-size: 12px;
  color: var(--stone-700);
  line-height: 1.4;
  margin-bottom: 14px;
  min-height: 34px;
}

.trust-inst-role {
  font-size: 12px;
  color: var(--sage-700);
  font-weight: 500;
  padding-top: 14px;
  border-top: 1px solid oklch(0.92 0.01 150);
}

/* ----------------------------------------------------- TEAM ----- */
.team {
  padding: 160px 0;
  background: var(--cream);
}

.team-group {
  margin-bottom: 96px;
}

.team-group:last-child {
  margin-bottom: 0;
}

.team-group-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid oklch(0.90 0.01 100);
}

.team-group-title {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  color: var(--stone-900);
}

.team-group-sub {
  font-size: 14px;
  color: var(--stone-700);
  margin-left: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-grid.core {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid oklch(0.93 0.008 100);
  border-radius: var(--radius-lg);
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}

.team-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-lift);
  border-color: var(--sage-400);
}

.team-photo {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(145deg, var(--sage-100), var(--sky-100));
  position: relative;
  display: grid;
  place-items: center;
}

.team-photo-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--stone-700);
}

.team-photo-initials {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--sage-700);
  letter-spacing: -0.02em;
}

.team-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-bottom: 8px;
}

.team-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--stone-900);
  margin-bottom: 6px;
}

.team-desc {
  font-size: 13px;
  color: var(--stone-700);
  line-height: 1.5;
}

.team-years {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--sage-600);
  padding: 3px 8px;
  background: var(--sage-50);
  border-radius: 6px;
}

/* ----------------------------------------------------- MEDIA COVERAGE ----- */
.media-coverage {
  padding: 140px 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--sage-100), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, var(--sky-100), transparent 60%),
    linear-gradient(180deg, var(--sage-50) 0%, oklch(0.96 0.015 140) 100%);
  position: relative;
  overflow: hidden;
}

.media-coverage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 1.5px at 10% 20%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 80% 40%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 30% 80%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 70% 70%, rgba(80, 120, 90, 0.15), transparent 3px),
    radial-gradient(circle 1.5px at 50% 15%, rgba(80, 120, 90, 0.12), transparent 3px);
}

/* ----------------------------------------------------- CONTACT ----- */
.contact {
  padding: 140px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-info .section-title {
  font-size: clamp(32px, 4vw, 48px);
}

.contact-form-wrap {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lift);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-800);
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 15px;
  color: var(--stone-900);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage-400);
  box-shadow: 0 0 0 3px rgba(142, 190, 162, 0.2);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 24px;
  }
}

/* ----------------------------------------------------- FOOTER ----- */
.footer {
  padding: 100px 0 40px;
  background: var(--stone-900);
  color: oklch(0.85 0.01 150);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 32px;
  color: white;
  margin-bottom: 18px;
}

.footer-brand-tag {
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 28px;
  color: oklch(0.75 0.01 150);
}

.footer-contact {
  font-size: 13px;
  line-height: 1.7;
  color: oklch(0.7 0.01 150);
}

.footer-contact strong {
  display: block;
  color: white;
  margin-bottom: 4px;
  font-weight: 500;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: oklch(0.75 0.01 150);
  transition: color 300ms var(--ease);
}

.footer-col a:hover {
  color: var(--sage-300);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: oklch(0.6 0.01 150);
}

/* ----------------------------------------------------- TWEAKS ----- */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  padding: 18px;
  background: rgba(253, 253, 251, 0.94);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: none;
  font-size: 13px;
}

.tweaks.on {
  display: block;
}

.tweaks h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-700);
  margin-bottom: 14px;
}

.tweak-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tweak-row:last-child {
  margin-bottom: 0;
}

.tweak-label {
  font-size: 13px;
  color: var(--stone-800);
}

.tweak-chips {
  display: flex;
  gap: 6px;
}

.tweak-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease);
}

.tweak-chip:hover {
  transform: scale(1.1);
}

.tweak-chip.active {
  border-color: var(--stone-800);
}

.tweak-toggle {
  padding: 6px 12px;
  background: var(--sage-100);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--sage-700);
  font-weight: 500;
}

.tweak-toggle.off {
  background: oklch(0.94 0 0);
  color: var(--stone-700);
}

/* ----------------------------------------------------- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .trust-featured {
    grid-template-columns: 1fr;
    padding: 36px;
  }

  .trust-featured-logo {
    width: 140px;
    margin: 0 auto;
  }

  .trust-inst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: auto;
    margin-top: 32px;
  }

  .paradigm-grid {
    grid-template-columns: 1fr;
  }

  .feature-badges {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
  }

  .urban-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid,
  .team-grid.core {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    padding: 8px 10px 8px 18px;
    gap: 16px;
  }

  .trust-featured-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

body[data-accent="ocean"] {
  --sage-100: oklch(0.94 0.025 220);
  --sage-200: oklch(0.88 0.042 220);
  --sage-300: oklch(0.80 0.06 220);
  --sage-500: oklch(0.62 0.09 220);
  --sage-600: oklch(0.52 0.08 220);
  --sage-700: oklch(0.42 0.06 220);
  --sage-50: oklch(0.97 0.012 220);
}

body[data-accent="forest"] {
  --sage-100: oklch(0.94 0.025 145);
  --sage-200: oklch(0.88 0.045 145);
  --sage-300: oklch(0.78 0.065 145);
  --sage-500: oklch(0.55 0.10 145);
  --sage-600: oklch(0.45 0.09 145);
  --sage-700: oklch(0.35 0.07 145);
  --sage-50: oklch(0.97 0.012 145);
}