/* AxiomCausal Commercial Site — Institutional Dark Theme v2 */
:root {
  --bg: #0A0A10;
  --bg-card: #14141E;
  --bg-elevated: #1A1A28;
  --bg-input: #10101A;
  --violet: #7C3AED;
  --violet-dark: #5B21B6;
  --violet-light: rgba(124,58,237,0.12);
  --violet-glow: rgba(124,58,237,0.06);
  --emerald: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --text: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border: #1F1F2E;
  --border-hover: #7C3AED;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 0.75rem;
  --radius-lg: 1rem;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); text-decoration: none; transition: color 0.15s; }
a:hover { color: #A78BFA; }
img { max-width: 100%; height: auto; }

/* ── Nav ──────────────────────────────────────────────── */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 2rem; border-bottom: 1px solid var(--border); background: rgba(10,10,16,0.92); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.nav-brand img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.82rem; font-weight: 500; transition: color 0.15s; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--white); }

/* ── Buttons ──────────────────────────────────────────── */
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.85rem; border: none; cursor: pointer; transition: all 0.2s; text-align: center; letter-spacing: 0.01em; }
.btn-primary { background: var(--violet); color: var(--white); box-shadow: 0 2px 12px rgba(124,58,237,0.25); }
.btn-primary:hover { background: var(--violet-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.35); }
.btn-outline { background: transparent; color: var(--violet); border: 1.5px solid rgba(124,58,237,0.4); }
.btn-outline:hover { background: var(--violet-light); border-color: var(--violet); }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.95rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { text-align: center; padding: 7rem 2rem 5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 1000px; height: 1000px; background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), transparent); }
.hero h1 { font-size: 3.25rem; font-weight: 900; color: var(--white); margin-bottom: 1.5rem; letter-spacing: -0.035em; line-height: 1.15; position: relative; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero h1 span { background: linear-gradient(135deg, var(--violet), #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 2.5rem; position: relative; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 5.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--bg-card); position: relative; }
.section-alt::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.section h2 { font-size: 1.85rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--white); letter-spacing: -0.02em; }
.section h2 span { color: var(--violet); }
.section p.lead { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.05rem; max-width: 680px; }

/* ── Badge / Label ────────────────────────────────────── */
.badge { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 2rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.badge-violet { background: var(--violet-light); color: var(--violet); border: 1px solid rgba(124,58,237,0.2); }
.badge-emerald { background: rgba(16,185,129,0.1); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }

/* ── Cards ────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(124,58,237,0.08); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.card-icon { width: 44px; height: 44px; border-radius: 0.5rem; background: linear-gradient(135deg, var(--violet-light), rgba(124,58,237,0.05)); display: flex; align-items: center; justify-content: center; margin-bottom: 0.85rem; color: var(--violet); font-size: 1.2rem; font-weight: 800; border: 1px solid rgba(124,58,237,0.15); }
.card-number { width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }

/* ── Pricing ──────────────────────────────────────────── */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.plan-card { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); position: relative; transition: border-color 0.25s, box-shadow 0.25s; }
.plan-card:hover { border-color: rgba(124,58,237,0.3); }
.plan-card.featured { border-color: var(--violet); background: linear-gradient(180deg, rgba(124,58,237,0.04), var(--bg-card)); box-shadow: 0 0 50px rgba(124,58,237,0.08); }
.plan-card.featured::before { content: "Recommended"; position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--violet), var(--violet-dark)); color: var(--white); padding: 0.25rem 1rem; border-radius: 1rem; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-name { font-size: 1.15rem; font-weight: 700; color: var(--white); }
.plan-price { font-size: 2.25rem; font-weight: 900; color: var(--white); margin: 0.75rem 0 0.25rem; letter-spacing: -0.02em; }
.plan-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-dim); }
.plan-sub { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 1rem; }
.plan-features { list-style: none; margin: 1.25rem 0; }
.plan-features li { padding: 0.35rem 0; font-size: 0.83rem; color: var(--text-muted); }
.plan-features li::before { content: "\2713"; color: var(--emerald); font-weight: 700; margin-right: 0.5rem; }
.plan-card .btn { width: 100%; margin-top: 0.75rem; }
.impl-fee { font-size: 0.78rem; color: var(--text-dim); text-align: center; margin-top: 0.5rem; }

/* ── Toggle ───────────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.toggle-label { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; transition: color 0.2s; }
.toggle-label.active { color: var(--white); font-weight: 700; }
.toggle { width: 48px; height: 26px; border-radius: 13px; background: var(--border); position: relative; cursor: pointer; transition: background 0.2s; }
.toggle.on { background: var(--violet); }
.toggle::after { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--white); position: absolute; top: 3px; left: 3px; transition: left 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.toggle.on::after { left: 25px; }

/* ── Stats ────────────────────────────────────────────── */
.stat-row { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin: 2.5rem 0; }
.stat { text-align: center; }
.stat-val { font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg, var(--violet), #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner { text-align: center; padding: 5rem 2rem; background: linear-gradient(135deg, rgba(91,33,182,0.15) 0%, var(--bg) 100%); position: relative; }
.cta-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent); }
.cta-banner h2 { color: var(--white); font-size: 1.85rem; margin-bottom: 0.75rem; font-weight: 800; }
.cta-banner p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── Forms ────────────────────────────────────────────── */
.form-card { max-width: 680px; margin: 2rem auto; padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: 0.4rem; font-size: 0.88rem; font-family: var(--font); background: var(--bg-input); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-light); }
.form-group select { appearance: none; }
.form-message { padding: 1.25rem; border-radius: var(--radius); margin-top: 1.25rem; font-size: 0.9rem; display: none; }
.form-message.success { display: block; background: rgba(16,185,129,0.08); color: var(--emerald); border: 1px solid rgba(16,185,129,0.2); }
.form-message.error { display: block; background: rgba(239,68,68,0.08); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* ── Stepper ──────────────────────────────────────────── */
.stepper { display: flex; justify-content: center; gap: 0; margin: 2rem 0; flex-wrap: wrap; }
.stepper-step { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.8rem; color: var(--text-dim); }
.stepper-step.active { color: var(--violet); font-weight: 600; }
.stepper-step .step-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; border: 1.5px solid var(--border); }
.stepper-step.active .step-num { background: var(--violet); color: var(--white); border-color: var(--violet); }
.stepper-step.done .step-num { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.stepper-line { width: 24px; height: 1px; background: var(--border); align-self: center; }

/* ── Divider ──────────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 3rem 0; }

/* ── Footer ───────────────────────────────────────────── */
.footer { text-align: center; padding: 2.5rem 2rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.78rem; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .section { padding: 3.5rem 1.5rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-row { gap: 1.5rem; }
  .stat-val { font-size: 1.75rem; }
  .nav-links { gap: 0.75rem; }
  .nav-links a { font-size: 0.75rem; }
  .stepper { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .stepper-line { display: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
