/* ── Design System ── */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --secondary-light: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --surface: #e2e8f0;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-primary: var(--text);
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-tertiary: var(--text-muted);
  --card-bg: var(--bg-card);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Dark theme override ── */
body.dark-theme {
  --bg: #0a0a0b;
  --bg-secondary: #121214;
  --bg-card: #18181b;
  --bg-card-hover: #1f1f23;
  --surface: #27272a;
  --border: #3f3f46;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Section ── */
section { padding: 100px 0; position: relative; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary-light); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--primary-light); }
.section-header h2 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-theme .section-header h2 {
  background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-secondary); margin-top: 16px; line-height: 1.7;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: var(--transition); cursor: pointer; border: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,99,235,0.4); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #6d28d9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-muted); transform: translateY(-1px); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.82rem; }

/* ── Navbar ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(226,232,240,0.5);
  transition: var(--transition);
}
#navbar.scrolled { background: rgba(255,255,255,0.95); border-bottom-color: var(--border); }
body.dark-theme #navbar {
  background: rgba(10,10,11,0.8);
  border-bottom-color: rgba(63,63,70,0.5);
}
body.dark-theme #navbar.scrolled { background: rgba(10,10,11,0.95); border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); text-decoration: none;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text); border-color: var(--text-muted);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 28px; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 999;
}
body.dark-theme .mobile-menu { background: rgba(10,10,11,0.98); }
.mobile-menu a {
  padding: 14px 32px; font-size: 1.1rem; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: var(--transition);
}
.mobile-menu a:hover { color: var(--text); background: var(--bg-card); border-radius: var(--radius-sm); }
.mobile-menu.open { display: flex; }

/* ── Hero ── */
#hero {
  min-height: 100vh; display: flex; align-items: stretch;
  overflow: hidden; position: relative;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
}
body.dark-theme .hero-grid {
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  will-change: transform;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -5%; animation: orbFloat 20s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -5%; right: -5%; animation: orbFloat 25s ease-in-out infinite reverse; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--accent-cyan); top: 40%; left: 50%; animation: orbFloat 15s ease-in-out infinite 5s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(40px, 40px) scale(1.05); }
}

/* 3D Floating Shapes */
.hero-shapes {
  position: absolute; inset: 0; perspective: 1000px; pointer-events: none;
}
.hero-shape {
  position: absolute; width: 60px; height: 60px;
  border-radius: 12px; opacity: 0.15;
  transform-style: preserve-3d; animation: shapeFloat 12s ease-in-out infinite;
}
.hero-shape:nth-child(1) { top: 20%; left: 15%; background: var(--primary); animation-delay: 0s; width: 80px; height: 80px; border-radius: 50%; }
.hero-shape:nth-child(2) { top: 60%; right: 20%; background: var(--secondary); animation-delay: -3s; width: 50px; height: 50px; }
.hero-shape:nth-child(3) { top: 30%; right: 30%; background: var(--accent-cyan); animation-delay: -6s; width: 40px; height: 40px; border-radius: 50%; }
.hero-shape:nth-child(4) { bottom: 30%; left: 25%; background: var(--accent-amber); animation-delay: -9s; width: 55px; height: 55px; }
@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-40px) rotateX(10deg) rotateY(15deg); }
  50% { transform: translateY(-20px) rotateX(-5deg) rotateY(-10deg); }
  75% { transform: translateY(-50px) rotateX(8deg) rotateY(20deg); }
}

.hero-content { position: relative; z-index: 1; text-align: left; padding: 40px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500; color: var(--primary-light);
  background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.2);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out 0.2s both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-content h1 {
  font-size: 4rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease-out 0.3s both;
}
.hero-content h1 .gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content .lead {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 560px; margin: 0 0 32px;
  line-height: 1.7;
  animation: fadeUp 0.6s ease-out 0.4s both;
}
.hero-actions {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  animation: fadeUp 0.6s ease-out 0.5s both;
}
.hero-stats {
  display: flex; justify-content: center; gap: 60px; margin-top: 60px;
  animation: fadeUp 0.6s ease-out 0.6s both;
  width: 100%;
}
.hero-stats .stat-item { text-align: center; }
.hero-stats .stat-value {
  font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a, #475569);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stats .stat-plus::after { content: "+"; }
body.dark-theme .hero-stats .stat-value {
  background: linear-gradient(135deg, #fafafa, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-stats .stat-label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── Problem Section ── */
#problem { background: var(--bg-secondary); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease;
}
.problem-card:hover { border-color: var(--surface); transform: translateY(-4px); }
.problem-card:hover::before { transform: scaleX(1); }
.problem-icon { margin-bottom: 16px; }
.problem-icon svg { width: 40px; height: 40px; }
.problem-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.problem-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Modules / Product ── */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
  transition: var(--transition); perspective: 800px;
  transform-style: preserve-3d; position: relative;
}
.module-card:hover { border-color: var(--surface); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-lg); }
.module-card-accent {
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  border-radius: 12px 0 0 12px; transform: scaleY(0.8);
  transition: transform 0.3s ease;
}
.module-card:hover .module-card-accent { transform: scaleY(1); }
.module-icon { margin-bottom: 16px; }
.module-icon svg { width: 44px; height: 44px; }
.module-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.module-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.module-card ul { list-style: none; }
.module-card ul li {
  font-size: 0.82rem; color: var(--text-muted); padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.module-card ul li svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Integrity Engine ── */
#integrity { background: var(--bg-secondary); }
.integrity-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.integrity-states { display: grid; gap: 16px; }
.state-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px 24px; border: 1px solid var(--border);
  transition: var(--transition);
}
.state-card:hover { border-color: var(--surface); transform: translateX(4px); }
.state-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.state-card-header svg { width: 28px; height: 28px; flex-shrink: 0; }
.state-title { font-size: 0.95rem; font-weight: 700; }
.state-risk {
  margin-left: auto; font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
  border-radius: 50px; text-transform: uppercase; letter-spacing: 0.05em;
}
.risk-none { background: rgba(16,185,129,0.15); color: #34d399; }
.risk-med { background: rgba(245,158,11,0.15); color: #fbbf24; }
.risk-high { background: rgba(239,68,68,0.15); color: #f87171; }
.risk-crit { background: rgba(239,68,68,0.25); color: #fca5a5; }
.state-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* FCI Box */
.fci-box {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border); margin-bottom: 24px;
}
.fci-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.fci-box p { font-size: 0.9rem; color: var(--text-secondary); }
.fci-formula {
  margin: 16px 0; padding: 12px 16px; background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm); font-size: 0.85rem; font-family: monospace;
  color: var(--primary-light); border: 1px solid rgba(37,99,235,0.15);
}
.fci-bands { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fci-band {
  display: flex; align-items: center; gap: 12px; font-size: 0.85rem;
}
.fci-band-bar {
  height: 8px; border-radius: 4px; transition: width 1s ease;
}

/* How it works */
.how-it-works { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); }
.how-it-works h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.step-num-badge {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  background: rgba(37,99,235,0.15); color: var(--primary-light);
}

/* ── Why / Comparison ── */
.comparison-table-wrap {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  padding: 16px 20px; text-align: left; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.03); color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.comparison-table th:first-child { width: 45%; }
.comparison-table td {
  padding: 14px 20px; font-size: 0.85rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(63,63,70,0.3);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover { background: rgba(255,255,255,0.02); }
.comparison-table td:first-child { font-weight: 500; color: var(--text); }
.check-yes { color: var(--accent-green); font-weight: 700; }
.check-no { color: var(--accent-red); font-weight: 700; }

.frameworks-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px;
}
.framework-chip {
  padding: 8px 20px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
  background: rgba(37,99,235,0.08); color: var(--primary-light);
  border: 1px solid rgba(37,99,235,0.15); transition: var(--transition);
}
.framework-chip:hover { background: rgba(37,99,235,0.15); transform: translateY(-2px); }

/* ── ROI Calculator ── */
.roi-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.roi-inputs { display: flex; flex-direction: column; gap: 20px; }
.roi-group {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border);
}
.roi-group-header {
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 700;
  margin-bottom: 20px;
}
.roi-group-header svg { width: 22px; height: 22px; }
.roi-field { margin-bottom: 16px; }
.roi-field:last-child { margin-bottom: 0; }
.roi-field label { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.roi-slider-row { display: flex; align-items: center; gap: 12px; }
.roi-slider {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px;
  border-radius: 3px; background: var(--surface); outline: none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--primary); cursor: pointer;
  border: 2px solid var(--bg-card); box-shadow: 0 0 0 2px var(--primary);
  transition: var(--transition);
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.roi-number {
  width: 90px; padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font-size: 0.82rem; text-align: center;
}
.roi-results {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border); position: sticky; top: 100px;
}
.roi-results-header { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; }
.roi-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 0.85rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(63,63,70,0.3);
}
.roi-result-value { font-weight: 600; color: var(--text); }
.roi-divider { height: 1px; background: var(--border); margin: 16px 0; }
.roi-total { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.roi-total-label { font-size: 1rem; font-weight: 700; }
.roi-total-value { font-size: 1.5rem; font-weight: 900; color: var(--accent-green); }
.roi-roi-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 0.85rem; color: var(--text-secondary); }
.roi-roi-pct { font-weight: 700; color: var(--primary-light); }
.roi-cta { margin-top: 20px; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg-card); border-radius: var(--radius-xl);
  padding: 40px 32px; border: 1px solid var(--border);
  transition: var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary); background: linear-gradient(180deg, rgba(37,99,235,0.08) 0%, var(--bg-card) 100%);
  transform: scale(1.02); z-index: 1;
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-8px); }
.pricing-tier {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary-light); margin-bottom: 8px;
}
.pricing-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.pricing-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(63,63,70,0.2);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features svg { width: 18px; height: 18px; flex-shrink: 0; }
.pricing-cta { width: 100%; justify-content: center; }

/* ── FAQ ── */
.faq-grid { max-width: 720px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.faq-item:hover { border-color: var(--surface); }
.faq-item h4 {
  padding: 18px 24px; font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none; gap: 16px;
}
.faq-item h4::after {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s ease;
}
.faq-item.open h4::after { transform: rotate(180deg); }
.faq-item p {
  max-height: 0; padding: 0 24px; overflow: hidden;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open p { max-height: 300px; padding: 0 24px 18px; }

/* ── Contact ── */
#contact { background: var(--bg-secondary); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-mission {
  font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary);
  padding: 24px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); margin-bottom: 20px;
}
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem;
  transition: var(--transition);
}
.contact-link:hover { border-color: var(--surface); color: var(--text); transform: translateX(4px); }
.contact-link svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-form {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-family: var(--font);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Footer ── */
footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  margin-bottom: 40px;
}
.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h5 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: var(--transition);
}
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 24px; border-radius: var(--radius-sm);
  background: var(--accent-green); color: white; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(120px); opacity: 0;
  transition: var(--transition); box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }

/* ── Feature Showcase (Extended Features with Mockups) ── */
.features-extended { background: var(--bg-secondary); }
.feature-showcase { display: flex; flex-direction: column; gap: 100px; }
.feature-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-mockup {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition);
}
.feature-mockup:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-mockup svg { display: block; width: 100%; height: auto; }
.feature-info h3 {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.feature-info h3 .fi-icon { width: 28px; height: 28px; flex-shrink: 0; }
.feature-info p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag {
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  background: rgba(37,99,235,0.08); color: var(--primary-light);
  border: 1px solid rgba(37,99,235,0.15);
}

/* ── Integrations ── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.integration-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.integration-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.dark-theme .integration-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.integ-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.integ-icon svg,
.integ-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.integration-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.integration-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .integrations-grid { grid-template-columns: 1fr; }
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.25;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Trusted Brands ── */
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  margin-top: 40px;
  padding: 40px 0;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
  filter: grayscale(1);
}

.brand-item:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

.brand-item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-item span {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-item .brand-sub {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  display: block;
  margin-top: -2px;
}

@media (max-width: 768px) {
  .brands-row { gap: 24px 32px; }
  .brand-item span { font-size: 0.9rem; }
}

/* ── Industries ── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.region-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.region-heading svg {
  opacity: 0.6;
}

.industry-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.dark-theme .industry-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.industry-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}

.industry-icon svg {
  width: 36px;
  height: 36px;
}

.industry-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .industries-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3rem; }
  .section-header h2 { font-size: 2rem; }
  .problem-grid, .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { order: -1; }
  .integrity-inner, .roi-inner, .contact-inner { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
  .feature-row.reverse > * { direction: ltr; }
}

/* ── Hero Monitor Animation ── */

.hm-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-lg);
  min-height: 300px;
  overflow: hidden;
}

/* Step labels */
.hm-step-label {
  position: absolute;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.35;
}
.hm-step-label.active {
  color: var(--primary);
  opacity: 1;
}
.hm-step-label.done {
  color: var(--accent-green);
  opacity: 0.7;
}
.hm-step-1 { top: 10px; left: 20px; }
.hm-step-2 { top: 10px; right: 20px; left: auto; }
.hm-step-3 { bottom: 90px; left: 20px; }
.hm-step-4 { bottom: 10px; right: 20px; left: auto; }

/* Icons row */
.hm-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
  position: relative;
  z-index: 2;
}

.hm-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.hm-icon svg {
  width: 22px;
  height: 22px;
}

.hm-icon.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
  color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.hm-icon.done {
  border-color: var(--accent-green);
  background: color-mix(in srgb, var(--accent-green) 12%, var(--bg-card));
  color: var(--accent-green);
}

.hm-arrow {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  opacity: 0.4;
  flex-shrink: 0;
}

.hm-arrow svg {
  width: 20px;
  height: 20px;
}

/* Data packets */
.hm-packets {
  position: absolute;
  top: 64px;
  left: 42px;
  right: 42px;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

.hm-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: none;
}

.hm-packet:nth-child(1) { top: -14px; }
.hm-packet:nth-child(2) { top: 4px; }
.hm-packet:nth-child(3) { top: -8px; }
.hm-packet:nth-child(4) { top: 10px; }

.hm-packet.fly {
  animation: hmPacketFly 1s ease-in-out forwards;
}
.hm-packet.fly-fast {
  animation: hmPacketFly 0.7s ease-in-out forwards;
}

@keyframes hmPacketFly {
  0% {
    left: 0%;
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 94%;
    opacity: 0;
    transform: scale(0.3);
  }
}

/* Email notification */
.hm-email {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 3;
}

.hm-email.show {
  opacity: 1;
  transform: translateY(0);
}

.hm-email-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hm-email-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hm-email-from {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.hm-email-time {
  font-size: 10px;
  color: var(--text-muted);
}

.hm-email-subject {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hm-email-body {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.hm-email-action {
  display: flex;
  gap: 8px;
}

.hm-email-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hm-email-btn-resolve {
  background: var(--primary);
  color: white;
}

.hm-email-btn-resolve.clicked {
  background: var(--accent-green);
}

.hm-email-btn-dismiss {
  background: var(--surface);
  color: var(--text-secondary);
}

/* Compliance score */
.hm-score {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hm-score.show {
  opacity: 1;
  transform: scale(1);
}

.hm-score-ring {
  width: 80px;
  height: 80px;
}

.hm-score-bg {
  color: var(--border);
}

.hm-score-fill {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-score-text {
  position: absolute;
  top: 18px;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.hm-score-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.hm-score-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.hm-score-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Pulse dot on the shield */
.hm-shield.active::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  top: -2px;
  right: -2px;
  animation: hmPulse 1.2s ease-in-out infinite;
}

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

/* Hero layout: side-by-side (tablet+) */
@media (min-width: 769px) {
  #hero .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .hero-row {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 48px;
  }
  .hero-content {
    flex: 1;
    min-width: 0;
  }
  .hero-monitor {
    flex: 0 0 420px;
    margin-top: 20px;
  }
  #hero .hero-stats {
    margin-top: auto;
    padding-bottom: 32px;
  }
  .hm-container {
    padding: 28px 24px 24px;
    min-height: 340px;
  }
  .hm-icon {
    width: 52px;
    height: 52px;
  }
  .hm-icon svg {
    width: 26px;
    height: 26px;
  }
  .hm-arrow {
    width: 36px;
    height: 36px;
  }
  .hm-arrow svg {
    width: 24px;
    height: 24px;
  }
  .hm-score-ring {
    width: 100px;
    height: 100px;
  }
  .hm-score-text {
    top: 24px;
  }
  .hm-score-value {
    font-size: 28px;
  }
  .hm-step-label {
    font-size: 10px;
  }
  .hm-email {
    padding: 14px 18px;
  }
  .hm-email-subject {
    font-size: 12px;
  }
  .hm-email-body {
    font-size: 11px;
  }
  .hm-email-btn {
    font-size: 11px;
    padding: 5px 14px;
  }
}

/* Center stats full-width under both columns */
#hero .hero-stats {
  width: 100%;
  padding-top: 48px;
  padding-bottom: 32px;
}

/* Tablet: shrink widget when space is tight */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-monitor {
    flex-basis: 360px;
  }
  .hm-container {
    padding: 24px 18px 20px;
    min-height: 300px;
  }
  .hm-icon {
    width: 46px;
    height: 46px;
  }
  .hm-icon svg {
    width: 22px;
    height: 22px;
  }
  .hm-arrow {
    width: 28px;
    height: 28px;
  }
  .hm-arrow svg {
    width: 20px;
    height: 20px;
  }
  .hm-score-ring {
    width: 80px;
    height: 80px;
  }
  .hm-score-text {
    top: 18px;
  }
  .hm-score-value {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 30px; }
  .hero-stats .stat-value { font-size: 2rem; }
  .hero-monitor { display: none; }
  #hero { align-items: center; }
  #hero .container { display: block; }
  .problem-grid, .modules-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .roi-results { position: static; }
}
