/* ============================================
   Nanobase AI — Mockup-faithful Quantum Grid
   ============================================ */

:root {
  --bg: #050308;
  --bg-panel: #0c0618;
  --purple: #7b2cbf;
  --purple-deep: #1a0033;
  --purple-glow: #9d4edd;
  --purple-line: rgba(157, 78, 221, 0.35);
  --yellow: #ffb800;
  --yellow-bright: #ffd700;
  --yellow-dim: #cc9200;
  --green: #76b900;
  --text: #f5f3ff;
  --text-dim: #a89ec4;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
  --top-offset: var(--header-h);
}

::selection {
  background: rgba(157, 78, 221, 0.4);
  color: #fff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ---- Ambient WOW background ---- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(123, 44, 191, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 184, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(157, 78, 221, 0.12) 0%, transparent 50%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: rgba(123, 44, 191, 0.15);
  top: -10%; left: -5%;
}

.orb-2 {
  width: 400px; height: 400px;
  background: rgba(255, 184, 0, 0.07);
  top: 30%; right: -8%;
  animation-delay: -4s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: rgba(118, 185, 0, 0.06);
  bottom: 10%; left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.ambient-noise {
  position: absolute;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--yellow);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  transition: top 0.3s;
}

.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-glow), var(--yellow));
  z-index: 3000;
  box-shadow: 0 0 12px var(--purple-glow);
  transition: width 0.1s linear;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body.has-cursor .cursor-glow { opacity: 1; }

@media (hover: none) {
  .cursor-glow { display: none; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---- Page frame ---- */
.page-frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 32px;
  padding-top: var(--top-offset);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

/* ---- Featured Program badge (WOW) ---- */
.featured-program {
  position: fixed;
  top: calc(var(--top-offset) + 16px);
  right: max(20px, calc((100vw - 1440px) / 2 + 24px));
  left: auto;
  bottom: auto;
  z-index: 1600;
  width: 340px;
  margin: 0;
  pointer-events: auto;
  transform: none;
  will-change: auto;
}

.featured-aura {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(255, 215, 0, 0.2) 0%, rgba(118, 185, 0, 0.08) 40%, transparent 70%);
  filter: blur(20px);
  animation: auraPulse 4s ease-in-out infinite;
  pointer-events: none;
}

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

.featured-box {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(165deg, rgba(22, 16, 40, 0.97) 0%, rgba(6, 4, 14, 0.99) 100%);
  border-radius: 12px;
  padding: 22px 24px 18px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.featured-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 215, 0, 0.22);
}

.featured-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(135deg, #ffd700, #d4a017, #76b900, #ffd700, #e8c547);
  background-size: 300% 300%;
  animation: borderSpin 6s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderSpin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.featured-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shineSweep 5s ease-in-out infinite;
  pointer-events: none;
}

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

.featured-accepted {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #0a0014;
  background: linear-gradient(135deg, #76b900, #5a9a00);
  padding: 5px 12px;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(118, 185, 0, 0.6);
  animation: acceptedPulse 2s ease-in-out infinite;
}

@keyframes acceptedPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(118, 185, 0, 0.5); }
  50% { box-shadow: 0 0 24px rgba(118, 185, 0, 0.85); }
}

.featured-header {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  background: linear-gradient(90deg, #d4a017, #ffd700, #e8c547, #ffd700, #d4a017);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s linear infinite;
  margin-bottom: 14px;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.featured-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.featured-emblem {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  animation: emblemFloat 5s ease-in-out infinite;
}

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

.featured-emblem svg {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

.featured-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.featured-titles span {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff8dc 0%, #ffd700 40%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.4));
}

.featured-partner-label {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(118, 185, 0, 0.8);
  margin-bottom: 12px;
}

.featured-partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255, 215, 0, 0.15);
  background: radial-gradient(ellipse at center, rgba(118, 185, 0, 0.08) 0%, transparent 70%);
}

.featured-partner-logo img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(118, 185, 0, 0.55));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(118, 185, 0, 0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 28px rgba(118, 185, 0, 0.75)); transform: scale(1.03); }
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 3, 8, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background: rgba(5, 3, 8, 0.92);
  border-bottom-color: var(--purple-line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header .nav {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s;
}

.logo:hover { opacity: 0.85; }

.logo-mark {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  box-shadow: 0 0 12px var(--yellow);
  animation: dotPulse 2s ease-in-out infinite;
}

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

.logo-main {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.logo-divider {
  color: var(--purple-glow);
  font-weight: 300;
  opacity: 0.6;
}

.logo-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: clamp(10px, 1.4vw, 28px);
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--yellow);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--yellow); }

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

.nav-cta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--yellow-bright), var(--yellow));
  padding: 10px 18px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(255, 184, 0, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

body.nav-open { overflow: hidden; }

/* ---- Hero ---- */
.hero {
  padding: 12px 0 40px;
  padding-right: min(380px, 32vw);
  position: relative;
}

@media (max-width: 1100px) {
  .hero { padding-right: 0; }
}

.hero-left { max-width: 640px; z-index: 2; min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid var(--purple-line);
  background: rgba(123, 44, 191, 0.1);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--purple-line);
  padding: 14px 24px;
  background: rgba(123, 44, 191, 0.08);
  transition: all 0.35s var(--ease-out);
}

.btn-secondary:hover {
  border-color: var(--purple-glow);
  background: rgba(123, 44, 191, 0.18);
  box-shadow: 0 0 24px rgba(157, 78, 221, 0.25);
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--purple-line);
  border-bottom: 1px solid var(--purple-line);
}

.metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.metric-suffix {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--yellow);
}

.metric-label {
  width: 100%;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(157, 78, 221, 0.3);
  animation: titleReveal 1s ease-out;
}

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-accent {
  background: linear-gradient(90deg, var(--yellow-bright), var(--yellow), var(--yellow-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255, 184, 0, 0.4));
}

.hero-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 14px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--yellow-bright), var(--yellow));
  transform: translateX(-101%);
  transition: transform 0.4s;
  z-index: -1;
}

.btn-ghost:hover {
  color: var(--bg);
  border-color: var(--yellow-bright);
  box-shadow: 0 0 32px rgba(255, 184, 0, 0.5), 0 0 64px rgba(255, 184, 0, 0.2);
  transform: translateY(-2px);
}

.btn-ghost:hover::before { transform: translateX(0); }

.chevron { font-size: 16px; }

.trust-bar {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--purple-line);
}

.trust-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--purple-glow);
  margin-bottom: 14px;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-google { height: 22px; width: auto; }
.logo-ms { height: 22px; width: auto; }

/* ---- Voxel cube (mockup hero visual) ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-height: 340px;
  overflow: hidden;
}

.hero-glow-ring {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.25) 0%, transparent 70%);
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-ring.ring-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.06) 0%, transparent 70%);
  animation-delay: -2s;
}

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

.voxel-cube {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 280px;
  transform: scale(0.92);
  transform-origin: center center;
}

.iso-floor {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) perspective(500px) rotateX(62deg);
  width: 260px;
  height: 260px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 33px, var(--purple-line) 33px, var(--purple-line) 34px),
    repeating-linear-gradient(90deg, transparent, transparent 33px, var(--purple-line) 33px, var(--purple-line) 34px);
  box-shadow: 0 0 80px rgba(123, 44, 191, 0.5), 0 0 120px rgba(157, 78, 221, 0.2);
  animation: gridGlow 3s ease-in-out infinite;
}

@keyframes gridGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(123, 44, 191, 0.4); }
  50% { box-shadow: 0 0 100px rgba(157, 78, 221, 0.6); }
}

.cube-body {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%) rotateX(-18deg) rotateY(25deg);
  display: grid;
  grid-template-columns: repeat(6, 28px);
  grid-template-rows: repeat(4, 28px);
  gap: 3px;
  transform-style: preserve-3d;
}

.voxel {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6a2fa0 0%, #3d1a6e 100%);
  border: 1px solid rgba(157, 78, 221, 0.6);
  box-shadow: inset 0 0 8px rgba(157, 78, 221, 0.3), 0 0 6px rgba(123, 44, 191, 0.4);
  animation: voxelPulse 4s ease-in-out infinite;
}

.voxel:nth-child(odd) { background: linear-gradient(135deg, #7b3fbd 0%, #4a2080 100%); }
.voxel:nth-child(3n) { animation-delay: 0.5s; }
.voxel:nth-child(5n) { animation-delay: 1s; }

.voxel.fade {
  opacity: 0.15;
  animation: voxelFade 3s ease-in-out infinite;
}

@keyframes voxelPulse {
  0%, 100% { box-shadow: inset 0 0 8px rgba(157, 78, 221, 0.3), 0 0 6px rgba(123, 44, 191, 0.3); }
  50% { box-shadow: inset 0 0 12px rgba(157, 78, 221, 0.5), 0 0 14px rgba(123, 44, 191, 0.6); }
}

@keyframes voxelFade {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.35; }
}

.cube-dissolve {
  position: absolute;
  top: 38%;
  right: 8%;
  width: 140px;
  height: 100px;
}

.cube-dissolve span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--purple-glow);
  box-shadow: 0 0 8px var(--purple-glow);
  animation: dissolve 4s ease-in-out infinite;
}

.cube-dissolve span:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.cube-dissolve span:nth-child(2) { top: 25%; left: 20%; animation-delay: 0.3s; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.cube-dissolve span:nth-child(3) { top: 5%; left: 35%; animation-delay: 0.6s; }
.cube-dissolve span:nth-child(4) { top: 40%; left: 10%; animation-delay: 0.9s; }
.cube-dissolve span:nth-child(5) { top: 20%; left: 45%; animation-delay: 1.2s; }
.cube-dissolve span:nth-child(6) { top: 55%; left: 25%; animation-delay: 1.5s; background: var(--yellow); }
.cube-dissolve span:nth-child(7) { top: 35%; left: 55%; animation-delay: 1.8s; }
.cube-dissolve span:nth-child(8) { top: 60%; left: 45%; animation-delay: 2.1s; }
.cube-dissolve span:nth-child(9) { top: 15%; left: 65%; animation-delay: 2.4s; }
.cube-dissolve span:nth-child(10) { top: 45%; left: 70%; animation-delay: 2.7s; }
.cube-dissolve span:nth-child(11) { top: 70%; left: 55%; animation-delay: 0.4s; }
.cube-dissolve span:nth-child(12) { top: 50%; left: 80%; animation-delay: 0.8s; background: var(--yellow); }
.cube-dissolve span:nth-child(13) { top: 30%; left: 85%; animation-delay: 1.1s; }
.cube-dissolve span:nth-child(14) { top: 65%; left: 70%; animation-delay: 1.4s; }
.cube-dissolve span:nth-child(15) { top: 80%; left: 40%; animation-delay: 1.7s; }
.cube-dissolve span:nth-child(16) { top: 75%; left: 60%; animation-delay: 2s; }
.cube-dissolve span:nth-child(17) { top: 10%; left: 75%; animation-delay: 2.3s; }
.cube-dissolve span:nth-child(18) { top: 55%; left: 90%; animation-delay: 2.6s; }
.cube-dissolve span:nth-child(19) { top: 85%; left: 75%; animation-delay: 0.2s; }
.cube-dissolve span:nth-child(20) { top: 40%; left: 95%; animation-delay: 0.7s; background: var(--yellow); }

@keyframes dissolve {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(30px, -15px) scale(0.4); }
}

/* ---- Panel borders (mockup HUD frames) ---- */
.panel-border {
  border: 1px solid var(--purple-line);
  background: linear-gradient(180deg, rgba(26, 0, 51, 0.7) 0%, rgba(12, 6, 24, 0.85) 100%);
  box-shadow:
    inset 0 0 60px rgba(123, 44, 191, 0.1),
    0 0 40px rgba(123, 44, 191, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  backdrop-filter: blur(12px);
  transition: box-shadow 0.4s;
}

.panel-border:hover {
  box-shadow:
    inset 0 0 60px rgba(123, 44, 191, 0.15),
    0 0 60px rgba(157, 78, 221, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.3);
}

.panel-border::before,
.panel-border::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--purple-glow);
  border-style: solid;
}

.panel-border::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}

.panel-border::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--purple-line), transparent);
  max-width: 120px;
}

.spotlight-panel {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  overflow: hidden;
}

.spotlight-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--spot-x) var(--spot-y), rgba(157, 78, 221, 0.1), transparent 40%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.spotlight-panel:hover::before,
[data-spotlight]:hover::before { opacity: 1; }

[data-spotlight] {
  position: relative;
  overflow: hidden;
}

[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(157, 78, 221, 0.15), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

[data-spotlight]:hover::before { opacity: 1; }

/* ---- Mid panel: Solutions + About ---- */
.mid-panel { margin-bottom: 40px; }

.mid-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}

.solutions-sidebar {
  padding: 28px 24px;
  border-right: 1px solid var(--purple-line);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.panel-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 16px;
}

.panel-bullets {
  list-style: none;
  margin-bottom: 20px;
}

.panel-bullets li {
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 0 4px 14px;
  position: relative;
}

.panel-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 9px;
}

.panel-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.25s;
}

.panel-link:hover { gap: 8px; }

/* Solution cards row */
.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.sol-card {
  padding: 24px 20px;
  border-right: 1px solid var(--purple-line);
  position: relative;
  transition: background 0.3s;
}

.sol-card:last-child { border-right: none; }

.sol-card:hover {
  background: rgba(123, 44, 191, 0.12);
  box-shadow: inset 0 0 30px rgba(157, 78, 221, 0.15);
}

.sol-card:hover .sol-hex {
  box-shadow: 0 0 24px rgba(157, 78, 221, 0.5);
  transform: scale(1.08);
}

.sol-num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.1em;
}

.sol-hex {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--purple-glow);
  background: rgba(123, 44, 191, 0.2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.35);
  transition: transform 0.4s, box-shadow 0.4s;
}

.sol-hex svg { width: 28px; height: 28px; }

.sol-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 10px;
}

.sol-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sol-highlight {
  color: var(--yellow) !important;
  font-weight: 600;
  font-size: 11px !important;
  letter-spacing: 0.06em;
  margin-bottom: 6px !important;
}

.sol-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
  display: inline-flex;
  gap: 4px;
  transition: gap 0.25s;
}

.sol-link:hover { gap: 8px; }

/* About strip */
.about-strip {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  padding: 28px 24px;
  border-top: 1px solid var(--purple-line);
}

.about-title { margin-bottom: 0; }

.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.about-illus {
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.about-illus svg { width: 72px; height: auto; }

.about-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.about-col p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
}

.about-prose {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--purple-line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 920px;
}

.noscript-seo {
  padding: 16px 24px;
  background: #0a0614;
  border-bottom: 1px solid var(--purple-line);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.noscript-seo h1 {
  font-size: 18px;
  color: var(--yellow);
  margin-bottom: 8px;
}

/* ---- FAQ panel ---- */
.faq-panel { margin-bottom: 48px; }

.faq-border { padding: 32px 28px; }

.faq-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  color: var(--text);
}

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

.faq-item {
  border: 1px solid var(--purple-line);
  background: rgba(8, 6, 18, 0.5);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-color: rgba(232, 197, 71, 0.35);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  padding-right: 40px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 20px 16px;
  border-top: 1px solid rgba(120, 80, 180, 0.15);
}

.faq-answer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  padding-top: 14px;
}

/* ---- Contact panel ---- */
.contact-panel { margin-bottom: 24px; }

.contact-border { padding: 32px 28px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 32px;
  align-items: start;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-left p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.contact-form { width: 100%; }

.form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.field {
  position: relative;
}

.field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
}

.field-wide label { top: 14px; transform: none; }

.field input,
.field textarea {
  width: 100%;
  background: rgba(5, 3, 8, 0.8);
  border: 1px solid var(--purple-line);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  padding: 18px 12px 8px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field textarea { padding-top: 22px; min-height: 88px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field input:not(:placeholder-shown),
.field textarea:not(:placeholder-shown) {
  border-color: var(--purple-glow);
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.2);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 8px;
  transform: none;
  font-size: 8px;
  color: var(--yellow);
}

.field-wide input:focus + label,
.field-wide textarea:focus + label,
.field-wide input:not(:placeholder-shown) + label,
.field-wide textarea:not(:placeholder-shown) + label {
  top: 6px;
}

.field input.error,
.field textarea.error {
  border-color: #EA4335;
  box-shadow: 0 0 12px rgba(234, 67, 53, 0.25);
}

.contact-email {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--yellow);
  letter-spacing: 0.06em;
  transition: text-shadow 0.3s;
}

.contact-email:hover {
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.field-wide {
  grid-column: 1 / -1;
}


.btn-submit {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0014;
  background: linear-gradient(135deg, var(--yellow-bright), var(--yellow), var(--yellow-bright));
  background-size: 200% auto;
  animation: textShimmer 4s linear infinite;
  border: none;
  padding: 20px 28px;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 4px 32px rgba(255, 184, 0, 0.5), 0 0 60px rgba(255, 184, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
}

.btn-submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 48px rgba(255, 184, 0, 0.7), 0 0 80px rgba(255, 184, 0, 0.25);
}

.form-success {
  text-align: center;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}

.form-error {
  text-align: center;
  color: #ff6b6b;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ---- Footer ---- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--purple-line);
}

.footer-logo .logo-main { font-size: 14px; }
.footer-logo .logo-sub { font-size: 9px; }

.copyright {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

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

.footer-links a {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s;
}

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

.footer-social {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--purple-line);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.25s;
}

.social-icon:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---- Language dropdown ---- */
.nav-lang-item { display: none; }

.lang-picker {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 6px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 4px;
  background: rgba(123, 44, 191, 0.12);
  white-space: nowrap;
  position: relative;
}

.lang-picker-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.lang-picker-globe svg {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: 3px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-dropdown-btn:hover,
.lang-dropdown.is-open .lang-dropdown-btn {
  color: var(--yellow);
  background: rgba(123, 44, 191, 0.2);
}

.lang-dropdown-code {
  font-size: 9px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 0.12em;
}

.lang-dropdown-name {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-dropdown-chevron {
  font-size: 9px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.lang-dropdown.is-open .lang-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--yellow);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(8, 6, 18, 0.98);
  border: 1px solid var(--purple-line);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(157, 78, 221, 0.15);
  backdrop-filter: blur(16px);
  z-index: 2000;
  max-height: 320px;
  overflow-y: auto;
}

.lang-dropdown-menu li { margin: 0; }

.lang-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-dropdown-option:hover,
.lang-dropdown-option.is-active {
  background: rgba(123, 44, 191, 0.25);
  color: var(--text);
}

.lang-dropdown-option.is-active .lang-dropdown-option-code {
  color: var(--yellow-bright);
}

.lang-dropdown-option-code {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--yellow);
  min-width: 22px;
}

.lang-dropdown-option-name {
  flex: 1;
}

.lang-picker--menu {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
}

.lang-picker--menu .lang-dropdown {
  flex: 1;
}

.lang-picker--menu .lang-dropdown-btn {
  width: 100%;
  justify-content: flex-start;
}

.lang-picker--menu .lang-dropdown-name {
  max-width: none;
  flex: 1;
  text-align: left;
}

.lang-picker--menu .lang-dropdown-menu {
  left: 0;
  right: 0;
  min-width: 0;
}

/* ---- RTL (Arabic) ---- */
[dir="rtl"] .lang-picker { flex-direction: row-reverse; }
[dir="rtl"] .nav-links,
[dir="rtl"] .nav-end,
[dir="rtl"] .hero-actions,
[dir="rtl"] .footer-links,
[dir="rtl"] .trust-logos {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-left,
[dir="rtl"] .about-prose,
[dir="rtl"] .faq-answer p,
[dir="rtl"] .contact-left {
  text-align: right;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-dropdown-option {
  text-align: right;
  flex-direction: row-reverse;
}

/* ---- Live AI Demo Band ---- */
.demo-band {
  margin-bottom: 48px;
}

.demo-intro {
  margin-bottom: 24px;
  max-width: 640px;
}

.demo-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.15;
}

.demo-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
  align-items: stretch;
}

.demo-terminal {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.term-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--purple-line);
  flex-wrap: wrap;
}

.term-dots {
  display: flex;
  gap: 6px;
}

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

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

.term-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  flex: 1;
  min-width: 180px;
}

.demo-tabs {
  display: flex;
  gap: 4px;
}

.demo-tab {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--purple-line);
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.25s;
}

.demo-tab:hover { border-color: var(--purple-glow); color: var(--text); }

.demo-tab.active {
  background: rgba(118, 185, 0, 0.15);
  border-color: rgba(118, 185, 0, 0.5);
  color: var(--green);
  box-shadow: 0 0 12px rgba(118, 185, 0, 0.2);
}

.term-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.65;
  padding: 16px;
  min-height: 280px;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.35);
  scrollbar-width: thin;
  scrollbar-color: var(--purple-line) transparent;
}

.term-line {
  margin-bottom: 4px;
  animation: termFadeIn 0.2s ease-out;
}

@keyframes termFadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.term-system { color: #6b9eff; }
.term-agent { color: var(--green); }
.term-info { color: var(--text-dim); padding-left: 8px; }
.term-run { color: var(--yellow); }
.term-pass { color: #28c840; font-weight: 600; }

.term-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--purple-line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(118, 185, 0, 0.05);
}

.term-status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.demo-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-stat {
  flex: 1;
  padding: 20px 16px;
  border: 1px solid var(--purple-line);
  background: rgba(12, 6, 24, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.demo-stat:hover {
  border-color: var(--purple-glow);
  box-shadow: 0 0 20px rgba(157, 78, 221, 0.15);
}

.demo-stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.3s var(--ease-spring);
}

.demo-stat-val.stat-bump {
  transform: scale(1.12);
  color: var(--green);
}

.demo-stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Capabilities strip ---- */
.capabilities-strip {
  margin-bottom: 40px;
}

.marquee {
  overflow: hidden;
  border: 1px solid var(--purple-line);
  background: rgba(12, 6, 24, 0.6);
  padding: 14px 0;
  margin-bottom: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-track span:hover { color: var(--yellow); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cap-card {
  padding: 24px 20px;
  border: 1px solid var(--purple-line);
  background: rgba(12, 6, 24, 0.5);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.cap-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 78, 221, 0.6);
  box-shadow: 0 12px 40px rgba(123, 44, 191, 0.2);
}

.cap-icon {
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 10px;
}

.cap-card h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.cap-card p {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ---- Partners detail ---- */
.partners-detail {
  margin-bottom: 40px;
}

.partner-showcase {
  position: relative;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(118, 185, 0, 0.3);
  background: linear-gradient(180deg, rgba(118, 185, 0, 0.06) 0%, rgba(12, 6, 24, 0.8) 100%);
  overflow: hidden;
}

.partner-showcase-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(118, 185, 0, 0.12) 0%, transparent 60%);
  animation: auraPulse 4s ease-in-out infinite;
}

.partner-showcase-logo {
  width: 200px;
  margin: 0 auto 20px;
  position: relative;
  filter: drop-shadow(0 0 24px rgba(118, 185, 0, 0.5));
}

.partner-showcase h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  position: relative;
}

.partner-showcase p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
  position: relative;
}

.partner-showcase-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green);
  border: 1px solid rgba(118, 185, 0, 0.5);
  padding: 8px 20px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 20px rgba(118, 185, 0, 0.2);
}

/* ---- Focus & a11y ---- */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  #particleCanvas { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .mid-grid { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; max-width: none; }
  .solutions-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--purple-line);
  }
  .solution-cards { border-bottom: 1px solid var(--purple-line); }
}

@media (max-width: 1100px) {
  .hero { padding-right: 0; }

  .featured-mobile-slot {
    width: 100%;
    margin-bottom: 20px;
  }

  .featured-program--mobile,
  .featured-mobile-slot .featured-program {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    z-index: 1;
  }

  .featured-program--mobile .featured-aura {
    inset: -6px;
    filter: blur(14px);
  }

  .featured-program--mobile .featured-box {
    padding: 14px 14px 12px;
  }

  .featured-program--mobile .featured-box:hover {
    transform: none;
  }

  .featured-program--mobile .featured-header {
    text-align: left;
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: 0.22em;
    padding-right: 88px;
  }

  .featured-program--mobile .featured-accepted {
    top: 10px;
    right: 10px;
    font-size: 7px;
    padding: 4px 8px;
    letter-spacing: 0.14em;
  }

  .featured-program--mobile .featured-body {
    margin-bottom: 8px;
    gap: 12px;
  }

  .featured-program--mobile .featured-emblem {
    width: 52px;
    height: 52px;
  }

  .featured-program--mobile .featured-emblem svg {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
  }

  .featured-program--mobile .featured-titles span {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .featured-program--mobile .featured-partner-label {
    text-align: left;
    margin-bottom: 8px;
    font-size: 8px;
    padding-left: 64px;
  }

  .featured-program--mobile .featured-partner-logo {
    justify-content: flex-start;
    padding: 10px 0 0;
    margin-left: 64px;
    border-top: 1px solid rgba(255, 215, 0, 0.12);
  }

  .featured-program--mobile .featured-partner-logo img {
    width: 130px;
  }
}

@media (max-width: 480px) {
  .featured-program--mobile .featured-header {
    font-size: 7px;
    padding-right: 76px;
  }

  .featured-program--mobile .featured-titles span {
    font-size: 11px;
  }

  .featured-program--mobile .featured-emblem {
    width: 44px;
    height: 44px;
  }

  .featured-program--mobile .featured-emblem svg {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }

  .featured-program--mobile .featured-partner-label,
  .featured-program--mobile .featured-partner-logo {
    margin-left: 56px;
    padding-left: 0;
  }

  .featured-program--mobile .featured-partner-logo img {
    width: 110px;
  }
}

@media (max-width: 1024px) {
  .header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .page-frame {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .nav { padding-right: 0; }
  .nav-cta { display: none; }
  .nav-end .lang-picker { display: none; }
  .nav-lang-item { display: block; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--top-offset);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    background: rgba(5, 3, 8, 0.98);
    padding: 16px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
    gap: 4px;
    border-bottom: 1px solid var(--purple-line);
    z-index: 1500;
    max-height: calc(100dvh - var(--top-offset));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-links li a {
    display: block;
    padding: 14px 12px;
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .nav-lang-item {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--purple-line);
  }

  .demo-layout { grid-template-columns: 1fr; }
  .demo-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .demo-stat { flex: 1 1 140px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .mid-grid { grid-template-columns: 1fr; }
  .sol-card { border-bottom: 1px solid var(--purple-line); }
  .about-cols { grid-template-columns: repeat(2, 1fr); }
  .form-fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .term-title { min-width: 0; font-size: 10px; }
}

@media (max-width: 768px) {
  .page-frame {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .logo-sub { display: none; }
  .logo-divider { display: none; }
  .logo-main { font-size: 16px; }
  .nav-end { gap: 4px; }

  .hero-left { max-width: 100%; }
  .hero-title { font-size: clamp(28px, 8vw, 42px); }
  .hero-desc { max-width: 100%; font-size: 14px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 0.14em; max-width: 100%; }
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .metric-val { font-size: 18px; }
  .metric-label { font-size: 8px; letter-spacing: 0.1em; }

  .hero-actions { flex-direction: column; }
  .btn-ghost, .btn-secondary {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .trust-logos {
    flex-wrap: wrap;
    gap: 16px;
  }
  .logo-google, .logo-ms { height: 18px; }

  .cap-grid { grid-template-columns: 1fr; }
  .demo-stats { flex-direction: column; }
  .demo-stat { flex: 1 1 auto; }
  .term-body {
    min-height: 200px;
    max-height: 240px;
    font-size: 10px;
    padding: 12px;
  }
  .term-header { padding: 10px 12px; gap: 8px; }
  .demo-tab { padding: 8px 14px; min-height: 36px; }

  .solution-cards { grid-template-columns: 1fr; }
  .sol-card { border-right: none; padding: 20px 16px; }
  .solutions-sidebar { padding: 20px 16px; }
  .about-strip { grid-template-columns: 1fr; padding: 20px 16px; }
  .about-cols { grid-template-columns: 1fr; }
  .about-prose { padding: 16px; font-size: 12px; }

  .panel-border,
  .contact-border,
  .faq-border { padding: 20px 16px; }

  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-headline { font-size: clamp(24px, 7vw, 32px); }
  .contact-email { word-break: break-word; }

  .form-fields { grid-template-columns: 1fr; }
  .field-wide { grid-column: 1; }
  .field input,
  .field textarea,
  .lang-dropdown-btn {
    font-size: 16px;
  }

  .partner-showcase { padding: 32px 16px; }
  .partner-showcase-logo { width: 160px; }
  .partner-showcase h3 { font-size: 15px; }
  .partner-showcase p { font-size: 13px; }

  .faq-item summary {
    font-size: 13px;
    padding: 14px 36px 14px 14px;
  }
  .faq-answer p { font-size: 12px; }

  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .footer-links { justify-content: center; }
  .footer-social { justify-content: center; }

  .marquee-track span { font-size: 10px; }
  .cap-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .page-frame { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .header { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

  .logo-main { font-size: 14px; letter-spacing: 0.05em; }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .metric {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
  }
  .metric:last-child { border-bottom: none; }
  .metric-label { width: auto; margin-top: 0; flex: 1; }

  .hero-title { font-size: clamp(24px, 9vw, 34px); }
  .demo-title { font-size: clamp(18px, 6vw, 24px); }
  .panel-title { font-size: 16px; }

  .term-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-tabs { width: 100%; }
  .demo-tab { flex: 1; text-align: center; }

  .btn-submit { min-height: 48px; }
  .lang-dropdown-menu { max-height: 50dvh; }
}

@media (max-width: 360px) {
  .hero-actions .btn-ghost,
  .hero-actions .btn-secondary {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 12px 16px;
  }
}
