:root {
  color-scheme: dark;
  --bg: #050508;
  --bg-elevated: #0a0a0f;
  --panel: rgba(18, 18, 24, 0.85);
  --panel-border: rgba(255, 255, 255, 0.06);
  --text: #f0f2f5;
  --muted: #8a8f9a;
  /* Neon palette */
  --neon-yellow: #eaff00;
  --neon-yellow-glow: rgba(234, 255, 0, 0.45);
  --neon-green: #39ff14;
  --neon-green-glow: rgba(57, 255, 20, 0.4);
  --neon-red: #ff073a;
  --neon-red-glow: rgba(255, 7, 58, 0.4);
  --stroke: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --font-syne: "Syne", sans-serif;
  --font-heading: "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient effects — only when not overridden by page */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(234, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 255, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  perspective: 800px;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.glow-orb--yellow {
  width: 400px;
  height: 400px;
  background: var(--neon-yellow-glow);
  top: -100px;
  right: -100px;
}

.glow-orb--green {
  width: 320px;
  height: 320px;
  background: var(--neon-green-glow);
  bottom: 20%;
  left: -80px;
}

.glow-orb--red {
  width: 280px;
  height: 280px;
  background: var(--neon-red-glow);
  bottom: -80px;
  right: 20%;
}

/* ---------- Page: Home ---------- */
.page-home .scanlines,
.page-home .grid-bg,
.page-home .glow-orb { display: none; }

.page-home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(234, 255, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(57, 255, 20, 0.06) 0%, transparent 45%),
    var(--bg);
  pointer-events: none;
}

.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 80px;
  min-height: 70vh;
}

.hero-split-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 5vw;
}

.hero-content--center {
  text-align: center;
  width: 100%;
  margin: 0;
}

.page-home .hero h1,
.page-home .hero .hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin: 0 0 20px;
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
  color: #f5f5f7;
  text-transform: uppercase;
}

.page-home .hero .hero-line--accent {
  font-weight: 700;
  color: var(--neon-yellow);
  text-shadow: 0 0 32px var(--neon-yellow-glow);
}

.hero-visual--right {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual--right .scene-3d {
  width: 240px;
  height: 240px;
}

.hero-visual--right .cube-wrapper,
.hero-visual--right .cube-3d {
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
}

.hero-visual--right .face {
  width: 140px;
  height: 140px;
}

.hero-visual--right .face--front { transform: translateZ(70px); }
.hero-visual--right .face--back { transform: rotateY(180deg) translateZ(70px); }
.hero-visual--right .face--right { transform: rotateY(90deg) translateZ(70px); }
.hero-visual--right .face--left { transform: rotateY(-90deg) translateZ(70px); }
.hero-visual--right .face--top { transform: rotateX(90deg) translateZ(70px); }
.hero-visual--right .face--bottom { transform: rotateX(-90deg) translateZ(70px); }

.hero-visual--right .ring--outer { width: 220px; height: 220px; }
.hero-visual--right .ring--inner { width: 170px; height: 170px; }

@media (max-width: 900px) {
  .hero-split-inner { max-width: 92vw; }
}

/* Bento grid */
.container-wide {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

.section-bento {
  padding: 40px 0 100px;
}

.bento-kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 20px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  grid-template-areas:
    "cap cap arch metrics"
    "cap cap integrate integrate";
}

.bento-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--neon-yellow);
  background: rgba(234, 255, 0, 0.04);
  transform: scale(1.02);
}

.bento-cell--large {
  grid-area: cap;
  min-height: 160px;
}

.bento-cell--wide {
  grid-area: integrate;
}

.bento-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-green);
}

.bento-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0;
}

.bento-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.bento-cell:hover .bento-arrow {
  color: var(--neon-yellow);
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "cap cap"
      "arch metrics"
      "integrate integrate";
  }
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.brand-core {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-green));
  border-radius: 4px;
  box-shadow: 0 0 20px var(--neon-yellow-glow);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 20px var(--neon-yellow-glow); }
  50% { opacity: 0.85; box-shadow: 0 0 28px var(--neon-green-glow); }
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.brand-name span {
  color: var(--neon-yellow);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--neon-green-glow);
}

.nav-links a.active {
  color: var(--neon-yellow);
  text-shadow: 0 0 12px var(--neon-yellow-glow);
}

/* Buttons */
.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: var(--neon-yellow);
  color: #050508;
  box-shadow: 0 0 24px var(--neon-yellow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--neon-yellow-glow);
  filter: brightness(1.05);
}

.btn--neon-yellow {
  background: var(--neon-yellow);
  color: #050508;
}

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

.btn-ghost:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green-glow);
}

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

.btn-outline:hover {
  background: rgba(255, 7, 58, 0.12);
  box-shadow: 0 0 24px var(--neon-red-glow);
}

.btn-arrow {
  margin-left: 6px;
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-green);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  border: 1px solid var(--neon-green);
  border-radius: 8px;
  padding: 10px 18px;
  background: transparent;
}

.hero-badge .pulse-dot {
  width: 5px;
  height: 5px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green-glow);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-green-glow);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-line {
  display: block;
}

.page-hero-title {
  display: block;
  line-height: 1.3;
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.hero-line--accent {
  color: var(--neon-yellow);
  text-shadow: 0 0 40px var(--neon-yellow-glow);
}

/* Page-top hero: white + yellow accent, uppercase, single line */
.page-hero .page-hero-title,
.page-hero h1 {
  color: #f5f5f7;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-hero .hero-line--accent {
  color: var(--neon-yellow);
  text-shadow: 0 0 32px var(--neon-yellow-glow);
}

.hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto 32px;
  text-align: center;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Hero 3D visual */
.hero-visual {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.scene-3d {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
}

/* Nexus Core aura — central glow behind the cube */
.scene-3d::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin-left: -90px;
  margin-top: -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(234, 255, 0, 0.55) 0%,
    rgba(57, 255, 20, 0.4) 28%,
    rgba(255, 7, 58, 0.2) 52%,
    transparent 72%
  );
  filter: blur(28px);
  opacity: 0.9;
  animation: nexus-core-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nexus-core-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); filter: blur(28px); }
  50% { opacity: 1; transform: scale(1.2); filter: blur(35px); }
}

.cube-wrapper {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  margin-left: -60px;
  margin-top: -60px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 0 25px rgba(234, 255, 0, 0.5)) drop-shadow(0 0 50px rgba(57, 255, 20, 0.3)) drop-shadow(0 0 80px rgba(234, 255, 0, 0.2));
}

.cube-3d {
  position: absolute;
  width: 120px;
  height: 120px;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  animation: cube-rotate 16s linear infinite;
}

@keyframes cube-rotate {
  from { transform: rotateX(-12deg) rotateY(0deg) rotateZ(0deg); }
  to { transform: rotateX(-12deg) rotateY(360deg) rotateZ(0deg); }
}

.face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--panel);
  border: 2px solid var(--stroke);
  backface-visibility: visible;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
}

.face--front  {
  transform: translateZ(60px);
  background: linear-gradient(145deg, rgba(234, 255, 0, 0.18), rgba(18, 18, 24, 0.95));
  border-color: rgba(234, 255, 0, 0.6);
  box-shadow: inset 0 0 40px rgba(234, 255, 0, 0.2), inset 0 0 80px rgba(234, 255, 0, 0.08), 0 0 30px rgba(234, 255, 0, 0.25);
}
.face--back   {
  transform: rotateY(180deg) translateZ(60px);
  background: linear-gradient(145deg, rgba(57, 255, 20, 0.15), rgba(18, 18, 24, 0.95));
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: inset 0 0 40px rgba(57, 255, 20, 0.15), inset 0 0 80px rgba(57, 255, 20, 0.06), 0 0 25px rgba(57, 255, 20, 0.2);
}
.face--right  {
  transform: rotateY(90deg) translateZ(60px);
  background: linear-gradient(145deg, rgba(255, 7, 58, 0.12), rgba(18, 18, 24, 0.95));
  border-color: rgba(255, 7, 58, 0.5);
  box-shadow: inset 0 0 40px rgba(255, 7, 58, 0.12), inset 0 0 80px rgba(255, 7, 58, 0.05), 0 0 25px rgba(255, 7, 58, 0.2);
}
.face--left   {
  transform: rotateY(-90deg) translateZ(60px);
  background: linear-gradient(145deg, rgba(234, 255, 0, 0.08), rgba(18, 18, 24, 0.95));
  border-color: rgba(234, 255, 0, 0.25);
  box-shadow: inset 0 0 35px rgba(234, 255, 0, 0.06), 0 0 15px rgba(234, 255, 0, 0.1);
}
.face--top    {
  transform: rotateX(90deg) translateZ(60px);
  background: linear-gradient(145deg, rgba(57, 255, 20, 0.08), rgba(18, 18, 24, 0.95));
  border-color: rgba(57, 255, 20, 0.25);
  box-shadow: inset 0 0 35px rgba(57, 255, 20, 0.06), 0 0 15px rgba(57, 255, 20, 0.1);
}
.face--bottom {
  transform: rotateX(-90deg) translateZ(60px);
  background: linear-gradient(145deg, rgba(255, 7, 58, 0.06), rgba(18, 18, 24, 0.95));
  border-color: rgba(255, 7, 58, 0.2);
  box-shadow: inset 0 0 35px rgba(255, 7, 58, 0.05), 0 0 12px rgba(255, 7, 58, 0.08);
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 2px solid;
  transform: translate(-50%, -50%) rotateX(75deg);
}

.ring--outer {
  width: 180px;
  height: 180px;
  border-color: rgba(234, 255, 0, 0.5);
  box-shadow: 0 0 20px rgba(234, 255, 0, 0.4), 0 0 40px rgba(234, 255, 0, 0.2), inset 0 0 20px rgba(234, 255, 0, 0.1);
  animation: ring-spin 20s linear infinite;
}

.ring--inner {
  width: 140px;
  height: 140px;
  border-color: rgba(57, 255, 20, 0.5);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.4), 0 0 35px rgba(57, 255, 20, 0.2), inset 0 0 15px rgba(57, 255, 20, 0.08);
  animation: ring-spin 15s linear infinite reverse;
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4em;
  line-height: 1.3;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-yellow);
}

.section-title .section-kicker::after {
  content: " — ";
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Capability cards with 3D tilt */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid--3d {
  perspective: 1200px;
}

.cap-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.cap-card:hover {
  transform: rotateY(-4deg) rotateX(2deg) translateZ(12px);
  border-color: rgba(255, 255, 255, 0.12);
}

.cap-card--yellow:hover {
  box-shadow: 0 20px 50px -15px var(--neon-yellow-glow);
}

.cap-card--green:hover {
  box-shadow: 0 20px 50px -15px var(--neon-green-glow);
}

.cap-card--red:hover {
  box-shadow: 0 20px 50px -15px var(--neon-red-glow);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.cap-icon svg {
  width: 24px;
  height: 24px;
}

.cap-card--yellow .cap-icon {
  background: rgba(234, 255, 0, 0.12);
  color: var(--neon-yellow);
}

.cap-card--green .cap-icon {
  background: rgba(57, 255, 20, 0.12);
  color: var(--neon-green);
}

.cap-card--red .cap-icon {
  background: rgba(255, 7, 58, 0.12);
  color: var(--neon-red);
}

.cap-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 10px;
}

.cap-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card-link-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--neon-green-glow);
}

a.cap-card:hover .card-link-text {
  color: var(--neon-yellow);
  text-shadow: 0 0 12px var(--neon-yellow-glow);
}

/* Architecture */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

.arch-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer {
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.layer-detail {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.layer--1 { border-left: 3px solid var(--neon-yellow); }
.layer--2 { border-left: 3px solid var(--neon-green); }
.layer--3 { border-left: 3px solid var(--neon-red); }
.layer--4 { border-left: 3px solid var(--muted); }

.layer:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
}

.stat-block {
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--stroke);
}

.stat-block:last-child {
  margin-bottom: 0;
}

.stat-block--yellow {
  border-left: 3px solid var(--neon-yellow);
  background: rgba(234, 255, 0, 0.05);
}

.stat-block--green {
  border-left: 3px solid var(--neon-green);
  background: rgba(57, 255, 20, 0.05);
}

.stat-block--red {
  border-left: 3px solid var(--neon-red);
  background: rgba(255, 7, 58, 0.05);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
}

.stat-block--yellow .stat-value { color: var(--neon-yellow); }
.stat-block--green .stat-value { color: var(--neon-green); }
.stat-block--red .stat-value { color: var(--neon-red); }

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

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

@media (max-width: 700px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(12px);
  transform: translateZ(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-6px);
}

.metric-card:hover .metric-value[data-neon="yellow"] {
  text-shadow: 0 0 30px var(--neon-yellow-glow);
}

.metric-card:hover .metric-value[data-neon="green"] {
  text-shadow: 0 0 30px var(--neon-green-glow);
}

.metric-card:hover .metric-value[data-neon="red"] {
  text-shadow: 0 0 30px var(--neon-red-glow);
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 8px;
  transition: text-shadow 0.3s ease;
}

.metric-value[data-neon="yellow"] { color: var(--neon-yellow); }
.metric-value[data-neon="green"] { color: var(--neon-green); }
.metric-value[data-neon="red"] { color: var(--neon-red); }

.metric-label {
  font-size: 14px;
  color: var(--muted);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 38px);
  margin: 0 0 14px;
}

.cta-content p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 24px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand .brand-name {
  font-size: 16px;
}

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

.footer-backlink {
  color: var(--neon-yellow);
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 0 12px var(--neon-yellow-glow);
  transition: filter 0.2s ease, text-shadow 0.2s ease;
}

.footer-backlink:hover {
  filter: brightness(1.15);
  text-shadow: 0 0 16px var(--neon-yellow-glow);
}

/* ========== Inner page layout ========== */
.page-hero {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}

.page-hero .hero-badge {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 16px;
}

.page-hero-lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

/* 3D floating panel for inner pages */
.floating-3d-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.floating-3d-panel:hover {
  transform: translateZ(8px) rotateX(-2deg);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

.perspective-wrap {
  perspective: 1400px;
}

/* Content blocks */
.content-block {
  margin-bottom: 48px;
}

.content-block h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--text);
}

.content-block p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.content-block ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

/* Data grid for stats / features */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.data-cell {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.data-cell:hover {
  transform: translateZ(6px);
  border-color: rgba(255, 255, 255, 0.1);
}

.data-cell-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 4px;
}

.data-cell-label {
  font-size: 13px;
  color: var(--muted);
}

.data-grid-hero {
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}

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

/* Use case / feature list with 3D */
.feature-list-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  perspective: 1200px;
}

.feature-item-3d {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item-3d:hover {
  transform: rotateY(-3deg) translateZ(10px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4);
}

.feature-item-3d h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  margin: 0 0 8px;
}

.feature-item-3d p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Testimonial / case study cards */
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  border-left: 3px solid var(--neon-green);
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.testimonial-card .attribution {
  font-size: 13px;
  color: var(--muted);
}

.case-study-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateZ(8px) rotateX(-2deg);
  box-shadow: 0 20px 40px -12px var(--neon-yellow-glow);
}

.case-study-card h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0;
  color: var(--neon-yellow);
}

.case-study-card .outcome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--neon-green);
}

/* Pricing tiers */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.pricing-tier {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-tier:hover {
  transform: translateZ(12px) rotateY(-2deg);
  border-color: rgba(234, 255, 0, 0.3);
  box-shadow: 0 24px 48px -16px var(--neon-yellow-glow);
}

.pricing-tier.featured {
  border-color: var(--neon-yellow);
  box-shadow: 0 0 40px rgba(234, 255, 0, 0.15);
}

.pricing-tier h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 8px;
}

.pricing-tier .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--neon-yellow);
  margin-bottom: 16px;
}

.pricing-tier ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

/* Form panel */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.form-panel label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.form-panel textarea {
  min-height: 100px;
  resize: vertical;
}

/* 3D hex / diagram decoration */
.hex-float {
  position: absolute;
  width: 80px;
  height: 92px;
  border: 1px solid var(--stroke);
  border-radius: 4px;
  opacity: 0.4;
  transform-style: preserve-3d;
  pointer-events: none;
}

.hex-float--1 { top: 10%; left: 5%; animation: float-3d 8s ease-in-out infinite; }
.hex-float--2 { top: 60%; right: 8%; animation: float-3d 10s ease-in-out infinite 1s; }
.hex-float--3 { bottom: 15%; left: 15%; animation: float-3d 9s ease-in-out infinite 0.5s; }

@keyframes float-3d {
  0%, 100% { transform: translateZ(0) rotateZ(0deg); }
  50% { transform: translateZ(20px) rotateZ(5deg); }
}

/* Subpage section spacing */
.inner-section {
  padding: 60px 0;
}

.inner-section .section-title {
  margin-bottom: 32px;
}

/* ---------- Page: Capabilities (organic / flowing) ---------- */
.page-capabilities {
  background: #030506;
}

.page-capabilities .page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 80% 10%, rgba(57, 255, 20, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 100% at 10% 90%, rgba(57, 255, 20, 0.06) 0%, transparent 45%),
    #030506;
  pointer-events: none;
}

.page-capabilities .section:nth-child(odd) .container {
  position: relative;
}

.page-capabilities .cap-card {
  border-radius: 24px;
  border: none;
  background: linear-gradient(145deg, rgba(20, 28, 22, 0.9), rgba(12, 18, 14, 0.95));
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.page-capabilities .cap-card--yellow { border-left: 4px solid var(--neon-yellow); }
.page-capabilities .cap-card--green { border-left: 4px solid var(--neon-green); }
.page-capabilities .cap-card--red { border-left: 4px solid var(--neon-red); }

.page-capabilities .page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-capabilities .floating-3d-panel {
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(15, 25, 18, 0.95), rgba(8, 12, 10, 0.98));
  border: 1px solid rgba(57, 255, 20, 0.15);
}

.page-capabilities .feature-item-3d {
  border-radius: 20px;
  background: rgba(15, 22, 18, 0.8);
  border: 1px solid rgba(57, 255, 20, 0.1);
}

.page-capabilities .page-hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(95deg, transparent 0%, rgba(57, 255, 20, 0.08) 30%, rgba(57, 255, 20, 0.04) 70%, transparent 100%);
  clip-path: polygon(0 60%, 100% 20%, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-capabilities .page-hero {
  position: relative;
}

/* ---------- Page: Architecture (blueprint / technical) ---------- */
.page-architecture {
  background: #04060a;
}

.page-architecture .page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 20, 40, 0.15) 100%),
    #04060a;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-architecture .page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-architecture .layer {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid rgba(57, 255, 20, 0.2);
  background: rgba(0, 15, 30, 0.4);
}

.page-architecture .arch-panel {
  border: 1px solid rgba(57, 255, 20, 0.15);
  background: rgba(5, 15, 25, 0.9);
  border-radius: 8px;
}

.page-architecture .section-kicker {
  color: var(--neon-green);
  letter-spacing: 0.2em;
}

/* ---------- Page: Metrics (terminal / HUD) ---------- */
.page-metrics {
  background: #020304;
}

.page-metrics .page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 7, 58, 0.06) 0%, transparent 50%),
    #020304;
  pointer-events: none;
}

.page-metrics .page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-metrics .metric-value,
.page-metrics .data-cell-value {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.page-metrics .metric-card,
.page-metrics .data-cell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(8, 8, 10, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.page-metrics .case-study-card {
  border-radius: 4px;
  border: 1px solid rgba(234, 255, 0, 0.2);
  background: rgba(10, 10, 12, 0.95);
}

.page-metrics .testimonial-card {
  border-radius: 4px;
  border-left: 4px solid var(--neon-green);
  background: rgba(8, 12, 8, 0.8);
}

.terminal-readout {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 28px;
  max-width: 420px;
}

.terminal-title {
  color: var(--neon-green);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.terminal-line:last-child { margin-bottom: 0; }

.term-key {
  color: var(--muted);
}

.term-value {
  color: var(--neon-yellow);
}

.term-value--ok {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green-glow);
}

/* ---------- Page: Integrate (warm / human) ---------- */
.page-integrate {
  background: #0a0808;
}

.page-integrate .page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(234, 255, 0, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255, 7, 58, 0.04) 0%, transparent 40%),
    #0a0808;
  pointer-events: none;
}

.page-integrate .page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-integrate .pricing-tier {
  border-radius: 20px;
  background: rgba(22, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-integrate .pricing-tier.featured {
  background: linear-gradient(165deg, rgba(30, 28, 15, 0.95), rgba(18, 16, 8, 0.98));
  border-color: var(--neon-yellow);
}

.page-integrate .form-panel {
  border-radius: 24px;
  background: rgba(20, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.page-integrate .feature-item-3d {
  border-radius: 16px;
  background: rgba(18, 16, 16, 0.9);
}
