/* ==========================================================================
   Nexora — Design System
   Palette: deep infrastructure navy + verified-mint + signal-gold
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  /* Color */
  --bg: #090D16;
  --bg-alt: #0C1220;
  --surface: #111827;
  --surface-2: #161F32;
  --surface-glass: rgba(22, 31, 50, 0.6);
  --border: #212B42;
  --border-soft: #1A2338;

  --text: #EDF1FA;
  --text-muted: #8C97B2;
  --text-faint: #5C6884;

  --primary: #5B6EF5;
  --primary-dark: #4150D8;
  --primary-glow: rgba(91, 110, 245, 0.35);

  --mint: #00E6A0;
  --mint-dark: #00B87F;
  --mint-glow: rgba(0, 230, 160, 0.25);

  --gold: #F0B429;
  --gold-glow: rgba(240, 180, 41, 0.2);

  --danger: #FF5C72;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Scale */
  --fs-hero: clamp(2.6rem, 5.4vw, 4.6rem);
  --fs-h1: clamp(2.2rem, 4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 2.8vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Layout */
  --container: 1280px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px var(--border), 0 20px 50px -24px rgba(91,110,245,0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint-glow);
}

.section-head h2 { color: var(--text); }
.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease); width: 16px; height: 16px; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px var(--primary-glow); transform: translateY(-2px); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--mint); background: var(--surface-2); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.6rem 0;
}
.btn-ghost span { border-bottom: 1px solid var(--text-faint); padding-bottom: 2px; transition: border-color 0.3s var(--ease); }
.btn-ghost:hover span { border-color: var(--mint); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(91,110,245,0.4);
  box-shadow: var(--shadow-glow);
}

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(91,110,245,0.18), rgba(0,230,160,0.08));
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  color: var(--mint);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem; font-size: 0.85rem; font-weight: 600; color: var(--mint);
}
.card-arrow svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.card:hover .card-arrow svg { transform: translateX(4px); }

/* Glass */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

/* Mono data chips (ledger motif) */
.data-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.data-chip strong { color: var(--text); font-weight: 600; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0,230,160,0.1);
  color: var(--mint);
  border: 1px solid rgba(0,230,160,0.25);
}
.status-pill.warn { background: rgba(240,180,41,0.1); color: var(--gold); border-color: rgba(240,180,41,0.25); }
.status-pill svg { width: 12px; height: 12px; }

/* Utility */
.text-muted { color: var(--text-muted); }
.text-mint { color: var(--mint); }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2.5rem; }
.center { text-align: center; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--mint); color: #04140F;
  padding: 0.75rem 1.25rem; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding-block: 1.1rem;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding-block: 0.75rem;
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--primary), var(--mint));
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute; inset: 7px;
  border: 2px solid var(--bg);
  border-radius: 3px;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 45px;
    width: auto;
    display: block;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem; font-weight: 500;
  /* color: var(--text); */
  border-radius: 8px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-link svg { width: 13px; height: 13px; color: var(--text-faint); transition: transform 0.3s var(--ease); }
.nav-link:hover { background: var(--surface); color: var(--mint); }
.nav-item.open .nav-link svg,
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

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

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(880px, 90vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem;
  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.open .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.5rem 0.75rem;
}
.mega-link {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  transition: background 0.25s var(--ease);
}
.mega-link:hover { background: var(--surface-2); }
.mega-link .mega-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(91,110,245,0.12); color: var(--primary);
  border: 1px solid var(--border);
}
.mega-link .mega-icon svg { width: 17px; height: 17px; }
.mega-link-title { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.mega-link-title svg { width: 12px; height: 12px; opacity: 0; transform: translateX(-3px); transition: all 0.3s var(--ease); color: var(--mint); }
.mega-link:hover .mega-link-title svg { opacity: 1; transform: translateX(0); }
.mega-link p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
  padding: 1.25rem var(--gutter) 3rem;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-head { display: flex; justify-content: space-between; align-items: center; padding-block: 0.4rem 2rem; }
.mobile-accordion-item { border-bottom: 1px solid var(--border-soft); }
.mobile-accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 0; background: none; border: none; color: var(--text);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
}
.mobile-accordion-trigger svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); color: var(--text-faint); }
.mobile-accordion-item.open .mobile-accordion-trigger svg { transform: rotate(180deg); }
.mobile-accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.mobile-accordion-panel a { display: block; padding: 0.65rem 0.5rem; color: var(--text-muted); font-size: 0.95rem; }
.mobile-accordion-panel a:hover { color: var(--mint); }
.mobile-cta { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
body.no-scroll { overflow: hidden; height: 100%; }

@media (max-width: 960px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 14vw, 10.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, var(--primary-glow), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { font-size: var(--fs-hero); }
.hero-copy p.lead { font-size: var(--fs-lead); color: var(--text-muted); margin-top: 1.5rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-note { margin-top: 2rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-faint); }
.hero-note svg { width: 15px; height: 15px; color: var(--mint); }

/* Hero visual: floating ledger cards */
.hero-visual { position: relative; height: 480px; }
.hv-card {
  position: absolute;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  min-width: 210px;
}
.hv-card .hv-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.35rem; }
.hv-card .hv-value { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; }
.hv-identity { top: 4%; left: 0; z-index: 3; }
.hv-payment { top: 40%; left: 20%; z-index: 4; min-width: 230px; }
.hv-risk { bottom: 10%; left: 2%; z-index: 2; }
.hv-upi { top: 0; right: 0; z-index: 3; }
.hv-consent { bottom: 0; right: 6%; z-index: 3; }
.hv-check { width: 16px; height: 16px; }

.hv-ring {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  background: conic-gradient(var(--mint) 0 8%, var(--border) 8% 100%);
  color: var(--text);
}
.hv-ring-inner { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; }

.hero-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}

/* Trust logos */
.trust-strip { padding-block: 2.5rem; border-block: 1px solid var(--border-soft); }
.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; opacity: 0.55; }
.trust-row span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-muted); letter-spacing: 0.02em; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card { padding: 2rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.stat-num { font-family: var(--font-mono); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 700; color: var(--mint); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* Product grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Editorial / showcase */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.showcase.reverse .showcase-copy { order: 2; }
.showcase-copy ul { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.showcase-copy ul li { display: flex; gap: 0.65rem; color: var(--text-muted); font-size: 0.95rem; }
.showcase-copy ul li svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 1px; }
.showcase-visual { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 1.75rem; min-height: 340px; position: relative; overflow: hidden; }

/* Dashboard mock elements reused across product visuals */
.mock-panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.15rem; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding-block: 0.55rem; border-bottom: 1px solid var(--border-soft); font-size: 0.88rem; }
.mock-row:last-child { border-bottom: none; }
.mock-row .k { color: var(--text-muted); }
.mock-row .v { font-family: var(--font-mono); font-weight: 600; }

.flow-track { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.flow-node .dot { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--mint); }
.flow-node .dot svg { width: 19px; height: 19px; }
.flow-line { flex: 1; height: 2px; background: linear-gradient(90deg, var(--border), var(--mint), var(--border)); background-size: 200% 100%; position: relative; top: -14px; }

/* Industries */
.industry-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); min-height: 260px; padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.industry-card .ind-icon { position: absolute; top: 1.75rem; left: 1.75rem; color: var(--primary); opacity: 0.85; transition: transform 0.4s var(--ease); }
.industry-card .ind-icon svg { width: 30px; height: 30px; }
.industry-card:hover .ind-icon { transform: scale(1.15) translateY(-4px); }
.industry-card h3 { font-size: 1.25rem; }
.industry-card .reveal { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin 0.4s var(--ease); }
.industry-card:hover .reveal { max-height: 60px; opacity: 1; margin-top: 0.6rem; }

/* Testimonials */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); padding: 1.75rem; }
.testimonial-quote { font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.testimonial-person { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(160deg, var(--primary), var(--mint)); }
.testimonial-person .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-person .role { font-size: 0.8rem; color: var(--text-muted); }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band .hero-glow { top: -260px; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.85rem 1rem; color: var(--text); font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg { font-size: 0.8rem; color: var(--danger); display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field.has-error .error-msg { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.form-success {
  display: none; text-align: center; padding: 3rem 1.5rem;
}
.form-success.show { display: block; }
.form-success .icon-circle {
  width: 64px; height: 64px; margin-inline: auto 1.5rem; border-radius: 50%;
  background: rgba(0,230,160,0.12); border: 1px solid rgba(0,230,160,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--mint);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border-soft); padding-top: clamp(3rem, 6vw, 5rem); background: var(--bg-alt); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--mint); }
.footer-newsletter { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-newsletter input {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.75rem 1rem; color: var(--text); font-size: 0.88rem;
}
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-block: 1.75rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.85rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-social a:hover { color: var(--mint); border-color: var(--mint); }
.footer-social svg { width: 16px; height: 16px; }
.copyright { font-size: 0.82rem; color: var(--text-faint); }

/* Page loader */
#page-loader {
  position: fixed; inset: 0; z-index: 2000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(155deg, var(--primary), var(--mint)); animation: pulseMark 1.1s ease-in-out infinite; }
@keyframes pulseMark { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.85); opacity: 0.7; } }

/* Page hero (inner pages) */
.page-hero { padding-top: clamp(7rem, 12vw, 9.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); position: relative; }
.page-hero h1 { font-size: var(--fs-h1); max-width: 20ch; }
.page-hero p.lead { color: var(--text-muted); font-size: var(--fs-lead); margin-top: 1.25rem; max-width: 56ch; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1.5rem; font-family: var(--font-mono); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb svg { width: 12px; height: 12px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; background: none; border: none; color: var(--text); text-align: left; font-size: 1.02rem; font-weight: 600; font-family: var(--font-body); }
.faq-trigger svg { width: 16px; height: 16px; flex-shrink: 0; margin-left: 1rem; transition: transform 0.3s var(--ease); color: var(--text-faint); }
.faq-item.open .faq-trigger svg { transform: rotate(45deg); color: var(--mint); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-panel p { color: var(--text-muted); padding-bottom: 1.4rem; max-width: 70ch; }

/* Steps (book demo) */
.stepper { display: flex; justify-content: space-between; margin-bottom: 3rem; position: relative; }
.stepper::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.step-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; flex: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); transition: all 0.3s var(--ease); }
.step-item.active .step-dot { border-color: var(--mint); color: var(--mint); background: rgba(0,230,160,0.08); }
.step-item.done .step-dot { background: var(--mint); border-color: var(--mint); color: #04140F; }
.step-label { font-size: 0.78rem; color: var(--text-faint); text-align: center; }
.step-item.active .step-label { color: var(--text); }
.step-panel { display: none; }
.step-panel.active { display: block; animation: stepIn 0.4s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.step-actions { display: flex; justify-content: space-between; margin-top: 2rem; }

/* 404 */
.error-page { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 6rem; }
.error-code { font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 8rem); color: var(--primary); font-weight: 700; line-height: 1; }

/* Reusable detail pages */
.detail-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.detail-signal-card { background: linear-gradient(145deg, rgba(91,110,245,0.16), rgba(0,230,160,0.08)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); min-height: 280px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.detail-signal-card::after { content: ''; width: 220px; height: 220px; position: absolute; right: -90px; bottom: -120px; border: 1px solid rgba(0,230,160,0.22); border-radius: 50%; box-shadow: 0 0 0 32px rgba(0,230,160,0.04), 0 0 0 64px rgba(91,110,245,0.04); }
.detail-signal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.detail-metric { color: var(--text); font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; margin-top: 2.4rem; line-height: 1; position: relative; z-index: 1; }
.detail-metric-label { color: var(--text-muted); margin-top: 0.65rem; position: relative; z-index: 1; }
.detail-signal-lines { display: grid; gap: 0.55rem; margin-top: 2rem; position: relative; z-index: 1; }
.detail-signal-lines span { display: block; height: 7px; border-radius: 100px; background: linear-gradient(90deg, var(--mint), rgba(0,230,160,0.12)); }
.detail-signal-lines span:nth-child(2) { width: 78%; background: linear-gradient(90deg, var(--primary), rgba(91,110,245,0.12)); }
.detail-signal-lines span:nth-child(3) { width: 56%; }
.flow-node .dot span { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; }
.stat-num small { font: inherit; font-size: 0.55em; }

/* Leadership */
.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.leader-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--surface); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.leader-card:hover { transform: translateY(-5px); border-color: var(--mint); }
.leader-avatar { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; color: var(--mint); font: 700 1.1rem var(--font-mono); background: linear-gradient(135deg, rgba(91,110,245,0.25), rgba(0,230,160,0.12)); margin-bottom: 1.5rem; }
.leader-card .data-chip { margin-bottom: 0.85rem; }
.leader-card h2 { font-size: 1.25rem; }
.leader-card p { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.7rem; }
.leader-link { display: inline-flex; gap: 0.4rem; color: var(--mint); font-size: 0.86rem; font-weight: 600; margin-top: 1.25rem; }
.leadership-values { display: grid; align-content: center; gap: 1rem; }
.leadership-values > div { border-bottom: 1px solid var(--border-soft); padding-bottom: 1rem; display: grid; gap: 0.3rem; }
.leadership-values span { color: var(--text-muted); font-size: 0.92rem; }

/* Careers */
.jobs-list { display: grid; gap: 1rem; }
.job-card { border: 1px solid var(--border); background: var(--surface); padding: 1.5rem; border-radius: var(--radius-md); display: flex; gap: 2rem; justify-content: space-between; align-items: center; }
.job-card-main { max-width: 70ch; }
.job-card h3 { margin-top: 0.8rem; font-size: 1.3rem; }
.job-card p { color: var(--text-muted); margin-top: 0.55rem; font-size: 0.92rem; }
.job-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text-faint); font: 0.77rem var(--font-mono); margin-top: 1rem; }
.job-meta span + span::before { content: '•'; margin-right: 1rem; color: var(--mint); }
.career-modal[hidden] { display: none; }
.career-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 1.25rem; }
.career-modal-backdrop { position: absolute; inset: 0; background: rgba(3,7,18,0.82); backdrop-filter: blur(7px); }
.career-modal-dialog { position: relative; z-index: 1; width: min(100%, 600px); max-height: calc(100vh - 2.5rem); overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); box-shadow: 0 25px 80px rgba(0,0,0,0.45); }
.career-modal-dialog h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin-top: 0.7rem; }
.modal-close { position: absolute; top: 0.8rem; right: 0.8rem; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); font-size: 1.6rem; line-height: 1; }
.career-form { display: grid; gap: 1rem; margin-top: 1.6rem; }
.career-form .field { display: grid; gap: 0.45rem; }
.career-form label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.career-form label span { color: var(--text-faint); font-weight: 400; }
.career-form input, .career-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); padding: 0.78rem 0.9rem; font: inherit; }
.career-form input:focus, .career-form textarea:focus { outline: 2px solid rgba(0,230,160,0.35); border-color: var(--mint); }
.career-form .field.has-error input, .career-form .field.has-error textarea { border-color: #fb7185; }
.career-form-success { color: var(--mint); margin: 0; }

/* Resources */
.resource-feature { border: 1px solid var(--border); background: linear-gradient(135deg, var(--surface), rgba(91,110,245,0.13)); border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 2rem; overflow: hidden; }
.resource-feature h2 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 19ch; margin-top: 0.9rem; }
.resource-feature p { color: var(--text-muted); max-width: 50ch; margin: 1rem 0 1.75rem; }
.resource-orbit { height: 240px; position: relative; border: 1px dashed rgba(0,230,160,0.35); border-radius: 50%; max-width: 240px; justify-self: end; width: 100%; }
.resource-orbit::before, .resource-orbit::after { content: ''; position: absolute; inset: 20%; border: 1px solid rgba(91,110,245,0.35); border-radius: 50%; }
.resource-orbit::after { inset: 40%; border-color: var(--mint); }
.resource-orbit span { position: absolute; border-radius: 99px; padding: 0.4rem 0.7rem; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); font: 0.7rem var(--font-mono); }
.resource-orbit span:nth-child(1) { top: -0.5rem; left: 28%; }.resource-orbit span:nth-child(2) { top: 43%; right: -1.5rem; }.resource-orbit span:nth-child(3) { bottom: -0.5rem; left: 31%; }.resource-orbit span:nth-child(4) { top: 43%; left: -1.5rem; }
.resource-card { min-height: 235px; }.resource-card .card-arrow { margin-top: 1.4rem; }
.blog-filter { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2rem; }
.blog-filter button { border: 1px solid var(--border); border-radius: 999px; padding: 0.6rem 1rem; background: var(--surface); color: var(--text-muted); font: 0.8rem var(--font-mono); }
.blog-filter button.active, .blog-filter button:hover { color: var(--mint); border-color: var(--mint); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; padding: 1rem 1rem 1.25rem; display: flex; flex-direction: column; }
.blog-card.is-hidden { display: none; }
.blog-art { height: 145px; display: flex; align-items: end; padding: 1rem; border-radius: calc(var(--radius-lg) - 8px); margin-bottom: 1.15rem; background: linear-gradient(135deg, rgba(91,110,245,0.8), rgba(0,230,160,0.3)); }
.blog-art span { font: 0.78rem var(--font-mono); color: white; }.blog-art-payments { background: linear-gradient(135deg, #1b57b9, #16a9a2); }.blog-art-privacy { background: linear-gradient(135deg, #6951c9, #b36bb0); }.blog-art-identity { background: linear-gradient(135deg, #226d7b, #55b873); }.blog-art-operations { background: linear-gradient(135deg, #6e4c31, #cb9040); }.blog-art-product { background: linear-gradient(135deg, #4a5568, #6b8de3); }
.blog-card .data-chip { align-self: flex-start; }.blog-card h2 { font-size: 1.2rem; line-height: 1.3; margin-top: 0.8rem; }.blog-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }.blog-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1.3rem; color: var(--text-faint); font: 0.76rem var(--font-mono); }.blog-card-footer a { color: var(--mint); white-space: nowrap; }
.case-study-list { display: grid; gap: 1.25rem; }.case-study-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.3rem); background: var(--surface); display: grid; grid-template-columns: 1.15fr 0.8fr auto; align-items: center; gap: 2rem; }.case-study-card h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-top: 0.8rem; }.case-study-card p { color: var(--text-muted); margin-top: 0.7rem; max-width: 55ch; }.case-study-card ul { display: grid; gap: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }.case-study-card li { display: flex; gap: 0.5rem; }.case-study-card li span { color: var(--mint); }
.nav-link {
    position: relative;
    transition: all 0.25s ease;
}

/* Active menu */
.nav-link.active {
    color: #5b2cff;
    font-weight: 600;
}

/* Active underline */
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 10px;
    background: linear-gradient(90deg, #5b2cff, #8b2cff);
}

/* Products active */
.nav-item.active > .nav-link {
    color: #5b2cff;
}

/* Contact active */
.btn.btn-ghost.active {
    color: #fff;
    background: linear-gradient(135deg, #5b2cff, #8b2cff);
    border-color: transparent;
}