/* ─── Variables ─── */
:root {
  --bg: #0C1117;
  --bg-2: #111827;
  --surface: #1A2332;
  --surface-2: #22303F;
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.12);
  --teal: #06B6D4;
  --teal-dim: rgba(6,182,212,0.1);
  --green: #10B981;
  --text: #E8EDF5;
  --text-muted: #8899AA;
  --text-dim: #5A6B7D;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ─── Base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  background: rgba(12,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.nav-links span:hover { color: var(--text); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 120px 60px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-eyebrow { margin-bottom: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-headline {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(160deg, #fff 0%, #c8d5e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-family: var(--font-head);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat { padding: 0 32px; }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Compliance Widget ─── */
.hero-visual { position: relative; }
.compliance-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,158,11,0.1);
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.widget-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.widget-dot.red { background: #FF5F57; }
.widget-dot.amber { background: #FFBD2E; }
.widget-dot.green { background: #28CA41; }
.widget-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-head);
}
.widget-body { padding: 20px; }
.query-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.query-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}
.response-block {
  background: var(--bg-2);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 16px;
}
.response-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  font-family: var(--font-head);
}
.resp-items { display: flex; flex-direction: column; gap: 10px; }
.resp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}
.resp-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-head);
  min-width: 48px;
  text-align: center;
}
.resp-tag.fed { background: rgba(139,92,246,0.2); color: #a78bfa; }
.resp-tag.ca { background: rgba(245,158,11,0.2); color: var(--accent); }
.resp-tag.co { background: rgba(6,182,212,0.15); color: var(--teal); }
.resp-tag.dot { background: rgba(16,185,129,0.15); color: var(--green); }
.resp-item span:last-child { color: var(--text-muted); }
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 10px;
  background: var(--accent-dim);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--accent);
  font-family: var(--font-head);
}

/* ─── Section Shared ─── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--font-head);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 640px;
  margin-bottom: 56px;
}

/* ─── Applicability (Problem) ─── */
.applicability { padding: 100px 60px; background: var(--bg-2); }
.applicability-inner { max-width: 1200px; margin: 0 auto; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.problem-card {
  background: var(--bg-2);
  padding: 36px 40px;
  transition: background 0.2s;
}
.problem-card:hover { background: var(--surface); }
.problem-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.problem-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Features ─── */
.features { padding: 100px 60px; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 32px 36px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }
.feature-primary {
  grid-column: span 1;
  background: var(--surface);
  border: 1px solid rgba(245,158,11,0.2);
}
.feature-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--teal-dim);
  color: var(--teal);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-head);
}
.feature-primary .feature-tag {
  background: var(--accent-dim);
  color: var(--accent);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.feature-detail span {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: monospace;
  background: var(--bg-2);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ─── Jurisdictions ─── */
.jurisdictions {
  padding: 100px 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.jurisdictions-inner { max-width: 1200px; margin: 0 auto; }
.jur-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.jur-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.jur-card:hover { border-color: rgba(245,158,11,0.3); }
.jur-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 8px;
  color: var(--accent);
}
.jur-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.jur-info p {
  font-size: 0.775rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ─── Closing ─── */
.closing {
  padding: 120px 60px 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(245,158,11,0.06), transparent);
  pointer-events: none;
}
.closing-inner { max-width: 800px; margin: 0 auto; position: relative; }
.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 500;
  margin-bottom: 32px;
}
.closing-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(160deg, #fff 0%, #b8c8dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.closing-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}
.closing-vision {
  padding: 28px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.closing-vision p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
}

/* ─── Footer ─── */
.footer {
  padding: 48px 60px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.6;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 100px 40px 60px; }
  .hero-visual { max-width: 520px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .jur-layer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 90px 24px 48px; }
  .hero-headline { font-size: 2.25rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .jur-layer-grid { grid-template-columns: 1fr; }
  .applicability, .features, .jurisdictions, .closing, .footer { padding: 60px 24px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0; text-align: center; }
  .section-title { font-size: 1.6rem; }
  .closing-headline { font-size: 2rem; }
}
