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

:root {
  --ink: #0F1923;
  --ink-2: #1A2636;
  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --blue-xlight: #93C5FD;
  --amber: #F59E0B;
  --amber-dim: #D97706;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --slate-xlight: #CBD5E1;
  --off: #F8FAFC;
  --surface: #F1F5F9;
  --green: #22C55E;
  --cyan: #06B6D4;
  --purple: #8B5CF6;
  --red: #EF4444;
  --orange: #F97316;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  background: var(--ink);
  color: #E2E8F0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,25,35,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59,130,246,0.12);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  letter-spacing: -0.3px;
}

.nav-badge {
  font-size: 12px;
  color: var(--slate-light);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.label-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  color: white;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: var(--slate-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.pill-sep {
  color: var(--slate);
  font-size: 12px;
}

/* === DASHBOARD PANEL === */
.hero-dashboard {
  background: var(--ink-2);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dash-title {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.3px;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #4ADE80;
  background: rgba(74,222,128,0.08);
  padding: 3px 10px;
  border-radius: 10px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.dash-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-light);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: white;
}

/* === PIPELINE STAGES === */
.pipeline-stages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.stage { }

.stage-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stage-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-light);
}

.stage-count {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-light);
}

.stage-count.ai {
  color: var(--blue-light);
}

.stage-bar {
  height: 4px;
  background: rgba(59,130,246,0.15);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.stage-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(var(--w) * 100%);
  background: var(--color, #3B82F6);
  border-radius: 2px;
  transition: width 1s ease;
}

.stage-bar.active::after {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
  box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

/* === AI PANEL === */
.dash-ai-panel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.ai-icon {
  width: 28px;
  height: 28px;
  background: rgba(245,158,11,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-text {
  font-size: 12px;
  color: #FCD34D;
  line-height: 1.5;
}

.ai-bold {
  font-weight: 700;
  color: var(--amber);
}

/* === COUNTRY TABLE === */
.dash-countries {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.country-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.country-flag {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue);
  background: rgba(59,130,246,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 32px;
  text-align: center;
}

.country-name {
  font-size: 12px;
  color: var(--slate-light);
  flex: 1;
}

.country-count {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: white;
}

.country-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.country-badge.compliant {
  color: #4ADE80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
}

.country-badge.ai {
  color: var(--amber);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
}

.country-badge.attention {
  color: #FB923C;
  background: rgba(251,146,60,0.08);
  border: 1px solid rgba(251,146,60,0.15);
}

/* === LIFECYCLE SECTION === */
.lifecycle {
  background: var(--ink-2);
  padding: 80px 24px;
  border-top: 1px solid rgba(59,130,246,0.1);
}

.section-label {
  max-width: 1200px;
  margin: 0 auto 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lifecycle h2 {
  max-width: 1200px;
  margin: 0 auto 60px;
  font-family: 'Barlow', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.lifecycle-track {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.lifecycle-line {
  display: none; /* removed the vertical line for cleaner grid */
}

.lifecycle-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-step {
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.2);
}

.step-content h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step-content p {
  font-size: 13px;
  color: var(--slate-light);
  line-height: 1.6;
}

/* === FEATURES === */
.features {
  background: var(--ink);
  padding: 80px 24px;
}

.features h2 {
  max-width: 1200px;
  margin: 0 auto 48px;
  font-family: 'Barlow', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.8px;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feat-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  align-items: start;
  background: linear-gradient(135deg, rgba(30,58,95,0.4) 0%, rgba(15,25,35,0.8) 100%);
  border: 1px solid rgba(59,130,246,0.2);
}

.feat-main .feat-icon {
  align-self: start;
  padding: 32px 32px 32px 32px;
  border-right: 1px solid rgba(59,130,246,0.1);
}

.feat-main h3 {
  margin-bottom: 16px;
}

.feat-main p {
  max-width: 560px;
  margin-bottom: 20px;
}

.feature-card {
  background: rgba(26,38,54,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
}

.feat-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--slate-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feat-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(59,130,246,0.1);
  color: var(--blue-light);
  border: 1px solid rgba(59,130,246,0.15);
}

.feat-tags.green span {
  background: rgba(34,197,94,0.08);
  color: #4ADE80;
  border-color: rgba(34,197,94,0.15);
}

.feat-tags.cyan span {
  background: rgba(6,182,212,0.08);
  color: #67E8F9;
  border-color: rgba(6,182,212,0.15);
}

.feat-tags.purple span {
  background: rgba(139,92,246,0.08);
  color: #C4B5FD;
  border-color: rgba(139,92,246,0.15);
}

/* === STATS === */
.stats {
  background: var(--ink-2);
  padding: 64px 24px;
  border-top: 1px solid rgba(59,130,246,0.1);
  border-bottom: 1px solid rgba(59,130,246,0.1);
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(59,130,246,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.stat-card {
  background: var(--ink-2);
  padding: 36px 28px;
}

.stat-card.accent {
  background: rgba(30,58,95,0.5);
}

.stat-num {
  font-family: 'Barlow', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.stat-card.accent .stat-num {
  color: var(--amber);
}

.stat-label {
  font-size: 13px;
  color: var(--slate-light);
  line-height: 1.5;
}

/* === CLOSING === */
.closing {
  background: var(--ink);
  padding: 100px 24px;
  text-align: center;
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}

.closing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 5px 14px;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 20px;
  background: rgba(59,130,246,0.06);
}

.closing h2 {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: white;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing p {
  font-size: 17px;
  color: var(--slate-light);
  line-height: 1.75;
  margin-bottom: 40px;
}

.closing-globe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--slate-light);
  font-size: 14px;
  font-weight: 500;
}

/* === FOOTER === */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: white;
}

.footer-brand p {
  font-size: 12px;
  color: var(--slate);
}

.footer-copy {
  font-size: 12px;
  color: var(--slate);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lifecycle-track { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feat-main { grid-template-columns: 1fr; }
  .feat-main .feat-icon { border-right: none; border-bottom: 1px solid rgba(59,130,246,0.1); padding: 20px 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 16px 60px; }
  .stats-grid { grid-template-columns: 1fr; }
  .lifecycle-track { gap: 28px; }
  .nav-badge { display: none; }
}