/* =========================================================
   RESET & BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: #1f2933;
  background-color: #f8fafc;
  line-height: 1.65;
  letter-spacing: 0.1px;
}

/* =========================================================
   VARIABLES
========================================================= */

:root {
  --brand-primary: #0f4c81;
  --brand-secondary: #f59e0b;
  --brand-dark: #0b2e4a;
  --brand-light: #eef4f9;

  --text-dark: #1f2933;
  --text-muted: #4b5563;

  --border-light: #e5e7eb;

  --radius: 8px;
  --shadow-soft: 0 8px 28px rgba(0,0,0,0.06);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3, h4 {
  margin-top: 0;
  color: var(--brand-dark);
  line-height: 1.25;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.6px;
}

h2 {
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p,
li {
  max-width: 65ch;
}

p {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42ch;
}

/* =========================================================
   LINKS
========================================================= */

a {
  color: var(--brand-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.text-link {
  font-weight: 600;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1.25rem;
  margin: 0 auto;
}

.container.narrow {
  max-width: 760px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: 1fr;
}

/* =========================================================
   SECTIONS & RHYTHM
========================================================= */

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

.why,
.final-cta,
.brands {
  background: #ffffff;
}

.pillars,
.education,
.hero {
  background: var(--brand-light);
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15,76,129,0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-secondary:hover {
  background: var(--brand-primary);
  color: #fff;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.main-nav ul {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.75rem;
}

.header-cta {
  margin-left: auto;
}

/* =========================================================
   HERO
========================================================= */

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-proof ul {
  list-style: none;
  padding: 0;
}

.hero-proof li {
  margin-bottom: 0.6rem;
  font-weight: 500;
}

/* =========================================================
   TRUST BAR
========================================================= */

.trust-bar {
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 0.9rem;
}

/* =========================================================
   CARDS & PANELS
========================================================= */

.pillar,
.brand-card,
.product-summary {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   PRODUCT DETAIL
========================================================= */

.product-gallery img {
  width: 100%;
  border-radius: var(--radius);
}

.product-summary {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.product-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-price .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* =========================================================
   COMPARISON TABLES
========================================================= */

.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #f1f5f9;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: #fafafa;
}

/* =========================================================
   CTA SECTIONS
========================================================= */

.final-cta {
  text-align: center;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  background: var(--brand-dark);
  color: #e5e7eb;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

.site-footer h4 {
  color: #fff;
}

.site-footer a {
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 768px) {

  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.05rem; }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-nav ul {
    display: flex;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .btn-large {
    width: 100%;
  }
}
