/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* =============================================
   LIGHT THEME (default)
   ============================================= */
:root {
  --bg-page: #FDFBFF;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-surface: #1E1B2E; /* matrix card always dark */

  --text-primary: #2D2B3D;
  --text-secondary: #7B7890;
  --text-muted: #A8A4B8;
  --text-heading: #2D2B3D;

  --accent: #9B8FE8;
  --accent-dim: #7B6FD4;
  --accent-light: #F0EEFF;
  --accent-bg: rgba(155, 143, 232, 0.06);
  --accent-text: white;

  --accent-gradient: linear-gradient(135deg, #9B8FE8, #7B6FD4);
  --accent-gradient-text: linear-gradient(135deg, #9B8FE8, #F4739E);
  --accent-shadow: rgba(155, 143, 232, 0.35);
  --accent-shadow-hover: rgba(155, 143, 232, 0.5);

  --header-bg: rgba(253, 251, 255, 0.8);
  --header-border: rgba(0, 0, 0, 0.04);
  --logo-color: #2D2B3D;

  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --input-border: #EDE9F6;
  --input-focus-shadow: rgba(155, 143, 232, 0.15);

  --card-shadow: 0 2px 20px rgba(45, 43, 61, 0.06);
  --card-shadow-hover: 0 8px 32px rgba(45, 43, 61, 0.12);
  --card-header-hover: rgba(155, 143, 232, 0.04);

  --badge-bg: #F0EEFF;
  --badge-color: #9B8FE8;
  --badge-border: transparent;

  --results-section-bg: #F9F8FE;
  --results-section-border: transparent;

  --blob-1: linear-gradient(135deg, rgba(254,205,211,0.5), rgba(253,230,138,0.3));
  --blob-2: linear-gradient(135deg, rgba(199,210,254,0.4), rgba(191,219,254,0.2));
  --blob-3: linear-gradient(135deg, rgba(167,243,208,0.3), rgba(253,230,138,0.2));
  --blob-blur: 120px;
  --blob-opacity: 0.25;

  --feature-pink: #FEE8F0;
  --feature-amber: #FFF5E0;
  --feature-green: #E6F7F0;
  --feature-blue: #E8F2FF;
  --feature-coral: #FEEAE4;
  --feature-violet: #F0EEFF;
  --feature-border: transparent;

  --demo-card-bg: #FFFFFF;
  --demo-date-color: #2D2B3D;
  --demo-label-bg: #F0EEFF;
  --demo-label-color: #7B7890;
  --demo-label-border: transparent;
  --demo-tooltip-bg: rgba(45, 43, 61, 0.95);

  --cta-bg: linear-gradient(135deg, #7B6FD4, #9B8FE8, #A78BFA);
  --cta-text: white;
  --cta-text-secondary: rgba(255, 255, 255, 0.85);
  --cta-input-border: rgba(255, 255, 255, 0.3);
  --cta-input-bg: rgba(255, 255, 255, 0.15);
  --cta-btn-bg: white;
  --cta-btn-color: #9B8FE8;
  --cta-btn-shadow: rgba(0, 0, 0, 0.15);
  --cta-glow: transparent;
  --cta-border: transparent;

  --footer-bg: transparent;
  --footer-border: rgba(0, 0, 0, 0.06);
  --footer-text: #7B7890;
  --footer-hover: #2D2B3D;

  --avatar-border: #FFFFFF;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* =============================================
   DARK THEME
   ============================================= */
[data-theme="dark"] {
  --bg-page: #0D0B14;
  --bg-card: #16131F;
  --bg-input: #211E30;

  --text-primary: #E8E4F0;
  --text-secondary: #9490A8;
  --text-muted: #6B6780;
  --text-heading: #FFFFFF;

  --accent: #D4A574;
  --accent-dim: #C8956C;
  --accent-light: rgba(212, 165, 116, 0.08);
  --accent-bg: rgba(212, 165, 116, 0.06);
  --accent-text: #0D0B14;

  --accent-gradient: linear-gradient(135deg, #C8956C, #D4A574);
  --accent-gradient-text: linear-gradient(135deg, #E8C49A, #C8956C);
  --accent-shadow: rgba(212, 165, 116, 0.3);
  --accent-shadow-hover: rgba(212, 165, 116, 0.45);

  --header-bg: rgba(13, 11, 20, 0.85);
  --header-border: rgba(212, 165, 116, 0.12);
  --logo-color: #E8C49A;

  --border: rgba(212, 165, 116, 0.12);
  --border-hover: rgba(212, 165, 116, 0.25);
  --input-border: rgba(212, 165, 116, 0.15);
  --input-focus-shadow: rgba(212, 165, 116, 0.15);

  --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
  --card-header-hover: rgba(212, 165, 116, 0.08);

  --badge-bg: rgba(212, 165, 116, 0.08);
  --badge-color: #D4A574;
  --badge-border: rgba(212, 165, 116, 0.15);

  --results-section-bg: rgba(212, 165, 116, 0.05);
  --results-section-border: rgba(212, 165, 116, 0.1);

  --blob-1: radial-gradient(circle, rgba(155, 143, 232, 0.4), rgba(123, 111, 212, 0.1));
  --blob-2: radial-gradient(circle, rgba(212, 165, 116, 0.3), rgba(200, 149, 108, 0.05));
  --blob-3: radial-gradient(circle, rgba(155, 143, 232, 0.25), transparent);
  --blob-blur: 120px;
  --blob-opacity: 0.3;

  --feature-pink: rgba(212, 165, 116, 0.06);
  --feature-amber: rgba(245, 176, 65, 0.06);
  --feature-green: rgba(94, 194, 160, 0.06);
  --feature-blue: rgba(110, 181, 255, 0.06);
  --feature-coral: rgba(244, 132, 95, 0.06);
  --feature-violet: rgba(155, 143, 232, 0.06);
  --feature-border: rgba(212, 165, 116, 0.12);

  --demo-card-bg: #16131F;
  --demo-date-color: #E8C49A;
  --demo-label-bg: rgba(212, 165, 116, 0.08);
  --demo-label-color: #D4A574;
  --demo-label-border: rgba(212, 165, 116, 0.15);
  --demo-tooltip-bg: rgba(13, 11, 20, 0.95);

  --cta-bg: linear-gradient(135deg, #1E1B2E, #251F38);
  --cta-text: #FFFFFF;
  --cta-text-secondary: #9490A8;
  --cta-input-border: rgba(212, 165, 116, 0.2);
  --cta-input-bg: rgba(212, 165, 116, 0.08);
  --cta-btn-bg: linear-gradient(135deg, #C8956C, #D4A574);
  --cta-btn-color: #0D0B14;
  --cta-btn-shadow: rgba(212, 165, 116, 0.3);
  --cta-glow: radial-gradient(ellipse at 50% 0%, rgba(212, 165, 116, 0.12), transparent 60%);
  --cta-border: rgba(212, 165, 116, 0.12);

  --footer-bg: #0D0B14;
  --footer-border: rgba(212, 165, 116, 0.12);
  --footer-text: #6B6780;
  --footer-hover: #D4A574;

  --avatar-border: #0D0B14;
}

/* =============================================
   BASE STYLES
   ============================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Floating Blobs === */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(var(--blob-blur));
  opacity: var(--blob-opacity);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.5s;
}
.blob--1 {
  width: 700px; height: 700px;
  background: var(--blob-1);
  top: -200px; right: -200px;
}
.blob--2 {
  width: 600px; height: 600px;
  background: var(--blob-2);
  bottom: 200px; left: -250px;
}
.blob--3 {
  width: 500px; height: 500px;
  background: var(--blob-3);
  bottom: -100px; right: 15%;
}

/* === Header === */
.header {
  position: relative;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(253,251,255,0.8);
  border-bottom: 1px solid rgba(155,143,232,0.08);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 1px 12px rgba(155,143,232,0.08);
}
[data-theme="dark"] .header {
  background: rgba(13,11,20,0.75);
  border-bottom-color: rgba(155,143,232,0.1);
}
.header .container {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--logo-color);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}
.logo__icon {
  color: var(--accent);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}
.logo:hover .logo__icon { transform: rotate(20deg) scale(1.1); }
.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nav__link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover {
  color: var(--text-primary);
  background: rgba(155,143,232,0.08);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(155,143,232,0.08);
  color: var(--accent);
}
.theme-toggle__icon--dark { display: inline; }
.theme-toggle__icon--light { display: none; }
[data-theme="dark"] .theme-toggle__icon--dark { display: none; }
[data-theme="dark"] .theme-toggle__icon--light { display: inline; }

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent-gradient);
  color: var(--accent-text);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.header__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-shadow);
}

/* === Hero === */
.hero {
  padding: 60px 0 80px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--badge-bg);
  color: var(--badge-color);
  border: 1px solid var(--badge-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  scroll-margin-top: 20px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-heading);
}
.hero__accent {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__text {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 460px;
}
.hero__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hero__form:hover {
  box-shadow: var(--card-shadow-hover);
}
.hero__inputs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 20px;
}
.hero__dot {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  padding-bottom: 6px;
  line-height: 1;
  user-select: none;
}
.input-group__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.input-group__field {
  width: 76px;
  padding: 14px 16px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s, transform 0.2s;
  outline: none;
}
.input-group__field--wide { width: 100px; }
.input-group__field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--input-focus-shadow);
  transform: translateY(-2px);
}
.input-group__field::placeholder {
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}
.btn--primary {
  width: 100%;
  background: var(--accent-gradient);
  color: var(--accent-text);
  box-shadow: 0 4px 20px var(--accent-shadow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-shadow-hover);
}
.btn--lg { padding: 18px 40px; font-size: 18px; }

/* Trust */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__avatars { display: flex; }
.hero__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
  border: 2px solid var(--avatar-border);
}
.hero__trust-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero__card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.hero__card--matrix {
  width: 300px; height: 320px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__matrix-svg { width: 260px; height: 260px; }
.hero__card--matrix-full {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  perspective: 800px;
}
[data-theme="dark"] .hero__card--matrix-full {
  background: transparent;
}
@keyframes matrixCardShadow {
  0%   { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(212,165,116,0.1); }
  25%  { box-shadow: 2px 14px 44px rgba(0,0,0,0.55), 0 0 40px rgba(212,165,116,0.15); }
  50%  { box-shadow: -1px 6px 36px rgba(0,0,0,0.45), 0 0 25px rgba(212,165,116,0.08); }
  75%  { box-shadow: -2px 12px 42px rgba(0,0,0,0.52), 0 0 35px rgba(212,165,116,0.12); }
  100% { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(212,165,116,0.1); }
}
@keyframes matrixFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.hero__matrix-svg-full {
  width: 100%;
  height: 100%;
  display: block;
  animation: matrixFloat 8s ease-in-out infinite;
  will-change: transform;
}
.hero__tooltip {
  position: absolute;
  background: rgba(30, 27, 46, 0.95);
  border: 1px solid rgba(200, 149, 108, 0.3);
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  max-width: 300px;
  line-height: 1.4;
  text-align: left;
}
.hero__tooltip.visible { opacity: 1; }

/* Matrix node styles */
.matrix-node { transition: filter 0.3s ease, transform 0.2s ease; transform-box: fill-box; transform-origin: center; }
.matrix-node:hover {
  filter: drop-shadow(0 0 8px rgba(200,149,108,0.5));
  transform: scale(1.15);
  animation: pulse-circle 1.5s ease-in-out infinite;
}
.hero__card--stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.hero__card--stat1 { bottom: 40px; left: -30px; }
.hero__card--stat2 { top: 20px; right: -20px; }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-icon--pink { background: var(--accent-light); }
.stat-icon--green { background: var(--accent-light); }
.stat-info__label { font-size: 12px; color: var(--text-secondary); }
.stat-info__value { font-size: 15px; font-weight: 700; color: var(--text-heading); }

/* Float animation */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim { animation: floaty 4s ease-in-out infinite; }
.float-anim--delay { animation-delay: 1.5s; }

/* === Section shared === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--badge-bg);
  color: var(--badge-color);
  border: 1px solid var(--badge-border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text-heading);
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* === Steps === */
.steps { padding: 80px 0; }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-card {
  position: relative;
  padding: 20px 24px 24px;
  text-align: center;
  overflow: hidden;
}
.step-card__bg-num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.07;
  position: absolute;
  top: -10px;
  right: 10px;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.step-card:hover .step-card__bg-num {
  opacity: 0.12;
}
.step-card__icon {
  margin-bottom: 20px;
  opacity: 0.5;
  transition: opacity 0.6s ease;
  position: relative;
  z-index: 1;
}
.step-card:hover .step-card__icon {
  opacity: 0.7;
}
.step-card__icon svg {
  color: var(--text-heading);
}
.step-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-heading);
}
.step-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Features === */
.features { padding: 80px 0; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  cursor: default;
  border: 1px solid var(--feature-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateY(0);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}
.feature-card--pink   { background: var(--feature-pink); }
.feature-card--amber  { background: var(--feature-amber); }
.feature-card--green  { background: var(--feature-green); }
.feature-card--blue   { background: var(--feature-blue); }
.feature-card--coral  { background: var(--feature-coral); }
.feature-card--violet { background: var(--feature-violet); }
.feature-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.6s ease, background 0.6s ease;
}
.feature-card:hover .feature-card__icon-wrap {
  transform: scale(1.05);
  background: rgba(255,255,255,0.9);
}
[data-theme="dark"] .feature-card__icon-wrap {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .feature-card:hover .feature-card__icon-wrap {
  background: rgba(255,255,255,0.12);
}
.feature-card__icon-wrap svg {
  color: var(--text-heading);
  opacity: 0.7;
}
.feature-card__icon-bare {
  margin-bottom: 16px;
  opacity: 0.55;
  transition: opacity 0.6s ease;
  min-height: 48px;
  display: flex;
  align-items: flex-end;
}
.feature-card:hover .feature-card__icon-bare {
  opacity: 0.75;
}
.feature-card__icon-bare svg {
  color: var(--text-heading);
}
.feature-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-heading);
}
.feature-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.feature-card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}
.feature-card__link:hover {
  color: var(--accent-hover, #6A5ACD);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Demo === */
.demo { padding: 80px 0; }
.demo__wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  transition: all 0.3s ease;
}
.demo__matrix-card {
  position: relative;
  background: var(--demo-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 16px;
  box-shadow: var(--card-shadow);
  max-width: 700px;
  width: 100%;
  transition: background 0.3s, border-color 0.3s, max-width 0.35s ease, flex 0.35s ease;
  flex: 1 1 auto;
}
.demo__wrapper.has-detail .demo__matrix-card {
  max-width: 50%;
  flex: 0 0 50%;
}
.demo__matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.demo__date-card {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}
.demo__date-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.demo__date-values {
  display: flex;
  align-items: center;
  gap: 4px;
}
.demo__date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent-light);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-xs);
  padding: 6px 12px 4px;
  min-width: 44px;
}
.demo__date-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
}
.demo__date-sub {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.demo__date-dot {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 12px;
}
@media (max-width: 480px) {
  .demo__date-num { font-size: 18px; }
  .demo__date-cell { padding: 4px 8px 3px; min-width: 36px; }
}
.demo__matrix-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--demo-label-color);
  background: var(--demo-label-bg);
  border: 1px solid var(--demo-label-border);
  padding: 4px 10px;
  border-radius: 50px;
}
.demo__matrix { width: 100%; height: auto; }
.demo__tooltip {
  position: absolute;
  background: var(--demo-tooltip-bg);
  border: 1px solid rgba(200, 149, 108, 0.3);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  white-space: normal;
  max-width: 340px;
  line-height: 1.5;
  text-align: left;
  transition: opacity 0.3s ease;
}
.demo__tooltip.visible { opacity: 1; }
.demo__tooltip.has-data { pointer-events: auto; max-width: 380px; }

/* Demo hint */
.demo__hint {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Demo detail panel */
.demo__detail {
  flex: 0 0 0%;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: flex 0.35s ease, max-width 0.35s ease, opacity 0.25s ease;
  display: flex;
}
.demo__detail.active {
  flex: 0 0 50%;
  max-width: 50%;
  opacity: 1;
}
.demo__detail-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-hover);
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.demo__detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.demo__detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.demo__detail-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-heading);
  flex: 1;
}
.demo__detail-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.demo__detail-close:hover { border-color: var(--accent); color: var(--accent); }
.demo__detail-body {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
}
.demo__detail-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}
.demo__detail-text p { margin-bottom: 14px; }
.demo__detail-text p:last-child { margin-bottom: 0; }
.demo__detail-section {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--results-section-bg);
  border: 1px solid var(--results-section-border);
  border-radius: var(--radius-sm);
}
.demo__detail-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent);
  margin-bottom: 8px;
}
.demo__detail-section-text {
  font-size: 14px; line-height: 1.6; color: var(--text-primary);
}
.demo__detail-section-text ul { list-style: none; padding: 0; margin: 0; }
.demo__detail-section-text li {
  position: relative; padding-left: 20px; margin-bottom: 6px;
}
.demo__detail-section-text li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}
.demo__detail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .demo__wrapper { flex-direction: column; align-items: center; }
  .demo__wrapper.has-detail .demo__matrix-card { max-width: 700px; flex: 1 1 auto; }
  .demo__detail.active { flex: 1 1 auto; max-width: 700px; width: 100%; }
  .demo__detail-inner { height: auto; max-height: 500px; }
}
@media (max-width: 768px) {
  .demo__detail-header { padding: 16px 20px; flex-wrap: wrap; }
  .demo__detail-body { padding: 20px; }
  .demo__detail-cta { flex-direction: column; gap: 12px; padding: 16px 20px; }
  .demo__detail-title { font-size: 17px; }
}

/* === Results / Grid Layout === */
.results { padding: 60px 0 80px; }
.results__groups { }

/* === Sidebar + Content Layout === */
.results__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  min-height: 500px;
}

/* --- Sidebar Navigation --- */
.results__sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.results__sidebar::-webkit-scrollbar {
  display: none;
}
.results__sidebar-group {
  margin-bottom: 4px;
}
.results__sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.results__sidebar-group-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.results__sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: all 0.15s;
  border-radius: var(--radius-xs, 8px);
  line-height: 1.35;
}
.results__sidebar-item:hover {
  background: var(--card-header-hover, rgba(124,94,207,0.04));
}
.results__sidebar-item.active {
  background: var(--accent-light);
  color: var(--accent);
}
.results__sidebar-item--locked {
  opacity: 0.55;
}
.results__sidebar-item--locked:hover {
  opacity: 0.8;
}
.results__sidebar-label {
  flex: 1;
  line-height: 1.3;
}
.results__sidebar-energy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.results__sidebar-lock {
  flex-shrink: 0;
  opacity: 0.4;
  width: 12px;
  height: 12px;
}

/* === V4: Netflix Horizontal Scroll === */
.v4-group { margin-bottom: 40px; }
.v4-group:last-child { margin-bottom: 0; }
.v4-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.v4-group-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-heading);
}
.v4-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.v4-scroll::-webkit-scrollbar { height: 6px; }
.v4-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.v4-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.v4-hcard {
  min-width: 250px;
  max-width: 250px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}
.v4-hcard:hover {
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
}
.v4-hcard-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.v4-hcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.v4-hcard-lock {
  color: var(--text-secondary);
  opacity: 0.5;
  flex-shrink: 0;
}
.v4-hcard-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.v4-hcard-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v4-hcard.active {
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
}
.v4-hcard--locked {
  opacity: 0.6;
}
.v4-hcard--locked:hover {
  opacity: 0.85;
}
.v4-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.v4-detail.active {
  max-height: 8000px;
  opacity: 1;
  margin-top: 16px;
}
.v4-detail-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-hover);
  overflow: hidden;
}
.v4-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.v4-detail-header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-right: 16px;
}
.v4-detail-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: 18px;
  font-weight: 800;
}
.v4-detail-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-heading);
}
.v4-detail-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.v4-detail-close {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.v4-detail-close:hover { border-color: var(--accent); color: var(--accent); }
.v4-detail-body {
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}
.v4-detail-text p { margin-bottom: 14px; }
.v4-detail-text p:last-child { margin-bottom: 0; }
.v4-detail-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 20px !important;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(123,97,255,0.07), rgba(123,97,255,0.02));
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sections grid (2-column layout like matrix2) */
.v4-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.v4-sections-grid--few { grid-template-columns: 1fr; }
.v4-detail-sect {
  padding: 20px 22px;
  background: var(--results-section-bg);
  border: 1px solid var(--results-section-border);
  border-radius: var(--radius-sm);
}
.v4-sect--main { grid-column: 1 / -1; }
.v4-detail-sect-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent); margin-bottom: 10px;
}
.v4-detail-sect-text { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.v4-detail-sect-text p { margin: 0 0 12px; }
.v4-detail-sect-text p:last-child { margin-bottom: 0; }
.v4-sect--main .v4-detail-sect-text { column-count: 2; column-gap: 28px; }
.v4-sect--main .v4-detail-sect-text p { break-inside: avoid; }
.v4-sect--no-cols .v4-detail-sect-text { column-count: 1 !important; }
.v4-detail-sect ul, .v4-detail-sect ol { margin: 10px 0; padding-left: 0; list-style: none; }
.v4-detail-sect li {
  position: relative; padding-left: 18px; margin-bottom: 5px;
  font-size: 14px; line-height: 1.5; color: var(--text-primary);
}
.v4-detail-sect li::first-letter { text-transform: uppercase; }
.v4-detail-sect li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}
.v4-detail-sect li:last-child { margin-bottom: 0; }

/* Preamble explanation in plus/minus sections */
.v4-sect-preamble {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  padding-bottom: 10px;
  margin-bottom: 12px !important;
  border-bottom: 1px solid var(--border);
}

/* Important notice callout */
.v4-sect--notice {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent-light, rgba(123,97,255,0.08)), rgba(123,97,255,0.03));
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.5;
  color: var(--accent);
}

/* Blurred (teaser) sections for free circles — gradient blur */
.v4-sect--blurred {
  position: relative;
}
.v4-sect--blurred .v4-detail-sect-text {
  position: relative;
  user-select: none;
  pointer-events: none;
}
.v4-sect--blurred .v4-detail-sect-text::after {
  content: '';
  position: absolute;
  top: 0; left: -4px; right: -4px; bottom: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, rgba(0,0,0,0.4) 28px, black 56px);
  mask-image: linear-gradient(to bottom, transparent 0px, rgba(0,0,0,0.4) 28px, black 56px);
}
/* Full blur — no gradient, blur from first line */
.v4-sect--blurred-full .v4-detail-sect-text {
  position: relative;
  user-select: none;
  pointer-events: none;
}
.v4-sect--blurred-full .v4-detail-sect-text::after {
  content: '';
  position: absolute;
  top: 0; left: -4px; right: -4px; bottom: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.v4-sect-unlock {
  grid-column: 1 / -1;
  text-align: center;
  padding: 8px 0 4px;
}
.v4-sect-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.v4-sect-unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,107,196,0.35);
}

.v4-detail-locked {
  padding: 32px 28px;
  text-align: center;
}
.v4-detail-locked-icon {
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.v4-detail-locked-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.v4-detail-locked-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.v4-detail-locked-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}
.v4-detail-locked-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,94,207,0.3);
}
.v4-group-header .icon-svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* --- Content Panel --- */
.results__content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow-y: auto;
  transition: opacity 0.25s ease;
}
.results__content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.results__content-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-heading);
}
.results__content-energy-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--badge-border);
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.results__content-num {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* Intro quote */
.results__content-intro {
  padding: 12px 20px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
}

/* Sections grid */
.results__content-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.results__content-sections--few .results__section-text {
  column-count: 1 !important;
}
.results__content-sections--few .results__section--main {
  grid-column: auto;
}

/* Detail sections (plus/minus/tasks/recommendations) */
.results__section {
  padding: 24px 28px;
  background: var(--results-section-bg);
  border: 1px solid var(--results-section-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.results__section:last-child { margin-bottom: 0; }
.results__section--main { grid-column: 1 / -1; }
.results__section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--accent);
  margin-bottom: 8px;
}
.results__section-text {
  font-size: 14px; line-height: 1.55; color: var(--text-primary);
}
.results__section-text p { margin-bottom: 14px; }
.results__section-text p:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .results__section--main .results__section-text {
    column-count: 2;
    column-gap: 32px;
  }
  .results__section--main .results__section-text p {
    break-inside: avoid;
  }
}

/* List styles in results */
.results__section-text ul, .results__section-text ol {
  margin: 12px 0; padding-left: 0; list-style: none;
}
.results__section-text li {
  position: relative; padding-left: 20px; margin-bottom: 6px;
  font-size: 14px; line-height: 1.5;
}
.results__section-text li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.7;
}
.results__section-text li:last-child {
  margin-bottom: 0;
}

/* === Freemium: counter === */
.results__counter {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 12px 20px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--badge-border);
}
.results__counter-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.results__counter-link:hover { text-decoration: underline; }

/* Teaser section with fade */
.results__section--teaser {
  position: relative;
  overflow: hidden;
  max-height: 160px;
}
.results__section-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--results-section-bg, #f8f6ff));
  pointer-events: none;
}

/* Locked overlay */
.results__locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--results-section-bg, #f8f6ff);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  gap: 12px;
  margin-top: 12px;
}
.results__locked-icon {
  color: var(--accent);
  opacity: 0.5;
}
.results__locked-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
}
.results__locked-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.5;
}
.results__locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--accent-gradient);
  color: var(--accent-text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-shadow);
}
.results__locked-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-shadow-hover);
}

/* Empty state */
.results__content-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 15px;
  gap: 12px;
}
.results__content-empty svg {
  opacity: 0.3;
}

/* Enhanced hero tooltip with "more" link */
.hero__tooltip.has-data { pointer-events: auto; max-width: 360px; }
.hero__tooltip-more {
  display: inline-block; margin-top: 6px; color: #D4A574;
  font-size: 12px; cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}

/* === Blog === */
.blog { padding: 80px 0; }
.blog__content {
  max-width: 760px;
  margin: 0 auto;
}
.blog__article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--card-shadow);
  transition: background 0.3s, border-color 0.3s;
}
.blog__article p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.blog__article h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-heading);
  margin-top: 32px;
  margin-bottom: 12px;
}
.blog__article h3:first-of-type {
  margin-top: 28px;
}
.blog__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.blog__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}
.blog__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 4px;
}

@media (max-width: 768px) {
  .blog__article { padding: 28px 24px; }
  .blog__article h3 { font-size: 20px; }
}
@media (max-width: 480px) {
  .blog__article { padding: 24px 20px; }
  .blog__article p,
  .blog__list li { font-size: 15px; }
  .blog__article h3 { font-size: 18px; margin-top: 24px; }
}

/* === CTA === */
.cta { padding: 80px 0; }
.cta__card {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: var(--cta-text);
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cta-glow);
  pointer-events: none;
}
.cta__bg-symbol {
  position: absolute;
  top: -30px;
  right: -20px;
  font-size: 200px;
  opacity: 0.06;
  color: white;
  pointer-events: none;
  line-height: 1;
}
.cta__title {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 12px;
  position: relative;
}
.cta__text {
  font-size: 17px;
  color: var(--cta-text-secondary);
  margin-bottom: 32px;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 36px;
  position: relative;
}
.cta__stat {
  text-align: center;
}
.cta__stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.cta__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.cta__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}
.cta__button {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: var(--accent);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
}
.cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
[data-theme="dark"] .cta__button {
  background: rgba(255,255,255,0.95);
}

/* === Footer === */
.footer {
  padding: 24px 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  transition: background 0.3s;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__copy {
  font-size: 13px;
  color: var(--footer-text);
}
.footer__legal {
  font-size: 11px;
  color: var(--footer-text);
  opacity: 0.6;
}
.footer__email {
  font-size: 12px;
  color: var(--footer-text);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer__email:hover { opacity: 1; }
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 13px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--footer-hover); }

/* === Checkout / Pricing === */
.checkout-hero { padding: 120px 0 40px; text-align: center; }
.checkout-hero__title { font-family: var(--font-display); font-size: 40px; color: var(--text-heading); margin-bottom: 12px; }
.checkout-hero__text { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

.pricing { padding: 40px 0 60px; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pricing__grid--two { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
.pricing__grid--three { grid-template-columns: repeat(3, 1fr); max-width: 1020px; margin: 0 auto; }

.pricing__card {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; box-shadow: var(--card-shadow);
  cursor: pointer; transition: all 0.3s; position: relative;
}
.pricing__card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.pricing__card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--card-shadow-hover); }
.pricing__card--featured { transform: scale(1.04); }
.pricing__card--featured:hover { transform: scale(1.04) translateY(-4px); }

.pricing__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--accent); color: var(--accent-text);
  border-radius: 50px; font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  text-transform: uppercase; white-space: nowrap;
}
.pricing__name { font-size: 18px; font-weight: 700; color: var(--text-heading); margin-bottom: 8px; }
.pricing__price { font-family: var(--font-display); font-size: 42px; color: var(--text-heading); margin-bottom: 4px; }
.pricing__price span { font-size: 18px; font-weight: 600; color: var(--text-secondary); }
.pricing__desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }

.pricing__features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.pricing__features li { position: relative; padding: 8px 0 8px 28px; font-size: 14px; color: var(--text-primary); border-bottom: 1px solid var(--border); }
.pricing__features li:last-child { border-bottom: none; }
.pricing__features li::before { content: '✓'; position: absolute; left: 4px; color: var(--accent); font-weight: 700; font-size: 15px; }
.pricing__features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing__features li.disabled::before { content: '—'; color: var(--text-muted); }

.pricing__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 14px 24px; border: 2px solid var(--border); border-radius: 50px;
  background: none; font-family: var(--font); font-size: 15px; font-weight: 700;
  color: var(--text-primary); cursor: pointer; transition: all 0.2s;
}
.pricing__btn:hover { border-color: var(--accent); color: var(--accent); }
.pricing__card.selected .pricing__btn {
  background: var(--accent-gradient); color: var(--accent-text);
  border-color: transparent; box-shadow: 0 4px 16px var(--accent-shadow);
}

.checkout { padding: 0 0 80px; }
.checkout__card {
  max-width: 560px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 40px; box-shadow: var(--card-shadow);
}
.checkout__title { font-family: var(--font-display); font-size: 24px; color: var(--text-heading); margin-bottom: 24px; text-align: center; }
.checkout__selected {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--accent-light); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 14px; color: var(--text-primary);
}
.checkout__selected-name { font-weight: 700; }
.checkout__selected-price { font-weight: 800; color: var(--accent); font-size: 16px; }

.checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.checkout__row--full { grid-template-columns: 1fr; }
.checkout__field { display: flex; flex-direction: column; gap: 6px; }
.checkout__label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.checkout__input {
  padding: 12px 16px; border: 2px solid var(--input-border); border-radius: var(--radius-sm);
  background: var(--bg-input); font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--text-primary); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--input-focus-shadow); }
.checkout__input::placeholder { color: var(--text-muted); }
.checkout__date-row { display: flex; gap: 8px; align-items: center; }
.checkout__date-input { width: 72px; text-align: center; }
.checkout__date-input--wide { width: 96px; }
.checkout__date-sep { color: var(--text-muted); font-size: 18px; }

.checkout__user-info {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--card-bg); border: 2px solid var(--input-border); border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.checkout__user-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-gradient); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.checkout__user-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.checkout__user-email { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.checkout__submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px 28px; margin-top: 24px; border: none; border-radius: 50px;
  background: var(--accent-gradient); color: var(--accent-text);
  font-family: var(--font); font-size: 17px; font-weight: 700;
  cursor: pointer; transition: all 0.25s; box-shadow: 0 4px 20px var(--accent-shadow);
}
.checkout__submit:hover { transform: translateY(-2px); box-shadow: 0 6px 28px var(--accent-shadow-hover); }
.checkout__submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.checkout__note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; }

.checkout__consents { max-width: 560px; margin: 12px auto 0; padding: 0 40px; }
.checkout__consent {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: 11px; color: var(--text-muted);
  cursor: pointer; line-height: 1.4;
}
.checkout__consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px; margin-top: 0;
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
  background: var(--bg-input);
  flex-shrink: 0; cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.checkout__consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkout__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 0.5px;
  width: 4px; height: 8px;
  border: solid var(--accent-text);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.checkout__consent a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; max-width: 420px; width: 90%; text-align: center; box-shadow: var(--card-shadow-hover); }
.modal__icon { font-size: 48px; margin-bottom: 16px; }
.modal__title { font-family: var(--font-display); font-size: 22px; color: var(--text-heading); margin-bottom: 8px; }
.modal__text { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }
.modal__btn { padding: 12px 28px; border: none; border-radius: 50px; background: var(--accent-gradient); color: var(--accent-text); font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; }

@media (max-width: 768px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing__grid--two { max-width: 400px; }
  .pricing__grid--three { grid-template-columns: 1fr; max-width: 400px; }
  .pricing__card--featured { transform: none; }
  .pricing__card--featured:hover { transform: translateY(-4px); }
  .checkout__card { padding: 28px 24px; }
  .checkout__row { grid-template-columns: 1fr; }
  .checkout-hero__title { font-size: 32px; }
}
@media (max-width: 480px) {
  .checkout-hero { padding: 100px 0 32px; }
  .checkout-hero__title { font-size: 26px; }
  .checkout__date-input { width: 60px; }
  .checkout__date-input--wide { width: 80px; }
}

/* === Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Feature cards: override animate-on-scroll transition */
.feature-card.animate-on-scroll {
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.6s ease;
}
.feature-card.animate-on-scroll.visible {
  transform: translateY(0);
}
.feature-card.animate-on-scroll.visible:hover {
  transform: translateY(-4px);
}

/* === Matrix SVG styles === */
.matrix-circle {
  cursor: pointer;
  transition: opacity 0.4s, filter 0.4s, transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.matrix-circle:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(155,143,232,0.4));
  animation: pulse-circle 1.5s ease-in-out infinite;
}
@keyframes pulse-circle {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.22); }
}

/* Circles without descriptions — no interactive effects */
.matrix-circle.no-desc {
  cursor: default !important;
  pointer-events: none;
}
.matrix-circle.no-desc:hover {
  transform: none;
  filter: none;
  animation: none;
}

/* Pulse animation on sidebar hover */
.matrix-circle.pulsing {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-circle-sidebar 1s ease-in-out infinite;
}
@keyframes pulse-circle-sidebar {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(124, 94, 207, 0.6)); }
}

/* Highlighted circle glow when section is selected */
.matrix-circle.highlighted circle {
  filter: drop-shadow(0 0 10px rgba(124, 94, 207, 0.7));
}

/* SVG dimming when a section is selected */
svg.has-selection .matrix-circle {
  opacity: 0.25;
  filter: grayscale(0.7);
}
svg.has-selection .matrix-circle.highlighted {
  opacity: 1;
  filter: none;
}
svg.has-selection > line,
svg.has-selection > polygon,
svg.has-selection > circle,
svg.has-selection > .edge-energy,
svg.has-selection > .age-label {
  transition: opacity 0.4s;
  opacity: 0.3;
}

/* Highlighted age ring dot */
svg.has-selection > .edge-energy.highlighted,
svg.has-selection > .age-label.highlighted {
  opacity: 1;
}
.edge-energy.highlighted text {
  font-size: 11px !important;
  font-weight: 800 !important;
  fill: rgba(124,94,207,0.95) !important;
}
.age-label.highlighted text {
  font-weight: 800 !important;
  fill: rgba(124,94,207,0.85) !important;
}
@keyframes age-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
.edge-energy.highlighted {
  transform-box: fill-box;
  transform-origin: center;
  animation: age-glow 1.5s ease-in-out infinite;
}

/* Year forecast panel */
.results__forecast {
  background: linear-gradient(135deg, rgba(124,94,207,0.08) 0%, rgba(168,130,255,0.05) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124,94,207,0.1);
}
.results__forecast-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.results__forecast-header:hover {
  background: rgba(124,94,207,0.06);
}
.results__forecast-icon {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  padding: 4px;
  background: rgba(124,94,207,0.12);
  border-radius: 8px;
}
.results__forecast-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}
.results__forecast-short {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 12px;
}
.results__forecast-chevron {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  transition: transform 0.2s;
}
.results__forecast.open .results__forecast-chevron {
  transform: rotate(180deg);
}
.results__forecast-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.results__forecast.open .results__forecast-body {
  max-height: 2000px;
}
.results__forecast-decades {
  display: flex;
  gap: 4px;
  padding: 4px 16px 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.results__forecast-decade {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.results__forecast-decade:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.results__forecast-decade.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.results__forecast-decade.has-current {
  position: relative;
}
.results__forecast-decade.has-current::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--bg-card);
}
.results__forecast-subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 12px;
}
.results__forecast-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.results__forecast-btn:hover {
  border-color: var(--accent);
  background: rgba(124,107,196,0.08);
}
.results__forecast-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}
.results__forecast-pills {
  display: flex;
  gap: 3px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.results__forecast-pill {
  min-width: 28px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.results__forecast-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.results__forecast-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.results__forecast-pill.is-current {
  box-shadow: 0 0 0 2px rgba(39,174,96,0.4);
}
.results__forecast-info {
  text-align: center;
  padding: 0 16px 8px;
}
.results__forecast-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.results__forecast-energy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.results__forecast-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin: 0 auto 14px;
  padding: 0 24px;
  max-width: 560px;
}
.results__forecast-hint {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.7;
  text-align: center;
  margin: 0 auto 10px;
  padding: 0 16px;
}
.results__forecast-current {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.results__forecast-content {
  margin: 0 16px 16px;
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--results-section-bg, rgba(124,94,207,0.04));
  border: 1px solid var(--results-section-border, rgba(124,94,207,0.1));
  border-radius: var(--radius-sm, 12px);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.results__forecast-content p {
  margin: 0 0 10px 0;
}
.results__forecast-content p:last-child {
  margin-bottom: 0;
}
.results__forecast-content ul {
  margin: 6px 0 10px 0;
  padding-left: 20px;
}
.results__forecast-content li {
  margin-bottom: 4px;
}

/* Forecast locked states */
.results__forecast-decade.locked {
  opacity: 0.45;
}
.results__forecast-decade.locked:hover {
  opacity: 0.7;
}
.results__forecast-decade.locked.active {
  background: var(--text-muted);
  border-color: var(--text-muted);
  opacity: 0.6;
}
.results__forecast-pill.locked {
  opacity: 0.4;
}
.results__forecast-pill.locked:hover {
  opacity: 0.65;
}
.results__forecast-pill.locked.active {
  background: var(--text-muted);
  border-color: var(--text-muted);
  opacity: 0.55;
}
.results__forecast-locked {
  text-align: center;
  padding: 24px 16px 32px;
}
.results__forecast-locked-icon {
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.results__forecast-locked-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.results__forecast-locked-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 420px;
  margin: 0 auto 14px;
}
.results__forecast-locked-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}
.results__forecast-locked-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,94,207,0.3);
}

/* === Client Matrix Section === */
.client-matrix {
  padding: 80px 0 40px;
  text-align: center;
}
.client-matrix .section-header {
  margin-bottom: 32px;
}
.client-matrix__date {
  display: inline-flex;
  margin-top: 16px;
}
.client-matrix__date-values {
  display: flex;
  align-items: center;
  gap: 6px;
}
.client-matrix__date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--accent-light);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-xs);
  padding: 8px 16px 6px;
  min-width: 52px;
}
.client-matrix__date-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.client-matrix__date-sub {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 3px;
}
.client-matrix__date-dot {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent);
  padding-bottom: 14px;
}
.client-matrix__card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}
.client-matrix__svg {
  width: 100%;
  height: auto;
}
.client-matrix__tooltip {
  position: absolute;
  background: rgba(30, 28, 45, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 280px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  text-align: left;
}
.client-matrix__tooltip.visible {
  opacity: 1;
}
/* Overlay on matrix */
.client-matrix__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.6) 60%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 20;
}
[data-theme="dark"] .client-matrix__overlay {
  background: radial-gradient(ellipse at center, rgba(30,28,45,0.9) 0%, rgba(30,28,45,0.6) 60%, transparent 100%);
}
.client-matrix__overlay--visible {
  opacity: 1;
}
.client-matrix__overlay--fade-out {
  opacity: 0;
}
.client-matrix__overlay-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  transform: scale(0.8);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.client-matrix__overlay--visible .client-matrix__overlay-text {
  transform: scale(1);
}
.client-matrix__overlay-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}
.client-matrix__overlay--visible .client-matrix__overlay-sub {
  opacity: 1;
  transform: translateY(0);
}

/* Matrix spin-reveal animation */
@keyframes matrixSpin {
  0%   { transform: scale(0.7) rotate(-180deg); opacity: 0.3; filter: blur(8px); }
  40%  { transform: scale(1.05) rotate(10deg); opacity: 1; filter: blur(0); }
  60%  { transform: scale(0.98) rotate(-3deg); }
  80%  { transform: scale(1.01) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.hero-matrix--spinning {
  animation: matrixSpin 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Hero ready overlay */
.hero__ready-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}
.hero__ready-overlay.visible {
  animation: readyFadeInOut 3s ease forwards;
}
@keyframes readyFadeInOut {
  0%   { opacity: 0; transform: scale(0.9); }
  15%  { opacity: 1; transform: scale(1); }
  75%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}
.hero__ready-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  background: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(155,143,232,0.15);
}
.hero__ready-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
}
[data-theme="dark"] .hero__ready-text {
  background: var(--bg-card);
}
[data-theme="dark"] .hero__ready-sub {
  background: var(--bg-card);
}

/* Hero scroll button (appears after calculation) */
.hero__scroll-wrap {
  text-align: center;
  height: 56px;
  margin-top: 8px;
}
.hero__scroll-wrap .hero__scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--accent-gradient);
  color: var(--accent-text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px var(--accent-shadow);
  opacity: 0;
  transform: translateY(12px);
}
.hero__scroll-wrap.visible .hero__scroll-btn {
  animation: scrollBtnAppear 0.5s ease both;
}
.hero__scroll-wrap .hero__scroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--accent-shadow-hover);
}
@keyframes scrollBtnAppear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__visual { order: -1; }
  .hero__content { text-align: center; }
  .hero__text { margin: 0 auto 32px; }
  .hero__trust { justify-content: center; }
  .hero__inputs { justify-content: center; }
  .nav { display: none; }
}

@media (max-width: 768px) {
  .results__layout { flex-direction: column; }
  .results__sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    max-height: 200px;
    overflow-y: auto;
  }
  .results__sidebar-group { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 12px; margin-bottom: 4px; }
  .results__sidebar-group-title { width: 100%; padding: 4px 8px; }
  .results__sidebar-item { width: auto; padding: 6px 14px; border-radius: 20px; font-size: 12px; border: 1px solid var(--border); }
  .results__sidebar-item.active { border-color: var(--accent); }
  .results__sidebar-item.active::before { display: none; }
  .results__content { padding: 20px; }
  .results__content-sections { grid-template-columns: 1fr; }
  .v4-hcard { min-width: 220px; max-width: 220px; padding: 16px; }
  .v4-detail-header { padding: 16px 20px; }
  .v4-detail-body { padding: 16px 20px; }
  .v4-sections-grid { grid-template-columns: 1fr; }
  .v4-sect--main .v4-detail-sect-text { column-count: 1; }
  .v4-group-title { font-size: 18px; }
  .hero__title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .steps__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__card--stat { display: none; }
  .cta__card { padding: 40px 24px; }
  .cta__title { font-size: 28px; }
  .footer__inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 60px; }
  .hero__title { font-size: 28px; }
  .hero__form { padding: 18px 16px; }
  .input-group__field { width: 60px; padding: 10px 10px; font-size: 18px; }
  .input-group__field--wide { width: 80px; }
  .hero__dot { font-size: 22px; }
  .results__content { padding: 16px; }
  .results__content-title { font-size: 18px; }
  .features__grid { grid-template-columns: 1fr; }
  .cta__inputs { flex-direction: column; }
  .cta__input, .cta__input--wide { width: 100%; }
  .header__cta { display: none; }
  .client-matrix { padding: 60px 0 30px; }
  .client-matrix__card { padding: 10px; }
  .client-matrix__date-num { font-size: 20px; }
  .client-matrix__date-cell { padding: 6px 10px 4px; min-width: 40px; }
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(253, 251, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border, rgba(0,0,0,0.06));
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
[data-theme="dark"] .cookie-banner {
  background: rgba(13, 11, 20, 0.95);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #7B7890);
  max-width: 720px;
}
.cookie-banner__text a {
  color: var(--accent, #9B8FE8);
  text-decoration: none;
}
.cookie-banner__text a:hover {
  text-decoration: underline;
}
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 8px 24px;
  border: none;
  border-radius: 8px;
  background: var(--accent, #9B8FE8);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cookie-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(155, 143, 232, 0.3);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
    text-align: center;
  }
  .cookie-banner__text { font-size: 12px; }
  .cookie-banner__btn { width: 100%; padding: 10px; }
}
