:root {
  --color-bg: #0a1628;
  --color-bg-alt: #0f1f38;
  --color-text: #eef2f7;
  --color-text-muted: #a8b6c9;
  --color-accent: #2f6fed;
  --color-accent-hover: #529bff;
  --color-blue-light: #1d4e89;
  --color-success: #22c55e;
  --color-danger: #e63946;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.2;
}

h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 32px; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }

p { color: var(--color-text-muted); }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.hero {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  padding: 100px 0;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-subhead {
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(47, 111, 237, 0.12);
  border: 1px solid rgba(47, 111, 237, 0.35);
  color: var(--color-accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.highlight {
  color: var(--color-accent-hover);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent-hover);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.eyebrow {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent-hover);
  margin-bottom: 12px;
}

.what-we-do {
  padding: 80px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.col-card {
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.how-it-works {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: 20px;
}

.final-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--color-bg-alt);
}

.final-cta h2 {
  margin-bottom: 32px;
}

.site-footer {
  padding: 40px 0;
  text-align: center;
}

.footer-inner .logo {
  display: block;
  margin-bottom: 12px;
}

.footer-inner p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.legal-page {
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .legal-updated {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.25rem;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a {
  color: var(--color-accent-hover);
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--color-accent-hover);
  text-decoration: none;
  font-weight: 600;
}

.calculator {
  padding: 80px 0;
}

.calculator-subhead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

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

.calculator-inputs {
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
}

.input-group {
  margin-bottom: 28px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.input-value {
  color: var(--color-accent);
}

.input-group input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}

.calculator-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.output-card {
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.output-label {
  color: var(--color-text-muted);
  font-weight: 600;
}

.output-value {
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
}

.output-card-loss .output-value {
  color: var(--color-danger);
}

.output-card-gain {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.output-card-gain .output-value {
  color: var(--color-success);
}

.output-card-large .output-value {
  font-size: 1.8rem;
}

.calculator-cta {
  text-align: center;
  margin-top: 40px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline {
  padding: 80px 0;
}

.timeline-track {
  position: relative;
  max-width: 700px;
  margin: 40px auto 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  width: 46%;
  padding: 24px;
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 32px;
}

.timeline-step-left {
  margin-right: 54%;
  text-align: right;
}

.timeline-step-right {
  margin-left: 54%;
  text-align: left;
}

.timeline-step-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 1.05rem;
  color: var(--color-text);
  font-weight: 600;
}

.comparison {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 40px auto 0;
}

.comparison-card {
  border-radius: 12px;
  padding: 32px;
}

.comparison-card-without {
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-card-with {
  background: rgba(47, 111, 237, 0.08);
  border: 1px solid rgba(47, 111, 237, 0.35);
  box-shadow: 0 0 40px rgba(47, 111, 237, 0.12);
}

.comparison-card h3 {
  margin-bottom: 20px;
}

.comparison-card ul {
  list-style: none;
}

.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
}

.comparison-icon {
  flex-shrink: 0;
  font-weight: 800;
}

.comparison-card-without .comparison-icon {
  color: var(--color-danger);
}

.comparison-card-with .comparison-icon {
  color: var(--color-accent-hover);
}

.comparison-card-with li {
  color: var(--color-text);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px 32px 32px;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-fallback {
  text-align: center;
  color: var(--color-text-muted);
}

.modal-fallback a {
  color: var(--color-accent-hover);
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .calculator-grid { grid-template-columns: 1fr; }
  .output-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding: 60px 0; }
  .what-we-do, .how-it-works, .calculator, .faq, .final-cta { padding: 56px 0; }
  .nav-links { display: none; }
  .hero-stats { gap: 32px; }
  .timeline-track::before { left: 12px; }
  .timeline-step,
  .timeline-step-left,
  .timeline-step-right {
    width: 100%;
    margin-right: 0;
    margin-left: 36px;
    text-align: left;
  }
  .comparison-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 32px 20px 24px; }
  .footer-links { flex-wrap: wrap; }
  .legal-page { padding: 56px 0; }
}
