/* ═══════════════════════════════════════════════════════════════════════
   Merkle Labs — Blockchain Infrastructure & GPU Compute
   Design System: Architectural blueprint — deep blue, white linework
   ═══════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────── */
:root {
  /* Background — deep blueprint blue */
  --bg: #0a1628;
  --bg-light: #0e1e36;

  /* Borders — white/cyan linework */
  --border: rgba(120, 180, 255, 0.12);
  --border-subtle: rgba(120, 180, 255, 0.06);

  /* Text */
  --text-primary: #e0e8f0;
  --text-secondary: #a0afc0;
  --text-tertiary: #7a8a9e;

  /* Primary accent — blueprint cyan */
  --accent: #5ba8f5;
  --accent-bright: #8ec8ff;
  --accent-white: #e8f0ff;

  /* Secondary accent — warm amber for highlights & contrast */
  --accent-warm: #f0a050;
  --accent-warm-soft: rgba(240, 160, 80, 0.7);

  /* Tertiary accent — green for status/success */
  --accent-green: #4ecb71;

  /* Accent tints for icon backgrounds */
  --tint-blue: rgba(91, 168, 245, 0.08);
  --tint-warm: rgba(240, 160, 80, 0.08);
  --tint-green: rgba(78, 203, 113, 0.08);
  --tint-purple: rgba(160, 120, 245, 0.08);
  --tint-teal: rgba(80, 200, 200, 0.08);

  /* Named accent colors */
  --accent-purple: #a078f5;
  --accent-teal: #50c8c8;

  /* Card background — glassmorphic */
  --card-bg: rgba(12, 24, 48, 0.55);
  --glass-border: rgba(120, 180, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.03);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-short: 100ms;
  --duration-medium: 250ms;

  /* Radius — sharp/technical */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  /* Typography — blueprint feel favors mono */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Monaco, monospace;
}

/* ── Film grain overlay ────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── Layout ─────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 5%, var(--border) 30%, var(--border) 70%, transparent 95%) 1;
}

.section:first-of-type {
  border-top: none;
}

/* ── Blueprint Background ─────────────────────────────────────────── */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(91, 168, 245, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 168, 245, 0.025) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.6);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--glass-highlight);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  z-index: 100;
  width: 0%;
  transition: width 50ms linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-white);
  letter-spacing: 0.02em;
  transition: all var(--duration-medium) var(--ease-standard);
}

.logo:hover {
  color: #fff;
}

.logo-favicon {
  width: 3.9375rem;
  height: 3.9375rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
  margin-right: -0.75rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0;
}

.nav-desktop a {
  position: relative;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.02em;
  transition: color var(--duration-medium) var(--ease-standard);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.nav-desktop a:hover {
  color: var(--accent-bright);
}

.nav-desktop a:hover::after {
  transform: scaleX(1);
}

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

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  transition: all var(--duration-medium) var(--ease-standard);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.nav-mobile.open {
  display: flex;
  animation: nav-slide 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes nav-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-mobile a {
  font-size: 0.9375rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--duration-short) var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile a:hover {
  color: var(--accent-bright);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(240, 160, 80, 0.06);
  border: 1px solid rgba(240, 160, 80, 0.5);
  border-radius: var(--radius-sm);
  color: var(--accent-warm);
  font-weight: 500;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-standard);
}

.btn-primary:hover {
  background: rgba(240, 160, 80, 0.12);
  border-color: var(--accent-warm);
  color: #ffd0a0;
  box-shadow: 0 0 20px rgba(240, 160, 80, 0.15), 0 0 4px rgba(240, 160, 80, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(120, 180, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(120, 180, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-medium) var(--ease-standard);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: rgba(120, 180, 255, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(91, 168, 245, 0.08);
}

.btn-sm {
  padding: 0.375rem 0.875rem;
}

.btn-lg {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* ── Section Headers ────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(91, 168, 245, 0.12);
  border-radius: var(--radius-full);
  background: rgba(91, 168, 245, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-pill-green {
  color: var(--accent-green);
  border-color: rgba(78, 203, 113, 0.15);
  background: rgba(78, 203, 113, 0.04);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--accent-white);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding: 9rem 0 5rem;
  text-align: center;
}

/* Hero entrance animation — 'both' fill keeps elements hidden until animation runs */
.hero .hero-pill,
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-actions {
  animation: hero-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .hero-pill     { animation-delay: 0.1s; }
.hero .hero-title    { animation-delay: 0.2s; }
.hero .hero-subtitle { animation-delay: 0.35s; }
.hero .hero-actions  { animation-delay: 0.5s; }

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 35%, rgba(91, 168, 245, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 45%, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.25) 60%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--accent-green);
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  padding: 0.3rem 1rem;
  border: 1px solid rgba(78, 203, 113, 0.2);
  border-radius: var(--radius-full);
  background: rgba(78, 203, 113, 0.04);
  position: relative;
  overflow: hidden;
}

.hero-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 203, 113, 0.08), transparent);
  animation: pill-shimmer 4s ease-in-out infinite;
}

@keyframes pill-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* ── Hero 3D graphic container ──────────────────────────────────────── */
.hero-3d {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero-3d { width: 400px; height: 400px; }
}

.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 767px) {
  .hero-3d { width: 120px; height: 120px; margin-bottom: 0.75rem; }
}

/* Text-only narrative — no 3D, centered text */
.narrative-text-only .container {
  justify-content: center;
}
.narrative-text-only .narrative-text {
  text-align: center;
}

/* Narrative intro — hero-level interstitial */
.narrative-intro {
  padding: 1rem 0;
}
.narrative-intro-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

@media (max-width: 767px) {
  .narrative-intro {
    padding: 0.5rem 0;
  }
  .narrative-intro-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(78, 203, 113, 0.5), 0 0 16px rgba(78, 203, 113, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--accent-white);
  text-shadow: 0 0 80px rgba(91, 168, 245, 0.15);
}

.text-accent {
  background: linear-gradient(135deg, #8ec8ff, #5ba8f5, #c090f0, #f0a050);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  text-wrap: balance;
}

/* ── Blockchain background canvas ─────────────────────────────────── */
#blockchain-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  margin-top: 1rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--border), rgba(91, 168, 245, 0.2), var(--border), transparent) 1;
  max-width: 640px;
  margin-inline: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-item:hover .stat-number {
  color: #fff;
  text-shadow: 0 0 32px rgba(91, 168, 245, 0.35);
}

.stat-number {
  font-size: 1.375rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent-white);
  text-shadow: 0 0 24px rgba(91, 168, 245, 0.2);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-divider {
  width: 1px;
  height: 1.75rem;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* ── Services Grid ──────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.service-card {
  position: relative;
  background: linear-gradient(135deg, rgba(91, 168, 245, 0.06) 0%, rgba(78, 203, 113, 0.03) 100%);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(91, 168, 245, 0.1);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:nth-child(3n) {
  border-right: 1px solid rgba(91, 168, 245, 0.1);
}

.service-card:nth-last-child(-n+3) {
  border-bottom: 1px solid rgba(91, 168, 245, 0.1);
}

.service-card:hover {
  background: linear-gradient(135deg, rgba(91, 168, 245, 0.1) 0%, rgba(78, 203, 113, 0.05) 100%);
  border-color: rgba(91, 168, 245, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(91, 168, 245, 0.08);
}

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

.service-card-highlight {
  border-color: rgba(78, 203, 113, 0.15);
}

.service-card-highlight::before {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
}

.service-card-highlight:hover {
  background: linear-gradient(135deg, rgba(78, 203, 113, 0.08) 0%, rgba(91, 168, 245, 0.04) 100%);
  border-color: rgba(78, 203, 113, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(78, 203, 113, 0.08);
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tint-blue);
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  box-shadow: 0 0 0 rgba(91, 168, 245, 0);
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(91, 168, 245, 0.3);
}

.service-icon-amber {
  background: var(--tint-warm);
  color: var(--accent-warm);
}

.service-card:hover .service-icon-amber {
  box-shadow: 0 0 20px rgba(240, 160, 80, 0.3);
}

.service-icon-teal {
  background: var(--tint-teal);
  color: var(--accent-teal);
}

.service-card:hover .service-icon-teal {
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
}

.service-icon-purple {
  background: var(--tint-purple);
  color: var(--accent-purple);
}

.service-card:hover .service-icon-purple {
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.service-icon-green {
  background: var(--tint-green);
  color: var(--accent-green);
}

.service-card:hover .service-icon-green {
  box-shadow: 0 0 20px rgba(78, 203, 113, 0.3);
}

.service-icon-blue {
  background: var(--tint-blue);
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent-bright);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.75;
}

/* ── Networks Grid ──────────────────────────────────────────────────── */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.network-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem 0.5rem;
  background: linear-gradient(135deg, rgba(91, 168, 245, 0.05) 0%, rgba(78, 203, 113, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 168, 245, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.network-item:hover {
  background: linear-gradient(135deg, rgba(91, 168, 245, 0.1) 0%, rgba(78, 203, 113, 0.04) 100%);
  border-color: rgba(91, 168, 245, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 12px rgba(91, 168, 245, 0.08);
}

.network-item:hover .network-icon {
  transform: scale(1.1);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.network-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.network-letter {
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

.network-item span:last-child {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.network-item:hover span:last-child {
  color: var(--text-primary);
}

.network-more {
  border-style: dashed;
}

.network-icon-more {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
}

.network-more span:last-child {
  color: var(--accent);
}

.network-more .network-icon-more {
  animation: more-pulse 2.5s ease-in-out infinite;
}

@keyframes more-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── GPU Section ────────────────────────────────────────────────────── */
#gpu {
  position: relative;
}

#gpu::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(78, 203, 113, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.gpu-unified {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.5rem;
  align-items: start;
  border-radius: var(--radius-md);
  padding: 2rem;
  background: linear-gradient(135deg, rgba(78, 203, 113, 0.04) 0%, rgba(91, 168, 245, 0.02) 100%);
  border: 1px solid rgba(78, 203, 113, 0.08);
}

.gpu-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gpu-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gpu-card {
  position: relative;
  background: linear-gradient(135deg, rgba(78, 203, 113, 0.06) 0%, rgba(91, 168, 245, 0.03) 100%);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(78, 203, 113, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.gpu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-teal));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gpu-card:last-child {
  border-bottom: 1px solid rgba(78, 203, 113, 0.1);
}

.gpu-card:hover {
  background: linear-gradient(135deg, rgba(78, 203, 113, 0.1) 0%, rgba(91, 168, 245, 0.05) 100%);
  border-color: rgba(78, 203, 113, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(78, 203, 113, 0.08);
}

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

.gpu-card:hover .gpu-card-icon {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(78, 203, 113, 0.3);
}

.gpu-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.gpu-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--accent-green);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.gpu-card-icon-purple {
  background: var(--tint-purple);
  color: var(--accent-purple);
}

.gpu-card:hover .gpu-card-icon-purple {
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.gpu-card-icon-teal {
  background: var(--tint-teal);
  color: var(--accent-teal);
}

.gpu-card:hover .gpu-card-icon-teal {
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
}

.gpu-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}

.gpu-card:hover h3 {
  color: var(--accent-bright);
}

.gpu-card p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.75;
}

.gpu-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.gpu-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.gpu-spec-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gpu-spec-value {
  font-size: 0.9375rem;
  color: var(--accent-warm);
  font-family: var(--font-mono);
  font-weight: 500;
  text-shadow: 0 0 20px rgba(240, 160, 80, 0.12);
}

/* GPU sidebar */
.gpu-capabilities {
  background: rgba(12, 24, 48, 0.4);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: none;
  border-left: 1px solid var(--glass-border);
  padding: 2rem;
  position: sticky;
  top: 5.5rem;
  border-radius: 0;
  box-shadow: inset 1px 0 0 var(--glass-highlight);
}

.gpu-capabilities h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.gpu-capabilities ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gpu-capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.6;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gpu-capabilities li:hover {
  transform: translateX(4px);
  color: #fff;
}

.gpu-capabilities li svg {
  flex-shrink: 0;
  color: var(--accent-green);
  margin-top: 2px;
}

/* ── Why Grid ───────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.why-card {
  position: relative;
  background: linear-gradient(135deg, rgba(91, 168, 245, 0.06) 0%, rgba(78, 203, 113, 0.03) 100%);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(91, 168, 245, 0.1);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.why-card:nth-child(3n) {
  border-right: 1px solid rgba(91, 168, 245, 0.1);
}

.why-card:nth-last-child(-n+3) {
  border-bottom: 1px solid rgba(91, 168, 245, 0.1);
}

.why-card:hover {
  background: linear-gradient(135deg, rgba(91, 168, 245, 0.1) 0%, rgba(78, 203, 113, 0.05) 100%);
  border-color: rgba(91, 168, 245, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 20px rgba(91, 168, 245, 0.08);
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  background: var(--tint-blue);
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.15);
}

.why-card:hover .why-icon-blue {
  box-shadow: 0 0 20px rgba(91, 168, 245, 0.3);
}

.why-card:hover .why-icon-purple {
  box-shadow: 0 0 20px rgba(160, 120, 245, 0.3);
}

.why-card:hover .why-icon-amber {
  box-shadow: 0 0 20px rgba(240, 160, 80, 0.3);
}

.why-card:hover .why-icon-teal {
  box-shadow: 0 0 20px rgba(80, 200, 200, 0.3);
}

.why-card:hover .why-icon-green {
  box-shadow: 0 0 20px rgba(78, 203, 113, 0.3);
}

.why-icon-blue {
  background: var(--tint-blue);
  color: var(--accent);
}

.why-icon-purple {
  background: var(--tint-purple);
  color: var(--accent-purple);
}

.why-icon-amber {
  background: var(--tint-warm);
  color: var(--accent-warm);
}

.why-icon-teal {
  background: var(--tint-teal);
  color: var(--accent-teal);
}

.why-icon-green {
  background: var(--tint-green);
  color: var(--accent-green);
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: #fff;
  transition: color 0.25s ease;
}

.why-card:hover h3 {
  color: var(--accent-bright);
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.75;
}

/* ── About ──────────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content .section-pill {
  margin-bottom: 1rem;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text-highlight {
  color: var(--accent-white);
  font-size: 1.0625rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1.5rem;
  transition: border-color 0.3s ease;
}

.about-text-highlight:hover {
  border-left-color: var(--accent-warm);
}

/* Terminal block */
.about-terminal {
  background: rgba(8, 18, 38, 0.5);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 var(--glass-highlight),
    0 0 1px rgba(91, 168, 245, 0.1);
  transition: box-shadow 0.4s ease;
}

.about-terminal:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 0 0 24px rgba(91, 168, 245, 0.06);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-red { background: rgba(240, 100, 100, 0.5); transition: background 0.2s; }
.dot-yellow { background: rgba(240, 180, 60, 0.5); transition: background 0.2s; }
.dot-green { background: rgba(78, 203, 113, 0.6); transition: background 0.2s; }

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
}

.terminal-line {
  display: flex;
  gap: 0.5rem;
}

.terminal-prompt {
  color: var(--accent-green);
  user-select: none;
}

.terminal-cmd {
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.terminal-line:hover .terminal-cmd {
  color: var(--accent-bright);
}

.terminal-output {
  color: var(--text-tertiary);
  padding-left: 1.25rem;
}

/* Blinking cursor on last terminal line */
.terminal-line:last-of-type .terminal-cmd::after {
  content: '▋';
  display: inline-block;
  color: var(--accent-green);
  opacity: 0.7;
  animation: blink 1.2s step-end infinite;
  margin-left: 2px;
  font-size: 0.75em;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}

/* ── CTA Box ────────────────────────────────────────────────────────── */
.cta-box {
  position: relative;
  background: rgba(12, 24, 48, 0.45);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 4.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(91, 168, 245, 0.04),
    inset 0 1px 0 var(--glass-highlight),
    0 16px 48px rgba(0, 0, 0, 0.2);
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(91, 168, 245, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-white) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-actions .btn-primary {
  animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(240, 160, 80, 0.08); }
  50% { box-shadow: 0 0 24px rgba(240, 160, 80, 0.2), 0 0 4px rgba(240, 160, 80, 0.1); }
}

.cta-contact p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cta-contact strong {
  color: var(--text-primary);
}

.cta-email {
  color: var(--accent-warm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  transition: color var(--duration-short);
}

.cta-email:hover {
  color: #ffd0a0;
  text-shadow: 0 0 16px rgba(240, 160, 80, 0.2);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 168, 245, 0.15), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-brand .logo-favicon {
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.footer-brand .logo:hover .logo-favicon {
  transform: rotate(12deg) scale(1.05);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  transition: color var(--duration-short);
}

.footer-col a:hover {
  color: var(--accent-white);
  padding-left: 0.25rem;
  transition: all 0.15s ease;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ── Section alternate background — glassmorphic gradient fade ──────── */
.section-alt {
  background: rgba(14, 30, 54, 0.2);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 35% at 50% 0%, rgba(91, 168, 245, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Grainy fade at section tops and bottoms */
.section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(10, 22, 40, 0.4));
  pointer-events: none;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section {
  position: relative;
}

/* ── Scroll-driven storytelling animations ──────────────────────────── */

/* Base: all animated elements start hidden */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: none !important;
}

/* Directional variants — subtle movement */
[data-reveal="up"]    { transform: translateY(20px); }
[data-reveal="down"]  { transform: translateY(-20px); }
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(0.95); }
[data-reveal="scale-up"] { transform: scale(0.9) translateY(12px); }

/* Longer travel for big elements */
[data-reveal="up-far"]   { transform: translateY(32px); }
[data-reveal="left-far"] { transform: translateX(-40px); }
[data-reveal="right-far"]{ transform: translateX(40px); }

/* Slower for hero-level reveals */
[data-reveal][data-delay] {
  transition-duration: 1.2s;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .btn-primary.btn-sm {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(2n) {
    border-right: none;
  }

  .service-card-wide {
    grid-column: 1 / -1;
  }

  .gpu-main {
    gap: 1rem;
  }

  .gpu-unified {
    grid-template-columns: 1fr;
  }

  .gpu-backprop {
    min-height: 280px;
    order: -1;
  }

  .gpu-capabilities {
    position: static;
    border-left: none;
    border-top: 1px solid var(--border);
  }

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

  .why-card:nth-child(2n) {
    border-right: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 4.5rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
  }

  .hero-pill {
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    margin-bottom: 2rem;
    gap: 0.75rem;
  }

  .hero-actions .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding-top: 1.25rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 0 0 auto;
    min-width: 0;
  }

  .stat-number {
    font-size: 1.125rem;
  }

  .stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-right: none;
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.0625rem;
  }

  .service-card p {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .service-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
  }

  .networks-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .network-item span:last-child {
    font-size: 0.75rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    border-right: none;
    padding: 1.5rem;
  }

  .why-card h3 {
    font-size: 1rem;
  }

  .why-card p {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .why-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
  }

  .gpu-unified {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    border: none;
    background: none;
  }

  .gpu-backprop {
    min-height: 200px;
    order: -1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(78, 203, 113, 0.04) 0%, rgba(91, 168, 245, 0.02) 100%);
    border: 1px solid rgba(78, 203, 113, 0.08);
  }

  .gpu-card {
    padding: 1.5rem;
  }

  .gpu-card h3 {
    font-size: 1.0625rem;
  }

  .gpu-card p {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .gpu-specs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .gpu-capabilities-row {
    padding: 1rem 1.25rem;
  }

  .gpu-capabilities-row ul {
    gap: 0.5rem 1rem;
  }

  .gpu-capabilities-row li {
    font-size: 0.8125rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title[style*="text-align:left"] {
    font-size: 1.5rem !important;
  }

  .about-text {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .about-text-highlight {
    font-size: 0.9375rem;
  }

  .terminal-body {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    overflow-x: auto;
  }

  .cta-box {
    padding: 2rem 1.25rem;
  }

  .cta-title {
    font-size: 1.375rem;
    line-height: 1.25;
  }

  .cta-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .cta-actions .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
  }

  /* Hide login button on mobile — it's in the mobile nav */
  .btn-login {
    display: none;
  }

  /* Header tighter on mobile */
  .header-inner {
    height: 3rem;
  }

  .header-actions .btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
  }

  .logo {
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .logo-favicon {
    width: 3.375rem;
    height: 3.375rem;
  }
}

/* ── Selection color ────────────────────────────────────────────────── */
::selection {
  background: rgba(91, 168, 245, 0.3);
  color: #fff;
}

/* ── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(91, 168, 245, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 168, 245, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════
   Blog
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Blog Listing ──────────────────────────────────────────────────── */
.blog-listing {
  padding-top: 8rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-card {
  display: block;
  background: rgba(14, 30, 54, 0.4);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem;
  transition: all var(--duration-medium) var(--ease-standard);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-standard);
}

.blog-card:hover {
  background: rgba(91, 168, 245, 0.05);
}

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

.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.blog-tag-blue {
  background: var(--tint-blue);
  color: var(--accent);
}

.blog-tag-purple {
  background: var(--tint-purple);
  color: #a078f5;
}

.blog-tag-green {
  background: var(--tint-green);
  color: var(--accent-green);
}

.blog-tag-amber {
  background: var(--tint-warm);
  color: var(--accent-warm);
}

.blog-card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.blog-card:hover .blog-card-title {
  color: var(--accent-bright);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.blog-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

/* ── Blog Post ─────────────────────────────────────────────────────── */
.blog-post {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.blog-post-container {
  max-width: 760px;
}

.blog-post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.blog-back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: color var(--duration-short);
}

.blog-back-link:hover {
  color: var(--accent-bright);
}

.blog-post-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

/* ── Blog Post Body (prose) ────────────────────────────────────────── */
.blog-post-body {
  font-size: 1.0625rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.blog-lead {
  font-size: 1.1875rem;
  color: var(--accent-white);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.blog-post-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.blog-post-body h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--accent-white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post-body p {
  margin-bottom: 1.25rem;
}

.blog-post-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.blog-post-body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  line-height: 1.7;
}

.blog-post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.blog-post-body ul li strong {
  color: var(--accent-white);
}

.blog-post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(91, 168, 245, 0.08);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--accent-bright);
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color var(--duration-short);
}

.blog-post-body a:hover {
  color: var(--accent-bright);
}

/* ── Blog CTA ──────────────────────────────────────────────────────── */
.blog-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(14, 30, 54, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.blog-cta h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.blog-cta p {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

.blog-cta a {
  color: var(--accent-warm);
  font-weight: 500;
}

.blog-cta a:hover {
  color: #ffd0a0;
}

/* ── Blog Responsive ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .blog-listing {
    padding-top: 4rem;
  }

  .blog-card {
    padding: 1.25rem;
  }

  .blog-card-title {
    font-size: 1rem;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-post-body {
    font-size: 0.9375rem;
  }

  .blog-lead {
    font-size: 1rem;
  }

  .blog-post-body h2 {
    font-size: 1.125rem;
  }
}

/* ── Narrative interstitials ────────────────────────────────────────── */
.narrative {
  position: relative;
  padding: 6rem 0;
  overflow: visible;
}

.narrative .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* 3D shape — positioned to the right */
.narrative-3d {
  flex: 0 0 300px;
  height: 300px;
  pointer-events: none;
  order: 2;
}

.narrative-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gpu-backprop {
  width: 100%;
  height: 100%;
  min-height: 400px;
  pointer-events: none;
  order: 2;
}

.gpu-backprop canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gpu-capabilities-row {
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(78, 203, 113, 0.06) 0%, rgba(91, 168, 245, 0.03) 100%);
  border: 1px solid rgba(78, 203, 113, 0.1);
  border-radius: var(--radius-md);
}

.gpu-capabilities-row h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.gpu-capabilities-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gpu-capabilities-row li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.gpu-capabilities-row li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* 3D accent in section headers — floated right */
.section-header-with-3d {
  position: relative;
}

.section-header-with-3d .section-header {
  text-align: center;
}

.section-3d-accent {
  position: absolute;
  right: -6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: 0.4;
}

.section-3d-accent canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 767px) {
  .section-header-with-3d { flex-direction: column; }
  .section-3d-accent { display: none; }
}

.narrative-text {
  flex: 1;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
  text-align: left;
  order: 1;
}

.narrative-text-lg {
  font-size: 3rem;
}

.narrative-gradient {
  background: linear-gradient(135deg, #4ecb71 0%, #5ba8f5 30%, #f0a050 65%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.narrative-accent {
  color: var(--accent-white);
  background: linear-gradient(135deg, #8ec8ff, #5ba8f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.narrative-final .narrative-accent {
  background: linear-gradient(135deg, #8ec8ff, #f0a050);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Connecting thread below narrative */
.narrative::after {
  content: '';
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(91, 168, 245, 0.2), transparent);
  margin: 2.5rem auto 0;
}

.narrative-final::after {
  background: linear-gradient(to bottom, rgba(240, 160, 80, 0.25), transparent);
}

@media (max-width: 767px) {
  .narrative { padding: 2rem 0; }
  .narrative .container { flex-direction: column; text-align: center; gap: 1rem; }
  .narrative-text { font-size: 1.25rem; text-align: center; order: 2; line-height: 1.35; }
  .narrative-text-lg { font-size: 1.5rem; }
  .narrative-3d { flex: 0 0 180px; height: 180px; order: 1; }
  .narrative::after { height: 1.5rem; margin-top: 1rem; }
}

/* ── Scroll chain — visual blockchain sidebar ──────────────────────── */
.scroll-chain {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  height: 420px;
  pointer-events: none;
}

.chain-line {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(91, 168, 245, 0.15);
}

.chain-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--chain-pct, 0%);
  background: linear-gradient(to bottom, var(--accent), var(--accent-warm));
  box-shadow: 0 0 6px var(--accent);
  transition: height 100ms linear;
}

.chain-block {
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(91, 168, 245, 0.2);
  background: transparent;
  transform: rotate(45deg);
  position: absolute;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chain-block.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(91, 168, 245, 0.4);
}

.chain-block.passed {
  border-color: rgba(91, 168, 245, 0.3);
  background: rgba(91, 168, 245, 0.2);
}

/* Position blocks evenly along the chain */
.chain-block:nth-child(2) { top: 0%; }
.chain-block:nth-child(3) { top: 16.66%; }
.chain-block:nth-child(4) { top: 33.33%; }
.chain-block:nth-child(5) { top: 50%; }
.chain-block:nth-child(6) { top: 66.66%; }
.chain-block:nth-child(7) { top: 83.33%; }
.chain-block:nth-child(8) { top: 100%; }

/* Hide on mobile / narrow screens */
@media (max-width: 1200px) {
  .scroll-chain { display: none; }
}

/* ── Back to top button ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: rgba(14, 30, 54, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

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

.back-to-top:hover {
  background: rgba(91, 168, 245, 0.1);
  border-color: rgba(91, 168, 245, 0.3);
  box-shadow: 0 0 16px rgba(91, 168, 245, 0.1);
}

/* ── Focus styles ───────────────────────────────────────────────────── */
*:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile Swipeable Carousels
   ═══════════════════════════════════════════════════════════════════════ */

.carousel-dots {
  display: none;
}

@media (max-width: 767px) {
  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    padding: 0.5rem 0;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(120, 180, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .carousel-dot.active {
    background: var(--accent);
    width: 18px;
    border-radius: 3px;
  }

  .carousel-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    animation: hintFade 3s ease forwards;
  }

  .carousel-hint svg {
    animation: hintSwipe 1.5s ease-in-out infinite;
  }

  @keyframes hintSwipe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }

  @keyframes hintFade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
  }

  /* ── Shared mobile carousel base ─────────────────────────────── */
  .services-grid,
  .why-grid,
  .networks-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    gap: 0;
    padding-bottom: 2px;
  }

  .services-grid::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,
  .networks-grid::-webkit-scrollbar { display: none; }

  .services-grid .service-card,
  .why-grid .why-card {
    scroll-snap-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-right: 0.75rem;
    padding: 1.75rem;
  }

  .services-grid .service-card,
  .services-grid .service-card-wide { flex: 0 0 82%; }

  .why-grid .why-card { flex: 0 0 78%; }

  .services-grid .service-card:first-child,
  .why-grid .why-card:first-child,
  .networks-grid .network-item:first-child { margin-left: 1.5rem; }

  .services-grid .service-card:last-child,
  .why-grid .why-card:last-child,
  .networks-grid .network-item:last-child { margin-right: 1.5rem; }

  /* GPU layout — stacked vertically, no carousel */
  .gpu-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .gpu-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .gpu-main .gpu-card {
    border: 1px solid rgba(78, 203, 113, 0.1);
    border-radius: var(--radius-md);
  }

  .gpu-capabilities {
    border-left: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
  }

  /* Networks items */
  .networks-grid .network-item {
    flex: 0 0 auto;
    min-width: 90px;
    scroll-snap-align: start;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-right: 0.5rem;
    padding: 0.75rem 0.625rem;
  }
}
