:root,
[data-theme="light"] {
  --color-bg: #f3f7fb;
  --color-surface: #fcfdff;
  --color-surface-2: #eaf1f8;
  --color-surface-offset: #dde8f3;
  --color-border: rgba(18, 42, 66, 0.12);
  --color-text: #122a42;
  --color-text-muted: #5f7388;
  --color-text-faint: #94a8bb;
  --color-primary: #1f5f9b;
  --color-primary-hover: #164a79;
  --color-primary-highlight: #d9e8f8;
  --color-success: #1e7f68;
  --shadow-sm: 0 1px 2px rgba(16, 34, 54, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 34, 54, 0.10);
  --shadow-lg: 0 24px 56px rgba(16, 34, 54, 0.16);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 999px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --text-lg: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --text-2xl: clamp(2.4rem, 1.5rem + 3vw, 4.5rem);
  --font-body: 'General Sans', system-ui, sans-serif;
  --font-display: 'Cabinet Grotesk', system-ui, sans-serif;
}

[data-theme="dark"] {
  --color-bg: #0d1722;
  --color-surface: #132233;
  --color-surface-2: #1a2d42;
  --color-surface-offset: #203853;
  --color-border: rgba(220, 235, 248, 0.14);
  --color-text: #edf6ff;
  --color-text-muted: #b5cadc;
  --color-text-faint: #7d97ae;
  --color-primary: #7cc4ff;
  --color-primary-hover: #9ad1ff;
  --color-primary-highlight: rgba(124, 196, 255, 0.16);
  --color-success: #7dd9c0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  z-index: 20;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--color-primary), #53a8a5);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.brand-mark svg {
  width: 1.3rem;
  height: 1.3rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.theme-toggle,
.menu-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.btn-inverse {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 3rem;
}

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

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eyebrow-inverse {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--text-2xl);
  max-width: 10ch;
  margin: 0.9rem 0 1rem;
}

h2 {
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.hero-card {
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.hero-card img {
  border-radius: 1.25rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.2rem;
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.stat span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 55ch;
  color: var(--color-text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card p,
.feature-list li,
.faq p {
  color: var(--color-text-muted);
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: var(--color-primary-highlight);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
  align-items: center;
}

.media-stack {
  display: grid;
  gap: 1rem;
}

.media-stack img,
.showcase img {
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-list li {
  list-style: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.feature-list strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.showcase .wide {
  grid-column: span 2;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cta {
  background: linear-gradient(135deg, var(--color-primary), #2a8e8e);
  color: #fff;
  border-radius: 2rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta p {
  color: rgba(255, 255, 255, 0.84);
}

.cta-actions {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

footer {
  padding: 2rem 0 3rem;
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  padding-top: 1.2rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .split,
  .cta,
  .grid-3,
  .steps,
  .showcase,
  .stats {
    grid-template-columns: 1fr;
  }

  .showcase .wide {
    grid-column: auto;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
  }
}


.hero-grid-cold {
  grid-template-columns: 1.04fr 0.96fr;
}

.hero-card-cold {
  min-height: 28rem;
  background:
    radial-gradient(circle at 20% 18%, rgba(124, 196, 255, 0.35), transparent 32%),
    radial-gradient(circle at 80% 76%, rgba(61, 137, 224, 0.22), transparent 30%),
    linear-gradient(160deg, color-mix(in srgb, var(--color-surface) 84%, white), color-mix(in srgb, var(--color-surface-2) 92%, var(--color-bg)));
}

.cold-visual {
  position: relative;
  min-height: 27rem;
  display: grid;
  place-items: center;
}

.cold-device {
  position: relative;
  width: min(82%, 24rem);
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(219,232,247,0.82));
  border: 1px solid rgba(18, 42, 66, 0.08);
  box-shadow: 0 30px 50px rgba(22, 53, 82, 0.12);
}

.device-core {
  position: absolute;
  inset: 18% 20% auto;
  height: 40%;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #23598c, #173c60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.device-probe {
  position: absolute;
  width: 0.55rem;
  height: 42%;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #b8d5f0, #6f93b6);
}

.device-tip {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #7cc4ff;
  box-shadow: 0 0 0 8px rgba(124, 196, 255, 0.12);
}

.temp-panel {
  position: absolute;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(18, 42, 66, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.temp-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

.temp-panel span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.panel-top { top: 8%; right: 0; }
.panel-bottom { left: 2%; bottom: 4%; }

.split-balanced { align-items: center; }

.cold-dashboard {
  display: grid;
  gap: 1rem;
}

.dashboard-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.mini-label {
  display: inline-flex;
  margin-bottom: 0.8rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
}

.status-card h3 { margin-bottom: 0.4rem; }

.status-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 16%, transparent);
}

.reading-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.reading-row small {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

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

.trace-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
  align-items: end;
  min-height: 4rem;
}

.trace-line span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--color-primary), #8fd2ff);
}

.trace-line span:nth-child(1) { height: 42%; }
.trace-line span:nth-child(2) { height: 55%; }
.trace-line span:nth-child(3) { height: 62%; }
.trace-line span:nth-child(4) { height: 48%; }
.trace-line span:nth-child(5) { height: 72%; }
.trace-line span:nth-child(6) { height: 58%; }

.compliance-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

.card-large {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steps-cold .step-num {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.cold-showcase {
  min-height: 100%;
  display: grid;
  align-items: stretch;
}

.quote-card {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #1f5f9b, #153957);
  color: white;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1rem;
}

.quote-card p {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
  max-width: 16ch;
}

.quote-card span {
  color: rgba(255,255,255,0.78);
}

.cta-cold {
  background: linear-gradient(135deg, #133a60, #1f5f9b 55%, #3c88ce);
}

@media (max-width: 900px) {
  .hero-grid-cold,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .hero-card-cold,
  .cold-visual {
    min-height: 22rem;
  }
}
