/* ================================================================
   THE REGISTRY — style.css
   Rocktop Digital · Institutional Fintech Infrastructure
   ================================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --blue:        #1A6FFF;
  --blue-lt:     #4D91FF;
  --blue-dim:    rgba(26, 111, 255, 0.10);
  --blue-border: rgba(26, 111, 255, 0.18);
  --blue-hover:  rgba(26, 111, 255, 0.40);
  --blue-glow:   rgba(26, 111, 255, 0.20);
  --bg:          #F4F7FF;
  --bg-alt:      rgba(234, 240, 255, 0.80);
  --bg-card:     rgba(255, 255, 255, 0.80);
  --bg-navy:     #0F1C3F;
  --text:        #0D1529;
  --text-body:   #4A587A;
  --text-dim:    #9AAAC0;
  --border:      rgba(26, 111, 255, 0.12);
  --green:       #059669;
  --red:         #DC2626;
  --amber:       #D97706;

  /* Typography */
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Spacing & Layout */
  --nav-h:       72px;
  --max-w:       1200px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Transitions */
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --t:           0.3s;
  --t-slow:      0.7s;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Page Transition Overlay ───────────────────────────────── */
#pageOverlay {
  position: fixed;
  inset: 0;
  background: #F4F7FF;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
#pageOverlay.hidden { opacity: 0; }
#pageOverlay.blocking { pointer-events: all; opacity: 1; }

/* ── Canvas Layers ─────────────────────────────────────────── */
#gridCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ── Page Wrapper ──────────────────────────────────────────── */
.site {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(244, 247, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t) ease;
}
.nav.scrolled { box-shadow: 0 4px 40px rgba(26,111,255,0.10); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 46px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  /* Layered drop-shadow: subtle ambient + soft blue bloom */
  filter:
    drop-shadow(0 1px 3px rgba(0,0,0,0.5))
    drop-shadow(0 0 8px rgba(26,111,255,0.2));
  transition: transform 0.5s var(--ease), filter 0.3s ease;
}
.nav-logo:hover .logo-icon {
  transform: scale(1.1);
  filter:
    drop-shadow(0 2px 6px rgba(0,0,0,0.5))
    drop-shadow(0 0 18px rgba(26,111,255,0.55))
    drop-shadow(0 0 40px rgba(26,111,255,0.2));
}
/* Footer logo — slightly smaller */
.footer-brand .logo-icon {
  width: 38px;
  height: 40px;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-top: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-link {
  position: relative;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 8px;
  transition: color var(--t) ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  width: 0;
  transition: width var(--t) ease;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: calc(100% - 2rem); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { width: calc(100% - 2rem); }

/* Nav CTA */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  transition: background var(--t) ease, transform var(--t) ease, box-shadow var(--t) ease;
}
.btn-nav::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 60%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-nav:hover { background: var(--blue-lt); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,111,255,0.4); }
.btn-nav:hover::after { left: 130%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.35rem;
  border-radius: 8px;
  transition: background var(--t) ease;
}
.hamburger:hover { background: var(--blue-dim); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) ease, opacity var(--t) ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(244, 247, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem 1.75rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-nav .nav-link {
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .nav-link::after { display: none; }
.mobile-nav .btn-nav {
  margin-top: 1rem;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.875rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.8rem 1.75rem;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 60%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(26,111,255,0.4); }
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(26,111,255,0.25);
}
.btn-ghost:hover {
  background: rgba(26,111,255,0.06);
  border-color: rgba(26,111,255,0.45);
  transform: translateY(-2px);
}

/* ── Eyebrow / Labels ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Section Base ──────────────────────────────────────────── */
section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 560px;
  line-height: 1.75;
}

/* Animated divider line */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  width: 0;
  border-radius: 1px;
  margin: 1.25rem 0 1.75rem;
  transition: width 0.8s var(--ease);
}
.divider-line.center {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  margin-left: auto;
  margin-right: auto;
}
.divider-line.drawn { width: 80px; }
.divider-line.center.drawn { width: 120px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-media { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}
.hero-title .line-1 { display: block; color: #0D1529; }
.hero-title .line-2 { display: inline; }

/* Typewriter cursor */
.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--blue);
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}
.tw-cursor.done { animation: none; opacity: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.075rem;
  color: var(--text-body);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ── Problem Bar ───────────────────────────────────────────── */
.problem-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}
.problem-statement {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 0.75rem;
}
.problem-sub {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: 3rem;
}
.problem-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.problem-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.problem-icon {
  width: 44px; height: 44px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.problem-icon svg { width: 22px; height: 22px; }
.problem-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.problem-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.problem-desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; }

/* ── Stats Row ─────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0;
}
.stat-cell {
  background: var(--bg-alt);
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: background var(--t) ease;
}
.stat-cell:hover { background: #DCE8FF; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
}
.stat-lbl {
  font-size: 0.78rem;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ── Glass Cards ───────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) ease, border-color var(--t) ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--blue-hover);
  box-shadow: 0 20px 60px rgba(26, 111, 255, 0.2);
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--t) ease, box-shadow var(--t) ease;
}
.card:hover .card-icon {
  background: rgba(26,111,255,0.2);
  box-shadow: 0 0 20px rgba(26,111,255,0.3);
}
.card-icon svg { width: 24px; height: 24px; }

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}
.card-text { font-size: 0.875rem; color: var(--text-body); line-height: 1.7; }

/* ── Serve Grid ────────────────────────────────────────────── */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.serve-card {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: transform var(--t) var(--ease), border-color var(--t) ease, box-shadow var(--t) ease;
  backdrop-filter: blur(20px);
}
.serve-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-hover);
  box-shadow: 0 16px 48px rgba(26,111,255,0.15);
}
.serve-icon {
  width: 44px; height: 44px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.serve-icon svg { width: 22px; height: 22px; }
.serve-label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Partner logo placeholder */
.partner-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border: 1px dashed rgba(26,111,255,0.35);
  border-radius: 6px;
  font-size: 0.72rem;
  color: rgba(26,111,255,0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

/* ── Team Cards ────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.125rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 0;                   /* photo bleeds to all edges */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) ease, box-shadow var(--t) ease;
}
/* Top accent line sits over the photo edge — subtle blue shimmer */
.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.6;
  z-index: 2;
  transition: opacity var(--t) ease;
}
.team-card:hover::before { opacity: 1; }
.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-hover);
  box-shadow: 0 20px 50px rgba(26,111,255,0.18);
}
/* Photo — full-bleed top of card, card clips corners via overflow:hidden */
.team-avatar {
  width: 100%;
  /* Tall enough that portrait photos show the full face + collar.
     The card is ~280px wide at desktop; 280px tall = square-ish = no awkward crop */
  height: 280px;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  background: #D8E4FF;
  box-shadow: none;
  transition: none;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 20% keeps the frame centered on the face without cropping the top of the head */
  object-position: center 20%;
  display: block;
  transition: transform 0.55s var(--ease);
  /* Prevent backdrop-filter blur from bleeding into the image layer */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.team-card:hover .team-avatar img {
  transform: scale(1.05);
}
/* Gentle bottom gradient grounds photo into card */
.team-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(234,240,255,0.70));
  pointer-events: none;
}

/* Text area below the photo */
.team-card-body {
  padding: 1rem 1.125rem 1.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.team-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.team-role {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26,111,255,0.1);
  border: 1px solid rgba(26,111,255,0.2);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.875rem;
}
.team-bio {
  font-size: 0.8rem;
  color: var(--text-body);
  line-height: 1.65;
  text-align: center;
}

/* ── Timeline ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
  max-width: 680px;
  margin: 3rem auto 0;
}
.timeline-line {
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(26,111,255,0.1), transparent);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s var(--ease);
}
.timeline-line.drawn { transform: scaleY(1); }
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2.125rem;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 12px rgba(26,111,255,0.6);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.timeline-dot.popped { transform: scale(1); }
.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.timeline-desc { font-size: 0.875rem; color: var(--text-body); }

/* ── Values / 3-col grid ───────────────────────────────────── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ── Feature Grid 2×2 ──────────────────────────────────────── */
.two-by-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ── Architecture Diagram ──────────────────────────────────── */
.arch-diagram {
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  overflow: visible;
}
.arch-diagram-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 2rem;
}

/* 3-tier vertical flow (replaces horizontal scroll) */
.arch-flow-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.arch-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}
.arch-tier-sep {
  color: rgba(26,111,255,0.45);
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.arch-v-connector {
  color: rgba(26,111,255,0.35);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.5rem 0;
  text-align: center;
}
.arch-core-tier {
  border: 1px solid rgba(26,111,255,0.45);
  border-radius: var(--radius);
  background: rgba(26,111,255,0.06);
  box-shadow: 0 0 40px rgba(26,111,255,0.1), inset 0 0 30px rgba(26,111,255,0.03);
  padding: 1.25rem 1.75rem;
  text-align: center;
  width: 100%;
}
.arch-core-tier-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.arch-core-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.arch-core-sep {
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
}

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}
.arch-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.arch-node {
  padding: 0.7rem 1rem;
  background: rgba(26,111,255,0.07);
  border: 1px solid rgba(26,111,255,0.2);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-head);
  text-align: center;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--t) ease, border-color var(--t) ease;
}
.arch-node:hover { background: rgba(26,111,255,0.15); border-color: rgba(26,111,255,0.45); }
.arch-node-sub { font-size: 0.65rem; color: var(--text-body); text-align: center; }

.arch-core-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(26,111,255,0.4);
  border-radius: var(--radius);
  background: rgba(26,111,255,0.06);
  box-shadow: 0 0 30px rgba(26,111,255,0.12);
  flex-shrink: 0;
}
.arch-core-group .arch-node {
  background: rgba(26,111,255,0.1);
  border-color: rgba(26,111,255,0.3);
}

.arch-arrow {
  color: rgba(26,111,255,0.5);
  font-size: 1.1rem;
  flex-shrink: 0;
  padding: 0 0.5rem;
  line-height: 1;
}

/* animated connecting line */
.arch-svg-connector {
  flex-shrink: 0;
  overflow: visible;
}
.arch-line {
  stroke: rgba(26,111,255,0.4);
  stroke-width: 1.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.8s var(--ease);
  fill: none;
}
.arch-line.drawn { stroke-dashoffset: 0; }

/* ── Problem / Solution two-col ────────────────────────────── */
.prob-sol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.prob-panel {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.prob-panel.problem {
  background: rgba(26,111,255,0.04);
  border: 1px solid rgba(26,111,255,0.14);
}
.prob-panel.solution {
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
}
.prob-panel-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.prob-panel.problem .prob-panel-head { color: var(--text-body); }
.prob-panel.solution .prob-panel-head { color: var(--blue); }
.prob-panel-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.prob-panel-text { font-size: 0.9rem; color: var(--text-body); line-height: 1.75; }

/* ── Business Model ────────────────────────────────────────── */
.biz-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.biz-panel {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
}
.biz-panel-head {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.biz-badge {
  font-size: 0.62rem;
  padding: 0.15rem 0.5rem;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 100px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.biz-items { display: flex; flex-direction: column; gap: 0.75rem; }
.biz-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: var(--text-body);
}
.biz-item-dot {
  width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  flex-shrink: 0; margin-top: 0.45rem;
}
.biz-item-label { color: var(--text); font-weight: 500; }
.biz-item-sub { color: var(--text-body); font-size: 0.8rem; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: relative;
}
.tab-btn {
  padding: 0.875rem 1.75rem;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-body);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t) ease, border-color var(--t) ease;
  cursor: pointer;
}
.tab-btn.active { color: var(--text); border-bottom-color: var(--blue); }
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Solution flow — 3-tier vertical (no scroll) */
.solution-flow-wrap { display: none; } /* hidden — replaced by .sol-track */
.solution-flow { display: none; }

.sol-track {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 2.5rem;
}
.sol-node {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  background: rgba(26,111,255,0.06);
  border: 1px solid rgba(26,111,255,0.18);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-head);
  text-align: center;
  min-width: 120px;
  transition: background var(--t) ease, border-color var(--t) ease;
}
.sol-node:hover { background: rgba(26,111,255,0.14); border-color: rgba(26,111,255,0.4); }
.sol-node.core {
  background: rgba(26,111,255,0.12);
  border-color: rgba(26,111,255,0.4);
  box-shadow: 0 0 20px rgba(26,111,255,0.15);
}
.sol-node-sub { font-size: 0.62rem; color: var(--text-body); margin-top: 3px; font-weight: 400; font-family: var(--font-body); }
.sol-arrow { color: rgba(26,111,255,0.5); font-size: 1rem; flex-shrink: 0; padding: 0 0.4rem; }

/* ── Comparison Table ──────────────────────────────────────── */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table thead th {
  padding: 1.125rem 1.5rem;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.compare-table thead th:first-child { color: var(--text-body); }
.compare-table thead th:nth-child(2) { color: var(--text-body); }
.compare-table thead th:nth-child(3) {
  color: var(--blue);
  border-left: 2px solid var(--blue);
  background: rgba(26,111,255,0.05);
}
.compare-table tbody td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(odd) td { background: rgba(26,111,255,0.03); }
.compare-table tbody tr:nth-child(even) td { background: transparent; }
.compare-table tbody td:first-child { color: var(--text-body); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table tbody td:nth-child(2) { color: var(--text-dim); }
.compare-table tbody td:nth-child(3) {
  color: var(--text);
  font-weight: 500;
  border-left: 2px solid var(--blue);
  background: rgba(26,111,255,0.04) !important;
}
.check { color: var(--green); font-weight: 600; }
.cross { color: var(--text-dim); }

/* ── Contact Form ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(26,111,255,0.20);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-select { cursor: pointer; }
.form-select option { background: #FFFFFF; color: var(--text); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,111,255,0.25);
}
.form-textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.visible { display: block; }
.success-icon {
  width: 64px; height: 64px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.success-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-text { font-size: 0.9rem; color: var(--text-body); }

/* Contact info block */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.contact-info-logo { margin-bottom: 1.25rem; }
.contact-info-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.contact-info-sub { font-size: 0.8375rem; color: var(--text-body); margin-bottom: 1.75rem; }
.contact-detail {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 38px; height: 38px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 0.2rem;
}
.contact-detail-val { font-size: 0.875rem; color: var(--text); }
.contact-quote {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text-body);
  line-height: 1.65;
  font-style: italic;
}
.contact-quote-attr {
  margin-top: 0.625rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(26,111,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }

/* ── Page Hero (sub-pages) ─────────────────────────────────── */
.page-hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(26,111,255,0.1) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-sub { margin: 0 auto; }

.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Two-column layout ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-tagline { font-size: 0.875rem; color: var(--text-body); line-height: 1.65; max-width: 260px; }
.footer-col-head {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-link {
  font-size: 0.875rem;
  color: var(--text-body);
  transition: color var(--t) ease;
}
.footer-link:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-powered {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-powered span { color: var(--blue); font-weight: 600; }

/* ── Scroll Animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { will-change: auto; } /* release hint after animation */
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in {
  opacity: 0;
  transition: opacity var(--t-slow) ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.stagger > :nth-child(1) { transition-delay: 0s; }
.stagger > :nth-child(2) { transition-delay: 0.1s; }
.stagger > :nth-child(3) { transition-delay: 0.2s; }
.stagger > :nth-child(4) { transition-delay: 0.3s; }
.stagger > :nth-child(5) { transition-delay: 0.4s; }
.stagger > :nth-child(6) { transition-delay: 0.5s; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-avatar { height: 250px; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .three-col { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .two-by-two { grid-template-columns: 1fr; }
  .biz-model { grid-template-columns: 1fr; }
  .prob-sol { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info { position: static; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .problem-cols { grid-template-columns: 1fr; }
  .arch-flow { min-width: 540px; }
}

@media (max-width: 480px) {
  .serve-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .team-avatar { height: 260px; }
}

/* ================================================================
   MOTION ENHANCEMENTS — Added Layer
   Orbs · Data Rain · Scan Line · Grid Overlay · Live Glow Effects
   ================================================================ */


/* ── Glowing orbs ────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 800px; height: 800px;
  top: -260px; left: -260px;
  background: radial-gradient(circle at center, rgba(26,111,255,0.18) 0%, rgba(26,111,255,0.06) 40%, transparent 70%);
  filter: blur(60px);
  animation: orbPulse1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 600px; height: 600px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle at center, rgba(77,145,255,0.15) 0%, rgba(26,111,255,0.06) 40%, transparent 70%);
  filter: blur(80px);
  animation: orbPulse2 18s ease-in-out infinite alternate;
}
.orb-3 {
  width: 400px; height: 400px;
  top: 42%; left: 55%;
  background: radial-gradient(circle at center, rgba(26,111,255,0.12) 0%, transparent 70%);
  filter: blur(90px);
  animation: orbPulse3 30s ease-in-out infinite;
}
@keyframes orbPulse1 {
  0%   { opacity: 0.6; transform: translate(0, 0) scale(1); }
  50%  { opacity: 0.9; transform: translate(60px, 40px) scale(1.08); }
  100% { opacity: 0.5; transform: translate(-30px, 70px) scale(0.94); }
}
@keyframes orbPulse2 {
  0%   { opacity: 0.5; transform: translate(0, 0) scale(1); }
  50%  { opacity: 0.85; transform: translate(-50px, -40px) scale(1.12); }
  100% { opacity: 0.4; transform: translate(30px, -70px) scale(0.92); }
}
@keyframes orbPulse3 {
  0%   { opacity: 0.4; transform: translate(0, 0) scale(1); }
  25%  { opacity: 0.7; transform: translate(-80px, 60px) scale(1.15); }
  50%  { opacity: 0.3; transform: translate(60px, -80px) scale(0.85); }
  75%  { opacity: 0.6; transform: translate(-40px, -50px) scale(1.05); }
  100% { opacity: 0.4; transform: translate(0, 0) scale(1); }
}

/* ── Data rain canvas ────────────────────────────────────────── */
#dataRainCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

/* ── Hero Viz — Terminal + Network ───────────────────────────── */
.hero-viz {
  background: linear-gradient(145deg, #E8F1FF 0%, #F2F7FF 60%, #EBF2FF 100%);
  border: 1px solid rgba(26,111,255,0.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(26,111,255,0.16), 0 0 40px rgba(26,111,255,0.08);
  animation: dashGlow 5s ease-in-out infinite;
  position: relative;
}
.hero-viz::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,111,255,0.6), transparent);
}

/* Terminal window */
.viz-terminal { border-bottom: 1px solid rgba(26,111,255,0.1); }
.viz-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(26,111,255,0.05);
  border-bottom: 1px solid rgba(26,111,255,0.10);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }
.viz-terminal-title {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.67rem;
  color: var(--text-body);
  margin-left: 6px;
  letter-spacing: 0.02em;
  flex: 1;
}
.viz-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 2px 8px;
  border-radius: 100px;
}
.viz-terminal-body {
  padding: 13px 16px 12px;
  min-height: 196px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.71rem;
  line-height: 1.9;
  color: #94A3B8;
  overflow: hidden;
}
.t-line-cmd { color: #E2E8F0; }
.t-line-cmd::before { content: '$ '; color: var(--blue); }
.t-line-out { color: #4A5568; padding-left: 10px; }
.t-line-out::before { content: '→ '; color: rgba(26,111,255,0.4); }
.t-line-suc { color: var(--green); padding-left: 10px; }
.t-line-suc::before { content: '✓ '; }
.t-cursor {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--blue);
  border-radius: 1px;
  vertical-align: middle;
  animation: blink 0.85s step-end infinite;
  margin-left: 1px;
}

/* Network topology */
.viz-network {
  padding: 14px 18px 10px;
  background: rgba(26,111,255,0.02);
}
.network-svg { width: 100%; height: auto; display: block; }

.net-edge {
  stroke: rgba(26,111,255,0.15);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}
.net-node {
  fill: rgba(26,111,255,0.08);
  stroke: rgba(26,111,255,0.35);
  stroke-width: 1;
}
.net-node-center {
  fill: rgba(26,111,255,0.14);
  stroke: var(--blue);
  stroke-width: 1.5;
  animation: nodeGlow 3s ease-in-out infinite;
}
.net-node-ring {
  fill: none;
  stroke: rgba(26,111,255,0.18);
  stroke-width: 1;
  stroke-dasharray: 7 5;
  animation: ringRotate 14s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes nodeGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(26,111,255,0.4)); }
  50%       { filter: drop-shadow(0 0 14px rgba(26,111,255,0.75)); }
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.net-label-c {
  fill: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.net-label-c-sub {
  fill: rgba(77,145,255,0.7);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.8px;
  letter-spacing: 0.3px;
}
.net-label {
  fill: #1A2A4A;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5.5px;
  font-weight: 600;
}
.net-packet {
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(77,145,255,0.9));
}

/* Stats bar under network */
.viz-net-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(26,111,255,0.08);
  margin-top: 8px;
}
.vns-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.vns-val {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.vns-lbl {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-body);
}
.vns-sep {
  width: 1px; height: 26px;
  background: rgba(26,111,255,0.1);
  flex-shrink: 0;
}

/* ── Hero title line-2 gradient shimmer ──────────────────────── */
.hero-title .line-2 {
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    #7DC4FF 25%,
    var(--blue-lt) 40%,
    #C0E0FF 50%,
    var(--blue-lt) 60%,
    #7DC4FF 75%,
    var(--blue) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 5s linear infinite;
}
@keyframes titleShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Floating fintech data tags (hero bg decoration) ─────────── */
.hex-tag {
  position: absolute;
  font-size: 0.58rem;
  font-family: 'Space Grotesk', monospace;
  color: rgba(26,111,255,0.42);
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
  letter-spacing: 0.06em;
  font-weight: 500;
  animation: hexFloat var(--dur, 8s) ease-in-out infinite;
  user-select: none;
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); opacity: 0.3; }
  50%       { transform: translateY(-18px) rotate(1deg); opacity: 0.12; }
}

/* ── Hero overflow for floating tags ─────────────────────────── */
.hero { overflow: hidden; }

/* ── Stat num glow on hover ──────────────────────────────────── */
.stat-num {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.stat-cell:hover .stat-num {
  text-shadow: 0 0 30px rgba(26,111,255,0.9), 0 0 60px rgba(26,111,255,0.4);
}

/* ── Section alt — radial ambient glow ───────────────────────── */
.section-alt {
  position: relative;
  overflow: hidden;
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(26,111,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(26,111,255,0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.section-alt > * { position: relative; z-index: 1; }

/* ── Card hover glow — CSS transition, no infinite keyframe loop ── */
.card:hover {
  box-shadow: 0 24px 70px rgba(26,111,255,0.28), 0 0 0 1px rgba(26,111,255,0.18);
}

/* ── Eyebrow dot pulse ───────────────────────────────────────── */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,111,255,0.7); }
  50%       { box-shadow: 0 0 0 5px rgba(26,111,255,0); }
}
.eyebrow-dot { animation: dotPulse 2.5s ease-in-out infinite; }

/* ── Live badge ──────────────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 5px;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ── Hero visual — subtle breathing glow ─────────────────────── */
@keyframes dashGlow {
  0%, 100% { box-shadow: 0 24px 80px rgba(26,111,255,0.10), 0 0 40px rgba(26,111,255,0.05); }
  50%       { box-shadow: 0 24px 80px rgba(26,111,255,0.18), 0 0 60px rgba(26,111,255,0.12), 0 0 0 1px rgba(26,111,255,0.14); }
}

/* ── Problem icon hover lift ─────────────────────────────────── */
.problem-col {
  transition: transform 0.3s var(--ease);
}
.problem-col:hover {
  transform: translateY(-4px);
}
.problem-col:hover .problem-icon {
  background: rgba(26,111,255,0.2);
  box-shadow: 0 0 20px rgba(26,111,255,0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── Serve card icon glow on hover ───────────────────────────── */
.serve-card:hover .serve-icon {
  background: rgba(26,111,255,0.22);
  box-shadow: 0 0 18px rgba(26,111,255,0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── CTA section radial beam ─────────────────────────────────── */
.cta-section::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(26,111,255,0.12) 0%, transparent 60%);
}

/* ── Breathing grid canvas ───────────────────────────────────── */
#gridCanvas {
  opacity: 1;
}

/* ── Card 3D tilt — will-change applied by JS on hover only ─────── */
/* Keeping transform-style flat avoids unnecessary compositor layers */
.card, .team-card, .serve-card {
  transform-style: flat;
}

/* ── Scroll-triggered number flash ───────────────────────────── */
@keyframes numFlash {
  0%   { color: var(--blue); }
  30%  { color: #7DC4FF; text-shadow: 0 0 20px rgba(26,111,255,0.6); }
  100% { color: var(--blue); }
}
.stat-num.counting { animation: numFlash 0.3s ease-out; }

/* ── Page hero radial beam (sub pages) ───────────────────────── */
.page-hero::before {
  background: radial-gradient(ellipse at 50% -10%, rgba(26,111,255,0.14) 0%, transparent 58%);
}

/* ── Footer top border glow ──────────────────────────────────── */
footer {
  border-top: 1px solid rgba(26,111,255,0.15);
  box-shadow: 0 -1px 0 0 rgba(26,111,255,0.06), inset 0 1px 0 rgba(26,111,255,0.04);
}

/* ================================================================
   DARK ACCENT SECTIONS
   Problem bar · CTA · Footer — navy contrast against the light base
   ================================================================ */

/* ── Problem Bar — soft blue tint (light) ────────────────────── */
.problem-bar {
  background: rgba(228,237,255,0.82);
  border-top-color: rgba(26,111,255,0.16);
  border-bottom-color: rgba(26,111,255,0.16);
}
.problem-bar .problem-statement { color: #0D1529; }
.problem-bar .problem-sub       { color: #4A587A; }
.problem-bar .problem-label     { color: #0D1529; }
.problem-bar .problem-desc      { color: #4A587A; }
.problem-bar .problem-kicker    { color: #1A6FFF; }
.problem-bar .problem-icon {
  background: rgba(26,111,255,0.12);
  border-color: rgba(26,111,255,0.25);
}
.problem-bar .problem-col:hover .problem-icon {
  background: rgba(26,111,255,0.22);
  box-shadow: 0 0 20px rgba(26,111,255,0.22);
}

/* ── CTA Section — light blue tint ───────────────────────────── */
.cta-section {
  background: rgba(238,244,255,0.82);
}
.cta-section::before {
  background: radial-gradient(ellipse at 50% 110%, rgba(26,111,255,0.10) 0%, transparent 65%);
}
.cta-section .cta-hero-headline { color: #0D1529; }
.cta-section .eyebrow     { color: #1A6FFF; }
.cta-section .eyebrow-dot { background: #1A6FFF; }
.cta-section .btn-ghost {
  color: #0D1529;
  border-color: rgba(26,111,255,0.28);
}
.cta-section .btn-ghost:hover {
  background: rgba(26,111,255,0.06);
  border-color: rgba(26,111,255,0.45);
}

/* ── CTA hero headline ────────────────────────────────────────── */
.cta-hero-headline {
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.0;
  text-align: center;
  margin: 0 auto 2rem;
  max-width: none;
  color: #0D1529;
}
.cta-accent-line {
  display: block;
  color: #1A6FFF;
}

/* ── CTA Market Ticker ────────────────────────────────────────── */
.cta-ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(26,111,255,0.14);
  border-bottom: 1px solid rgba(26,111,255,0.14);
}
.cta-ticker {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: tickerScroll 28s linear infinite;
  white-space: nowrap;
}
.cta-ticker span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A587A;
}
.ticker-sep {
  color: rgba(26,111,255,0.45) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  font-size: 1rem !important;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── How It Works ────────────────────────────────────────────── */
.hiw-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  background: #FFFFFF;
  border: 1px solid rgba(26,111,255,0.13);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(26,111,255,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hiw-step:hover {
  box-shadow: 0 8px 36px rgba(26,111,255,0.12);
  transform: translateY(-3px);
}
.hiw-num {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(26,111,255,0.15);
  line-height: 1;
}
.hiw-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.hiw-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 0;
}
.hiw-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  margin-top: 3.5rem;
}
.hiw-connector::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26,111,255,0.25), rgba(26,111,255,0.55), rgba(26,111,255,0.25));
  border-radius: 2px;
}
@media (max-width: 900px) {
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-connector { display: none; }
}

/* ── Footer — medium-dark navy ───────────────────────────────── */
footer {
  background: #0F1D3A;
  border-top: 1px solid rgba(26,111,255,0.20);
  box-shadow: none;
}
footer .footer-grid { border-bottom-color: rgba(255,255,255,0.08); }
footer .footer-tagline   { color: rgba(190,210,255,0.60); }
footer .footer-col-head  { color: rgba(255,255,255,0.42); }
footer .footer-link      { color: rgba(190,210,255,0.65); }
footer .footer-link:hover { color: #FFFFFF; }
footer .footer-copy      { color: rgba(255,255,255,0.30); }
footer .footer-powered   { color: rgba(255,255,255,0.30); }
footer .footer-powered span { color: #7DC4FF; }
footer .logo-text        { color: #FFFFFF; }
footer .logo-text small  { color: rgba(190,210,255,0.50); }

