/* ============================================================
   QuantumDetect – Quantum Noir Design System
   styles.css
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #080C10;
  --surface:      #0D1520;
  --surface-2:    #111E2E;
  --surface-3:    #162338;
  --cyan:         #00E5FF;
  --cyan-dim:     rgba(0, 229, 255, 0.15);
  --cyan-glow:    rgba(0, 229, 255, 0.4);
  --amber:        #FFB800;
  --amber-dim:    rgba(255, 184, 0, 0.15);
  --text:         #E8EDF2;
  --text-muted:   #6B7F8F;
  --text-dim:     #3A4F60;
  --grid-line:    rgba(0, 229, 255, 0.08);
  --border:       rgba(0, 229, 255, 0.18);
  --border-hover: rgba(0, 229, 255, 0.55);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow:   0.6s ease;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  /* Subtle grid background */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Scanline texture overlay – removed */

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--t-normal), opacity var(--t-normal);
}

a:hover {
  color: #fff;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── Scroll Progress Bar ──────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ── Cursor Glow ──────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9997;
  transition: opacity 0.3s ease;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--t-normal), border-color var(--t-normal);
}

.nav.scrolled {
  background: rgba(8, 12, 16, 0.97);
  border-bottom-color: var(--cyan-dim);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text);
}

.nav-logo-img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--t-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--t-normal);
  box-shadow: 0 0 6px var(--cyan);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--cyan);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--t-normal), opacity var(--t-normal), background var(--t-normal);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--cyan);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--cyan);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(8, 12, 16, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  z-index: 999;
}

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

.nav-mobile .nav-link {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── Section Spacing ──────────────────────────────────────── */
section {
  padding: var(--space-5xl) 0;
}

/* ── Section Label ────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* ── Headings ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.heading-xl {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

.heading-lg {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

.heading-md {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.heading-sm {
  font-size: 1.1rem;
}

.text-cyan  { color: var(--cyan); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity var(--t-normal);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  color: var(--bg);
  background: #33ecff;
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.55), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-dim), inset 0 0 16px var(--cyan-dim);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.35), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-amber:hover {
  color: var(--bg);
  background: #ffc933;
  box-shadow: 0 0 36px rgba(255, 184, 0, 0.55);
  transform: translateY(-2px);
}

/* ── Hero – Page (sub-pages) ──────────────────────────────── */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: var(--space-3xl);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(0, 229, 255, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255, 184, 0, 0.04) 0%, transparent 60%);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--t-normal);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb span {
  color: var(--text-dim);
}

/* ── Glassmorphism Card ───────────────────────────────────── */
.card {
  background: rgba(13, 21, 32, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 229, 255, 0.1), 0 0 0 1px rgba(0, 229, 255, 0.15);
}

/* ── Image Placeholder ────────────────────────────────────── */
.img-placeholder {
  background: var(--surface-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(0, 229, 255, 0.03) 50%, transparent 70%);
}

.img-placeholder .placeholder-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.5rem;
}

/* ── Fade-in Animation (IntersectionObserver) ─────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── HERO – Landing ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text) 0%, rgba(0, 229, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hero-scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--cyan);
  display: block;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
  display: block;
}

/* ── Problem / Solution ───────────────────────────────────── */
.problem-solution {
  background: var(--surface);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  padding: var(--space-5xl) 0;
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.ps-block {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(8, 12, 16, 0.6);
}

.ps-block-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.ps-block.problem .ps-block-label { color: var(--amber); }
.ps-block.solution .ps-block-label { color: var(--cyan); }

.ps-block h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.ps-block p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* Concentric pulse diagram */
.ps-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}

.pulse-diagram {
  position: relative;
  width: 200px;
  height: 200px;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-expand 3s ease-out infinite;
}

.pulse-ring:nth-child(1) { width: 40px;  height: 40px;  animation-delay: 0s;    border-color: var(--cyan); }
.pulse-ring:nth-child(2) { width: 90px;  height: 90px;  animation-delay: 0.5s; }
.pulse-ring:nth-child(3) { width: 140px; height: 140px; animation-delay: 1s; }
.pulse-ring:nth-child(4) { width: 190px; height: 190px; animation-delay: 1.5s; }

.pulse-center {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--cyan);
}

@keyframes pulse-expand {
  0%   { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ── Use Case Section ─────────────────────────────────────── */
.usecase {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
  padding: var(--space-5xl) 0;
}

.usecase-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.8;
  margin-bottom: var(--space-4xl);
}

.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.usecase-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(8, 12, 16, 0.7);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
  position: relative;
}

.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.08);
}

.usecase-card:last-child {
  border-color: rgba(0, 229, 255, 0.3);
}

.usecase-card:last-child:hover {
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.15);
}

.usecase-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

.usecase-badge--before {
  background: rgba(107, 127, 143, 0.25);
  border: 1px solid rgba(107, 127, 143, 0.4);
  color: var(--text-muted);
}

.usecase-badge--after {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--cyan);
}

.usecase-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}

.usecase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.usecase-card:hover .usecase-img {
  transform: scale(1.03);
}

.usecase-card-body {
  padding: var(--space-xl);
}

.usecase-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.usecase-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.usecase-drawbacks,
.usecase-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.usecase-drawbacks li,
.usecase-benefits li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding-left: var(--space-lg);
  position: relative;
}

.usecase-drawbacks li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: #ff6655;
  opacity: 0.7;
}

.usecase-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.usecase-drawbacks li { color: var(--text-muted); }
.usecase-benefits li  { color: var(--text); }

@media (max-width: 768px) {
  .usecase-grid { grid-template-columns: 1fr; }
  .usecase { clip-path: polygon(0 0, 100% 2%, 100% 98%, 0 100%); }
}

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--cyan) 0px,
    var(--cyan) 6px,
    transparent 6px,
    transparent 14px
  );
  animation: dash-flow 2s linear infinite;
  z-index: 0;
}

@keyframes dash-flow {
  from { background-position: 0 0; }
  to   { background-position: 40px 0; }
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyan);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: var(--space-md);
  display: block;
}

.step-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  transition: border-color var(--t-normal), color var(--t-normal);
}

.step-card:hover .step-icon {
  border-color: var(--cyan);
  color: var(--cyan);
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Applications Grid ────────────────────────────────────── */
.applications {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  padding: var(--space-5xl) 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.app-card {
  background: rgba(13, 21, 32, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
  cursor: default;
}

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 12px 48px rgba(0, 229, 255, 0.12), 0 0 0 1px rgba(0, 229, 255, 0.2);
}

.app-card-img {
  height: 180px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-3);
}

.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.app-card:hover .app-card-img img {
  transform: scale(1.05);
}

.app-card-body {
  padding: var(--space-lg);
}

.app-card-body h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.app-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0, 229, 255, 0.06) 50%, var(--surface) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: var(--space-5xl) 0;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: var(--space-lg);
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}

/* ── Technology Page ──────────────────────────────────────── */
.tech-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 820px;
  margin: 0 auto var(--space-4xl);
  text-align: center;
}

/* Atom/wave diagram */
.atom-diagram {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto var(--space-4xl);
}

.atom-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
}

.atom-orbit:nth-child(1) {
  width: 260px; height: 260px;
  animation: orbit-spin 10s linear infinite;
  border-color: rgba(0, 229, 255, 0.15);
}

.atom-orbit:nth-child(2) {
  width: 180px; height: 180px;
  animation: orbit-spin 7s linear infinite reverse;
  border-color: rgba(0, 229, 255, 0.2);
}

.atom-orbit:nth-child(3) {
  width: 100px; height: 100px;
  animation: orbit-spin 4s linear infinite;
  border-color: rgba(0, 229, 255, 0.3);
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.atom-electron {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.atom-orbit:nth-child(1) .atom-electron { top: 0;    left: 50%; transform: translate(-50%, -50%); }
.atom-orbit:nth-child(2) .atom-electron { top: 50%;  right: 0;  transform: translate(50%, -50%); }
.atom-orbit:nth-child(3) .atom-electron { bottom: 0; left: 50%; transform: translate(-50%, 50%); }

.atom-nucleus {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber) 0%, rgba(255,184,0,0.4) 100%);
  box-shadow: 0 0 16px rgba(255,184,0,0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Technology Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.pillar-card {
  padding: var(--space-2xl);
  background: rgba(13, 21, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  transition: border-color var(--t-normal), transform var(--t-normal);
}

.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: var(--space-md);
  display: block;
}

.pillar-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  letter-spacing: 0.06em;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Spec Table */
.spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--surface-2);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0, 229, 255, 0.05);
  color: var(--text-muted);
}

.spec-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.spec-table td.mono-val {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tbody tr:hover td {
  background: rgba(0, 229, 255, 0.03);
}

/* Comparison Table */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}

.compare-table th.highlight {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.compare-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0, 229, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text);
}

.compare-table td.highlight {
  background: rgba(0, 229, 255, 0.05);
  color: var(--cyan);
  font-weight: 600;
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(0, 229, 255, 0.02); }
.compare-table tbody tr:hover td.highlight { background: rgba(0, 229, 255, 0.08); }

.check-yes  { color: var(--cyan); }
.check-no   { color: var(--text-dim); }
.check-part { color: var(--amber); }

/* IP list */
.ip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ip-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 21, 32, 0.5);
  transition: border-color var(--t-normal);
}

.ip-item:hover { border-color: var(--border-hover); }

.ip-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.ip-content h4 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.ip-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Team Page ────────────────────────────────────────────── */

/* Mission Quote */
.mission-quote {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-4xl) 0;
  position: relative;
}

.quote-mark {
  font-family: 'Georgia', serif;
  font-size: 8rem;
  line-height: 0.5;
  color: var(--cyan);
  opacity: 0.15;
  display: block;
  margin-bottom: var(--space-lg);
}

.mission-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.mission-quote cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  font-style: normal;
}

/* About two-col */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.about-text p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-left  { text-align: right; }
.timeline-right { text-align: left; }

.timeline-item.even .timeline-left  { grid-column: 3; text-align: left; }
.timeline-item.even .timeline-dot   { grid-column: 2; }
.timeline-item.even .timeline-right { grid-column: 1; grid-row: 1; text-align: right; }

.timeline-dot {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.timeline-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  flex-shrink: 0;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--space-sm);
}

.timeline-left h4,
.timeline-right h4 {
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.timeline-left p,
.timeline-right p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.team-card {
  background: rgba(13, 21, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.1);
}

.team-card:hover .team-name {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.team-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-align: center;
  padding: var(--space-sm);
  transition: border-color var(--t-normal);
  overflow: hidden;
  position: relative;
}

.team-card:hover .team-avatar {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
  transition: color var(--t-normal);
}

.team-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}

.team-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.team-social {
  display: flex;
  justify-content: center;
}

.social-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--t-normal), color var(--t-normal);
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Advisors */
.advisors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.advisor-card {
  background: rgba(13, 21, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--t-normal), transform var(--t-normal);
}

.advisor-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.advisor-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  text-align: center;
  padding: var(--space-sm);
}

.advisor-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-xs);
}

.advisor-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}

.advisor-bio {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13, 21, 32, 0.5);
  transition: border-color var(--t-normal);
}

.value-card:hover { border-color: var(--border-hover); }

.value-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--cyan);
}

.value-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-body .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-item-body .value {
  font-size: 0.9rem;
  color: var(--text);
}

.contact-item-body .value a {
  color: var(--text);
}
.contact-item-body .value a:hover {
  color: var(--cyan);
}

.response-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.05em;
}

.map-placeholder {
  height: 200px;
  background: var(--surface-3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.contact-socials {
  display: flex;
  gap: var(--space-sm);
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(13, 21, 32, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(16px);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(8, 12, 16, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ff4444;
}

.form-error-msg {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #ff6666;
  margin-top: var(--space-xs);
  display: none;
}

.form-error-msg.visible { display: block; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7F8F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--surface-2);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(8, 12, 16, 0.8);
  cursor: pointer;
  accent-color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-checkbox-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-checkbox-label a {
  color: var(--cyan);
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-top: var(--space-md);
}

.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.form-success.visible { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--cyan);
}

.form-success h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(13, 21, 32, 0.5);
  overflow: hidden;
  transition: border-color var(--t-normal);
}

.faq-item.open { border-color: var(--border-hover); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  text-align: left;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-normal);
}

.faq-question:hover { color: var(--cyan); }
.faq-item.open .faq-question { color: var(--cyan); }

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--t-normal), border-color var(--t-normal), color var(--t-normal);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--cyan);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid transparent;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--cyan));
  background-size: 200% 100%;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.footer-main {
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-lg);
  display: inline-flex;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-normal), padding-left var(--t-normal);
}

.footer-links a:hover {
  color: var(--text);
  padding-left: var(--space-xs);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-normal);
}

.footer-social-link:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color var(--t-normal);
}

.footer-legal-links a:hover { color: var(--text-muted); }

/* ── Back to Top ──────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-normal), transform var(--t-normal), border-color var(--t-normal), color var(--t-normal);
  z-index: 900;
}

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

#back-to-top:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-dim);
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apps-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .advisors-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  section { padding: var(--space-4xl) 0; }

  .container { padding: 0 var(--space-lg); }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-headline { font-size: clamp(2rem, 8vw, 3.5rem); }

  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .ps-grid      { grid-template-columns: 1fr; gap: var(--space-xl); }
  .ps-diagram   { display: none; }
  .steps-grid   { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .apps-grid    { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr 1fr; }
  .advisors-grid { grid-template-columns: 1fr 1fr; }
  .values-grid  { grid-template-columns: 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .timeline::before { left: 20px; }
  .timeline-item    { grid-template-columns: 28px 1fr; gap: var(--space-md); }
  .timeline-left    { display: none; }
  .timeline-item.even .timeline-left  { display: none; }
  .timeline-item.even .timeline-dot   { grid-column: 1; }
  .timeline-item.even .timeline-right { grid-column: 2; grid-row: 1; text-align: left; }

  .page-hero { min-height: 45vh; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }

  .compare-table { font-size: 0.8rem; }
  .compare-table th,
  .compare-table td { padding: var(--space-sm) var(--space-md); }
}

@media (max-width: 480px) {
  .apps-grid    { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr; }
  .advisors-grid { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
}
