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

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg: #0a0f1a;
  --card: #0f1623;
  --card-2: #131d2e;
  --border: #1e2d47;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #34d399;
  --primary-dim: rgba(52, 211, 153, .15);
  --primary-border: rgba(52, 211, 153, .3);
  --destructive: #ef4444;
  --dest-dim: rgba(239, 68, 68, .12);
  --secondary: #1a2540;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: #0a0f1a;
}

::-webkit-scrollbar-thumb {
  background: #1e2d47;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3f60;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 50%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kicker {
  display: inline-block;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.muted {
  color: var(--muted);
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

.max-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Background patterns ────────────────────────────────────── */
.grid-pattern {
  background-image:
    linear-gradient(to right, rgba(52, 211, 153, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52, 211, 153, .06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glows ──────────────────────────────────────────────────── */
.glow-primary {
  box-shadow: 0 0 40px rgba(52, 211, 153, .25);
}

.glow-card {
  box-shadow: 0 0 60px rgba(52, 211, 153, .08), 0 20px 40px rgba(0, 0, 0, .4);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-hover {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: default;
}

.card-hover:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

/* ── Buttons ────────────────────────────────────────────────── */
button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #0a0f1a;
}

.btn-primary:hover {
  background: #5eead4;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #213255;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--secondary);
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease;
}

.site-header.scrolled {
  background: rgba(10, 15, 26, .8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
}

.logo-mark-bg {
  position: absolute;
  inset: 0;
  border-radius: .5rem;
  background: var(--primary-dim);
}

.logo-mark-inner {
  position: absolute;
  inset: 3px;
  border-radius: .35rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #0a0f1a;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  position: relative;
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .2s ease;
}

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

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

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: .4rem;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s ease;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(10, 15, 26, .97);
  backdrop-filter: blur(16px);
  z-index: 49;
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu a:hover {
  color: var(--primary);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: .3;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--primary);
  top: 10%;
  left: -100px;
  animation: floatA 10s ease-in-out infinite;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: #22c55e;
  bottom: 10%;
  right: -80px;
  animation: floatB 12s ease-in-out infinite;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .06;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  font-size: .82rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 1.2rem;
  line-height: 1.05;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.hero-trust p {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .75rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  opacity: .5;
}

.trust-logos span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  align-self: center;
}

.hero-card {
  background: rgba(15, 22, 35, .9);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.hero-canvas-label {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

.hero-canvas-label .icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary-border);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinSlow 20s linear infinite;
}

.float-metric {
  position: absolute;
  background: rgba(15, 22, 35, .92);
  border: 1px solid var(--border);
  border-radius: .85rem;
  padding: .65rem 1rem;
  font-size: .82rem;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.float-metric-badge {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.float-metric.top-right {
  top: 10%;
  right: 0;
  animation: floatMetricA 4s ease-in-out infinite;
}

.float-metric.bottom-left {
  bottom: 12%;
  left: 0;
  animation: floatMetricB 5s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .72rem;
  animation: fadeInUp 1s ease .8s both;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid rgba(148, 163, 184, .3);
  display: flex;
  justify-content: center;
  padding-top: .4rem;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ── Section header shared ──────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Problem section ────────────────────────────────────────── */
.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  background: var(--dest-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s;
}

.problem-icon svg {
  color: var(--destructive);
}

.problem-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(15, 22, 35, .55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s ease, border-color .25s ease;
  backdrop-filter: blur(4px);
}

.problem-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(239, 68, 68, .3);
}

.problem-card:hover .problem-icon {
  background: rgba(239, 68, 68, .2);
}

/* ── Solution section ───────────────────────────────────────── */
.flow-list {
  display: grid;
  gap: .6rem;
}

.flow-btn {
  width: 100%;
  text-align: left;
  background: rgba(15, 22, 35, .6);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  transition: all .2s ease;
  cursor: pointer;
}

.flow-btn:hover {
  border-color: rgba(52, 211, 153, .4);
}

.flow-btn.active {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .2s;
}

.flow-btn.active .flow-num {
  background: var(--primary);
  color: #0a0f1a;
}

.flow-btn-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.flow-btn-title {
  font-weight: 600;
  font-size: .95rem;
}

.flow-btn-sub {
  font-size: .78rem;
  color: var(--muted);
}

.flow-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 2rem;
  min-height: 280px;
}

.flow-panel-icon {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: .75rem;
}

.flow-panel h3 {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}

.flow-panel p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.flow-panel ul {
  display: grid;
  gap: .6rem;
}

.flow-panel li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
}

.flow-panel li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.connection-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
}

.c-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--border);
  transition: background .3s, border-color .3s;
  flex-shrink: 0;
}

.c-dot.active {
  background: var(--primary);
  border-color: var(--primary);
}

.c-line {
  height: 2px;
  width: 4rem;
  background: var(--secondary);
  transition: background .3s;
  flex-shrink: 0;
}

.c-line.active {
  background: var(--primary);
}

/* ── Meritocracy Slider ─────────────────────────────────────── */
.slider-arena {
  position: relative;
  height: 320px;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.slider-side {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 2.5rem;
  transition: opacity .2s ease;
}

.slider-side.left {
  background: linear-gradient(to right, rgba(239, 68, 68, .22), transparent);
  justify-content: flex-start;
}

.slider-side.right {
  background: linear-gradient(to left, rgba(52, 211, 153, .18), transparent);
  justify-content: flex-end;
}

.slider-side-content {
  max-width: 220px;
}

.slider-side.right .slider-side-content {
  text-align: right;
}

.slider-side h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.slider-side.left h3 {
  color: #f87171;
}

.slider-side.right h3 {
  color: var(--primary);
}

.slider-side ul {
  display: grid;
  gap: .5rem;
}

.slider-side li {
  font-size: .85rem;
  color: var(--text);
  opacity: .85;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #f87171 0%, #94a3b8 50%, var(--primary) 100%);
  pointer-events: none;
  z-index: 2;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--primary);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(52, 211, 153, .3);
  transition: box-shadow .2s;
}

.slider-handle:active {
  cursor: grabbing;
}

.slider-handle span {
  font-size: .6rem;
  color: var(--muted);
}

.slider-arrows {
  display: flex;
  gap: 4px;
}

.slider-arrows i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseArrow 1s ease-in-out infinite;
}

.slider-arrows i:nth-child(2) {
  animation-delay: .2s;
}

.slider-progress-wrap {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-label {
  font-size: .85rem;
  font-weight: 600;
}

.slider-label.left {
  color: #f87171;
}

.slider-label.right {
  color: var(--primary);
}

.slider-progress-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
  overflow: hidden;
}

.slider-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #ef4444, #94a3b8, #34d399);
  border-radius: 999px;
  transition: width .1s ease;
}

/* ── Profitability Atlas ─────────────────────────────────────── */
.pill-nav {
  display: inline-flex;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: .25rem;
  gap: .25rem;
}

.pill-btn {
  padding: .45rem .9rem;
  border-radius: .45rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: all .2s;
}

.pill-btn.active {
  background: var(--primary);
  color: #0a0f1a;
}

.atlas-row {
  background: rgba(26, 37, 64, .6);
  border: 1px solid transparent;
  border-radius: .75rem;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: .5rem;
}

.atlas-row:hover {
  border-color: var(--border);
}

.atlas-row.active {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.atlas-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.atlas-row-name {
  font-weight: 600;
  font-size: .9rem;
}

.atlas-row-client {
  font-size: .78rem;
  color: var(--muted);
}

.atlas-margin {
  font-size: 1.1rem;
  font-weight: 700;
}

.atlas-margin.good {
  color: var(--primary);
}

.atlas-margin.mid {
  color: #f59e0b;
}

.atlas-margin.bad {
  color: var(--destructive);
}

.bar-track {
  height: 8px;
  background: var(--secondary);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .5rem;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.bar-fill.good {
  background: var(--primary);
}

.bar-fill.mid {
  background: #f59e0b;
}

.bar-fill.bad {
  background: var(--destructive);
}

.atlas-detail {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.atlas-detail.open {
  max-height: 120px;
}

.atlas-detail-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding-top: .85rem;
  margin-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
}

.atlas-detail-inner dt {
  color: var(--muted);
  margin-bottom: .15rem;
}

.atlas-detail-inner dd {
  font-weight: 600;
}

.atlas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  gap: 1rem;
}

.atlas-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Use Cases ──────────────────────────────────────────────── */
.usecase-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.usecase-tab {
  padding: 1rem .75rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: rgba(15, 22, 35, .6);
  color: var(--text);
  text-align: left;
  transition: all .2s;
}

.usecase-tab .tab-icon {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  display: block;
}

.usecase-tab .tab-title {
  font-weight: 600;
  font-size: .9rem;
  display: block;
}

.usecase-tab .tab-sub {
  font-size: .75rem;
  color: var(--muted);
  display: block;
}

.usecase-tab:hover {
  border-color: rgba(52, 211, 153, .35);
}

.usecase-tab.active {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.usecase-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.usecase-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 2rem;
}

.usecase-panel-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.usecase-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: .65rem;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usecase-panel ul {
  display: grid;
  gap: .6rem;
  margin: 1rem 0 1.25rem;
}

.usecase-panel li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
}

.usecase-panel li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.usecase-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--primary-dim);
  border-radius: .65rem;
  margin-top: .5rem;
}

.usecase-metric strong {
  font-size: 1.2rem;
  color: var(--primary);
}

.usecase-metric span {
  font-size: .75rem;
  color: var(--muted);
}

.usecase-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

/* ── AI Era section ─────────────────────────────────────────── */
.ai-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.ai-icon {
  width: 40px;
  height: 40px;
  border-radius: .6rem;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-icon svg {
  color: var(--primary);
}

.ai-visual-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  overflow: hidden;
  position: relative;
}

.ai-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(52, 211, 153, .12) 0%, transparent 70%);
  animation: bgPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.orbit-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px dashed rgba(52, 211, 153, .3);
  position: relative;
  margin: 0 auto;
  animation: spinSlow 20s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-core {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-core svg {
  color: var(--primary);
}

.ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  text-align: center;
  margin-top: 1.75rem;
}

.ai-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.ai-stat-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .15rem;
}

.ai-pulse-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
  animation-delay: .2s;
}

.pulse-dot:nth-child(3) {
  animation-delay: .4s;
}

.pulse-dot:nth-child(4) {
  animation-delay: .6s;
}

.pulse-dot:nth-child(5) {
  animation-delay: .8s;
}

/* ── Security section ───────────────────────────────────────── */
.security-card {
  background: rgba(15, 22, 35, .55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(4px);
  transition: transform .25s ease, border-color .25s ease;
}

.security-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: .75rem;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background .25s;
}

.security-icon svg {
  color: var(--primary);
}

.security-card:hover .security-icon {
  background: rgba(52, 211, 153, .25);
}

.trust-badges-block {
  background: rgba(15, 22, 35, .4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.trust-pill {
  padding: .4rem 1rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: .5rem;
  font-size: .85rem;
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-cta {
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}

.footer-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.footer-links {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-brand p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: .75rem;
  max-width: 18rem;
}

.footer-col h4 {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: .65rem;
}

.footer-col a {
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s;
}

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

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

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.footer-socials a {
  color: var(--muted);
  transition: color .2s;
}

.footer-socials a:hover {
  color: var(--text);
}

/* ── Merit Engine diagram ───────────────────────────────────── */
.engine-node {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(26, 37, 64, .7);
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: .65rem .85rem;
  animation: engineFadeIn .5s ease both;
}

@keyframes engineFadeIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.engine-node-icon {
  width: 30px;
  height: 30px;
  border-radius: .45rem;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.engine-node-body {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
  min-width: 0;
}

.engine-node-title {
  font-size: .85rem;
  font-weight: 600;
}

.engine-node-tag {
  font-size: .7rem;
  color: var(--muted);
}

.engine-node-pill {
  font-size: .65rem;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  padding: .15rem .45rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.engine-node-pill--highlight {
  background: rgba(52, 211, 153, .25);
  font-weight: 700;
}

.engine-connector {
  width: 2px;
  height: 10px;
  background: var(--primary-border);
  margin: 0 auto;
  border-radius: 1px;
  position: relative;
}

.engine-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary);
  animation: connectorFill 1.5s ease-in-out infinite;
}

@keyframes connectorFill {
  0% {
    height: 0;
    top: 0;
  }

  50% {
    height: 100%;
    top: 0;
  }

  100% {
    height: 0;
    top: 100%;
  }
}

/* ── Reveal animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* ── Page hero (sub-pages) ──────────────────────────────────── */
.page-hero {
  padding: 7rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Pricing cards ──────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 2rem;
  transition: transform .25s ease, border-color .25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(52, 211, 153, .08) 0%, var(--card) 40%);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #0a0f1a;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin: 1rem 0 .25rem;
}

.pricing-price sup {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: .5rem;
}

.pricing-price sub {
  font-size: .9rem;
  color: var(--muted);
}

.pricing-features {
  display: grid;
  gap: .6rem;
  margin: 1.5rem 0;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
}

.pricing-feature::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-feature.no::before {
  content: '—';
  color: var(--muted);
}

/* ── FAQ accordion ──────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer.open {
  max-height: 200px;
  padding-bottom: 1.1rem;
}

/* ── Blog cards ─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--primary-dim);
  color: var(--primary);
  margin-bottom: .75rem;
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .5rem;
}

.blog-card-excerpt {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .75rem;
  margin-top: auto;
}

/* ── Article layout ─────────────────────────────────────────── */
.article-hero {
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.article-body {
  max-width: 72ch;
  margin: 0 auto;
  padding: 3rem 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 .75rem;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 .6rem;
  color: var(--text);
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ul {
  margin: 1rem 0 1.2rem 1.2rem;
  display: grid;
  gap: .4rem;
}

.article-body li::marker {
  color: var(--primary);
}

.pull-quote {
  border-left: 3px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--primary-dim);
  border-radius: 0 .5rem .5rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.read-progress {
  position: fixed;
  top: 63px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 49;
}

.read-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width .1s linear;
}

/* ── Comparison table ───────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .88rem;
}

.compare-table th,
.compare-table td {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: .85rem 1.1rem;
  text-align: center;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.compare-table th {
  background: var(--secondary);
  font-weight: 700;
}

.compare-table th.highlight {
  background: var(--primary-dim);
  color: var(--primary);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table td:last-child,
.compare-table th:last-child {
  border-right: 0;
}

.check {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.cross {
  color: var(--destructive);
}

.partial {
  color: #f59e0b;
}

/* ── Tables (competitors page) ───────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--border);
  padding: .65rem .85rem;
  text-align: left;
  font-size: .9rem;
}

th {
  background: var(--secondary);
  font-weight: 600;
}

/* ── Forms ───────────────────────────────────────────────────── */
input,
textarea,
select {
  font: inherit;
  width: 100%;
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .7rem .85rem;
  transition: border-color .2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--muted);
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes floatA {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -25px) scale(1.08);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-22px, 28px) scale(0.93);
  }
}

@keyframes floatMetricA {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatMetricB {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(12px);
    opacity: .4;
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: .3;
  }

  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

@keyframes pulseArrow {

  0%,
  100% {
    transform: scale(1);
    opacity: .6;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

@keyframes bgPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ── New GSAP Animation Containers ───────────────────────────── */
.pipeline-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-svg {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 20px rgba(52, 211, 153, .1));
}

.io-grid {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.io-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.io-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.io-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--muted);
}

.io-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: .2rem;
}

.input-icon {
  background: var(--muted);
  opacity: 0.5;
}

.output-icon {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(52, 211, 153, .5);
}

.io-connector {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
}

.ai-multiplier {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 450px;
  margin: 0 auto;
}

.tnode {
  transition: all 0.3s ease;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

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

  .usecase-detail {
    grid-template-columns: 1fr;
  }

  .usecase-visual {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .connection-dots {
    display: none;
  }

  .io-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .io-connector {
    height: 60px;
    transform: rotate(90deg);
    margin: 0 auto;
    width: 60px;
  }

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

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .atlas-detail-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .usecase-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}