/* ============================================================
   ABC4AI — Design System
   Cinematic dark + electric blue, enterprise AI
   ============================================================ */

:root {
  --bg:            #05070c;
  --bg-elevated:   #0a0f1c;
  --bg-alt:        #0d1424;
  --bg-alt-2:      #0f1830;
  --surface:       rgba(255,255,255,0.035);
  --surface-strong:rgba(255,255,255,0.065);

  --ink:           #E9EFFB;
  --ink-soft:      #97A6C4;
  --ink-faint:     #5B6883;

  --line:          rgba(139,168,255,0.14);
  --line-strong:   rgba(139,168,255,0.30);

  --accent:        #2E7DFF;
  --accent-dark:   #1B54D6;
  --accent-darker: #123B9E;
  --accent-bright: #6AB0FF;
  --accent-light:  rgba(46,125,255,0.22);
  --accent-wash:   rgba(46,125,255,0.10);

  --teal:          #00D8FF;
  --teal-dark:     #00A0C2;
  --teal-wash:     rgba(0,216,255,0.10);

  --violet:        #7C5CFF;

  --ink-900:       #05070c;
  --ink-800:       #0a1024;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 16px 44px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.65);

  --glow-sm: 0 0 22px rgba(46,125,255,0.35);
  --glow-md: 0 0 46px rgba(46,125,255,0.4);
  --glow-lg: 0 0 90px rgba(46,125,255,0.32);
  --glow-cyan: 0 0 40px rgba(0,216,255,0.35);

  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 168px;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* Persistent HUD grid + glow backdrop, present behind every page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139,168,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,168,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(46,125,255,0.16), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(0,216,255,0.10), transparent 40%);
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-wash);
  border: 1px solid var(--line);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px 1px var(--teal);
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

.section-head { max-width: 680px; margin: 0 0 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

.section { padding: 108px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark {
  background: radial-gradient(circle at 20% 20%, rgba(46,125,255,0.10), transparent 55%), var(--bg-elevated);
  color: var(--ink);
}
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-105%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0px) scale(0.98); }

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: var(--glow-sm); }
.btn-primary::before { background: linear-gradient(135deg, var(--accent-bright), var(--accent)); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: var(--glow-md); }

.btn-ghost { background: rgba(255,255,255,0.02); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost::before { background: var(--accent-wash); }
.btn-ghost:hover { color: var(--accent-bright); border-color: var(--accent); }
.btn-ghost:hover::before { transform: translateX(0); }

.btn-light { background: #EAF1FF; color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-light::before { background: #fff; }
.btn-light:hover::before { transform: translateX(0); }

.btn svg { width: 18px; height: 18px; position: relative; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { padding: 10px 0; box-shadow: var(--shadow-sm); }
.site-header.scrolled::before { opacity: 1; border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; flex-shrink: 0; }
.brand img { height: 128px; width: auto; max-width: none; transition: height 0.4s var(--ease), filter 0.4s var(--ease); filter: drop-shadow(0 0 14px rgba(46,125,255,0.35)); }
.site-header.scrolled .brand img { height: 96px; }

.main-nav { display: flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover { background: var(--accent-wash); color: var(--accent-bright); }
.main-nav a.nav-link.active { color: var(--accent-bright); font-weight: 600; position: relative; }
.main-nav a.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
}
.nav-caret { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }

.nav-item.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 300px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 50;
}
.nav-item.dropdown:hover .dropdown-panel,
.nav-item.dropdown.open .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-item.dropdown:hover .nav-caret,
.nav-item.dropdown.open .nav-caret { transform: rotate(180deg); }

.dropdown-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease), color .25s var(--ease);
}
.dropdown-panel a:hover { background: var(--accent-wash); padding-left: 18px; color: var(--accent-bright); }
.dropdown-panel .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  flex-shrink: 0;
}

.header-cta { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }

/* Mobile burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  align-items: center; justify-content: center;
  position: relative; z-index: 1200;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger span::before { position: absolute; transform: translateY(-6px); }
.burger span::after { position: absolute; transform: translateY(6px); }
.burger.active span { background: transparent; }
.burger.active span::before { transform: rotate(45deg); }
.burger.active span::after { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1100;
  display: flex; flex-direction: column;
  padding: 110px 32px 40px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a, .mobile-nav .m-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
  background: none; border-top: none; border-left: none; border-right: none;
  width: 100%; text-align: left;
}
.mobile-nav .sub-list { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.mobile-nav .sub-list.open { max-height: 400px; }
.mobile-nav .sub-list a { padding: 12px 0 12px 18px; font-size: 1rem; font-weight: 500; border-bottom: none; color: var(--ink-soft); }
.mobile-nav .m-toggle svg { transition: transform 0.35s var(--ease); width: 16px; height: 16px; }
.mobile-nav .m-toggle.open svg { transform: rotate(180deg); }
.mobile-nav .m-cta { margin-top: 28px; align-self: flex-start; }
body.nav-open { overflow: hidden; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: calc(var(--header-h) + 74px) 0 100px;
  position: relative;
  overflow: hidden;
}
.home-hero {
  padding: calc(var(--header-h) + 24px) 0 40px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  z-index: 0;
  mix-blend-mode: screen;
  animation: float-blob 16s ease-in-out infinite;
}
.hero-blob.b1 { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -140px; }
.hero-blob.b2 { width: 380px; height: 380px; background: var(--teal); bottom: -160px; left: -120px; animation-delay: -6s; opacity: 0.4; }
.hero-blob.b3 { width: 260px; height: 260px; background: var(--violet); top: 40%; left: 46%; animation-delay: -3s; opacity: 0.35; }
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.08); }
  66% { transform: translate(-24px, 20px) scale(0.95); }
}

/* particle network canvas, injected by main.js into every .hero */
.particle-net {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
}
.hero-copy .accent-word {
  background: linear-gradient(100deg, var(--accent-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(46,125,255,0.35));
  font-style: normal;
}
.hero-copy p.lead { margin-top: 24px; font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
.hero-visual .float-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  animation: float-card 5s ease-in-out infinite;
}
@keyframes float-card { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

/* Hero abstract panel (home) */
.hero-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.hp-dot { width: 10px; height: 10px; border-radius: 50%; }
.hp-dot.r { background: #E5654A; }
.hp-dot.y { background: #E5B44A; }
.hp-dot.g { background: #59B36A; }
.hp-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.02em; }
.hp-body { padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 20px; }
.hp-row span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.hp-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.hp-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); width: 0; box-shadow: 0 0 10px rgba(46,125,255,0.6); transition: width 1.4s 0.3s var(--ease); }
.hp-bar.teal span { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); box-shadow: 0 0 10px rgba(0,216,255,0.6); }
.hero-visual.in-view .hp-bar span { width: var(--w, 80%); }

/* Hero robot illustration */
.hero-robot {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-lg);
  overflow: hidden;
}
.hero-robot::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 38%, rgba(46,125,255,0.4), transparent 60%);
  filter: blur(10px);
  z-index: 0;
}
.hero-robot svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 28px rgba(46,125,255,0.3));
}
.hero-robot img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.hero-robot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,12,0.05) 0%, rgba(5,7,12,0.35) 100%),
              linear-gradient(0deg, rgba(46,125,255,0.12), transparent 40%);
}
.hero-robot .pulse-node { animation: pulse-node 2.2s ease-in-out infinite; transform-origin: center; }
@keyframes pulse-node { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hero-robot .orbit-a { transform-origin: 190px 235px; animation: orbit-spin 16s linear infinite; }
.hero-robot .orbit-b { transform-origin: 190px 235px; animation: orbit-spin 22s linear infinite reverse; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.safe-ai-visual { max-width: 320px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(46,125,255,0.35)); }
.safe-ai-visual svg { animation: gentle-spin-pulse 6s ease-in-out infinite; transform-origin: center; }
@keyframes gentle-spin-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(1.5deg); }
}

/* product hero (simpler, image-led) */
.product-hero { padding-top: calc(var(--header-h) + 40px); }
.product-hero .hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-lg);
  border: 1px solid var(--line);
  margin-top: 46px;
  position: relative;
}
.product-hero .hero-media img { width: 100%; height: auto; }
.product-hero .hero-copy { max-width: 760px; }
.product-hero .tagline { font-size: 1.25rem; color: var(--accent-bright); font-weight: 600; margin-top: 10px; font-family: var(--font-display); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); filter: blur(0); }
[data-reveal="scale"] { transform: translateY(0) scale(0.92); }
[data-reveal="scale"].in-view { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].in-view { transform: translateX(0); }

/* ============================================================
   CARD GRIDS
   ============================================================ */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.card::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md), var(--glow-sm); border-color: var(--line-strong); background: var(--surface-strong); }
.card:hover::after { transform: scaleX(1); }

.card .icon-wrap {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--accent-wash);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), box-shadow .45s var(--ease);
}
.card .icon-wrap img { width: 30px; height: 30px; object-fit: contain; }
.card .icon-wrap svg { width: 28px; height: 28px; color: var(--accent-bright); }
.card:hover .icon-wrap { transform: rotate(-8deg) scale(1.08); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: var(--glow-sm); border-color: transparent; }
.card:hover .icon-wrap svg { color: #fff; }
.card:hover .icon-wrap img { filter: brightness(0) invert(1); }

.card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(255,255,255,0.06);
  font-weight: 600;
  transition: color 0.45s var(--ease);
}
.card:hover .num { color: var(--accent-light); }

@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SPLIT / TEXT-IMAGE SECTIONS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 6%;
  background: radial-gradient(circle, rgba(46,125,255,0.4), transparent 70%);
  filter: blur(50px);
  z-index: 0;
}
.split-media img { position: relative; z-index: 1; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.split-media.match-height { align-self: stretch; }
.split-media.match-height img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .split-media.match-height { align-self: auto; }
  .split-media.match-height img { height: auto; }
}
.split-copy h2 { margin-bottom: 20px; }
.split-copy p { color: var(--ink-soft); font-size: 1.05rem; }
.split-copy p + p { margin-top: 16px; }
@media (max-width: 900px) {
  .split, .split.reverse .split-media { grid-template-columns: 1fr; order: 0; }
  .split { gap: 36px; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats-band {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(46,125,255,0.28), transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(0,216,255,0.22), transparent 55%);
}
.stat { text-align: center; position: relative; z-index: 1; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.1); }
.stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 30px rgba(46,125,255,0.5);
}
.stat .stat-num .plus { color: var(--accent-bright); }
.stat .stat-label { margin-top: 8px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 700px) {
  .stats-band { grid-template-columns: 1fr; gap: 28px; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
}

/* ============================================================
   ABOUT / VISION-MISSION
   ============================================================ */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; max-width: 800px; margin-left: auto; margin-right: auto; }
.vm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.vm-card:hover { box-shadow: var(--glow-sm); }
.vm-card:nth-child(2) { border-left-color: var(--teal); }
.vm-card:nth-child(3) { border-left-color: var(--violet); }
.vm-card .icon-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-wash); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.vm-card .icon-wrap svg { width: 24px; height: 24px; color: var(--accent-bright); }
.vm-card:nth-child(2) .icon-wrap { background: var(--teal-wash); }
.vm-card:nth-child(2) .icon-wrap svg { color: var(--teal); }
.vm-card:nth-child(3) .icon-wrap { background: rgba(124,92,255,0.12); }
.vm-card:nth-child(3) .icon-wrap svg { color: var(--violet); }
.vm-card h4 { font-family: var(--font-mono); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-bright); margin-bottom: 12px; }
.vm-card:nth-child(2) h4 { color: var(--teal); }
.vm-card:nth-child(3) h4 { color: var(--violet); }
.vm-card p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .vm-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PARTNERS
   ============================================================ */
.partner-spotlight {
  display: flex;
  align-items: center;
  gap: 44px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 52px;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.partner-spotlight:hover { box-shadow: var(--shadow-lg), 0 0 60px rgba(118,185,0,0.25); border-color: rgba(118,185,0,0.35); transform: translateY(-4px); }
.partner-spotlight::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(118,185,0,0.28), transparent 70%);
  top: -120px; left: -100px;
  filter: blur(6px);
  z-index: 0;
}
.partner-spotlight::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(46,125,255,0.22), transparent 70%);
  bottom: -120px; right: -80px;
  filter: blur(6px);
  z-index: 0;
}
.partner-badge {
  position: relative; z-index: 1;
  flex-shrink: 0;
  background: #fff;
  border-radius: 18px;
  padding: 22px 34px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.partner-badge img { height: 60px; width: auto; display: block; }
.partner-copy { position: relative; z-index: 1; }
.partner-copy .partner-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8FD400;
  margin-bottom: 10px;
}
.partner-copy .partner-kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #8FD400; box-shadow: 0 0 8px 1px #8FD400;
}
.partner-copy h3 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.partner-copy p { color: var(--ink-soft); font-size: 1rem; max-width: 480px; }
@media (max-width: 700px) {
  .partner-spotlight { flex-direction: column; text-align: center; padding: 36px 28px; gap: 26px; }
  .partner-copy p { max-width: none; }
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.site-footer { background: var(--bg-elevated); color: var(--ink); padding-top: 100px; border-top: 1px solid var(--line); }
.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-info { text-align: center; }
.contact-info h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-info p { color: var(--ink-soft); margin: 18px auto 0; font-size: 1.05rem; max-width: 560px; }
.contact-info .info-row { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--ink); }
.contact-info .info-row .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-wash); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .info-row .ic svg { width: 18px; height: 18px; color: var(--accent-bright); }
.contact-info .contact-cards { text-align: left; }
.contact-info .contact-cards { margin: 34px 0 24px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 0; flex-wrap: wrap; gap: 18px;
}
.footer-bottom .f-logo { display: flex; align-items: center; gap: 10px; }
.footer-bottom .f-logo img { height: 30px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-bottom p { color: var(--ink-faint); font-size: 0.88rem; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.social-row a svg { width: 18px; height: 18px; color: var(--ink); transition: color 0.3s var(--ease); }
.social-row a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-4px) rotate(6deg); box-shadow: var(--glow-sm); }
.social-row a:hover svg { color: #fff; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background .35s var(--ease), box-shadow .35s var(--ease);
  z-index: 900;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); box-shadow: var(--glow-md); border-color: var(--accent); }
#back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   RESEARCH PAGE
   ============================================================ */
.research-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-lg);
  border: 1px solid var(--line);
  position: relative;
  margin-top: 46px;
}
.research-banner img { width: 100%; height: auto; display: block; }

.table-wrap {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
table.paper-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.paper-table thead th {
  text-align: left;
  background: linear-gradient(120deg, var(--accent-dark), var(--accent-darker));
  color: #fff;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
table.paper-table tbody td {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink);
  vertical-align: top;
}
table.paper-table tbody td.year { color: var(--accent-bright); font-weight: 700; white-space: nowrap; font-family: var(--font-mono); }
table.paper-table tbody td.authors { color: var(--ink-soft); white-space: nowrap; }
table.paper-table tbody tr { transition: background 0.25s var(--ease); }
table.paper-table tbody tr:hover { background: var(--accent-wash); }

.research-area-card { display: flex; align-items: flex-start; gap: 20px; }
.research-area-card .icon-wrap { margin-bottom: 0; flex-shrink: 0; }

/* ============================================================
   UTILS / MISC
   ============================================================ */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent-bright); }
.cta-band {
  background: linear-gradient(120deg, var(--accent-darker), var(--accent-dark), var(--violet));
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--glow-lg);
}
.cta-band::before {
  content: "";
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(20px);
  top: -140px; right: -60px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 480px; position: relative; z-index: 1;}
.cta-band .btn-light { position: relative; z-index: 1; }

.page-fade { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.page-leave { animation: page-out 0.28s var(--ease) forwards; }
@keyframes page-out { to { opacity: 0; } }

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  box-shadow: 0 0 12px rgba(46,125,255,0.6);
  z-index: 1500;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ---------- Hero headline word-stagger reveal ---------- */
.hero-copy h1 .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(4px);
  animation: word-in 0.7s var(--ease) forwards;
  animation-delay: calc(var(--wi, 0) * 0.045s + 0.1s);
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- Breathing glow on primary CTAs ---------- */
@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--glow-sm); }
  50% { box-shadow: var(--glow-md); }
}
.header-cta .btn-primary,
.hero-actions .btn-primary {
  animation: cta-pulse 3.2s ease-in-out infinite;
}
.header-cta .btn-primary:hover,
.hero-actions .btn-primary:hover {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .header-cta .btn-primary, .hero-actions .btn-primary { animation: none; }
}

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

/* scrollbar accent (webkit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.grid.cols-industries { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.industry-card .icon-wrap { width: 48px; height: 48px; margin-bottom: 0; flex-shrink: 0; border-radius: 13px; }
.industry-card .icon-wrap svg { width: 24px; height: 24px; }
.industry-card h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--ink); transition: color .4s var(--ease); }
.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--glow-sm);
  border-color: var(--accent);
  background: var(--surface-strong);
}
.industry-card:hover h4 { color: var(--accent-bright); }
.industry-card:hover .icon-wrap { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); box-shadow: var(--glow-sm); }
.industry-card:hover .icon-wrap svg { color: #fff; }
@media (max-width: 1080px) { .grid.cols-industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid.cols-industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid.cols-industries { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCTS SHOWCASE (home)
   ============================================================ */
.grid.cols-products { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), var(--glow-sm); border-color: var(--line-strong); }
.product-card .pc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.07); }
.product-card .pc-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(5,7,12,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px;
}
.product-card .pc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.product-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.product-card .pc-link {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.92rem; color: var(--accent-bright);
}
.product-card .pc-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.product-card:hover .pc-link svg { transform: translateX(4px); }
@media (max-width: 1080px) { .grid.cols-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-products { grid-template-columns: 1fr; } }

/* ============================================================
   RESEARCH TEASER (home)
   ============================================================ */
.research-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.research-teaser .rt-copy p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 18px; }
.research-teaser .rt-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.rt-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 24px; }
.rt-stat .rt-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--accent-bright); text-shadow: 0 0 20px rgba(46,125,255,0.4); }
.rt-stat .rt-label { margin-top: 4px; font-size: 0.88rem; color: var(--ink-soft); }
.research-teaser .rt-media {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glow-md);
}
.research-teaser .rt-media::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(46,125,255,0.3), transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(0,216,255,0.28), transparent 55%);
}
.rt-media-inner { position: relative; z-index: 1; }
.rt-paper { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.rt-paper:last-child { border-bottom: none; }
.rt-paper .rt-year { font-family: var(--font-mono); font-weight: 600; color: var(--teal); font-size: 0.9rem; flex-shrink: 0; width: 44px; }
.rt-paper .rt-title { font-size: 0.92rem; color: var(--ink); line-height: 1.5; }
@media (max-width: 900px) { .research-teaser { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   CONTACT — cards + map
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease), box-shadow .35s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); background: rgba(46,125,255,0.06); box-shadow: var(--glow-sm); }
.contact-card .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-wash); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.contact-card .ic svg { width: 17px; height: 17px; color: var(--accent-bright); }
.contact-card h4 { color: #fff; font-family: var(--font-sans); font-size: 0.92rem; font-weight: 600; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 0.86rem; word-break: break-word; }
.contact-card a:hover { color: var(--accent-bright); }

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

/* ============================================================
   FOOTER — expanded columns
   ============================================================ */
.footer-links {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.footer-col.brand-col .f-logo img { height: 34px; opacity: 0.92; }
.footer-col.brand-col p { color: var(--ink-faint); font-size: 0.92rem; margin: 16px 0 20px; max-width: 260px; }
.footer-col a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.94rem;
  padding: 7px 0;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--accent-bright); transform: translateX(3px); }
.footer-bottom { border-bottom: none; padding-top: 26px; }
.legal-links { display: flex; gap: 22px; }
.legal-links a { color: var(--ink-faint); font-size: 0.86rem; transition: color 0.25s var(--ease); }
.legal-links a:hover { color: var(--accent-bright); }

@media (max-width: 900px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-links { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SIMPLE LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 40px; font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 1rem; margin-top: 14px; }
.legal-content ul { padding-left: 22px; list-style: disc; }
.legal-content ul li { margin-top: 8px; }

