/* ═══════════════════════════════════════════════
   ORDO — AI-Driven CRM for Law Firms
   Design: Corporate Legal / AI-tech
   Fonts: DM Serif Display (display) + DM Sans (body)
   Palette: Royal Blue #2B56F5 / Cyan #4FC3F7 / Pink #FF2D8C / Gold #FFC107
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Brand colors */
  --blue: #2B56F5;
  --blue-dark: #1a3ad4;
  --blue-light: #4a72ff;
  --cyan: #4FC3F7;
  --cyan-dark: #0ea5e9;
  --pink: #FF2D8C;
  --gold: #FFC107;
}

/* ── LIGHT MODE ── */
:root, [data-theme="light"] {
  --color-bg: #f8f9fc;
  --color-surface: #ffffff;
  --color-surface-2: #f1f4fa;
  --color-surface-offset: #e8ecf5;
  --color-border: rgba(43, 86, 245, 0.12);
  --color-divider: #e2e6f0;
  --color-text: #0d1425;
  --color-text-muted: #4a5578;
  --color-text-faint: #9aa3bc;
  --color-text-inverse: #ffffff;
  --shadow-sm: 0 1px 3px rgba(43, 86, 245, 0.08);
  --shadow-md: 0 4px 16px rgba(43, 86, 245, 0.1);
  --shadow-lg: 0 12px 40px rgba(43, 86, 245, 0.14);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --color-bg: #090d1a;
  --color-surface: #0f1628;
  --color-surface-2: #141c35;
  --color-surface-offset: #1a2140;
  --color-border: rgba(79, 195, 247, 0.12);
  --color-divider: #1e2846;
  --color-text: #dde4f5;
  --color-text-muted: #7d8db8;
  --color-text-faint: #3d4d70;
  --color-text-inverse: #090d1a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a, button { transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ── LAYOUT ── */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section-dark {
  background: var(--color-surface);
}

/* ── TYPOGRAPHY ── */
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-3);
}
.section-label-light { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}
.section-title-white { color: #fff; }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}
.section-sub-light { color: rgba(255,255,255,0.7); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { background: #1228a0; }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-lg {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
}
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 64px;
}
.nav-logo { flex-shrink: 0; }
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin-left: auto;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover {
  color: var(--color-text);
  border-bottom-color: var(--blue);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  gap: var(--space-4);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
  padding-block: var(--space-20);
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(43,86,245,0.15) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: 200px;
  background: radial-gradient(circle, rgba(79,195,247,0.1) 0%, transparent 70%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43,86,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,86,245,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-6);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 16ch;
}
.hero-headline em {
  font-style: italic;
  color: var(--blue);
}
[data-theme="dark"] .hero-headline em {
  color: var(--cyan);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-divider);
}

/* Hero justice icon */
.hero-justice {
  position: absolute;
  right: clamp(2rem, 6vw, 8rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(120px, 15vw, 220px);
  opacity: 0.35;
  pointer-events: none;
}
.justice-icon { width: 100%; height: auto; }
.justice-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(43,86,245,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .hero-justice { display: none; }
  .hero-stats { gap: var(--space-4); }
  .hero-stat-divider { height: 30px; }
}

/* ── LEAD CARDS ── */
.lead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.lead-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.lead-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(43,86,245,0.3);
}
.lead-card-featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--color-surface), rgba(43,86,245,0.05));
}
[data-theme="dark"] .lead-card-featured {
  background: linear-gradient(135deg, var(--color-surface), rgba(43,86,245,0.08));
}
.lead-card-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.lead-card-icon {
  color: var(--blue);
  margin-bottom: var(--space-3);
}
.lead-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.lead-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.autotag-banner {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.autotag-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.autotag-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.tag-blue { background: rgba(43,86,245,0.12); color: var(--blue); border: 1px solid rgba(43,86,245,0.2); }
.tag-cyan { background: rgba(79,195,247,0.12); color: var(--cyan-dark); border: 1px solid rgba(79,195,247,0.2); }
[data-theme="dark"] .tag-cyan { color: var(--cyan); }
.tag-pink { background: rgba(255,45,140,0.12); color: var(--pink); border: 1px solid rgba(255,45,140,0.2); }
.tag-gold { background: rgba(255,193,7,0.12); color: #b87a00; border: 1px solid rgba(255,193,7,0.2); }
[data-theme="dark"] .tag-gold { color: var(--gold); }
.tag-muted { background: var(--color-surface-offset); color: var(--color-text-muted); border: 1px solid var(--color-border); }

/* ── PIPELINE ── */
.pipeline-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}
.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
}
.pipeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
  margin-top: 4px;
  transition: border-color var(--transition), background var(--transition);
}
.pipeline-step-active .pipeline-dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(43,86,245,0.2);
}
.pipeline-step-qualify .pipeline-dot { border-color: var(--cyan); background: var(--cyan); }
.pipeline-step-win .pipeline-dot { border-color: #22c55e; background: #22c55e; }
.pipeline-step-lost .pipeline-dot { border-color: #ef4444; background: #ef4444; }
.pipeline-step-reassign .pipeline-dot { border-color: var(--gold); background: var(--gold); }

.pipeline-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-6);
}
.pipeline-status {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.pipeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pipeline-connector {
  width: 2px;
  height: 32px;
  background: var(--color-divider);
  margin-left: 6px;
}
.pipeline-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-left: var(--space-10);
}

/* ── COMMUNICATIONS ── */
.comms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}
.comms-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.comms-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comms-icon-blue { background: rgba(43,86,245,0.1); color: var(--blue); }
.comms-icon-cyan { background: rgba(79,195,247,0.1); color: var(--cyan-dark); }
[data-theme="dark"] .comms-icon-cyan { color: var(--cyan); }
.comms-icon-pink { background: rgba(255,45,140,0.1); color: var(--pink); }
.comms-icon-gold { background: rgba(255,193,7,0.1); color: #b87a00; }
[data-theme="dark"] .comms-icon-gold { color: var(--gold); }

.comms-feature h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.comms-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── ANALYTICS ── */
.analytics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 768px) {
  .analytics-layout { grid-template-columns: 1fr; }
}

.analytics-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.analytics-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.analytics-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.analytics-list svg { color: #22c55e; flex-shrink: 0; }

.analytics-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.analytics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.analytics-badge {
  font-size: var(--text-xs);
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(34,197,94,0.2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.analytics-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
.analytics-kpi-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi-val {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1;
}
.kpi-val-green { color: #22c55e; }
.kpi-val-pink { color: var(--pink); }
.kpi-lbl { font-size: var(--text-xs); color: var(--color-text-muted); }

.analytics-bar-chart {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  height: 100px;
}
.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  height: 100%;
}
.bar-label { font-size: 0.65rem; color: var(--color-text-faint); }
.bar-track {
  flex: 1;
  width: 100%;
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bar-fill {
  width: 100%;
  background: rgba(43,86,245,0.5);
  border-radius: var(--radius-sm);
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 0;
}
.bar-fill.animate { /* height set inline */ }
.bar-fill-accent { background: var(--blue) !important; }

/* ── CASE-FORGE ── */
.caseforge-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 768px) {
  .caseforge-layout { grid-template-columns: 1fr; }
}
.caseforge-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.caseforge-badge-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}
.caseforge-orb {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(43,86,245,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: slow-spin 20s linear infinite;
}
@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.caseforge-svg { width: 100%; height: auto; }

.caseforge-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.cf-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.cf-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(43,86,245,0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cf-feature strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.cf-feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── PERFORMANCE ── */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
}
.perf-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.perf-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.perf-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.perf-blue { background: rgba(43,86,245,0.1); color: var(--blue); }
.perf-cyan { background: rgba(79,195,247,0.1); color: var(--cyan-dark); }
[data-theme="dark"] .perf-cyan { color: var(--cyan); }
.perf-pink { background: rgba(255,45,140,0.1); color: var(--pink); }
.perf-gold { background: rgba(255,193,7,0.1); color: #b87a00; }
[data-theme="dark"] .perf-gold { color: var(--gold); }
.perf-card h3 { font-size: var(--text-base); font-weight: 600; }
.perf-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ── MODULES ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: var(--space-3);
}
.module-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: default;
  transition: box-shadow var(--transition), border-color var(--transition), color var(--transition);
}
.module-item:hover {
  border-color: rgba(43,86,245,0.3);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.module-icon { color: var(--blue); }
.module-item-highlight {
  border-color: rgba(79,195,247,0.3);
  color: var(--color-text);
}
.module-item-highlight .module-icon { color: var(--cyan-dark); }
[data-theme="dark"] .module-item-highlight .module-icon { color: var(--cyan); }
.module-item-ai {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--color-surface), rgba(43,86,245,0.06));
  color: var(--blue);
  font-weight: 700;
}
.module-item-ai .module-icon { color: var(--blue); }

/* ── RESULTS ── */
.results-section {
  background: linear-gradient(135deg, #0d1e5c 0%, #091240 50%, #060c28 100%);
  position: relative;
  overflow: hidden;
}
.results-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.results-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(79,195,247,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.results-orb-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: 100px;
  background: radial-gradient(circle, rgba(255,45,140,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.results-section .container { position: relative; z-index: 1; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
}
.result-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.result-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.result-card-featured {
  border-color: rgba(79,195,247,0.4);
  background: rgba(79,195,247,0.08);
}
.result-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.result-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}
.result-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.result-bar-fill {
  height: 100%;
  background: rgba(43,86,245,0.8);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-bar-fill.animate { /* width set inline */ }
.result-bar-cyan { background: var(--cyan); }
.result-bar-pink { background: var(--pink); }
.result-bar-gold { background: var(--gold); }

/* ── WHY ORDO ── */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 768px) {
  .why-layout { grid-template-columns: 1fr; gap: var(--space-8); }
}
.why-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
}
.why-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.why-pillar {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-pillar:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.pillar-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}
[data-theme="dark"] .pillar-num { color: var(--cyan); }
.why-pillar strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.why-pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── CTA SECTION ── */
.cta-section {
  background: var(--color-surface);
}
.cta-inner {
  max-width: var(--content-narrow);
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.cta-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(43,86,245,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.cta-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,86,245,0.15);
}
.form-input::placeholder { color: var(--color-text-faint); }
.cta-fine {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

/* ── FOOTER ── */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--color-text); }
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.revealed {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE MISC ── */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: var(--space-3); }
  .hero-stat-divider { display: none; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .pipeline-split { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
