:root {
  --primary: #002552;
  --primary-dark: #001838;
  --accent: #b51020;
  --accent-dark: #8c0c18;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #1c2836;
  --muted: #5a6a7a;
  --border: #e2e7ee;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

nav {
  background: white;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; line-height: 0; text-decoration: none; flex: 0 0 auto; }
.logo img { height: 86px; width: auto; display: block; }
.brand-lockup {
  background: white;
  text-align: center;
  padding: 2.75rem 1.5rem 2.25rem;
  border-top: 1px solid var(--border);
}
.brand-lockup img { width: min(280px, 72vw); height: auto; }
.nav-links { display: flex; gap: 1.35rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: white; }
.btn-secondary { background: white; color: var(--primary); border: 1px solid white; }
.btn-secondary:hover { background: #f7f4f4; }
.btn-small { padding: 0.4rem 0.8rem; background: var(--primary); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }

.hero {
  background: var(--primary);
  color: white;
  padding: 4.25rem 1.5rem 4.5rem;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}
.hero h1 {
  font-size: 2.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero p { font-size: 1.15rem; max-width: 680px; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.88); }
.hero-buttons { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.features, .proof, .cta, .pricing-section { padding: 3.5rem 0; }
.features h2, .proof h2, .cta h2 {
  text-align: center;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.features h2::after, .proof h2::after, .cta h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--accent);
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: white;
  padding: 1.15rem 1.15rem 1.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 37, 82, 0.05);
}
.feature-card h3 { margin-bottom: 0.5rem; color: var(--primary); }
.feature-card p { color: var(--muted); margin-bottom: 0.85rem; }
.feature-card a { color: var(--accent); font-weight: 600; text-decoration: none; }
.feature-card a:hover { color: var(--accent-dark); }

.proof { text-align: center; padding-top: 0.5rem; }
.proof p { max-width: 680px; margin: 0 auto; font-size: 1.08rem; color: var(--text); }

.cta { background: white; text-align: center; border-top: 1px solid var(--border); }
.cta p { color: var(--muted); }
.contact-form {
  max-width: 480px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-form input, .contact-form select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: white;
}
.contact-form input:focus, .contact-form select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}
.contact-form .btn-primary { margin-top: 0.25rem; }

.demo-header {
  background: white;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.demo-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.demo-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 70vh;
}
.demo-sidebar {
  width: 220px;
  background: white;
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
}
.demo-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}
.demo-tab.active, .demo-tab:hover { background: #f1f5f9; color: var(--primary); font-weight: 600; }
.demo-label {
  margin: 0.4rem 0 0;
  padding: 0.85rem 1.5rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-main { flex: 1; padding: 2rem; min-width: 0; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #e8eef5;
}
.feature-shot {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top left;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--primary); }

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.data-table { width: 100%; border-collapse: collapse; background: white; }
.data-table th, .data-table td { padding: 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #f8fafc; font-weight: 600; }
.badge { padding: 0.25rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge.success { background: #dcfce7; color: #166534; }
.badge.warning { background: #fef3c7; color: #92400e; }

.lottery-result { margin-top: 1.5rem; padding: 1rem; background: #f0fdf4; border-radius: 6px; display: none; }
.profile-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.score-summary { background: #f1f5f9; padding: 1rem; border-radius: 6px; }
.timeline-item { padding: 0.75rem 0; border-left: 3px solid var(--primary); padding-left: 1rem; margin-bottom: 0.5rem; }
.note-card { background: white; border: 1px solid var(--border); padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.note-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.price-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  text-align: center;
}
.price-card.featured { border: 2px solid var(--primary); transform: scale(1.03); }
.price { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; text-align: left; margin-top: 1.25rem; }
.price-card li { padding: 0.4rem 0; border-bottom: 1px solid #f1f5f9; }
.bundle-note { text-align: center; margin-top: 3rem; background: white; padding: 1.5rem; border-radius: 8px; }

footer { background: var(--primary); color: white; text-align: center; padding: 1.6rem 1.5rem; margin-top: 0; }
footer p { color: rgba(255, 255, 255, 0.88); font-size: 0.95rem; }

@media (max-width: 768px) {
  .demo-container { flex-direction: column; }
  .demo-sidebar { width: 100%; display: flex; overflow-x: auto; }
  .demo-tab, .demo-label { white-space: nowrap; flex: 0 0 auto; }
  .demo-label { align-self: center; padding-top: 0.6rem; }
  .hero h1 { font-size: 1.8rem; }
  .logo img { height: 68px; }
  .nav-links { display: none; }
}