/* ─── Landing Page — Mobile First ─────────────────── */

/* Utility */
.text-primary { color: var(--color-primary); }

/* Container */
.home-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Page wrapper — no sidebar/nav */
.home-page {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ─── Section base ───────────────────────────────── */
.home-section {
  padding: var(--space-10) 0;
}

.home-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-2);
}

.home-section__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* ─── Hero ───────────────────────────────────────── */
.home-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-5);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(22,163,74,0.08) 0%, transparent 60%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}

.home-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  max-width: 1200px;
  width: 100%;
}

.home-hero__text {
  text-align: center;
  animation: homeHeroFadeUp 0.8s ease-out both;
}

.home-hero__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: rgba(22,163,74,0.1);
  border: 1px solid rgba(22,163,74,0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.home-hero__title {
  margin-bottom: var(--space-3);
}

.home-hero__logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.home-hero__tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.home-hero__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

.home-hero__cta {
  width: 100%;
  max-width: 280px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-md);
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-hero__cta:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(22,163,74,0.3);
}

.home-hero__cta-secondary {
  width: 100%;
  max-width: 280px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-md);
  font-weight: 600;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.home-hero__cta-secondary:hover {
  transform: scale(1.02);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero graphic */
.home-hero__graphic {
  display: none;
}

.home-graphic {
  position: relative;
  width: 340px;
  height: 340px;
}

.home-graphic__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
}

.home-graphic__ring--1 {
  width: 280px; height: 280px;
  top: 30px; left: 30px;
  border-color: rgba(22,163,74,0.3);
  animation: homeSpin 20s linear infinite;
}

.home-graphic__ring--2 {
  width: 200px; height: 200px;
  top: 70px; left: 70px;
  border-color: rgba(22,163,74,0.2);
  border-style: dashed;
  animation: homeSpin 15s linear infinite reverse;
}

.home-graphic__ring--3 {
  width: 120px; height: 120px;
  top: 110px; left: 110px;
  border-color: rgba(22,163,74,0.15);
  animation: homeSpin 10s linear infinite;
}

.home-graphic__bar {
  position: absolute;
  border-radius: 4px;
  background: var(--color-primary);
}

.home-graphic__bar--1 {
  width: 60px; height: 8px;
  top: 166px; left: 40px;
  opacity: 0.6;
  animation: homeBarPulse 3s ease-in-out infinite;
}

.home-graphic__bar--2 {
  width: 80px; height: 8px;
  top: 166px; left: 220px;
  opacity: 0.4;
  animation: homeBarPulse 3s ease-in-out 1s infinite;
}

.home-graphic__bar--3 {
  width: 8px; height: 60px;
  top: 50px; left: 166px;
  opacity: 0.5;
  animation: homeBarPulse 3s ease-in-out 0.5s infinite;
}

.home-graphic__dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}

.home-graphic__dot--1 {
  top: 30px; left: 170px;
  opacity: 0.8;
  animation: homeDotFloat 4s ease-in-out infinite;
}

.home-graphic__dot--2 {
  top: 170px; left: 310px;
  opacity: 0.6;
  animation: homeDotFloat 4s ease-in-out 1.5s infinite;
}

.home-graphic__dot--3 {
  top: 290px; left: 140px;
  opacity: 0.5;
  animation: homeDotFloat 4s ease-in-out 3s infinite;
}

.home-graphic__pulse {
  position: absolute;
  width: 60px; height: 60px;
  top: 140px; left: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,0.4) 0%, transparent 70%);
  animation: homePulse 2.5s ease-in-out infinite;
}

/* ─── Features ───────────────────────────────────── */
.home-features {
  background: var(--color-bg);
}

.home-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.home-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
}

.home-feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 16px rgba(22,163,74,0.08);
  transform: translateY(-2px);
}

.home-feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(22,163,74,0.1);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.home-feature-card__title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.home-feature-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ─── Steps ──────────────────────────────────────── */
.home-steps {
  background: var(--color-surface);
}

.home-steps__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.home-step {
  text-align: center;
  padding: var(--space-5);
  position: relative;
}

.home-step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.home-step__title {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.home-step__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.home-step__connector {
  width: 2px;
  height: 32px;
  background: var(--color-border);
}

/* ─── Stats ──────────────────────────────────────── */
.home-stats {
  background: var(--color-bg);
}

.home-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.home-stat {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.home-stat__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.home-stat__number--text {
  font-size: 1.5rem;
}

.home-stat__suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.home-stat__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ─── CTA Section ────────────────────────────────── */
.home-cta {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(22,163,74,0.12) 0%, transparent 60%),
    var(--color-surface);
  padding: var(--space-10) var(--space-5);
}

.home-cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.home-cta__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.home-cta__btn {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  font-weight: 700;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-cta__btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 24px rgba(22,163,74,0.3);
}

/* ─── Footer ─────────────────────────────────────── */
.home-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.home-footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.home-footer__logo {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-text);
}

.home-footer__links {
  display: flex;
  gap: var(--space-5);
}

.home-footer__links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.home-footer__links a:hover {
  color: var(--color-primary);
}

.home-footer__copy {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ─── Scroll animations ─────────────────────────── */
.home-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.home-animate--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Keyframes ──────────────────────────────────── */
@keyframes homeHeroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes homeSpin {
  to { transform: rotate(360deg); }
}

@keyframes homeBarPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

@keyframes homeDotFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes homePulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.4); opacity: 0.1; }
}

/* ─── Desktop (>=1024px) ─────────────────────────── */
@media (min-width: 1024px) {

  .home-section {
    padding: 80px 0;
  }

  .home-section__title {
    font-size: 2rem;
  }

  .home-section__subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: 48px;
  }

  /* Hero */
  .home-hero {
    min-height: 100vh;
    padding: 80px 40px;
  }

  .home-hero__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .home-hero__text {
    text-align: left;
    flex: 1;
    max-width: 560px;
  }

  .home-hero__logo {
    font-size: 3.5rem;
  }

  .home-hero__tagline {
    font-size: 1.75rem;
  }

  .home-hero__subtitle {
    font-size: var(--font-size-lg);
    margin-left: 0;
    margin-right: 0;
  }

  .home-hero__actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .home-hero__cta,
  .home-hero__cta-secondary {
    width: auto;
    max-width: none;
  }

  .home-hero__graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 400px;
    animation: homeHeroFadeUp 1s ease-out 0.3s both;
  }

  .home-graphic {
    width: 400px;
    height: 400px;
  }

  .home-graphic__ring--1 { width: 340px; height: 340px; top: 30px; left: 30px; }
  .home-graphic__ring--2 { width: 240px; height: 240px; top: 80px; left: 80px; }
  .home-graphic__ring--3 { width: 140px; height: 140px; top: 130px; left: 130px; }
  .home-graphic__bar--1  { top: 196px; left: 40px; width: 70px; }
  .home-graphic__bar--2  { top: 196px; left: 270px; width: 90px; }
  .home-graphic__bar--3  { top: 50px; left: 196px; height: 70px; }
  .home-graphic__dot--1  { top: 30px; left: 200px; }
  .home-graphic__dot--2  { top: 200px; left: 370px; }
  .home-graphic__dot--3  { top: 340px; left: 160px; }
  .home-graphic__pulse   { top: 170px; left: 170px; }

  /* Features */
  .home-features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .home-feature-card {
    padding: var(--space-6);
  }

  .home-feature-card__title {
    font-size: var(--font-size-lg);
  }

  .home-feature-card__desc {
    font-size: var(--font-size-md);
  }

  /* Steps */
  .home-steps__grid {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .home-step {
    flex: 1;
    max-width: 280px;
  }

  .home-step__connector {
    width: 60px;
    height: 2px;
    margin-top: 44px;
    background: var(--color-border);
  }

  /* Stats */
  .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .home-stat {
    padding: var(--space-6);
  }

  .home-stat__number {
    font-size: 2.5rem;
  }

  .home-stat__label {
    font-size: var(--font-size-sm);
  }

  /* CTA */
  .home-cta__title {
    font-size: 2rem;
  }

  .home-cta__subtitle {
    font-size: var(--font-size-lg);
  }

  .home-cta__btn {
    padding: var(--space-4) 48px;
    font-size: var(--font-size-lg);
  }

  /* Footer */
  .home-footer {
    padding: var(--space-8) 0;
  }

  .home-footer__content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ─── Very small screens ─────────────────────────── */
@media (max-width: 359px) {
  .home-hero__logo { font-size: 2rem; }
  .home-hero__tagline { font-size: 1.1rem; }
  .home-stats__grid { grid-template-columns: 1fr; }
}
