/* Theme tokens — matched to EndurerAuth */
.HomeDark {
  --home-bg: #0f1117;
  --home-bg-alt: #1a1d27;
  --home-surface: #1a1d27;
  --home-surface-hover: #242836;
  --home-border: #2e3345;
  --home-border-hover: rgba(46, 51, 69, 0.8);
  --home-text: #e8eaf0;
  --home-text-secondary: #9298ad;
  --home-text-muted: #5d6380;
  --home-accent: #00d6b9;
  --home-accent-hover: #00b89c;
  --home-accent-subtle: rgba(0, 214, 185, 0.12);
}

.HomeLight {
  --home-bg: #f4f9f8;
  --home-bg-alt: #ffffff;
  --home-surface: #ffffff;
  --home-surface-hover: #edf5f3;
  --home-border: #cddeda;
  --home-border-hover: rgba(205, 222, 218, 0.8);
  --home-text: #141d1b;
  --home-text-secondary: #4a5c58;
  --home-text-muted: #7a8e89;
  --home-accent: #00b89c;
  --home-accent-hover: #009e86;
  --home-accent-subtle: rgba(0, 214, 185, 0.08);
}

/* Section label */
.HomeSectionLabel {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-accent);
  margin-bottom: 0.25rem;
}

/* Accent text */
.HomeAccent {
  color: var(--home-accent);
}

/* Hero */
.HomeHero {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  text-align: center;
  padding: 0 clamp(24px, 6vw, 120px);
  background-color: var(--home-bg);
}

.HomeHeroContent {
  position: relative;
  z-index: 2;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.HomeHeroBadge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--home-accent);
  border: 1px solid var(--home-accent-subtle);
  background: var(--home-accent-subtle);
  border-radius: 100px;
  padding: 0.35rem 1rem;
}

.HomeHero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--home-text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.HomeHeroSubtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--home-text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

.HomeHeroActions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Buttons */
.HomeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  text-decoration: none;
}

.HomeButton:hover {
  transform: translateY(-1px);
}

.HomeButtonPrimary {
  background-color: var(--home-accent);
  color: #ffffff;
}

.HomeButtonPrimary:hover {
  background-color: var(--home-accent-hover);
  box-shadow: 0 4px 16px var(--home-accent-subtle);
}

.HomeButtonGhost {
  background-color: transparent;
  color: var(--home-text);
  border: 1px solid var(--home-border);
}

.HomeButtonGhost:hover {
  border-color: var(--home-border-hover);
  background-color: var(--home-surface);
}

/* Features */
.HomeFeatures {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  background-color: var(--home-bg-alt);
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 120px);
}

.HomeFeaturesInner {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.HomeFeatures h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--home-text);
  text-align: center;
}

.HomeFeaturesGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.HomeFeatureCard {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.HomeFeatureCard:hover {
  border-color: var(--home-border-hover);
  background: var(--home-surface-hover);
}

.HomeFeatureIcon {
  width: 36px;
  height: 36px;
  color: var(--home-accent);
}

.HomeFeatureIcon svg {
  width: 100%;
  height: 100%;
}

.HomeFeatureCard h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--home-text);
}

.HomeFeatureCard p {
  font-size: 0.88rem;
  color: var(--home-text-muted);
  line-height: 1.6;
}

/* Services */
.HomeServices {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  background-color: var(--home-bg);
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 120px);
}

.HomeServicesInner {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.HomeServices h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--home-text);
  text-align: center;
}

.HomeServicesGrid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  overflow: hidden;
}

.HomeServiceCard {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--home-surface);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid var(--home-border);
}

.HomeServiceCard:last-child {
  border-bottom: none;
}

.HomeServiceCard:hover {
  background: var(--home-surface-hover);
}

.HomeServiceIcon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--home-accent-subtle);
  color: var(--home-accent);
  padding: 8px;
}

.HomeServiceIcon svg {
  width: 100%;
  height: 100%;
}

.HomeServiceCardContent {
  flex: 1;
  min-width: 0;
}

.HomeServiceCardContent h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--home-text);
  margin-bottom: 0.2rem;
}

.HomeServiceCardContent p {
  font-size: 0.88rem;
  color: var(--home-text-muted);
  line-height: 1.5;
}

.HomeServiceArrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--home-text-muted);
  transition: color 0.2s, transform 0.2s;
}

.HomeServiceArrow svg {
  width: 100%;
  height: 100%;
}

.HomeServiceCard:hover .HomeServiceArrow {
  color: var(--home-accent);
  transform: translateX(3px);
}

/* CTA */
.HomeCTA {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  background-color: var(--home-bg-alt);
  text-align: center;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 120px);
}

.HomeCTAInner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 520px;
}

.HomeCTA h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--home-text);
}

.HomeCTA p {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--home-text-secondary);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 1024px) {
  .HomeFeaturesGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .HomeFeaturesGrid {
    grid-template-columns: 1fr;
  }

  .HomeHeroActions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .HomeServiceCard {
    padding: 1.25rem;
  }
}

@media (orientation: portrait) {
  .HomeFeatures,
  .HomeServices,
  .HomeCTA {
    min-height: auto;
    height: auto;
  }
}
