/* ═══════════════════════════════════════════════════════
   PTE Core Canada — Light Red Theme
   band9pte.com.au/ptecore
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand */
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-light: #FEE2E2;
  --red-50: #FEF2F2;
  --red-glow: rgba(220, 38, 38, 0.15);

  /* Canada accent */
  --maple: #E8173A;

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-alt: #F8F9FB;
  --bg-hero: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 50%, #FFF5F5 100%);

  /* Cards */
  --card: #FFFFFF;
  --card-border: #E8ECF1;
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 32px rgba(220, 38, 38, 0.12);

  /* Text */
  --heading: #1A1A2E;
  --text: #4A4A68;
  --text-muted: #8B8DA3;

  /* Accents */
  --gold: #D97706;
  --green: #059669;
  --blue: #2563EB;

  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--red-dark); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-banner-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.nav-brand-text span {
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: var(--red-50);
}

.nav-back {
  font-size: 12px;
  color: var(--text-muted) !important;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 6px 14px !important;
}

.nav-back:hover {
  border-color: var(--red);
  color: var(--red) !important;
  background: var(--red-50) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── HERO ── */
.hero {
  background: var(--bg-hero);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🍁';
  position: absolute;
  font-size: 22rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--heading);
  margin-bottom: 1.25rem;
}

.hero h1 .red {
  color: var(--red);
}

.hero h1 .maple {
  color: var(--maple);
}

.hero-desc {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.25);
}

.btn-white {
  background: white;
  color: var(--red);
  border: 2px solid var(--card-border);
}

.btn-white:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 17px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* ── TRUST BADGES ── */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.trust-item .icon {
  width: 36px;
  height: 36px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.card-accent {
  border-left: 3px solid var(--red);
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── GRID ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── CLB CALCULATOR ── */
.clb-calculator {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.clb-header {
  text-align: center;
  margin-bottom: 2rem;
}

.clb-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.clb-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.clb-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.clb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clb-field label {
  font-weight: 600;
  font-size: 13px;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.clb-field label .emoji {
  font-size: 16px;
}

.clb-field input[type="number"],
.clb-field input[type="range"] {
  width: 100%;
}

.clb-field input[type="number"] {
  padding: 12px 14px;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  transition: all 0.2s;
  -moz-appearance: textfield;
}

.clb-field input[type="number"]::-webkit-inner-spin-button,
.clb-field input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

.clb-field input[type="number"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.clb-field .score-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.clb-results {
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.clb-results-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: center;
}

.clb-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.clb-result-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
}

.clb-result-item .skill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.clb-result-item .level {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.clb-result-item .level-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.clb-overall {
  text-align: center;
  padding: 1.25rem;
  background: var(--red);
  border-radius: var(--radius-sm);
  color: white;
}

.clb-overall .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.clb-overall .value {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.clb-overall .desc {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

.clb-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--red-50);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.clb-note .note-icon {
  flex-shrink: 0;
  font-size: 16px;
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.stat-item:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── TASK TYPE GRID ── */
.task-section-header {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.task-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.task-card.featured {
  border-left: 3px solid var(--red);
  background: var(--red-50);
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.task-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--heading);
}

.task-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── PILLS / BADGES ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-red {
  background: var(--red-light);
  color: var(--red);
}

.pill-green {
  background: #D1FAE5;
  color: #059669;
}

.pill-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.pill-gold {
  background: #FEF3C7;
  color: #D97706;
}

.pill-unique {
  background: var(--red);
  color: white;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--red);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '🍁';
  position: absolute;
  font-size: 14rem;
  opacity: 0.08;
  right: -2rem;
  top: -2rem;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-white {
  background: white;
  color: var(--red);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* ── FAQ ── */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: rgba(220, 38, 38, 0.2);
}

.faq-q {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-q:hover {
  background: var(--bg-alt);
}

.faq-icon {
  font-size: 20px;
  color: var(--red);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: var(--heading);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-banner-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.9;
}

.footer-brand-sub {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: white;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* ── WHAT IS PTE CORE ── */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.explainer-card {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.explainer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(220, 38, 38, 0.2);
}

.explainer-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.explainer-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.explainer-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── EXPRESS ENTRY INFO ── */
.ee-info {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.ee-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--heading);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ee-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--card-border);
}

.ee-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text);
}

.ee-table tr:last-child td {
  border-bottom: none;
}

.ee-table .highlight {
  color: var(--red);
  font-weight: 700;
  font-family: var(--mono);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out both;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .trust-row {
    gap: 1rem;
  }

  .trust-item {
    font-size: 13px;
  }

  .section {
    padding: 3rem 0;
  }

  .clb-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .clb-results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .clb-calculator {
    padding: 1.5rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .explainer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .task-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .clb-inputs {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .explainer-grid {
    grid-template-columns: 1fr;
  }

  .clb-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* ── FOUR MODULE CARDS ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.module-card {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.module-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 10px 36px rgba(220, 38, 38, 0.12);
  transform: translateY(-4px);
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--red-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  transition: background 0.2s;
}

.module-card:hover .module-icon {
  background: var(--red-light);
}

.module-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}

.module-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.module-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  padding: 0.5rem 0;
  border-top: 1px solid var(--card-border);
  margin-top: 0.5rem;
  transition: gap 0.2s, color 0.2s;
}

.module-link:hover {
  gap: 8px;
  color: var(--red-dark);
}

.module-link.coming-soon {
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}
