/* ═══════════════════════════════════════════════════════════════
   landing.css — Landing page (index.html) styles
   Hero, sections, scroll animations, responsive layout
   ═══════════════════════════════════════════════════════════════ */

/* ── Loader ────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deepest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loader);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 60px;
  height: 60px;
  margin-bottom: var(--sp-4);
}
.loader-logo .pulse-ring {
  animation: pulseRing 1.5s ease-out infinite;
  transform-origin: center;
}
.loader-text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Landing nav ───────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-8);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
}

.landing-nav.scrolled {
  padding: var(--sp-3) var(--sp-8);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text-primary);
}
.nav-brand-logo {
  width: 32px;
  height: 32px;
}
.nav-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.nav-lang-toggle {
  padding: 4px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.nav-lang-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.nav-lang-toggle .lang-active {
  color: var(--accent);
  font-weight: var(--weight-bold);
}
.nav-lang-toggle.is-hindi {
  border-color: var(--accent);
  background: rgba(94, 234, 198, 0.08);
}
.nav-cta {
  padding: var(--sp-2) var(--sp-5);
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.nav-cta:hover {
  background: var(--accent-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: var(--text-inverse);
}
.nav-cta svg { width: 16px; height: 16px; }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-mobile-toggle svg { width: 20px; height: 20px; }

/* ── Section layout ────────────────────────────────────────── */
.landing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-24) var(--sp-8);
}

.top-anchor {
  display: block;
  position: relative;
  top: -84px;
  visibility: hidden;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1.5rem;
  z-index: var(--z-dropdown);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: rgba(17, 17, 17, 0.92);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out), visibility var(--duration-normal);
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--border-accent);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

#hardware {
  max-width: none;
  width: 100%;
  padding: clamp(7rem, 10vw, 9rem) clamp(1rem, 3vw, 2rem) clamp(4rem, 7vw, 6rem);
}

#hardware .hero-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

#hardware .prototype-layout {
  gap: clamp(1rem, 2vw, 1.5rem);
}

#hardware .bg-elevated,
#hardware #componentInfoPanel,
#hardware #componentInfoFallback {
  border-color: var(--border-default);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

#hardware .component-tile {
  min-height: 68px;
  line-height: 1.35;
}

#hardware .text-muted,
#hardware .text-secondary {
  color: var(--text-secondary);
}

#architecture {
  max-width: none;
  width: 100%;
  padding: 0;
}

#architecture > div {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

#architecture > div > .text-center {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

#architecture > div > .mt-16 {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

#architecture > div > .mt-12 {
  margin-top: clamp(2rem, 4vw, 3rem);
}

main > section:not(#hardware) {
  border-color: var(--border-subtle);
}

.section-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.architecture-step-copy,
.architecture-step-list,
#architecture .text-secondary {
  line-height: 1.7;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 auto var(--sp-4) auto;
}
.section-eyebrow svg { width: 16px; height: 16px; }

.section-heading {
  font-size: var(--text-3xl);
  max-width: 680px;
  margin: 0 auto var(--sp-6) auto;
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  letter-spacing: -0.02em;
}
.section-description {
  font-size: var(--text-md);
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg canvas {
  width: 100%;
  height: 100%;
}
/* Gradient overlay for readability */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--bg-deepest) 0%,
    rgba(6, 18, 15, 0.75) 50%,
    rgba(6, 18, 15, 0.4) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(80px + var(--sp-16)) var(--sp-8) var(--sp-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  width: 100%;
}

.hero-copy { max-width: 560px; }
.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}
.hero-headline .highlight {
  color: var(--accent);
}
.hero-description {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 480px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.hero-primary {
  padding: var(--sp-3) var(--sp-8);
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}
.hero-primary:hover {
  background: var(--accent-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--text-inverse);
}
.hero-secondary {
  padding: var(--sp-3) var(--sp-6);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}
.hero-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-glass);
}

.hero-trust {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
}
.hero-trust-value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}
.hero-trust-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Hero floating preview card */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
}
.hero-preview-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xl);
}
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}
.preview-header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semi);
}
.preview-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--severity-normal);
  font-weight: var(--weight-medium);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.preview-metric {
  text-align: center;
  padding: var(--sp-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.preview-metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}
.preview-metric-label {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Impact stats ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.stat-item {
  text-align: center;
  padding: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}
.stat-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.stat-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--accent);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}

/* ── How it works pipeline ─────────────────────────────────── */
.pipeline {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
  position: relative;
  overflow-x: auto;
  padding-bottom: var(--sp-4);
}
.pipeline-step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  transform: translateY(20px);
}
.pipeline-step.visible {
  opacity: 1;
  transform: translateY(0);
}
.pipeline-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.pipeline-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  color: var(--accent);
}
.pipeline-icon svg { width: 22px; height: 22px; }
.pipeline-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pipeline-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.pipeline-arrow {
  display: flex;
  align-items: center;
  padding-top: var(--sp-8);
  color: var(--accent-dim);
  flex-shrink: 0;
}
.pipeline-arrow svg { width: 20px; height: 20px; }

/* ── Hazard cards ──────────────────────────────────────────── */
.hazard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.hazard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.hazard-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
  box-shadow: var(--shadow-lg);
}
.hazard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.hazard-card.fire::before   { background: var(--severity-critical); }
.hazard-card.gas::before    { background: var(--severity-high); }
.hazard-card.air::before    { background: var(--severity-watch); }

.hazard-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-5);
}
.hazard-card.fire .hazard-icon { background: var(--severity-critical-bg); color: var(--severity-critical); }
.hazard-card.gas  .hazard-icon { background: var(--severity-high-bg);     color: var(--severity-high); }
.hazard-card.air  .hazard-icon { background: var(--severity-watch-bg);    color: var(--severity-watch); }
.hazard-icon svg { width: 24px; height: 24px; }

.hazard-title {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-3);
}
.hazard-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-5);
}
.hazard-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.hazard-metric {
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
.hazard-metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}
.hazard-metric-label {
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ── Dashboard preview ─────────────────────────────────────── */
.preview-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.preview-frame {
  max-width: 1100px;
  margin: var(--sp-10) auto 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-bottom: none;
  box-shadow: var(--shadow-xl);
}
.preview-frame img,
.preview-frame .preview-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.preview-placeholder {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ── Architecture section ──────────────────────────────────── */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-10);
}
.arch-diagram {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-specs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.arch-spec {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.arch-spec:hover { border-color: var(--border-accent); }
.arch-spec-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}
.arch-spec-icon svg { width: 18px; height: 18px; }
.arch-spec-content { flex: 1; }
.arch-spec-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}
.arch-spec-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Pilot / Roadmap ───────────────────────────────────────── */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  max-width: 700px;
  position: relative;
  padding-left: var(--sp-8);
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
}
.roadmap-item {
  position: relative;
}
.roadmap-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-8) + 8px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  border: 2px solid var(--bg-deepest);
}
.roadmap-item.done::before { background: var(--severity-normal); }
.roadmap-item.future::before { background: var(--text-muted); }
.roadmap-phase {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: var(--weight-semi);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.roadmap-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text-primary);
}
.roadmap-desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: var(--sp-20) var(--sp-8);
  background: linear-gradient(180deg, var(--bg-deepest) 0%, var(--bg-deep) 100%);
}
.cta-heading {
  font-size: var(--text-3xl);
  max-width: 600px;
  margin: 0 auto var(--sp-6);
}
.cta-description {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto var(--sp-8);
}

/* ── Footer ────────────────────────────────────────────────── */
.landing-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-8) var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sp-8);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.footer-brand-name img { width: 24px; height: 24px; }
.footer-tagline {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: var(--sp-10);
}
.footer-col h5 {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  width: 100%;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

#architecture-deep-dive {
  scroll-margin-top: 84px;
}

/* ── Premium polish ───────────────────────────────────────── */

/* Smooth body scroll */
html { scroll-behavior: smooth; }

#hardware {
  scroll-margin-top: 84px;
}

#top {
  scroll-margin-top: 0;
}

#architecture {
  scroll-margin-top: 84px;
}

.hero-intro {
  position: relative;
  opacity: 1;
  transform: none;
}

/* Better section heading treatment */
.section-heading {
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Architecture step cards — premium hover */
#architecture-deep-dive .architecture-noise {
  opacity: 0.025;
  mix-blend-mode: soft-light;
}

#architecture-deep-dive .architecture-step-card {
  background: rgba(26, 26, 26, 0.94);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

#architecture-deep-dive .architecture-visual {
  background: #111315;
  border-color: var(--border-default);
}

#architecture-deep-dive .architecture-visual-glow {
  background: radial-gradient(circle at 50% 50%, rgba(94, 234, 198, 0.08), transparent 58%);
  pointer-events: none;
}

#architecture-deep-dive .architecture-visual-critical .architecture-visual-glow {
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.08), transparent 58%);
}

#architecture-deep-dive .architecture-visual-neutral .architecture-visual-glow {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 58%);
}

#architecture-deep-dive .architecture-wave {
  color: rgba(255, 255, 255, 0.42);
  opacity: 0.45;
}

#architecture-deep-dive .architecture-status-critical {
  background: rgba(239, 68, 68, 0.08);
  box-shadow: none;
}

#architecture-deep-dive .architecture-step-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(94, 234, 198, 0.06), var(--shadow-lg);
  transform: translateY(-4px);
}

#architecture-deep-dive .architecture-step-card h3 {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

#architecture-deep-dive .architecture-step-card p,
#architecture-deep-dive .architecture-step-card ul,
#architecture-deep-dive .architecture-step-copy,
#architecture-deep-dive .architecture-step-list {
  color: var(--text-secondary);
}

#architecture-deep-dive .architecture-step-card li::marker,
#architecture-deep-dive .architecture-step-list li::marker {
  color: var(--accent);
}

#architecture .arch-flow-node {
  color: var(--text-primary);
}

#architecture .arch-desc {
  color: var(--text-secondary);
  line-height: 1.4;
}

#architecture .section-description {
  color: var(--text-secondary);
}

#architecture .grid.bg-surface {
  background: var(--bg-surface);
}

#architecture-deep-dive .grid.bg-surface {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--border-default);
}
#architecture-deep-dive .grid.bg-surface:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 40px rgba(94, 234, 198, 0.06), var(--shadow-lg);
  transform: translateY(-4px);
}

/* Hazard cards — glowing top bar on hover */
.hazard-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hazard-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(94, 234, 198, 0.05);
}

/* Component tiles on landing — better active state */
.component-tile {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.component-tile:hover {
  transform: translateX(4px);
  border-color: var(--border-accent) !important;
}
.component-tile.active {
  background: var(--accent-bg) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(94, 234, 198, 0.15);
}

/* Nav CTA glow on hover */
.nav-cta {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.nav-cta:hover {
  box-shadow: 0 0 20px rgba(94, 234, 198, 0.3), 0 4px 12px rgba(94, 234, 198, 0.15);
}

/* Status pill badges — subtle glow */
.status-dot.green.pulse {
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* Architecture flow nodes — better hover */
.arch-flow-node {
  transition: all 0.3s ease;
}
.arch-flow-node:hover {
  transform: scale(1.08);
  border-color: var(--accent) !important;
  box-shadow: 0 0 20px rgba(94, 234, 198, 0.15);
}

/* Feature info cards at bottom of hardware section */
#hardware .p-6.bg-surface {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#hardware .p-6.bg-surface:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Footer links hover */
footer a {
  transition: color 0.2s ease;
}

/* Custom scrollbar for prototype explorer */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero-preview { justify-self: start; }
  .hazard-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .landing-nav {
    min-height: 64px;
    padding: 0.65rem 0.8rem;
    gap: 0.65rem;
  }
  .nav-brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 0.5rem;
  }
  .nav-brand-logo { width: 28px; height: 28px; }
  .nav-brand-name {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions {
    flex: 0 0 auto;
    gap: 0.45rem;
  }
  .nav-lang-toggle {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .nav-cta {
    flex: 0 0 auto;
    min-height: 36px;
    max-width: 7.6rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
    line-height: 1.15;
    white-space: nowrap;
  }
  .nav-cta svg { width: 14px; height: 14px; }
  .landing-section { padding: var(--sp-16) var(--sp-4); }
  .hero-headline { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { flex-direction: column; gap: var(--sp-6); }
  .landing-footer { flex-direction: column; }
  .back-to-top { bottom: 1rem; right: 1rem; }
  .preview-metrics { grid-template-columns: 1fr; }

  #architecture > div {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #architecture .section-heading {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    line-height: 1.12;
    max-width: 18rem;
  }

  #architecture .section-description {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 34rem;
  }

  #architecture .arch-flow {
    width: 100%;
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
    overflow: visible;
  }

  #architecture .arch-flow-node {
    width: min(76vw, 220px);
    height: min(76vw, 220px);
    min-height: 156px;
    padding: 1.25rem;
  }

  #architecture .arch-icon {
    margin-bottom: 0.65rem;
  }

  #architecture .arch-title {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  #architecture .arch-desc {
    max-width: 9rem;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
  }

  #architecture .arch-line {
    width: 2px;
    height: 2rem;
    min-width: 0;
    flex: 0 0 2rem;
  }

  #architecture .arch-particle {
    left: -3px;
  }

  #architecture > div > .mt-16 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
  }

  #architecture > div > .mt-16 > div {
    align-items: flex-start;
    padding: 1.15rem;
    gap: 0.9rem;
  }

  #architecture > div > .mt-16 h4 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  #architecture > div > .mt-16 p {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  #architecture > div > .mt-12 {
    margin-top: 2rem;
  }

  #architecture .technical-architecture-cta {
    display: inline-flex;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    padding: 0.85rem 1rem;
  }

  #architecture-deep-dive .architecture-step-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  #architecture-deep-dive .architecture-step-card h3 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  #architecture-deep-dive .architecture-visual {
    height: auto;
    min-height: 220px;
    padding: 1rem;
  }

  #hardware .hero-intro > .flex.items-center.justify-center.gap-6 {
    gap: 0.6rem;
    width: 100%;
  }

  #hardware .hero-intro > .flex.items-center.justify-center.gap-6 > div {
    min-width: 0;
    max-width: 100%;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .landing-nav {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    gap: 0.4rem;
  }
  .nav-brand-name { font-size: 0.88rem; }
  .nav-actions { gap: 0.3rem; }
  .nav-lang-toggle { padding-left: 0.45rem; padding-right: 0.45rem; }
  .nav-cta { max-width: 6.9rem; padding-left: 0.55rem; padding-right: 0.55rem; }
  .hero-trust { flex-direction: column; gap: var(--sp-4); }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .nav-brand-name { display: none; }
  .nav-cta { max-width: 6.2rem; }
}
