.home-root {
  /* Background */
  --home-bg: #f8fbff;

  /* Wave layers */
  --home-wave1: rgba(148, 190, 224, 0.1);
  --home-wave2: rgba(174, 207, 234, 0.07);
  --home-wave3: rgba(197, 220, 240, 0.05);

  /* Typography */
  --home-title-color: #0f1e3c;
  --home-accent-color: #0a4a8c;
  --home-sub-color: #4b5e7a;
  --home-feat-title: #0f1e3c;
  --home-feat-desc: #5b6f8a;

  /* Primary button */
  --home-btn-bg: #0a4a8c;
  --home-btn-hover: #073a70;
  --home-btn-color: #ffffff;
  --home-btn-shadow: rgba(10, 74, 140, 0.28);
  --home-btn-shadow-h: rgba(10, 74, 140, 0.44);

  /* Secondary button (homeD) */
  --home-btn2-bg: #ffffff;
  --home-btn2-border: #c5d8f0;
  --home-btn2-color: #0a4a8c;
  --home-btn2-hover: #eef4fb;

  /* Cards (homeA) */
  --home-card-bg: #ffffff;
  --home-card-border: rgba(197, 216, 240, 0.7);
  --home-card-shadow: rgba(10, 74, 140, 0.06);
  --home-card-shadow-h: rgba(10, 74, 140, 0.14);

  /* Icon circles */
  --home-icon-bg: #eef4fb;
  --home-icon-border: #c5d8f0;
  --home-icon-bg-h: #d6e8f8;

  /* Orbit diagram (homeB) */
  --orbit-ring: rgba(10, 74, 140, 0.18);
  --orbit-center-bg: #0a4a8c;
  --orbit-center-text: #ffffff;
  --orbit-line: #0a4a8c;
  --orbit-node-bg: #ffffff;
  --orbit-node-border: #c5d8f0;
  --orbit-node-shadow: rgba(10, 74, 140, 0.1);

  /* Chart card (homeC) */
  --card-bg: #ffffff;
  --card-border: rgba(197, 216, 240, 0.7);
  --card-shadow: rgba(10, 74, 140, 0.08);
  --chart-line: #0a4a8c;
  --chart-dot: #0a4a8c;
  --chart-grid: rgba(10, 74, 140, 0.07);
  --chart-label: #8aa0bc;
  --period-bg: #f0f6ff;
  --period-border: #c5d8f0;
  --period-text: #0a4a8c;

  /* Stat counters (homeC) */
  --stat-icon-bg: #eef4fb;
  --stat-icon-color: #0a4a8c;
  --stat-icon-border: #c5d8f0;
  --stat-value-color: #0f1e3c;
  --stat-label-color: #5b6f8a;

  /* Feature strip (homeD) */
  --feat-bg: #ffffff;
  --feat-border: rgba(197, 216, 240, 0.7);
  --feat-shadow: rgba(10, 74, 140, 0.07);
  --feat-icon-bg: #eef4fb;
  --feat-icon-color: #0a4a8c;
  --feat-icon-border: #c5d8f0;
  --feat-label-color: #0f1e3c;
  --feat-sub-color: #5b6f8a;

  /* Floating badges (homeD) */
  --float-bg: #ffffff;
  --float-border: rgba(197, 216, 240, 0.8);
  --float-shadow: rgba(10, 74, 140, 0.14);
  --float-icon-color: #0a4a8c;

  /* Decorative dots (homeC, homeD) */
  --deco-dot: rgba(10, 74, 140, 0.12);
}

/* ============================================================
   CSS VARIABLES — dark mode
   ============================================================ */
[data-theme='dark'] .home-root {
  /* Background */
  --home-bg: #0d1628;

  --home-wave1: rgba(10, 74, 140, 0.06);
  --home-wave2: rgba(26, 95, 168, 0.04);
  --home-wave3: rgba(15, 55, 110, 0.02);

  /* Typography */
  --home-title-color: #e2e8f0;
  --home-accent-color: #5aadff;
  --home-sub-color: #94a8c0;
  --home-feat-title: #e2e8f0;
  --home-feat-desc: #8aa0bc;

  /* Primary button */
  --home-btn-bg: #1a5fa8;
  --home-btn-hover: #0d4a8a;
  --home-btn-color: #e0f0ff;
  --home-btn-shadow: rgba(90, 173, 255, 0.25);
  --home-btn-shadow-h: rgba(90, 173, 255, 0.4);

  /* Secondary button (homeD) */
  --home-btn2-bg: #16213e;
  --home-btn2-border: #2d3f5e;
  --home-btn2-color: #5aadff;
  --home-btn2-hover: #1a2744;

  /* Cards (homeA) */
  --home-card-bg: rgba(16, 28, 55, 0.75);
  --home-card-border: rgba(45, 80, 130, 0.45);
  --home-card-shadow: rgba(0, 0, 0, 0.35);
  --home-card-shadow-h: rgba(90, 173, 255, 0.12);

  /* Icon circles */
  --home-icon-bg: #1a2744;
  --home-icon-border: #3a4a6b;
  --home-icon-bg-h: #243358;

  /* Orbit diagram (homeB) */
  --orbit-ring: rgba(90, 173, 255, 0.15);
  --orbit-center-bg: #1a5fa8;
  --orbit-center-text: #e0f0ff;
  --orbit-line: #5aadff;
  --orbit-node-bg: #16213e;
  --orbit-node-border: #2d3748;
  --orbit-node-shadow: rgba(0, 0, 0, 0.3);

  /* Chart card (homeC) */
  --card-bg: #16213e;
  --card-border: #2d3748;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --chart-line: #5aadff;
  --chart-dot: #5aadff;
  --chart-grid: rgba(90, 173, 255, 0.08);
  --chart-label: #5b6f8a;
  --period-bg: #1a2744;
  --period-border: #2d3f5e;
  --period-text: #5aadff;

  /* Stat counters (homeC) */
  --stat-icon-bg: #1a2744;
  --stat-icon-color: #5aadff;
  --stat-icon-border: #2d3f5e;
  --stat-value-color: #e2e8f0;
  --stat-label-color: #8aa0bc;

  /* Feature strip (homeD) */
  --feat-bg: #16213e;
  --feat-border: #2d3748;
  --feat-shadow: rgba(0, 0, 0, 0.25);
  --feat-icon-bg: #1a2744;
  --feat-icon-color: #5aadff;
  --feat-icon-border: #2d3f5e;
  --feat-label-color: #e2e8f0;
  --feat-sub-color: #8aa0bc;

  /* Floating badges (homeD) */
  --float-bg: #16213e;
  --float-border: #2d3f5e;
  --float-shadow: rgba(0, 0, 0, 0.3);
  --float-icon-color: #5aadff;

  /* Decorative dots (homeC, homeD) */
  --deco-dot: rgba(90, 173, 255, 0.1);
}

/* ============================================================
   ROOT LAYOUT — shared base for all home variants
   ============================================================ */
.home-root {
  position: relative;
  min-height: calc(100vh - 110px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  background: var(--home-bg);
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

/* ============================================================
   WAVE BACKGROUND
   ============================================================ */
.wave-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave-1 {
  fill: var(--home-wave1);
  -webkit-animation: waveBreath 20s ease-in-out infinite alternate;
          animation: waveBreath 20s ease-in-out infinite alternate;
}

.wave-2 {
  fill: var(--home-wave2);
  animation: waveBreath 25s ease-in-out infinite alternate-reverse;
}

.wave-3 {
  fill: var(--home-wave3);
  -webkit-animation: waveBreath 30s ease-in-out infinite alternate;
          animation: waveBreath 30s ease-in-out infinite alternate;
}

@-webkit-keyframes waveBreath {
  0% {
    -webkit-transform: translateY(0px) scaleX(1);
            transform: translateY(0px) scaleX(1);
  }
  50% {
    -webkit-transform: translateY(12px) scaleX(1.02);
            transform: translateY(12px) scaleX(1.02);
  }
  100% {
    -webkit-transform: translateY(-10px) scaleX(0.98);
            transform: translateY(-10px) scaleX(0.98);
  }
}

@keyframes waveBreath {
  0% {
    -webkit-transform: translateY(0px) scaleX(1);
            transform: translateY(0px) scaleX(1);
  }
  50% {
    -webkit-transform: translateY(12px) scaleX(1.02);
            transform: translateY(12px) scaleX(1.02);
  }
  100% {
    -webkit-transform: translateY(-10px) scaleX(0.98);
            transform: translateY(-10px) scaleX(0.98);
  }
}

/* ============================================================
   SHARED ANIMATIONS — used across all variants
   ============================================================ */
@-webkit-keyframes fadeSlideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(22px);
            transform: translateY(22px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(22px);
            transform: translateY(22px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@-webkit-keyframes fadeSlideDown {
  from {
    opacity: 0;
    -webkit-transform: translateY(-14px);
            transform: translateY(-14px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    -webkit-transform: translateY(-14px);
            transform: translateY(-14px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@-webkit-keyframes fadeSlideLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-28px);
            transform: translateX(-28px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-28px);
            transform: translateX(-28px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@-webkit-keyframes fadeSlideRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(28px);
            transform: translateX(28px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(28px);
            transform: translateX(28px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

/* ============================================================
   SHARED DECORATIVE DOTS (homeC, homeD)
   ============================================================ */
.deco-dots {
  position: absolute;
  display: grid;
  gap: 10px;
  pointer-events: none;
  z-index: 0;
}

.deco-dots-br {
  bottom: 40px;
  right: 40px;
  grid-template-columns: repeat(5, 1fr);
}

.deco-dots-tl {
  top: 60px;
  left: 40px;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.6;
}

.dot-item {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--deco-dot);
}

@media (max-width: 500px) {
  .deco-dots {
    display: none;
  }
}

/* ============================================================
   SHARED GET STARTED BUTTON — base style used in all variants
   ============================================================ */
.get-started-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  padding: 0 32px;
  height: 46px;
  background: var(--home-btn-bg);
  color: var(--home-btn-color);
  border: none;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: all 0.22s ease;
  transition: all 0.22s ease;
  -webkit-box-shadow: 0 4px 18px var(--home-btn-shadow);
          box-shadow: 0 4px 18px var(--home-btn-shadow);
}

.get-started-btn:hover {
  background: var(--home-btn-hover);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 8px 26px var(--home-btn-shadow-h);
          box-shadow: 0 8px 26px var(--home-btn-shadow-h);
}

.get-started-btn:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

