:root {
  /* Colors - Executive, calm palette */
  --bg-main: #F5F7FA;
  --bg-alt: #E9EEF5;
  --bg-card: rgba(255, 255, 255, 0.88);
  --accent-primary: #1F2A44;
  --accent-secondary: #1FAF9A;
  --text-main: #24324A;
  --text-muted: #6B7280;
  --border-glass: rgba(31, 42, 68, 0.12);
  --pulse-glow: 0 12px 28px rgba(31, 42, 68, 0.10);

  /* Colors - Refined Deep Navy Theme Overrides */
  --dark-bg: #0f172a;
  --dark-bg-alt: #16213a;
  --dark-text: #f8fafc;
  --dark-text-muted: #cbd5e1;
  --dark-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

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

/* Theme Utilities */
.theme-dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  --bg-card: rgba(17, 24, 39, 0.7);
  --text-main: var(--dark-text);
  --text-muted: var(--dark-text-muted);
  --border-glass: var(--dark-border);
}

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

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

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

/* Mobile Nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--pulse-glow);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(31, 42, 68, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid rgba(31, 42, 68, 0.16);
}

.theme-dark .btn-secondary {
  color: var(--dark-text);
  border-color: var(--dark-border);
}

.btn-secondary:hover {
  background: rgba(31, 42, 68, 0.06);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 12rem 0 8rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 45%;
  z-index: -1;
  opacity: 0.6;
}

.hero-visual img {
  width: 100%;
  mask-image: linear-gradient(to left, black, transparent);
}

.hero-content {
  max-width: 650px;
}

h1 {
  font-size: 3.75rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #1F2A44, #6B7280);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-dark h1 {
  background: linear-gradient(to right, #fff, #CBD5E1);
  -webkit-background-clip: text;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 8rem 0;
}

.section-tag {
  color: var(--accent-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: block;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.feature-card {
  padding: 3rem;
  transition: var(--transition);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

/* Report Section */
.report-promo {
  display: grid;
  grid-template-columns: 38% 62%;
  gap: 3rem;
  align-items: center;
}

.report-content {
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.report-preview-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border: 1px solid rgba(18, 59, 109, 0.12);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
}

.report-preview-shell-dark {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(22, 33, 58, 0.92));
  border-color: rgba(255,255,255,0.08);
  color: var(--dark-text);
}

.report-preview-shell-dark .section-tag,
.report-preview-shell-dark .report-preview-title,
.report-preview-shell-dark .report-preview-subtitle,
.report-preview-shell-dark .report-score-label,
.report-preview-shell-dark .report-score-value,
.report-preview-shell-dark .report-score-note,
.report-preview-shell-dark .report-tile-label,
.report-preview-shell-dark .report-tile-value,
.report-preview-shell-dark .report-tile-note,
.report-preview-shell-dark .report-change-label,
.report-preview-shell-dark .report-change-copy {
  color: inherit;
}

.report-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.report-preview-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.35rem;
}

.report-preview-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.report-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-preview-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.report-score-badge {
  width: 76px;
  height: 76px;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #123b6d, #0f766e);
  color: white;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(18, 59, 109, 0.22);
}

.report-score-label,
.report-tile-label,
.report-change-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--text-muted);
}

.report-score-value,
.report-tile-value {
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 0.15rem;
}

.report-score-note,
.report-tile-note,
.report-change-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.report-tile {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 1rem;
}

.report-preview-shell-dark .report-tile {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.report-change-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.report-change-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-glass);
}

.report-preview-shell-dark .report-change-item {
  border-top-color: rgba(255,255,255,0.08);
}

.report-change-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(18, 59, 109, 0.08);
  color: #123b6d;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-change-pill.warn {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.report-preview-shell-dark .report-change-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.report-preview-shell-dark .report-change-pill.warn {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.popular {
  border: 2px solid var(--accent-primary);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  transform: translateY(-50%);
  background: var(--accent-primary);
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 0.5rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.contact-form-container {
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

/* Message Boxes */
.msg-box {
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.msg-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.msg-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.msg-box p {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 6rem 0 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
  .report-promo,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(240, 247, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: 0.4s ease-in-out;
    border-left: 1px solid var(--border-glass);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .nav-links.nav-active {
    right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  .contact-panel {
    padding: 2rem 1.5rem !important;
  }

  .contact-panel h2 {
    font-size: 1.75rem;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }
}

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