/* ══════════════════════════════════════════════
   VIA — Shared Design System
   GitHub-inspired dark theme
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

/* ── Design Tokens ── */
:root {
  --bg: #0d1117;
  --bg-surface: #161b22;
  --bg-inset: #010409;
  --border: rgba(240, 246, 252, 0.1);
  --border-hover: rgba(139, 92, 246, 0.4);
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent-purple: #8b5cf6;
  --accent-blue: #58a6ff;
  --accent-pink: #f778ba;
  --accent-green: #3fb950;
  --accent-amber: #d29922;
  --gradient-text: linear-gradient(135deg, #8b5cf6, #58a6ff, #f778ba);
  --gradient-cta: linear-gradient(135deg, #8b5cf6, #6366f1);
  --glow-purple: rgba(139, 92, 246, 0.15);
  --glow-blue: rgba(88, 166, 255, 0.1);
  --container: 1200px;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent-purple); color: #fff; }

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Keyframes ── */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

@keyframes particleDrift {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(var(--dx, 60px), var(--dy, -80px)); opacity: 0; }
}

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

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  transition: border-color 0.3s ease;
}

nav.scrolled { border-bottom-color: rgba(240, 246, 252, 0.15); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-center {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-center a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px var(--glow-purple);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

nav.open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Buttons ── */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-gradient:hover {
  box-shadow: 0 0 30px var(--glow-purple), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-large { padding: 14px 32px; font-size: 1rem; }

/* ── Scroll Animation ── */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-in[data-delay="1"] { transition-delay: 0.1s; }
.animate-in[data-delay="2"] { transition-delay: 0.2s; }
.animate-in[data-delay="3"] { transition-delay: 0.3s; }
.animate-in[data-delay="4"] { transition-delay: 0.4s; }

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

/* ── Section Common ── */
.section {
  padding: 120px 0;
  position: relative;
}

.section--bordered { border-top: 1px solid var(--border); }
.section--surface  { background: var(--bg-surface); }

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Hero (shared base for subpages) ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(88, 166, 255, 0.06), transparent),
    var(--bg);
}

.hero .section-badge { margin-bottom: 12px; }

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Stats Row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.04);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-cta);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card--full { grid-column: 1 / -1; }
.card--link { text-decoration: none; color: inherit; cursor: pointer; }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon--purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.card-icon--blue   { background: rgba(88, 166, 255, 0.1);  color: var(--accent-blue); }
.card-icon--green  { background: rgba(63, 185, 80, 0.1);   color: var(--accent-green); }
.card-icon--pink   { background: rgba(247, 120, 186, 0.1); color: var(--accent-pink); }
.card-icon--amber  { background: rgba(210, 153, 34, 0.1);  color: var(--accent-amber); }

.card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-purple);
  margin-top: 16px;
  transition: transform 0.3s ease;
}

.card--link:hover .card-arrow { transform: translateX(4px); }

/* ── Spec Badges ── */
.spec-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spec-badges li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.spec-badges li:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ── Tech Badges ── */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.tech-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(88, 166, 255, 0.03);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 16px var(--glow-blue);
}

/* ── Terminal ── */
.terminal {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-inset);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot--red    { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green  { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: var(--mono);
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-body .c { color: var(--text-muted); }
.terminal-body .k { color: var(--accent-blue); }
.terminal-body .v { color: var(--accent-green); }
.terminal-body .p { color: var(--text-muted); }

/* ── Table ── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.875rem;
}

.spec-table th,
.spec-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
}

.spec-table tbody td {
  color: var(--text-secondary);
}

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

.spec-table code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-blue);
  background: rgba(88, 166, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Architecture Layer ── */
.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
}

.arch-layer {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.arch-label {
  min-width: 140px;
  padding: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  border-radius: 6px 0 0 6px;
}

.arch-items {
  flex: 1;
  display: flex;
  gap: 2px;
}

.arch-item {
  flex: 1;
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.arch-item:last-child { border-radius: 0 6px 6px 0; }

.arch-item--accent {
  color: var(--accent-purple);
  font-weight: 500;
}

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-green);
  font-family: var(--mono);
  margin-bottom: 4px;
}

.kpi-item:hover {
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.04);
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-section > .container > p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  position: relative;
}

.contact-details {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  position: relative;
}

.contact-details a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-details a:hover { color: var(--accent-purple); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Domain Labels ── */
.domain-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}

.domain-label--auto { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.domain-label--agri { background: rgba(63, 185, 80, 0.1);   color: var(--accent-green); }

/* ── Hero Short (sub-pages) ── */
.hero--short {
  min-height: auto;
  padding: 140px 0 80px;
  text-align: center;
}

.hero--short .hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .75rem;
}

.hero--short .hero-subtitle {
  color: rgba(255,255,255,.5);
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue), var(--accent-green));
  opacity: .3;
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

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

.timeline-marker {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(139,92,246,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}

.timeline-content p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

.timeline-meta {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: .35rem;
}

/* ── Trusted Logos ── */
.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trusted-logo {
  width: 140px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.25);
  letter-spacing: .04em;
  transition: border-color .3s ease;
}

.trusted-logo:hover {
  border-color: rgba(255,255,255,.15);
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .3s ease, transform .3s ease;
}

.team-card:hover {
  border-color: rgba(255,255,255,.12);
  transform: translateY(-3px);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

.team-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
}

.team-role {
  font-size: .78rem;
  color: var(--accent-purple);
  font-weight: 500;
  margin-bottom: .75rem;
}

.team-bio {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.55;
}

/* ── Visual Placeholders ── */
.visual {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
}

.visual--16x9 { aspect-ratio: 16/9; }
.visual--4x3  { aspect-ratio: 4/3; }
.visual--2x1  { aspect-ratio: 2/1; }
.visual--hero  { aspect-ratio: 21/9; }

.visual--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(139,92,246,.06) 0%, transparent 70%);
  pointer-events: none;
}

.visual-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
}

.visual-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.15);
}

.visual-caption {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin-top: .75rem;
  line-height: 1.4;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

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

.visual-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.visual-split--reverse {
  direction: rtl;
}

.visual-split--reverse > * {
  direction: ltr;
}

.visual-split-text h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .75rem;
}

.visual-split-text p {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* Video placeholder */
.visual-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(139,92,246,.15);
  border: 2px solid rgba(139,92,246,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  transition: background .3s ease, transform .3s ease;
  cursor: pointer;
}

.visual-play:hover {
  background: rgba(139,92,246,.25);
  transform: scale(1.08);
}

/* ── Legal Content ── */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.legal-content p {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  margin-bottom: .75rem;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.legal-content ul li {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  padding: .3rem 0 .3rem 1.5rem;
  position: relative;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple);
  opacity: .5;
}

.legal-content a {
  color: var(--accent-blue);
}

.legal-content a:hover {
  color: var(--accent-purple);
}

/* ── Footer Legal ── */
.footer-legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: .5rem;
}

.footer-legal a {
  font-size: .7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s ease;
}

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

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
  .card-grid, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .visual-split { grid-template-columns: 1fr; }
  .visual-split--reverse { direction: ltr; }
  .visual-grid--3 { grid-template-columns: 1fr 1fr; }
  .arch-label { min-width: 100px; font-size: 0.6875rem; padding: 12px; }
  .arch-item { font-size: 0.75rem; padding: 10px 8px; }
  nav { padding: 0 24px; }
  .nav-center a { padding: 6px 8px; font-size: 0.75rem; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .hero { padding: 100px 0 60px; }
  .hero--short { padding: 120px 0 60px; }

  .nav-toggle { display: flex; }
  .nav-center, .nav-right { display: none; }

  nav.open .nav-center {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }

  nav.open .nav-right {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    padding: 0 24px 16px;
    background: rgba(13, 17, 23, 0.95);
  }

  .card-grid, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .visual-grid, .visual-grid--3 { grid-template-columns: 1fr; }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-gradient,
  .cta-buttons .btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .arch-layer { flex-direction: column; }
  .arch-label { min-width: auto; border-radius: 6px 6px 0 0; }
  .arch-items { flex-wrap: wrap; }
  .arch-item { min-width: 0; border-radius: 0; }
  .arch-item:last-child { border-radius: 0 0 6px 6px; }

  .spec-table { font-size: 0.8rem; }
  .spec-table th, .spec-table td { padding: 10px 12px; }

  .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }

  .terminal-body { font-size: 0.75rem; padding: 16px; }
}

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

/* ── Print ── */
@media print {
  nav { position: relative; }
  .hero { min-height: auto; }
  .hero-bg, .cta-glow { display: none; }
  .section { page-break-inside: avoid; }
}
