/* ============================================
   QOYA — Global Styles
   Colors: Charcoal, Dark Green, Copper
   ============================================ */

:root {
  /* Core palette */
  --charcoal-950: #0a0b0b;
  --charcoal-900: #101112;
  --charcoal-800: #1a1b1c;
  --charcoal-700: #272829;
  --charcoal-600: #3a3b3d;
  --charcoal-500: #5a5b5e;
  --charcoal-400: #8a8b8e;
  --charcoal-300: #b0b1b3;

  --green-900: #1a2e28;
  --green-800: #243b35;
  --green-700: #2e4d44;
  --green-600: #3e6651;
  --green-500: #4e8066;
  --green-400: #6aa384;
  --green-300: #8fc4a6;

  --copper-900: #5a3623;
  --copper-800: #885238;
  --copper-700: #a0654a;
  --copper-600: #b8795c;
  --copper-500: #c99070;
  --copper-400: #d4a88e;
  --copper-300: #e0c0ad;
  --copper-200: #edd8cc;

  --white: #f5f5f3;
  --white-muted: #d4d4d0;
  --white-dim: rgba(245, 245, 243, 0.6);

  /* Semantic */
  --bg-primary: var(--charcoal-900);
  --bg-elevated: var(--charcoal-800);
  --bg-card: var(--charcoal-700);
  --text-primary: var(--white);
  --text-secondary: var(--white-dim);
  --text-muted: var(--charcoal-400);
  --accent: var(--copper-600);
  --accent-hover: var(--copper-500);
  --accent-glow: rgba(184, 121, 92, 0.15);
  --green-accent: var(--green-600);

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Container
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================
   Navigation
   ============================================ */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1001;
  padding: 8px 16px;
  background: var(--white);
  color: var(--charcoal-950);
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
}

.skip-to-content:focus {
  top: 12px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled,
.nav.menu-open {
  background: rgba(10, 11, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}

.nav-logo img {
  height: 28px;
  width: auto;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}

.nav-logo span {
  color: var(--copper-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-dim);
  transition: color 0.2s ease;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  color: var(--copper-500);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--charcoal-900);
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(62, 102, 91, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 121, 92, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 72px);
}

.hero-content {
  max-width: none;
}

.hero-canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 400px;
  max-height: 600px;
}

.hero-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(62, 102, 91, 0.15);
  border: 1px solid rgba(62, 102, 91, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-400);
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--copper-500), var(--copper-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--charcoal-900);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 121, 92, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--charcoal-600);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-secondary:hover {
  border-color: var(--charcoal-500);
  background: var(--charcoal-800);
  transform: translateY(-2px);
}

.btn-secondary .arrow {
  transition: transform 0.2s ease;
}

.btn-secondary:hover .arrow {
  transform: translateX(3px);
}

/* ============================================
   Grid pattern overlay (subtle)
   ============================================ */

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* ============================================
   Section Styles
   ============================================ */

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   Overview / At a Glance
   ============================================ */

.overview {
  background: var(--charcoal-950);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.overview-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.stat-row {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--copper-500);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.overview-visual {
  position: relative;
  height: 400px;
  background: var(--charcoal-800);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overview-visual-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  width: 100%;
}

.arch-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arch-node {
  padding: 12px 20px;
  background: var(--charcoal-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--white-muted);
  white-space: nowrap;
}

.arch-node.accent-green {
  border-color: rgba(62, 102, 91, 0.4);
  color: var(--green-400);
}

.arch-node.accent-copper {
  border-color: rgba(184, 121, 92, 0.4);
  color: var(--copper-400);
}

.arch-connector {
  width: 24px;
  height: 1px;
  background: var(--charcoal-600);
  flex-shrink: 0;
  position: relative;
}

/* ============================================
   Products Section
   ============================================ */

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

.product-card {
  position: relative;
  background: var(--charcoal-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent, var(--copper-600)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
}

.product-icon.echo {
  background: rgba(62, 102, 91, 0.15);
  border: 1px solid rgba(62, 102, 91, 0.3);
  color: var(--green-400);
}

.product-icon.beacon {
  background: rgba(184, 121, 92, 0.15);
  border: 1px solid rgba(184, 121, 92, 0.3);
  color: var(--copper-400);
}

.product-icon.circuit {
  background: rgba(100, 130, 180, 0.15);
  border: 1px solid rgba(100, 130, 180, 0.3);
  color: #8aaed4;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.product-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--copper-500);
  transition: gap 0.2s ease;
}

.product-link:hover {
  gap: 10px;
}

/* ============================================
   Features Section
   ============================================ */

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

.feature-card {
  padding: 36px 28px;
  background: var(--charcoal-800);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-icon {
  box-shadow: 0 0 12px rgba(106, 163, 132, 0.3);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(62, 102, 91, 0.12);
  border: 1px solid rgba(62, 102, 91, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--green-400);
  position: relative;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 121, 92, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  max-width: 600px;
  margin: 0 auto 16px;
}

.cta-section .section-subtitle {
  max-width: 480px;
  margin: 0 auto 40px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--white-dim);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Product Detail Pages
   ============================================ */

.product-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.product-hero-content {
  max-width: 600px;
}

.product-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-hero-badge.echo {
  background: rgba(62, 102, 91, 0.15);
  border: 1px solid rgba(62, 102, 91, 0.3);
  color: var(--green-400);
}

.product-hero-badge.beacon {
  background: rgba(184, 121, 92, 0.15);
  border: 1px solid rgba(184, 121, 92, 0.3);
  color: var(--copper-400);
}

.product-hero-badge.circuit {
  background: rgba(100, 130, 180, 0.15);
  border: 1px solid rgba(100, 130, 180, 0.3);
  color: #8aaed4;
}

.product-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.product-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* Product feature rows */
.product-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-feature-row.reverse {
  direction: rtl;
}

.product-feature-row.reverse > * {
  direction: ltr;
}

.product-feature-text h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.product-feature-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-feature-visual {
  background: var(--charcoal-800);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Code demo block */
.code-block {
  width: 100%;
  background: var(--charcoal-900);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--charcoal-400);
  overflow-x: auto;
}

.code-body .comment { color: var(--charcoal-500); }
.code-body .keyword { color: var(--copper-400); }
.code-body .string { color: var(--green-400); }
.code-body .function { color: #8aaed4; }

/* Code line highlight animation */
.code-line {
  display: block;
  position: relative;
  opacity: 0.2;
  transition: opacity 400ms ease;
}

.code-line--revealed {
  opacity: 1;
}

.code-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(106, 163, 132, 0.15);
  opacity: 0;
  pointer-events: none;
}

.code-line--revealed::after {
  animation: glow-flash 600ms ease-out forwards;
}

@keyframes glow-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

.code-block--revealed {
  box-shadow: 0 0 20px rgba(106, 163, 132, 0.08), 0 0 4px rgba(106, 163, 132, 0.05);
  transition: box-shadow 1s ease;
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.process-step {
  text-align: center;
  padding: 32px 24px;
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 18px;
  font-weight: 700;
  background: rgba(184, 121, 92, 0.12);
  border: 1px solid rgba(184, 121, 92, 0.3);
  color: var(--copper-400);
}

.process-step h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Animations (scroll reveal)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Utility Classes (inline style replacements)
   ============================================ */

.section--alt {
  background: var(--charcoal-950);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mt-48 { margin-top: 48px; }

.text-center { text-align: center; }

.products-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.product-card--muted {
  opacity: 0.7;
}

.badge-coming-soon {
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal-400);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-left: 8px;
}

/* Status bar visualizations (beacon, circuit) */
.status-panel {
  width: 100%;
  padding: 20px 0;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 12px;
  width: 100px;
}

.status-label--narrow {
  width: 90px;
}

.status-bar {
  flex: 1;
  height: 8px;
  background: var(--charcoal-700);
  border-radius: 4px;
  overflow: hidden;
}

.status-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.status-bar-fill--green {
  background: linear-gradient(90deg, var(--green-400), var(--green-500));
}

.status-bar-fill--copper {
  background: linear-gradient(90deg, var(--copper-500), var(--copper-400));
}

.status-bar-fill--red {
  background: linear-gradient(90deg, #e06c75, #d45d68);
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
}

.status-summary {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--charcoal-500);
}

.color-green { color: var(--green-400); }
.color-copper { color: var(--copper-400); }
.color-red { color: #e06c75; }

/* Architecture diagram helpers */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.arch-diagram--center {
  align-items: center;
  text-align: center;
}

.arch-node--wide {
  width: 260px;
  text-align: center;
  font-weight: 600;
}

.arch-node--med {
  width: 200px;
  text-align: center;
}

.arch-node--dim {
  opacity: 0.5;
}

.arch-node--center {
  text-align: center;
}

.arch-connector--error {
  background: #e06c75;
}

.arch-row--indent-1 { padding-left: 20px; }
.arch-row--indent-2 { padding-left: 40px; }
.arch-row--center { justify-content: center; }

.code-block--narrow {
  max-width: 720px;
  margin: 0 auto;
}

.value-props {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.value-props h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.value-props p {
  font-size: 15px;
  color: var(--white-dim);
  line-height: 1.7;
}

.mono-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--charcoal-500);
  margin-top: 16px;
  padding-left: 20px;
}

.mono-caption--green {
  color: var(--green-400);
  padding-left: 0;
  margin-top: 8px;
}

/* ============================================
   Ambient Animations
   ============================================ */

/* Feature icon breathing glow (AMBI-01) */
.feature-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: rgba(106, 163, 132, 0.15);
  opacity: 0;
  animation: icon-breathe 4s ease-in-out infinite;
  pointer-events: none;
  will-change: opacity;
}

.feature-card:nth-child(1) .feature-icon::after { animation-delay: 0s; }
.feature-card:nth-child(2) .feature-icon::after { animation-delay: 0.7s; }
.feature-card:nth-child(3) .feature-icon::after { animation-delay: 1.4s; }
.feature-card:nth-child(4) .feature-icon::after { animation-delay: 0.3s; }
.feature-card:nth-child(5) .feature-icon::after { animation-delay: 1.0s; }
.feature-card:nth-child(6) .feature-icon::after { animation-delay: 1.7s; }

@keyframes icon-breathe {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Arch-connector pulse glow (AMBI-02) */
.arch-connector::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 3px;
  background: inherit;
  filter: blur(3px);
  opacity: 0;
  animation: connector-glow 3s ease-in-out infinite;
  pointer-events: none;
  will-change: opacity;
}

.arch-row:nth-child(1) .arch-connector::before { animation-delay: 0s; }
.arch-row:nth-child(2) .arch-connector::before { animation-delay: 1s; }
.arch-row:nth-child(3) .arch-connector::before { animation-delay: 0.5s; }

@keyframes connector-glow {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 0.8; }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 60% 40%;
    gap: 24px;
  }

  .hero-canvas-container {
    min-height: 320px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .products-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-feature-row.reverse {
    direction: ltr;
  }

  .footer-columns {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-canvas-container {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: var(--charcoal-950);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .nav-links a.nav-cta {
    background: transparent;
    color: var(--white-dim);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 32px;
    font-size: 16px;
    margin-top: 8px;
  }

  .nav-links a.nav-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 52px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-grid,
  .features-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .stat-row {
    gap: 32px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    gap: 40px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-section {
    padding: 100px 24px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 12px;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stat-row {
    flex-direction: column;
    gap: 24px;
  }
}

/* ============================================
   Lifecycle Demo
   ============================================ */

.lifecycle-demo {
  max-width: 720px;
  margin: 0 auto;
}

.lifecycle-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--charcoal-800);
  border-radius: 10px;
  padding: 4px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.lifecycle-tab {
  flex: 1;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal-400);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lifecycle-tab:hover {
  color: var(--white);
}

.lifecycle-tab.active {
  color: var(--white);
  background: var(--charcoal-700);
}

.lifecycle-tab:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 2px;
}

.lifecycle-panels {
  position: relative;
}

.lifecycle-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.lifecycle-panel.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Reduced Motion — Accessibility Override
   MUST be last animation-related block
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Ensure reveals are immediately visible */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Code lines visible without animation */
  .code-line {
    opacity: 1 !important;
  }

  /* Lifecycle panels use instant switching */
  .lifecycle-panel {
    transition: none !important;
  }
}
