/* =========================================
   4D Compass — Stylesheet
   ========================================= */

:root {
  --bg-primary:    #0A0E1A;
  --bg-secondary:  #0F1422;
  --bg-card:       #141929;
  --bg-card-hover: #1A2035;
  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(28, 207, 207, 0.28);

  --accent:        #1CCFCF;
  --accent-light:  #3DDADA;
  --accent-dark:   #14AAAA;
  --accent-glow:   rgba(28, 207, 207, 0.12);

  --text-primary:   #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted:     #6B7280;

  --gradient:       linear-gradient(135deg, #1CCFCF 0%, #0891B2 100%);
  --gradient-bg:    linear-gradient(135deg, rgba(28, 207, 207, 0.08) 0%, rgba(8, 145, 178, 0.04) 100%);
  --gradient-glow:  radial-gradient(ellipse 80% 50% at 50% -10%, rgba(28, 207, 207, 0.13) 0%, transparent 60%);

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 24px rgba(28, 207, 207, 0.22);

  --transition: 0.2s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body[data-theme='light'] {
  --bg-primary: #F4F7FB;
  --bg-secondary: #EAF0F7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7FAFE;
  --border: rgba(3, 18, 34, 0.12);
  --border-accent: rgba(8, 145, 178, 0.32);

  --accent: #0A93B8;
  --accent-light: #0EA8C8;
  --accent-dark: #0B7C96;
  --accent-glow: rgba(10, 147, 184, 0.12);

  --text-primary: #091626;
  --text-secondary: #42566D;
  --text-muted: #6A7E93;

  --gradient: linear-gradient(135deg, #0A93B8 0%, #0C7AA7 100%);
  --gradient-bg: linear-gradient(135deg, rgba(10, 147, 184, 0.1) 0%, rgba(12, 122, 167, 0.06) 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(10, 147, 184, 0.16) 0%, transparent 60%);

  --shadow: 0 10px 34px rgba(8, 25, 49, 0.12);
  --shadow-accent: 0 8px 26px rgba(10, 147, 184, 0.22);
}

/* =========================================
   Reset & Base
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   Loader
   ========================================= */

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #EEF0F2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-logo {
  width: 146px;
  height: auto;
  opacity: 0.9;
}

.loader-line {
  width: 150px;
  height: 2px;
  background: rgba(5, 25, 50, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.loader-line span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #0A93B8, #2CBFD5);
  border-radius: 999px;
  animation: loaderSweep 1.15s ease-in-out infinite;
}

@keyframes loaderSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* =========================================
   Typography helpers
   ========================================= */

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-desc {
  max-width: 580px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  font-family: var(--font);
  letter-spacing: 0.1px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(28, 207, 207, 0.32);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(28, 207, 207, 0.5);
}
.btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.btn-large { padding: 16px 36px; font-size: 16px; }

/* =========================================
   Header / Navigation
   ========================================= */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.header.scrolled {
  background: rgba(10, 14, 26, 0.97);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 12px;
}

.nav-logo-img {
  height: 34px;
  width: auto;
}

/* Theme-specific logos */
body[data-theme='dark']  .nav-logo-light { display: none; }
body[data-theme='light'] .nav-logo-dark  { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 7px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  margin-left: 8px;
  box-shadow: var(--shadow-accent);
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-login {
  border: 1px solid var(--border-accent) !important;
  color: var(--accent) !important;
  padding: 8px 18px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-login:hover {
  background: var(--accent-glow) !important;
  transform: translateY(-1px);
  color: var(--accent-light) !important;
}

/* Mobile sticky CTA (hidden on desktop) */
.mobile-cta-bar { display: none; }

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 7px;
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 10px;
  transition: transform var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  z-index: 1000;
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: 7px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.theme-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

body[data-theme='light'] .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme='light'] .theme-toggle-track {
  background: rgba(10, 147, 184, 0.13);
  border-color: rgba(10, 147, 184, 0.32);
}

body[data-theme='light'] .theme-toggle-thumb {
  transform: translateX(18px);
}

body[data-theme='light'] .header {
  background: rgba(244, 247, 251, 0.82);
  border-bottom-color: rgba(3, 18, 34, 0.08);
}

body[data-theme='light'] .header.scrolled {
  background: rgba(244, 247, 251, 0.98);
  border-bottom-color: rgba(3, 18, 34, 0.12);
}

body[data-theme='light'] .hero-bg-grid {
  background-image:
    linear-gradient(rgba(3, 18, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 18, 34, 0.05) 1px, transparent 1px);
}

body[data-theme='light'] .hero-stats,
body[data-theme='light'] .portal-carousel,
body[data-theme='light'] .cta-option,
body[data-theme='light'] .ai-pricing-note {
  background: rgba(255, 255, 255, 0.88);
}

body[data-theme='light'] .mockup-header,
body[data-theme='light'] .modules-table-row.header {
  background: rgba(8, 25, 49, 0.04);
}

body[data-theme='light'] .comparison-group td {
  background: rgba(8, 25, 49, 0.03);
}
body[data-theme='light'] .comparison-table thead th {
  background: rgba(8, 25, 49, 0.025);
}
body[data-theme='light'] .cell-dash {
  color: rgba(3, 18, 34, 0.18);
}
body[data-theme='light'] .plan-limit-row {
  border-bottom-color: rgba(3, 18, 34, 0.05);
}

body[data-theme='light'] .portal-stage,
body[data-theme='light'] .portal-thumb,
body[data-theme='light'] .portal-slide img,
body[data-theme='light'] .portal-lightbox img {
  background: #DDE7F3;
}

body[data-theme='light'] .portal-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(220, 231, 244, 0.92) 60%);
}

body[data-theme='light'] .nav-dropdown-menu {
  background: #FFFFFF;
  border-color: rgba(3, 18, 34, 0.12);
  box-shadow: 0 8px 24px rgba(8, 25, 49, 0.14);
}

body[data-theme='light'] .nav-dropdown-toggle:hover,
body[data-theme='light'] .nav-dropdown.active .nav-dropdown-toggle {
  background: rgba(10, 147, 184, 0.08);
}

body[data-theme='light'] .nav-dropdown-link:hover {
  background: rgba(10, 147, 184, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   Hero
   ========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(28, 207, 207, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 85%, rgba(8, 145, 178, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 75%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 100px;
  background: rgba(28, 207, 207, 0.1);
  border: 1px solid rgba(28, 207, 207, 0.22);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

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

.hero-title {
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  padding: 22px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-value {
  font-size: 26px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
}

/* =========================================
   Problem
   ========================================= */

.problem {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.problem-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.problem-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.problem-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--accent-light);
  background: rgba(28, 207, 207, 0.1);
  border: 1px solid rgba(28, 207, 207, 0.3);
  margin-bottom: 18px;
}
.problem-icon .icon-svg { width: 22px; height: 22px; }
.problem-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================================
   Platform
   ========================================= */

.platform {
  padding: 100px 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.platform-text .section-title,
.platform-text .section-desc { text-align: left; }
.platform-text .section-desc { margin-bottom: 32px; }

.platform-features { margin-bottom: 36px; }

.platform-features li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.platform-features li:first-child { border-top: 1px solid var(--border); }

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 9px;
  flex-shrink: 0;
}
.feature-icon .icon-svg { width: 18px; height: 18px; }
.platform-features strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 3px;
}
.platform-features p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Dashboard Mockup */
.platform-visual { position: relative; }

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(28, 207, 207, 0.07);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28CA41; }
.mockup-title { font-size: 11.5px; color: var(--text-muted); flex: 1; text-align: center; }

.mockup-body { padding: 18px; }

.mockup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.mockup-card {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.mockup-card.accent {
  border-color: var(--border-accent);
  background: rgba(28, 207, 207, 0.05);
}
.mockup-card.accent-alt {
  border-color: rgba(8, 145, 178, 0.28);
  background: rgba(8, 145, 178, 0.05);
}

.mc-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.mc-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.mc-trend { font-size: 11.5px; color: var(--text-muted); }
.mc-trend.up { color: #34D399; }

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 72px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.chart-bar {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 4px 4px 0 0;
}
.chart-bar.accent { background: var(--gradient); }

/* =========================================
   Portal Showcase
   ========================================= */

.portal-showcase {
  padding: 110px 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(28, 207, 207, 0.08), transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 60%, rgba(8, 145, 178, 0.07), transparent 70%),
    var(--bg-primary);
}

.portal-carousel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.portal-stage {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(28, 207, 207, 0.22);
  background: #0A1122;
  outline: none;
}

.portal-track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.portal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.65s ease;
  pointer-events: none;
}

.portal-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.portal-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050913;
}

.portal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 13, 28, 0.75);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition);
}

.portal-nav:hover {
  border-color: rgba(28, 207, 207, 0.6);
  box-shadow: 0 0 0 4px rgba(28, 207, 207, 0.15);
  color: var(--accent-light);
}

.portal-nav.prev { left: 12px; }
.portal-nav.next { right: 12px; }

.portal-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 17, 0.9) 55%);
  z-index: 2;
}

.portal-overlay-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}

.portal-overlay-caption {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 620px;
}

.portal-overlay-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.portal-expand {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.portal-expand:hover {
  border-color: rgba(28, 207, 207, 0.6);
  color: var(--accent-light);
}

.portal-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.portal-progress-bar {
  width: 0;
  height: 100%;
  background: var(--gradient);
  transition: width 0.15s linear;
}

.portal-thumbs {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}

.portal-thumb {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0A1122;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: all var(--transition);
}

.portal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.portal-thumb:hover,
.portal-thumb.active {
  border-color: rgba(28, 207, 207, 0.7);
  box-shadow: 0 0 0 3px rgba(28, 207, 207, 0.15);
}

.portal-thumb.active img,
.portal-thumb:hover img {
  opacity: 1;
}

.portal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 15, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 30px;
}

.portal-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.portal-lightbox img {
  max-width: min(96vw, 1600px);
  max-height: 88vh;
  border-radius: 12px;
  border: 1px solid rgba(28, 207, 207, 0.35);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  object-fit: contain;
  background: #050913;
}

.portal-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================
   Modules
   ========================================= */

.modules {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.module-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.module-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.module-card:hover::after { opacity: 1; }

.module-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: 12px;
}
.module-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(28, 207, 207, 0.1);
  border: 1px solid rgba(28, 207, 207, 0.25);
  color: var(--accent-light);
  margin-bottom: 16px;
}
.module-icon .icon-svg { width: 26px; height: 26px; }
.module-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}
.module-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}
.module-features {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.module-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.module-features li:last-child { border-bottom: none; }
.module-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* =========================================
   Process
   ========================================= */

.process { padding: 100px 0; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  opacity: 0.5;
  margin-bottom: 12px;
}

.step-icon {
  width: 68px;
  height: 68px;
  line-height: 68px;
  margin: 0 auto 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent-light);
  position: relative;
  z-index: 1;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon .icon-svg { width: 28px; height: 28px; }
.process-step:hover .step-icon {
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

.step-connector {
  position: absolute;
  top: 66px;
  left: calc(50% + 34px);
  width: calc(100% - 68px);
  height: 1px;
  background: linear-gradient(90deg, rgba(28,207,207,0.5), rgba(28,207,207,0.1));
}
.process-step:last-child .step-connector { display: none; }

.process-step h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   Security
   ========================================= */

.security {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-text .section-title,
.security-text .section-desc { text-align: left; }

.security-badges {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.security-badge {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.badge-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  flex-shrink: 0;
}
.badge-icon .icon-svg { width: 22px; height: 22px; }
.security-badge strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.security-badge p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.security-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.security-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}
.security-card:hover { border-color: var(--border-accent); }
.sc-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent-light);
  background: rgba(28, 207, 207, 0.08);
  border: 1px solid rgba(28, 207, 207, 0.2);
}
.sc-icon .icon-svg { width: 23px; height: 23px; }
.security-card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.security-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* =========================================
   Pricing
   ========================================= */

.pricing { padding: 100px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}

.pricing-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.25s ease;
}
.pricing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.pricing-card.featured {
  background: var(--gradient-bg);
  border-color: var(--border-accent);
  box-shadow: 0 0 60px rgba(28, 207, 207, 0.1);
  transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.03) translateY(-3px); }

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.plan-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.price-from { font-size: 13px; color: var(--text-muted); }
.price-value { font-size: 38px; font-weight: 900; color: var(--text-primary); }
.price-asterisk { font-size: 22px; font-weight: 700; color: var(--text-muted); align-self: flex-start; margin-top: 6px; }
.pricing-footnote {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
  font-style: italic;
}
.price-custom { font-size: 28px; }
.price-period { font-size: 14px; color: var(--text-muted); }

.plan-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-features { margin-bottom: 14px; }
.plan-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.plan-target {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.5;
}

.pricing-card .btn { width: 100%; }

/* Modules Pricing Table */
.modules-pricing {
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.modules-pricing-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.modules-pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.modules-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.modules-table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: background var(--transition);
  align-items: center;
}
.modules-table-row:last-child { border-bottom: none; }
.modules-table-row:not(.header):hover { background: rgba(255,255,255,0.025); }
.modules-table-row.header {
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.modules-table-row span:last-child { color: var(--accent); font-weight: 600; white-space: nowrap; }
.modules-table-row.header span:last-child { color: var(--text-muted); font-weight: 700; }

/* =========================================
   Pricing — 4-column layout
   ========================================= */

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pricing-grid-4 .pricing-card {
  padding: 28px 22px;
}
.pricing-grid-4 .plan-price { margin-bottom: 12px; }
.pricing-grid-4 .price-value { font-size: 32px; }

/* Plan capacity limits */
.plan-limits {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.plan-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-limit-row:last-child { border-bottom: none; }
.limit-label {
  font-size: 12px;
  color: var(--text-muted);
}
.limit-value {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.limit-unlimited { color: var(--accent); }

/* Cost sharing callout */
.cost-sharing {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-bottom: 24px;
}
.cost-sharing-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(28, 207, 207, 0.1);
  flex-shrink: 0;
}
.cost-sharing-icon .icon-svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}
.cost-sharing-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.cost-sharing-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.cost-sharing-examples {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cse-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  text-align: center;
}
.cse-item.featured-cse {
  border-color: rgba(28, 207, 207, 0.3);
  background: rgba(28, 207, 207, 0.05);
}
.cse-plan {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.cse-calc {
  font-size: 11.5px;
  color: var(--text-secondary);
}
.cse-result {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.cse-result small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}
@media (max-width: 1100px) {
  .cost-sharing {
    grid-template-columns: 40px 1fr;
  }
  .cost-sharing-examples {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .cost-sharing { padding: 20px; gap: 16px; }
  .cost-sharing-examples { gap: 8px; }
  .cse-item { min-width: 0; flex: 1; padding: 12px 10px; }
}

/* =========================================
   Managed Onboarding Callout
   ========================================= */

.managed-onboarding {
  margin-top: 56px;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 207, 207, 0.28);
  background: linear-gradient(135deg, rgba(28, 207, 207, 0.05) 0%, rgba(28, 207, 207, 0.01) 60%, transparent 100%);
  overflow: hidden;
}
.managed-onboarding::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(28, 207, 207, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.managed-onboarding::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(28, 207, 207, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.mo-inner {
  padding: 52px 56px;
  position: relative;
  z-index: 1;
}
.mo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: rgba(28, 207, 207, 0.1);
  border: 1px solid rgba(28, 207, 207, 0.22);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.mo-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}
.mo-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.mo-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 40px;
}
.mo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mo-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.mo-item:hover {
  border-color: rgba(28, 207, 207, 0.2);
  background: rgba(28, 207, 207, 0.03);
}
.mo-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(28, 207, 207, 0.1);
  flex-shrink: 0;
}
.mo-item-icon .icon-svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}
.mo-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.mo-item p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1000px) {
  .mo-grid { grid-template-columns: 1fr; gap: 14px; }
  .mo-inner { padding: 36px 32px; }
  .mo-title { font-size: 22px; }
}
@media (max-width: 600px) {
  .mo-inner { padding: 28px 22px; }
}

/* Enterprise card */
.enterprise-card {
  border-color: rgba(28, 207, 207, 0.22);
  background: linear-gradient(145deg, var(--bg-card), rgba(28, 207, 207, 0.03));
}

/* =========================================
   Feature Comparison Table
   ========================================= */

.feature-comparison {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-header {
  padding: 40px 48px 20px;
  border-bottom: 1px solid var(--border);
}
.comparison-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}
.comparison-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}
.comparison-scroll-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 10px 0 0;
}
.comparison-table-wrap { overflow-x: auto; }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.comparison-table thead th {
  padding: 18px 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comparison-table thead th.feature-col {
  text-align: left;
  width: 38%;
  padding-left: 48px;
}
.comparison-table thead th.th-featured {
  color: var(--accent);
  background: rgba(28, 207, 207, 0.07);
  border-left: 1px solid rgba(28, 207, 207, 0.15);
  border-right: 1px solid rgba(28, 207, 207, 0.15);
}
.comparison-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table tbody tr:not(.comparison-group):hover { background: rgba(255,255,255,0.025); }
.comparison-table td {
  padding: 13px 20px;
  text-align: center;
  color: var(--text-secondary);
}
.comparison-table td.feature-name {
  text-align: left;
  color: var(--text-primary);
  font-size: 13.5px;
  padding-left: 48px;
}
.comparison-table td.td-featured {
  background: rgba(28, 207, 207, 0.04);
  border-left: 1px solid rgba(28, 207, 207, 0.1);
  border-right: 1px solid rgba(28, 207, 207, 0.1);
}
.comparison-group td {
  padding: 10px 20px 10px 48px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  text-align: left !important;
}
.cell-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.cell-dash {
  color: rgba(255,255,255,0.14);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1150px) {
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid-4 .pricing-card.featured { transform: none; }
  .pricing-grid-4 .pricing-card.featured:hover { transform: translateY(-3px); }
  .comparison-scroll-hint { display: block; }
}
@media (max-width: 600px) {
  .pricing-grid-4 { grid-template-columns: 1fr; }
  .comparison-header { padding: 28px 24px 16px; }
  .comparison-table thead th.feature-col,
  .comparison-table td.feature-name,
  .comparison-group td { padding-left: 20px; }
  .comparison-table { font-size: 12px; }
  .comparison-table thead th,
  .comparison-table td { padding: 10px 12px; }
}

/* =========================================
   AI Agents
   ========================================= */

.ai-agents {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ai-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.ai-feature:hover { border-color: var(--border-accent); }

.ai-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  flex-shrink: 0;
}
.ai-icon .icon-svg { width: 21px; height: 21px; }
.ai-feature h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ai-feature p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.ai-pricing-cards h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 20px;
}
.ai-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 14px;
  transition: all var(--transition);
}
.ai-card:hover { border-color: var(--border-accent); }
.ai-card span:last-child { color: var(--accent); font-weight: 600; font-size: 13px; }
.ai-card.usage {
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

.ai-pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* =========================================
   Co-Development
   ========================================= */

.codevelopment {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.codevelopment::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(28, 207, 207, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.codedev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.codedev-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}
.codedev-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.cd-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent-light);
  background: rgba(28, 207, 207, 0.1);
  border: 1px solid rgba(28, 207, 207, 0.25);
}
.cd-icon .icon-svg { width: 25px; height: 25px; }
.codedev-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.codedev-card > p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}
.codedev-card ul {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.codedev-card ul li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0 6px 18px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.codedev-card ul li:last-child { border-bottom: none; }
.codedev-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* =========================================
   Why section
   ========================================= */

.why {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.why-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--accent-light);
  background: rgba(28, 207, 207, 0.08);
  border: 1px solid rgba(28, 207, 207, 0.2);
}
.why-icon .icon-svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* =========================================
   CTA
   ========================================= */

.cta { padding: 100px 0; }

.cta-inner {
  background: var(--gradient-bg);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 72px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(28, 207, 207, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}
.cta-inner > p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.7;
  position: relative;
}

.cta-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
}
.cta-option {
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
}
.cta-opt-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--accent-light);
  background: rgba(28, 207, 207, 0.09);
  border: 1px solid rgba(28, 207, 207, 0.22);
}
.cta-opt-icon .icon-svg { width: 20px; height: 20px; }
.cta-option h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.cta-option p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =========================================
   Footer
   ========================================= */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 270px;
}
.footer-sub {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-sub a { color: var(--accent); }

.footer-links h4 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* =========================================
   Scroll Animations
   ========================================= */

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
  .platform-grid,
  .security-grid { grid-template-columns: 1fr; gap: 48px; }
  .platform-text .section-title,
  .platform-text .section-desc,
  .security-text .section-title,
  .security-text .section-desc { text-align: center; }
  .platform-features { max-width: 560px; margin-left: auto; margin-right: auto; }
  .security-badges { max-width: 500px; margin: 32px auto 0; }
  .platform-text .btn { display: block; text-align: center; max-width: 240px; margin: 0 auto; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }

  .codedev-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }

  .portal-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(10,14,26,0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    backdrop-filter: blur(20px);
  }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; }
  .nav-cta { text-align: center; align-items: center; }
  .nav-login { text-align: center; margin-left: 0; }
  
  /* Mobile dropdown styling */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { 
    width: 100%; 
    padding: 12px 16px;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    margin-top: 4px;
    padding: 4px;
  }
  .nav-dropdown:not(.active) .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown-link {
    padding: 10px 24px;
  }
  
  .theme-toggle {
    order: -1;
    margin-left: auto;
    margin-right: 2px;
  }

  .hero-stats { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .stat { padding: 18px 32px; flex-direction: row; justify-content: space-between; align-items: center; }
  .stat-divider { width: 100%; height: 1px; }
  .stat-label { margin-top: 0; }

  .modules-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .cta-options { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .modules-pricing { padding: 24px; }
  .security-visual { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .portal-carousel { padding: 14px; border-radius: 16px; }
  .portal-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 12px 12px;
  }
  .portal-overlay-title { font-size: 15px; }
  .portal-overlay-caption { font-size: 12px; }
  .portal-overlay-meta { width: 100%; justify-content: space-between; }
  .portal-nav { width: 36px; height: 36px; font-size: 20px; }
  .portal-nav.prev { left: 8px; }
  .portal-nav.next { right: 8px; }
  .portal-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

  /* Mobile sticky CTA bar */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 12px 16px env(safe-area-inset-bottom, 0);
    z-index: 200;
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .mobile-cta-bar.visible {
    transform: translateY(0);
  }
  .mobile-cta-btn {
    width: 100%;
    text-align: center;
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .problem-grid { grid-template-columns: 1fr; }
  .security-visual { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .stat { justify-content: center; gap: 12px; }

  .theme-toggle-label { display: none; }
  .theme-toggle { padding-right: 4px; }

  .portal-track { aspect-ratio: 4 / 3; }
  .portal-lightbox { padding: 10px; }
  .portal-lightbox-close { top: 10px; right: 10px; }
}

/* =========================================
   187n-style live visuals (problem / platform / why)
   Theme-aware via design tokens. Motion respects
   prefers-reduced-motion (see block at the end).
   ========================================= */

/* --- shared: live pill + dot + spinner --- */
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: #10B981;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.5);
  animation: livePulse 2s ease-in-out infinite;
}
.live-dot.sm { width: 6px; height: 6px; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.45); opacity: 1; }
  50%      { box-shadow: 0 0 0 4px rgba(16,185,129,0); opacity: 0.7; }
}
.pv-spin {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.25);
  border-top-color: #F59E0B;
  display: inline-block; flex-shrink: 0;
  animation: pvSpin 0.9s linear infinite;
}
@keyframes pvSpin { to { transform: rotate(360deg); } }

/* =========================================
   Platform - Mission Control live panel
   ========================================= */
.mctl {
  max-width: 980px; margin: 0 auto 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 90px rgba(28, 207, 207, 0.08);
}
.mctl-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
body[data-theme='light'] .mctl-bar { background: rgba(3,18,34,0.025); }
.mctl-title { font-size: 11.5px; color: var(--text-muted); flex: 1; }
.mctl-body { padding: 20px; }
.mctl-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 14px;
}
.mctl-stat {
  padding: 14px 15px; border-radius: 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.mctl-stat.accent {
  border-color: var(--border-accent);
  background: var(--accent-glow);
}
.mctl-stat-label {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 7px;
}
.mctl-stat-value { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 5px; }
.mctl-stat-trend { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-muted); }
.mctl-stat-trend.up { color: #10B981; }
.mctl-lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.mctl-chart {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
}
.mctl-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 11px; color: var(--text-secondary); }
.mctl-chart-tag { font-size: 9.5px; color: var(--text-muted); padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); }
.mctl-chart .mockup-chart { height: 84px; border: none; padding: 0; background: transparent; align-items: flex-end; }
.mctl-chart .chart-bar { transition: height 0.85s cubic-bezier(.22,1,.36,1); will-change: height; }

.mctl-feed { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; overflow: hidden; }
.mctl-feed-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.mctl-feed-list { position: relative; }
.feed-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  font-size: 11px; border-top: 1px solid var(--border);
}
/* new row fades + slides in at the top of the feed */
.feed-row.feed-enter { animation: feedEnter 0.5s cubic-bezier(.22,1,.36,1); }
@keyframes feedEnter {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feed-row.feed-fresh .feed-time { color: var(--accent); font-weight: 700; }
.feed-tag {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
  padding: 2px 6px; border-radius: 5px; flex-shrink: 0;
}
.feed-tag.ai   { color: var(--accent); background: var(--accent-glow); border: 1px solid var(--border-accent); }
.feed-tag.sync { color: #6366F1; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.28); }
.feed-tag.done { color: #10B981; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.28); }
.feed-txt { flex: 1; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { color: var(--text-muted); font-size: 10px; flex-shrink: 0; }

/* =========================================
   Platform - pillar capability cards
   ========================================= */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 44px;
}
.pillar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 16px 22px;
  transition: all 0.25s ease;
}
.pillar:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.28); }
.pillar-viz {
  height: 118px; border-radius: 11px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  padding: 13px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.pillar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pillar-icon {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; color: var(--accent-light);
  background: var(--accent-glow); border: 1px solid var(--border-accent);
}
.pillar-icon .icon-svg { width: 17px; height: 17px; }
.pillar-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--accent); padding: 3px 8px; border-radius: 999px;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
}
.pillar h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pillar p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* viz: Financieel */
.viz-fin { display: flex; flex-direction: column; }
.viz-fin-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.viz-fin-val { font-size: 19px; font-weight: 800; letter-spacing: -0.5px; }
.viz-fin-trend.up { font-size: 11px; font-weight: 700; color: #10B981; }
.viz-fin-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.viz-fin-bars span {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: rgba(28,207,207,0.18);
  transition: height 0.85s cubic-bezier(.22,1,.36,1); will-change: height;
}
body[data-theme='light'] .viz-fin-bars span { background: rgba(10,147,184,0.16); }
.viz-fin-bars span.on { background: var(--gradient); }

/* viz: Operationeel */
.viz-ops { display: flex; flex-direction: column; justify-content: center; gap: 11px; }
.viz-src { display: flex; align-items: center; gap: 9px; font-size: 10.5px; }
.viz-src-name { width: 40px; color: var(--text-secondary); font-weight: 600; flex-shrink: 0; }
.viz-src-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
body[data-theme='light'] .viz-src-bar { background: rgba(3,18,34,0.07); }
.viz-src-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--gradient); transition: width 0.8s cubic-bezier(.22,1,.36,1); will-change: width; }
.viz-src-num { width: 42px; text-align: right; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.viz-src-num.viz-live { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; color: #10B981; }

/* viz: Strategisch */
.viz-str { display: flex; flex-direction: column; }
.viz-line { width: 100%; height: 64px; flex: 1; overflow: visible; }
.viz-line-path { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.viz-line-area { opacity: 1; }
/* bright pulse of light running along the forecast line */
.viz-line-pulse {
  stroke: var(--accent-light); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  fill: none; stroke-dasharray: 12 88; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px var(--accent));
  animation: linePulse 2.8s linear infinite;
}
@keyframes linePulse { to { stroke-dashoffset: 0; } }
.viz-line-dot { fill: var(--accent); animation: dotGlow 2.8s ease-in-out infinite; }
@keyframes dotGlow {
  0%, 100% { r: 3; opacity: 0.9; }
  50%      { r: 4.2; opacity: 1; }
}
.viz-str-cap { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--text-muted); }
.viz-str-cap strong { font-size: 15px; font-weight: 800; color: var(--text-primary); }

/* viz: AI */
.viz-ai { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.viz-ai-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.viz-ai-count { margin-left: auto; font-size: 9.5px; color: var(--text-muted); font-weight: 600; }
.viz-ai-task {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; color: var(--text-secondary);
  padding: 6px 9px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg-card);
}
.viz-ai-task .viz-ai-check { margin-left: auto; color: #10B981; font-weight: 800; }
.viz-ai-task .pv-spin { margin-left: auto; border-color: rgba(28,207,207,0.25); border-top-color: var(--accent); }
.viz-ai-task.done { border-color: rgba(16,185,129,0.3); }
.viz-ai-task.run { border-color: var(--border-accent); }

/* Platform CTA */
.platform-cta { text-align: center; }

/* =========================================
   Responsive - live visuals
   ========================================= */
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .mctl-lower { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mctl-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pillars { grid-template-columns: 1fr; }
}

/* =========================================
   Reduced motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .live-dot, .pv-spin,
  .mctl-chart .chart-bar, .feed-row, .viz-fin-bars span, .viz-src-bar i,
  .viz-line-path, .viz-line-area, .viz-line-dot, .viz-line-pulse {
    animation: none !important;
  }
  .viz-line-path { stroke-dashoffset: 0; opacity: 1; }
  .viz-line-area, .viz-line-dot { opacity: 1; }
}

/* Mission Control chart bars — visible in both themes */
.mctl-chart .chart-bar { background: rgba(28,207,207,0.22); }
body[data-theme='light'] .mctl-chart .chart-bar { background: rgba(10,147,184,0.18); }
.mctl-chart .chart-bar.accent { background: var(--gradient); }

/* =========================================
   Process — data flowing through the pipeline
   (light pulse travels 01→02→03→04, icons ping in sequence)
   ========================================= */
.step-connector { overflow: hidden; }
.step-connector::after {
  content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 38%;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  filter: drop-shadow(0 0 4px var(--accent));
  transform: translateX(-140%);
  animation: flowLine 3.4s ease-in-out infinite;
}
.process-step:nth-child(1) .step-connector::after { animation-delay: 0s; }
.process-step:nth-child(2) .step-connector::after { animation-delay: 0.85s; }
.process-step:nth-child(3) .step-connector::after { animation-delay: 1.7s; }
@keyframes flowLine {
  0%   { transform: translateX(-140%); opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateX(320%); opacity: 0; }
}
.step-icon::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0; pointer-events: none;
  animation: stepPing 3.4s ease-in-out infinite;
}
.process-step:nth-child(1) .step-icon::before { animation-delay: 0.25s; }
.process-step:nth-child(2) .step-icon::before { animation-delay: 1.10s; }
.process-step:nth-child(3) .step-icon::before { animation-delay: 1.95s; }
.process-step:nth-child(4) .step-icon::before { animation-delay: 2.80s; }
@keyframes stepPing {
  0%   { transform: scale(1);    opacity: 0.65; }
  45%  { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .step-connector::after, .step-icon::before { animation: none !important; opacity: 0 !important; }
}


/* =========================================
   Hero — asymmetric split with live portfolio cockpit
   (breaks the centered "AI-template" pattern)
   ========================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  text-align: left;
  max-width: 1200px;
}
.hero-copy { max-width: 600px; }
.hero-grid .hero-title {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -1.1px;
  margin-bottom: 22px;
}
.hero-grid .hero-subtitle {
  margin: 0 0 34px;
  max-width: 500px;
  font-size: clamp(15px, 1.5vw, 17px);
}
.hero-grid .hero-actions { justify-content: flex-start; margin-bottom: 40px; }
.hero-grid .hero-stats { padding: 18px 6px; }
.hero-grid .hero-stats .stat { padding: 0 20px; }
.hero-grid .hero-stats .stat-value { font-size: 22px; }

/* Cockpit card */
.hero-visual { position: relative; }
.hero-cockpit {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow), 0 0 90px rgba(28, 207, 207, 0.10);
  overflow: hidden;
}
.hc-glow {
  position: absolute; top: -40%; right: -20%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  filter: blur(10px); pointer-events: none;
  animation: hcGlow 6s ease-in-out infinite;
}
@keyframes hcGlow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.hc-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.hc-head-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; }

.hc-total {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hc-total-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 6px; }
.hc-total-val { display: block; font-size: 34px; font-weight: 900; letter-spacing: -1px; line-height: 1; }
.hc-total-trend { font-size: 12.5px; font-weight: 700; }
.hc-total-trend.up { color: #10B981; }

.hc-bars {
  position: relative;
  display: flex; align-items: flex-end; gap: 6px;
  height: 46px; margin-bottom: 18px;
}
.hc-bars span {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: rgba(28,207,207,0.16);
}
body[data-theme='light'] .hc-bars span { background: rgba(10,147,184,0.14); }
.hc-bars span.on { background: var(--gradient); }

.hc-entities { position: relative; display: flex; flex-direction: column; gap: 2px; }
.hc-ent {
  display: grid;
  grid-template-columns: 1fr 60px auto auto;
  align-items: center; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.hc-ent:first-child { border-top: none; }
.hc-ent-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-spark { width: 60px; height: 18px; }
.hc-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hc-ent-val { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.hc-ent-trend { font-size: 11px; font-weight: 700; text-align: right; min-width: 38px; }
.hc-ent-trend.up { color: #10B981; }

.hc-more {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0 4px; font-size: 11.5px; color: var(--text-muted); font-weight: 600;
  border-top: 1px solid var(--border);
}
.hc-more-dots { display: inline-flex; gap: 4px; }
.hc-more-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--border-accent); }

/* Hero responsive — stack + re-center on smaller screens */
@media (max-width: 980px) {
  /* minmax(0,1fr) lets the single column shrink below its content's min-content
     (otherwise the widest child — the cockpit — forces the grid past the viewport) */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; max-width: 640px; }
  .hero-copy, .hero-visual { min-width: 0; max-width: 100%; margin: 0 auto; width: 100%; }
  .hero-visual { max-width: 460px; }
  .hero-grid .hero-title,
  .hero-grid .hero-subtitle { margin-left: auto; margin-right: auto; max-width: 100%; }
  .hero-grid .hero-actions { justify-content: center; }
}
@media (max-width: 600px) {
  .hero-badge { max-width: 100%; white-space: normal; text-align: center; }
  .hero-grid .hero-title { font-size: clamp(25px, 8.2vw, 38px); letter-spacing: -0.4px; overflow-wrap: break-word; }
  .hero-grid .hero-subtitle { font-size: 15px; }
  .hero-grid .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-grid .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 100%; }
  .hero-cockpit { max-width: 100%; }
  .hub-sources { flex-wrap: wrap; }
  .hub-sources .src-chip { flex: 1 1 42%; }
  .hub-sources .src-chip.more { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .hero-cockpit { padding: 15px 14px; }
  .hub-out { gap: 6px; }
  .hub-out-item { padding: 9px 8px; font-size: 10.5px; }
  .hub-core-txt small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-glow { animation: none !important; }
}

/* =========================================
   Problem cards — subtle thematic icon motion
   (one animated element per icon; slow & meaningful)
   ========================================= */
/* 1. Vertraagde rapportages — clock hand ticks */
.p-clock-hand { transform-box: view-box; transform-origin: 12px 12px; animation: pTick 6s steps(6) infinite; }
@keyframes pTick { to { transform: rotate(360deg); } }

/* 2. Versnipperde data — bars drift out of sync (fragmentation) */
.p-bar { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: bottom; }
.p-bar1 { animation: pFrag 2.6s ease-in-out infinite; }
.p-bar2 { animation: pFrag 2.6s ease-in-out infinite; animation-delay: .55s; }
.p-bar3 { animation: pFrag 2.6s ease-in-out infinite; animation-delay: 1.1s; }
@keyframes pFrag { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }

/* 3. Te veel handmatig werk — endless processing spinner */
.p-spin { transform-box: view-box; transform-origin: 12px 12px; animation: pSpin 2.8s linear infinite; }
@keyframes pSpin { to { transform: rotate(360deg); } }

/* 4. Geen realtime inzicht — live blip fades to stale */
.p-fade { animation: pFade 3s ease-in-out infinite; }
@keyframes pFade { 0%, 100% { opacity: .9; } 50% { opacity: .12; } }

@media (prefers-reduced-motion: reduce) {
  .p-clock-hand, .p-bar, .p-spin, .p-fade { animation: none !important; }
  .p-fade { opacity: .9; }
}


/* =========================================
   Hero hub — sources funnel into one platform
   (distinct from the Mission Control dashboard)
   ========================================= */
.hero-hub { padding: 20px 20px 18px; }
.hub-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.hub-head-title { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; }

.hub-sources { position: relative; display: flex; gap: 8px; align-items: stretch; }
.src-chip {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.src-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10B981; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.src-name { display: flex; flex-direction: column; line-height: 1.25; font-size: 11.5px; font-weight: 600; color: var(--text-primary); }
.src-name small { font-size: 9px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.2px; }
.src-chip.more { flex: 0 0 auto; justify-content: center; color: var(--text-muted); font-size: 12px; font-weight: 700; }

/* funnel: data flowing down into the platform */
.hub-funnel { position: relative; display: block; width: 100%; height: 54px; margin: 2px 0; overflow: visible; }
.hf-line { stroke: var(--border-accent); stroke-width: 1.4; fill: none; }
.hf-flow {
  stroke: var(--accent-light); stroke-width: 2; fill: none; stroke-linecap: round;
  stroke-dasharray: 16 84; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px var(--accent));
  animation: hfFlow 2.4s linear infinite;
}
@keyframes hfFlow { to { stroke-dashoffset: 0; } }
.hub-funnel path:nth-child(5) { animation-delay: 0s; }
.hub-funnel path:nth-child(6) { animation-delay: .9s; }
.hub-funnel path:nth-child(7) { animation-delay: .45s; }
.hub-funnel path:nth-child(8) { animation-delay: 1.35s; }

/* hub core */
.hub-core {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  margin-bottom: 14px;
}
.hub-core-badge {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: #06232b; font-weight: 900; font-size: 14px;
}
.hub-core-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.hub-core-txt strong { font-size: 14px; font-weight: 800; }
.hub-core-txt small { font-size: 11px; color: var(--text-secondary); }

/* consolidated output — the 3 layers */
.hub-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hub-out-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 11px 11px; border-radius: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 600; color: var(--text-secondary);
}
.hub-out-item b { font-size: 10px; font-weight: 700; color: #10B981; }
.ho-ic {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; color: var(--accent-light);
  background: var(--accent-glow); border: 1px solid var(--border-accent);
}
.ho-ic .icon-svg { width: 15px; height: 15px; }

@media (max-width: 420px) {
  .src-name small { display: none; }
  .hub-out-item { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-flow { animation: none !important; opacity: 0.5; }
}


/* =========================================
   AI Agents — live AP agent demo (scan → extract → book)
   ========================================= */
.ai-live {
  position: relative; overflow: hidden; margin-bottom: 44px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: var(--shadow), 0 0 80px rgba(28,207,207,0.07);
}
.ail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ail-head-title { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary); }
.ail-head-count { font-size: 11.5px; color: var(--text-muted); }
.ail-head-count b { color: var(--accent); font-weight: 800; }

.ail-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: stretch; }

/* document being scanned */
.ail-doc {
  position: relative; overflow: hidden;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 14px 16px;
}
.ail-doc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ail-doc-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }
.ail-doc-id { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
.ail-doc-lines { display: flex; flex-direction: column; gap: 9px; }
.ail-l { display: block; height: 7px; width: var(--w); border-radius: 4px; background: rgba(255,255,255,0.07); }
body[data-theme='light'] .ail-l { background: rgba(3,18,34,0.07); }
.ail-doc-amt { font-size: 17px; font-weight: 800; color: var(--accent-light); letter-spacing: -0.4px; margin: 3px 0; }
.ail-scan {
  position: absolute; left: 8px; right: 8px; top: 0; height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(28,207,207,0.12) 65%, transparent);
  border-bottom: 1.5px solid var(--accent);
  box-shadow: 0 6px 18px rgba(28,207,207,0.35);
  animation: ailScan 2.8s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes ailScan {
  0%   { transform: translateY(-40%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* agent extracting + booking */
.ail-agent { display: flex; flex-direction: column; }
.ail-agent-status { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }
.ail-agent-status .pv-spin { border-color: rgba(28,207,207,0.25); border-top-color: var(--accent); }
.ai-live.ail-booked .ail-status-txt { color: #10B981; }

.ail-fields { display: flex; flex-direction: column; gap: 7px; }
.ail-field {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 9px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, border-color .45s ease;
}
.ail-field.ail-show { opacity: 1; transform: none; border-color: var(--border-accent); }
.ail-f-k { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.ail-f-v { text-align: right; font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.ail-conf {
  font-style: normal; font-size: 10px; font-weight: 800; color: #10B981;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3);
  padding: 1px 6px; border-radius: 999px; margin-left: 6px;
}

.ail-result {
  display: flex; align-items: center; gap: 9px; margin-top: 11px;
  padding: 11px 13px; border-radius: 10px;
  background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.32);
  color: #10B981; font-weight: 700; font-size: 12.5px;
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease;
}
.ail-result.ail-show { opacity: 1; transform: none; }
.ail-check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #10B981; color: #04231a; font-size: 11px; font-weight: 900;
}

@media (max-width: 680px) {
  .ail-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ail-scan { animation: none !important; opacity: .5; }
  .ail-field, .ail-result { opacity: 1 !important; transform: none !important; }
}

/* Hero hub — diverse source domains + compass badge */
.src-dot.d-fin  { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.src-dot.d-hr   { background: #6366F1; box-shadow: 0 0 0 3px rgba(99,102,241,.16); }
.src-dot.d-proj { background: #7C6BE6; box-shadow: 0 0 0 3px rgba(124,107,230,.16); }
.hub-sources .src-name small { font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; display: block; }
.hub-core-badge { background: #fff; border: 1px solid var(--border); padding: 6px; object-fit: contain; }
