/* ==========================================================================
   SkyeConnex — Design System
   Sovereignty by Architecture
   ========================================================================== */

:root {
  /* Surface */
  --bg-base: #07080c;
  --bg-elevated: #0d0f15;
  --bg-card: #11141c;
  --bg-card-hover: #161a24;
  --bg-overlay: rgba(13, 15, 21, 0.85);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(129, 140, 248, 0.35);

  /* Text */
  --text-primary: #f3f4f8;
  --text-secondary: #b4b9c8;
  --text-muted: #7a8095;
  --text-faint: #5a6075;

  /* Accent — Sovereign violet */
  --accent: #818cf8;
  --accent-bright: #a5b4fc;
  --accent-deep: #6366f1;
  --accent-glow: rgba(129, 140, 248, 0.18);

  /* Semantic */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  /* Type scale */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 880px;
  --container-wide: 1400px;
  --nav-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 600ms;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.035em;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
}

h4 {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  letter-spacing: -0.015em;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.lede {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 60ch;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(64px, 10vw, 140px) 0;
  position: relative;
}

.section-tight {
  padding: clamp(48px, 7vw, 90px) 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(7, 8, 12, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-base) var(--ease-out);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo .logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.25));
}

.nav-logo .wordmark-skye {
  color: var(--text-primary);
}

.nav-logo .wordmark-connex {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  margin-left: -11px; /* cancel flex gap so SKYE and CONNEX read as one word */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

/* Invisible hit-area bridge between the trigger and the panel — prevents
   the :hover state from dropping out as the mouse crosses the gap. */
.has-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 28px;
  pointer-events: auto;
}

.nav-links a,
.nav-links .mega-trigger {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:hover,
.nav-links .mega-trigger:hover,
.nav-links .mega-trigger[aria-expanded="true"] {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
}

.mega-trigger .caret {
  width: 10px;
  height: 10px;
  margin-top: 1px;
  transition: transform var(--duration-fast) var(--ease-out);
  opacity: 0.7;
}

.mega-trigger[aria-expanded="true"] .caret,
.has-mega:hover .mega-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* ==========================================================================
   Mega card panels — unified: featured card (left) + list (right)
   ========================================================================== */
.mega-card-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  width: 580px;
  background: rgba(13, 15, 21, 0.98);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease-out),
              transform 180ms var(--ease-out),
              visibility 180ms;
  z-index: 99;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.02);
}

.mega-card-panel.wide {
  width: 860px;
  grid-template-columns: 240px 1fr;
}

.mega-card-panel.right-anchored {
  left: auto;
  right: 0;
}

.has-mega:hover .mega-card-panel,
.has-mega:focus-within .mega-card-panel,
.mega-card-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Featured card (left) — messaging only; non-interactive */
.mega-feature-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(129, 140, 248, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, #181c2a 0%, #11141f 100%);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  cursor: default;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(165, 180, 252, 0.04),
    0 12px 32px -16px rgba(0, 0, 0, 0.4);
}

.mega-feature-card > * { position: relative; z-index: 1; }

/* Icon block at top of card */
.mega-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.20) 0%, rgba(99, 102, 241, 0.10) 100%);
  border: 1px solid rgba(165, 180, 252, 0.30);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
}

.mega-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mega-feature-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  margin-bottom: 8px;
  display: block;
}

.mega-feature-title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
  display: block;
}

.mega-feature-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
  display: block;
}

/* Items list (right) */
.mega-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-content: start;
  padding-top: 6px;
}

.mega-card-panel.wide .mega-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

/* Grouped lists handle their own top padding via group labels, so reset */
.mega-card-panel.grouped .mega-list {
  padding-top: 0;
}

.mega-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.mega-list-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-bright);
}

.dropdown-arrow {
  color: var(--text-faint);
  font-size: 0.85em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.mega-list-item:hover .dropdown-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-bright);
}

/* On smaller laptops, collapse Industries' 2-col list to 1 col so titles still fit */
@media (max-width: 1180px) {
  .mega-card-panel.wide { width: 620px; }
  .mega-card-panel.wide .mega-list { grid-template-columns: 1fr; }
}

/* Grouped panel (used by Platform) — three equal columns at the same
   panel width: feature card | Platform | Products. The .mega-list wrapper
   collapses so its two groups become direct grid items of the panel. */
.mega-card-panel.grouped {
  grid-template-columns: 1fr 1fr 1fr;
}

.mega-card-panel.grouped .mega-list {
  display: contents;
}

.mega-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 0 0 auto;
}

.mega-group-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  padding: 10px 14px 8px;
  margin-bottom: 4px;
  display: block;
  border-bottom: 1px solid rgba(165, 180, 252, 0.10);
}


/* Drawer group label (mobile menu) */
.drawer-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  padding: 12px 0 4px;
  margin-top: 4px;
  list-style: none;
}

.drawer-group-label:first-child {
  padding-top: 4px;
  margin-top: 0;
}

@media (max-width: 960px) {
  .mega-card-panel { display: none; }
  .mega-trigger { display: none; }
}

/* Mobile drawer — nested sections */
.drawer-section { border-bottom: 1px solid var(--border-subtle); }
.drawer-section:last-child { border-bottom: none; }
.drawer-section-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.drawer-section-toggle .caret {
  width: 12px; height: 12px;
  transition: transform var(--duration-fast) var(--ease-out);
  opacity: 0.6;
}
.drawer-section[open] .drawer-section-toggle .caret { transform: rotate(180deg); }
.drawer-section-toggle::-webkit-details-marker { display: none; }
.drawer-section > ul {
  display: flex;
  flex-direction: column;
  padding: 0 8px 12px;
}
.drawer-section > ul a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-radius: 6px;
  border: none;
}
.drawer-section > ul a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta .btn-secondary { display: none; }
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--bg-base);
  z-index: 99;
  padding: 32px 24px;
  border-top: 1px solid var(--border-subtle);
}

.nav-drawer.open {
  display: block;
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer a {
  display: block;
  padding: 14px 16px;
  font-size: 1.0625rem;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-drawer a:hover {
  background: var(--bg-card);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
}

.btn-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 40%),
    linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 55%, var(--accent-bright) 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.008em;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.20),
    inset 0 0 0 1px rgba(199, 210, 254, 0.30),
    0 1px 3px 0 rgba(0, 0, 0, 0.30),
    0 8px 22px -6px rgba(99, 102, 241, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(199, 210, 254, 0.45),
    0 2px 4px 0 rgba(0, 0, 0, 0.36),
    0 14px 36px -6px rgba(99, 102, 241, 0.78);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(165, 180, 252, 0.40),
    0 4px 12px -2px rgba(99, 102, 241, 0.6);
}

/* Navbar variant — compact with a soft outer aura that pulses to invite the click */
.btn-nav-cta {
  position: relative;
  font-size: 0.9rem;
  padding: 10px 18px;
}

.btn-nav-cta::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(165, 180, 252, 0.55), rgba(99, 102, 241, 0.55));
  z-index: -2;
  filter: blur(10px);
  opacity: 0.45;
  transition: opacity 280ms var(--ease-out);
}

.btn-nav-cta:hover::before {
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  .btn-nav-cta::before {
    animation: nav-cta-pulse 3.6s ease-in-out infinite;
  }
}

@keyframes nav-cta-pulse {
  0%, 100% { opacity: 0.42; }
  50%      { opacity: 0.62; }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 14px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: clamp(80px, 12vw, 160px);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 60%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(40px);
}

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

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-trust-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.hero-trust-items {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.hero-trust-items span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Pill / Badge
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* ==========================================================================
   Section header
   ========================================================================== */
.section-header {
  max-width: 720px;
  margin-bottom: 4rem;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-default);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-bright);
}

.card-link:hover {
  color: var(--accent);
}

.card-link .arrow {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-out);
}

.card-link:hover .arrow {
  transform: translateX(3px);
}

/* Feature card variant — for the product family */
.feature-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.stat {
  padding: 32px;
  border-right: 1px solid var(--border-subtle);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat:nth-child(2) { border-right: 1px solid var(--border-subtle); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--border-subtle); }
  .stat:last-child { border-bottom: none; }
}

/* ==========================================================================
   Architecture diagram (key visual on home + platform)
   ========================================================================== */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.arch-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(129, 140, 248, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.arch-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Sovereignty problem block
   ========================================================================== */
.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.problem-item {
  padding: 36px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem-item:nth-child(2n) { border-right: none; }
.problem-item:nth-last-child(-n+2) { border-bottom: none; }

.problem-item .gap-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.problem-item h3 {
  font-size: 1.375rem;
  margin-bottom: 0.875rem;
}

.problem-item .answer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.problem-item .answer strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 760px) {
  .problem-list { grid-template-columns: 1fr; }
  .problem-item { border-right: none; }
  .problem-item:nth-last-child(2) { border-bottom: 1px solid var(--border-subtle); }
}

/* ==========================================================================
   Quote / pull
   ========================================================================== */
.pullquote {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.pullquote-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.pullquote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  font-weight: 400;
}

.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.9375rem;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-elevated);
  white-space: nowrap;
}

td {
  color: var(--text-secondary);
}

td.feature-name {
  color: var(--text-primary);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.check { color: var(--success); }
.dash { color: var(--text-faint); }
.tier-cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* ==========================================================================
   Pricing tiers
   ========================================================================== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 0 1px var(--border-accent), 0 20px 40px -20px rgba(99, 102, 241, 0.3);
}

.tier-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  background: var(--accent-deep);
  color: #fff;
  border-radius: var(--radius-pill);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tier-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 2.5em;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.tier-price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.tier-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 7 6 10 11 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.tier-features li.gated {
  color: var(--text-faint);
}

.tier-features li.gated::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%235a6075' stroke-width='2.5' stroke-linecap='round'><line x1='3' y1='7' x2='11' y2='7'/></svg>");
}

/* ==========================================================================
   FAQ / Disclosure
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.faq-item[open] {
  border-color: var(--border-default);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--duration-base) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item summary:hover {
  color: var(--accent-bright);
}

.faq-body {
  padding: 0 28px 26px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-body p + p { margin-top: 0.75rem; }

/* ==========================================================================
   CTA Band — premium contact section
   ========================================================================== */
.cta-band {
  position: relative;
  margin: 0 auto;
  max-width: 920px;
  text-align: center;
  padding: 92px 56px 76px;
  border: 1px solid rgba(165, 180, 252, 0.20);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 92% 70% at 50% 0%, rgba(129, 140, 248, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(99, 102, 241, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, rgba(24, 22, 48, 0.96) 0%, rgba(13, 15, 28, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.06),
    0 32px 80px -22px rgba(67, 56, 202, 0.45),
    0 8px 32px -8px rgba(99, 102, 241, 0.28),
    inset 0 1px 0 0 rgba(165, 180, 252, 0.10);
}

/* Mesh grid backdrop, masked to fade at the edges */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(165, 180, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 252, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Pulsing atmospheric orb above the heading */
.cta-band::after {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 180, 252, 0.22) 0%, rgba(99, 102, 241, 0.06) 35%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: cta-orb-pulse 7s ease-in-out infinite;
}

@keyframes cta-orb-pulse {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(0.96); }
  50%      { opacity: 1.0; transform: translateX(-50%) scale(1.08); }
}

.cta-band > * { position: relative; z-index: 1; }

/* Heading: gradient fill, premium tracking */
.cta-band h2 {
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #c7d2fe 70%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 14px rgba(165, 180, 252, 0.20));
}

.cta-band p {
  font-size: 1.0625rem;
  line-height: 1.55;
  margin: 0 auto 2.5rem;
  max-width: 560px;
  color: rgba(243, 244, 248, 0.72);
}

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

/* Trust strip caption — added via pseudo on the actions wrapper */
.cta-band-actions::after {
  content: "Ottawa, Canada · Talk to an engineer · No-pitch briefing";
  flex: 1 1 100%;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.55);
}

/* Lifted primary button when seated in the CTA */
.cta-band .btn-primary {
  box-shadow:
    0 10px 28px -6px rgba(99, 102, 241, 0.55),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.cta-band .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px -6px rgba(99, 102, 241, 0.78),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.24);
}

.cta-band .btn-secondary {
  border-color: rgba(165, 180, 252, 0.25);
  background: rgba(165, 180, 252, 0.04);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.cta-band .btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(165, 180, 252, 0.5);
  background: rgba(165, 180, 252, 0.10);
}

@media (max-width: 720px) {
  .cta-band {
    padding: 64px 28px 56px;
    border-radius: 20px;
  }
  .cta-band h2 {
    font-size: 1.7rem;
  }
  .cta-band p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .cta-band-actions::after {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    margin-top: 1.25rem;
  }
}

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .cta-band::after { animation: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.footer-brand-mark svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.3));
}

.footer-brand-mark .wordmark-skye { color: var(--text-primary); }
.footer-brand-mark .wordmark-connex {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  margin-left: -12px; /* cancel flex gap so SKYE and CONNEX read as one word */
}

.footer-brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  margin-bottom: 18px;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.footer-social a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--accent-bright);
  transform: translateY(-1px);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--accent-bright);
}

/* --- Newsletter signup, below the column grid --- */
.footer-newsletter {
  position: relative;
  margin-top: 56px;
  margin-bottom: 40px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(129, 140, 248, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(99, 102, 241, 0.06), rgba(99, 102, 241, 0.02));
  border: 1px solid rgba(165, 180, 252, 0.18);
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.04),
    0 18px 48px -20px rgba(67, 56, 202, 0.25);
}

.footer-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(165, 180, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 252, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 0% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 0% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.footer-newsletter > * { position: relative; z-index: 1; }

.footer-newsletter-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--accent-bright);
  margin-bottom: 10px;
  display: inline-block;
}

.footer-newsletter h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 380px;
}

.footer-newsletter-input-wrap {
  display: flex;
  flex: 1;
}

.footer-newsletter-input-wrap input {
  flex: 1;
  background: rgba(13, 15, 28, 0.85);
  border: 1px solid rgba(165, 180, 252, 0.22);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.925rem;
  outline: none;
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.footer-newsletter-input-wrap input::placeholder {
  color: var(--text-muted);
}

.footer-newsletter-input-wrap input:focus {
  border-color: rgba(165, 180, 252, 0.55);
  background: rgba(13, 15, 28, 0.95);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    margin-top: 40px;
    margin-bottom: 32px;
  }
  .footer-newsletter h4 { font-size: 1.2rem; }
  .footer-newsletter-form { min-width: 0; flex-wrap: wrap; }
  .footer-newsletter-input-wrap { flex: 1 1 100%; }
  .footer-newsletter-form .btn { width: 100%; justify-content: center; }
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom .legal {
  display: flex;
  gap: 24px;
}

/* ==========================================================================
   Specialty blocks
   ========================================================================== */

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reversed > :first-child { order: 2; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reversed > :first-child { order: 0; }
}

/* Bordered list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.feature-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 24px;
}

.feature-list li:first-child { padding-top: 0; }
.feature-list li:last-child { border-bottom: none; }

.feature-list .feature-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 40px;
}

.feature-list h4 {
  margin-bottom: 0.5rem;
}

.feature-list p {
  font-size: 0.9375rem;
}

/* Crypto primitive table */
.crypto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

.crypto-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.crypto-cell .name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-bright);
  margin-bottom: 4px;
  font-weight: 500;
}

.crypto-cell .std {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.crypto-cell .use {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Logo strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  opacity: 0.5;
}

.logo-strip span {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

/* Provider grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

@media (max-width: 960px) {
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.provider-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
}

.provider-chip:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

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

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

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.person-card .role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.person-card .name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.875rem;
}

.person-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.person-card .linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--accent-bright);
}

/* Article prose for long-form pages */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(129, 140, 248, 0.3);
}

.prose a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Page header — premium hero for every non-home page
   ========================================================================== */
.page-header {
  position: relative;
  padding-top: calc(var(--nav-height) + 96px);
  padding-bottom: 88px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 65%),
    var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
}

/* Subtle grid pattern, masked to fade out at edges */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 25%, transparent 75%);
  pointer-events: none;
}

/* Soft glow accent above the headline */
.page-header::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.13) 0%, transparent 60%);
  top: -320px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(40px);
}

.page-header > .container,
.page-header > .container-narrow,
.page-header > .container-wide {
  position: relative;
  z-index: 1;
}

/* Typography in the hero is uplifted */
.page-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 0;
  font-weight: 600;
}

.page-header h1 .accent-text {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-header .eyebrow {
  margin-bottom: 1.75rem;
}

.page-header .lede {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  max-width: 65ch;
  line-height: 1.55;
  color: var(--text-secondary);
}

.page-header .cluster {
  margin-top: 2.25rem;
}

.page-header .hero-cta {
  margin-top: 2.5rem;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Optional decorative accent — 7-dot constellation echoing the brand mark */
.page-header-decoration {
  position: absolute;
  width: 320px;
  height: 320px;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 760px) {
  .page-header-decoration { display: none; }
  .page-header { padding-top: calc(var(--nav-height) + 64px); padding-bottom: 60px; }
}

/* ----- Blog post: "Up next" featured card ----- */
.post-upnext {
  display: block;
  text-decoration: none;
  padding: 32px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(129, 140, 248, 0.13) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-out),
              border-color 220ms var(--ease-out),
              box-shadow 220ms var(--ease-out);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
    0 18px 40px -20px rgba(0, 0, 0, 0.45);
}
.post-upnext:hover {
  transform: translateY(-2px);
  border-color: rgba(165, 180, 252, 0.55);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 24px 50px -20px rgba(99, 102, 241, 0.4);
}
.post-upnext-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.post-upnext-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
}
.post-upnext-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.post-upnext-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: -0.005em;
}
.post-upnext:hover .post-upnext-cta .arrow {
  transform: translateX(4px);
}
.post-upnext .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ----- Inline glossary auto-link styling ----- */
.glossary-link {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(129, 140, 248, 0.5);
  padding-bottom: 0;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  cursor: help;
}
.glossary-link:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

/* ----- Table of Contents ----- */
.post-toc {
  margin-bottom: 2.5rem;
  padding: 22px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.post-toc-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-toc-title::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.post-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.post-toc li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.post-toc li.toc-h2 {
  counter-increment: toc;
}
.post-toc li.toc-h2::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-right: 10px;
  letter-spacing: 0.06em;
}
.post-toc li.toc-h3 {
  padding-left: 1.75rem;
  font-size: 0.8125rem;
}
.post-toc li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.post-toc li.toc-h3 a { font-size: 0.8125rem; }
.post-toc li a:hover {
  color: var(--accent-bright);
}

/* On wide viewports, float the TOC into the left margin of the prose. */
@media (min-width: 1280px) {
  .post-toc {
    position: sticky;
    top: calc(var(--nav-height) + 32px);
    float: left;
    margin-left: -260px;
    width: 220px;
    background: transparent;
    border: none;
    padding: 0;
    max-height: calc(100vh - var(--nav-height) - 64px);
    overflow-y: auto;
  }
  .post-toc::after {
    /* clear the float context if needed */
    content: "";
    display: block;
    clear: both;
  }
}

/* ----- Blog post hero meta strip ----- */
.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.post-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(129, 140, 248, 0.10);
  border: 1px solid rgba(129, 140, 248, 0.30);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.post-meta-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.post-meta-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-meta-item::before {
  content: "·";
  color: var(--text-faint);
  margin-right: 2px;
}

.post-meta-item:first-of-type::before { display: none; }

.post-meta-item svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: 80px 0;
}

/* Cluster — inline tag list */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cluster .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  background: rgba(129, 140, 248, 0.06);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: var(--radius-pill);
  color: var(--accent-bright);
  letter-spacing: 0.04em;
}

/* Inline accent strip */
.accent-bar {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   PREMIUM VISUAL COMPONENTS — signature diagrams, stat callouts, pull quotes,
   page accents, section icons, decorative blocks.
   ========================================================================== */

/* --- Signature hero diagram wrapper --- */
.signature-visual {
  position: relative;
  margin: 0 auto;
  padding: 40px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}
.signature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.signature-visual > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 400ms var(--ease-out), filter 400ms var(--ease-out);
}
.signature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%),
              rgba(165, 180, 252, 0.12) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  z-index: 0;
}
.signature-visual:hover::after { opacity: 1; }
.signature-visual:hover > svg {
  transform: translateY(-2px) scale(1.005);
  filter: drop-shadow(0 6px 24px rgba(99, 102, 241, 0.18));
}
.signature-visual-caption {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Compact signature variant for in-content visuals */
.signature-visual.is-compact {
  padding: 20px;
  margin: 32px 0;
}

/* --- Stat callouts — big gradient numbers --- */
.stat-callout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}
@media (max-width: 760px) {
  .stat-callout-grid { grid-template-columns: 1fr; }
}
.stat-callout {
  padding: 36px 32px;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.stat-callout:last-child { border-right: none; }
@media (max-width: 760px) {
  .stat-callout { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-callout:last-child { border-bottom: none; }
}
.stat-callout::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.10) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.stat-callout-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #f3f4f8 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.stat-callout-unit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.stat-callout-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Inline stat row (lighter) --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  margin: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.stat-row-item .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-row-item .label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Premium pull quote --- */
.pull-quote {
  position: relative;
  margin: 56px 0;
  padding: 36px 40px 36px 80px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.pull-quote::before {
  content: "\\201C";
  position: absolute;
  left: 20px; top: 4px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text-primary);
}
.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* --- Spotlight: bordered prose block with eyebrow + body --- */
.spotlight {
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, transparent 70%);
  top: -140px; right: -100px;
  pointer-events: none;
  filter: blur(20px);
}
.spotlight > * { position: relative; z-index: 1; }
.spotlight .eyebrow {
  margin-bottom: 14px;
}
.spotlight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Section heading with leading icon --- */
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.16), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(165, 180, 252, 0.25);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.section-icon svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

/* --- Sovereignty ribbon: animated accent strip behind hero --- */
.sovereignty-ribbon {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  z-index: 2;
}

/* --- Decorative grid pattern overlay --- */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, #000 40%, transparent 80%);
  pointer-events: none;
}

/* --- Numbered list with premium counters --- */
.numbered-list {
  list-style: none;
  counter-reset: nl;
  margin: 32px 0;
  padding: 0;
}
.numbered-list > li {
  counter-increment: nl;
  position: relative;
  padding: 24px 0 24px 80px;
  border-bottom: 1px solid var(--border-subtle);
}
.numbered-list > li:last-child { border-bottom: none; }
.numbered-list > li::before {
  content: counter(nl, decimal-leading-zero);
  position: absolute;
  left: 0; top: 28px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.numbered-list h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.numbered-list p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --- Pricing tier capability strength bars ----------------------------- */
.cap-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cap-bar .pip {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
}
.cap-bar .pip.is-active {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  border-color: transparent;
  box-shadow: 0 0 4px rgba(129, 140, 248, 0.5);
}
.cap-bar .pip.is-full {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  border-color: transparent;
}

/* --- Inline content highlight callouts --- */
.callout {
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 80%);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-left: 3px solid var(--accent);
  position: relative;
}
.callout-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.callout-label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.callout p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* --- Big BARC-style pull quote --- */
.analyst-quote {
  margin: 64px 0;
  padding: 48px 56px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(99, 102, 241, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.analyst-quote::before {
  content: "\\201C";
  position: absolute;
  left: 28px; top: 18px;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}
.analyst-quote-source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
  position: relative;
  padding-left: 56px;
}
.analyst-quote-source::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 40px; height: 1px;
  background: var(--accent);
}
.analyst-quote blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.analyst-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

/* ==========================================================================
   MOTION DESIGN LAYER — luxury polish details
   ========================================================================== */

/* --- Card 3D tilt: required transition + transform-style for JS-driven tilt --- */
.card,
.feature-card,
.person-card,
.tier-card,
.crypto-cell {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 240ms var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

/* --- Hero glow becomes cursor-aware (animations.js drives the transform) --- */
.hero-glow {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Animated background mesh on hero --- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(129, 140, 248, 0.10) 0%, transparent 35%),
    radial-gradient(circle at 75% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(165, 180, 252, 0.04) 0%, transparent 40%);
  filter: blur(40px);
  pointer-events: none;
  animation: mesh-drift 28s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes mesh-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(2%, -1%) scale(1.05); }
  66%  { transform: translate(-1%, 2%) scale(0.98); }
  100% { transform: translate(1%, 1%) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-glow { transition: none; }
}

/* --- Flow-line animation for diagram connections --- */
.flow-line {
  stroke-dasharray: 10 6;
  animation: flow-dash 1.4s linear infinite;
}

@keyframes flow-dash {
  to { stroke-dashoffset: -16; }
}

/* --- Glossary-link enhanced hover (soft underline grow) --- */
.glossary-link {
  position: relative;
  background:
    linear-gradient(currentColor, currentColor) bottom left / 0% 1px no-repeat,
    linear-gradient(rgba(129, 140, 248, 0.5), rgba(129, 140, 248, 0.5)) bottom left / 100% 1px no-repeat;
  background-position-y: calc(100% + 1px);
  border-bottom: none;
  padding-bottom: 1px;
  transition: color var(--duration-fast) var(--ease-out),
              background-size 320ms var(--ease-out);
}
.glossary-link:hover {
  background-size: 100% 1px, 100% 1px;
}

/* --- Premium selection colour --- */
::selection {
  background: rgba(129, 140, 248, 0.28);
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
}

/* --- Refined focus rings for keyboard nav --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 3px;
}

/* --- Refined link underline animation (for body prose links) --- */
.prose a:not(.glossary-link):not(.card-link):not(.btn) {
  background:
    linear-gradient(var(--accent-bright), var(--accent-bright)) bottom left / 100% 1px no-repeat;
  border-bottom: none;
  transition: color var(--duration-fast) var(--ease-out),
              background-size 280ms var(--ease-out);
}
.prose a:not(.glossary-link):not(.card-link):not(.btn):hover {
  color: var(--accent);
  background-size: 100% 2px;
}

/* --- Subtle noise texture overlay on body for premium feel --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* --- Floating accent shapes for hero decoration --- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
  animation: orb-float 18s ease-in-out infinite;
}
.hero-orb-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 10%;
  left: -100px;
  animation-delay: -3s;
}
.hero-orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--accent-deep) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
  animation-delay: -9s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(20px, -30px); }
  66%      { transform: translate(-15px, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

/* --- Section transitions: each section subtly fades in on scroll --- */
section { isolation: isolate; }

/* --- Refined eyebrow shimmer --- */
.eyebrow {
  background-clip: text;
  -webkit-background-clip: text;
}

/* --- Premium loading bar at top during page load (CSS only) --- */
.page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  transform-origin: left;
  animation: page-load 1.4s ease-out forwards;
  z-index: 1000;
  pointer-events: none;
}

@keyframes page-load {
  0%   { transform: scaleX(0); opacity: 1; }
  60%  { transform: scaleX(0.8); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --- Mega panel entrance with smoother spring --- */
.mega-card-panel {
  transform-origin: top center;
}
.mega-card-panel.open,
.has-mega:hover .mega-card-panel,
.has-mega:focus-within .mega-card-panel {
  animation: mega-spring 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mega-spring {
  0%   { opacity: 0; transform: translateY(-8px) scale(0.98); }
  60%  { opacity: 1; transform: translateY(2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Right-anchored variant — keep the transform-origin right */
.mega-card-panel.right-anchored {
  transform-origin: top right;
}

@media (prefers-reduced-motion: reduce) {
  .mega-card-panel.open,
  .has-mega:hover .mega-card-panel,
  .has-mega:focus-within .mega-card-panel {
    animation: none;
  }
}

/* --- Button shimmer on primary CTAs --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

/* --- Stat callout — subtle pulse on the unit label dot --- */
.stat-callout-unit::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 6px var(--accent);
  vertical-align: middle;
  animation: pulse 2.5s ease-in-out infinite;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--accent-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  z-index: 1000;
}

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