.hero.hero-earth {
  --earth-black: #05020D;
  --earth-purple: #120526;
  --earth-electric: #8B00FF;
  --earth-violet: #B026FF;
  --earth-magenta: #E000FF;
  --earth-white: #FFFFFF;
  --earth-lavender: #D8C4F5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 76px 0 62px !important;
  color: var(--earth-white);
  background:
    radial-gradient(ellipse at 76% 48%, rgba(139, 0, 255, .18), transparent 34%),
    radial-gradient(ellipse at 15% 8%, rgba(176, 38, 255, .1), transparent 30%),
    linear-gradient(135deg, var(--earth-black) 0%, var(--earth-purple) 58%, var(--earth-black) 100%);
}

body.earth-home-active > #dx-brand-ambient {
  display: none !important;
}

.hero.hero-earth::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(1px 1px at 17% 22%, rgba(216, 196, 245, .5), transparent 2px),
    radial-gradient(1px 1px at 39% 76%, rgba(176, 38, 255, .5), transparent 2px),
    radial-gradient(1px 1px at 87% 18%, rgba(216, 196, 245, .45), transparent 2px),
    radial-gradient(1px 1px at 70% 83%, rgba(224, 0, 255, .5), transparent 2px);
  box-shadow: none;
  pointer-events: none;
  z-index: -1;
}

.hero.hero-earth::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  z-index: -1;
  background-image: linear-gradient(rgba(176, 38, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(176, 38, 255, .18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 74%, transparent);
}

html body .hero.hero-earth .container {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr) !important;
  align-items: center;
  gap: clamp(22px, 4vw, 68px) !important;
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  padding: 0;
  margin: 0 auto;
}

.hero-earth .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
}

.hero-earth .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(176, 38, 255, .56);
  border-radius: 999px;
  color: var(--earth-lavender);
  background: rgba(18, 5, 38, .72);
  box-shadow: 0 0 28px rgba(139, 0, 255, .16), inset 0 0 16px rgba(176, 38, 255, .08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.earth-eyebrow-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--earth-magenta);
  box-shadow: 0 0 12px var(--earth-magenta);
}

html body .hero.hero-earth .hero-content h1 {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--earth-white) !important;
  font-size: clamp(44px, 5.1vw, 70px) !important;
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

html body .hero.hero-earth .hero-content h1 span {
  display: block;
  margin-top: 5px;
  color: var(--earth-violet) !important;
  background: linear-gradient(95deg, var(--earth-white) 0%, var(--earth-violet) 44%, var(--earth-magenta) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html body .hero.hero-earth .hero-content > p {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--earth-lavender) !important;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
}

.hero-earth .hero-content h1,
.hero-earth .hero-content > p,
.hero-earth .hero-benefits {
  opacity: 1;
  animation: none;
}

.hero-earth .hero-benefits {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
  max-width: 570px;
  margin-top: 28px;
}

.hero-earth .hero-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--earth-white);
  font-size: 14px;
  font-weight: 600;
}

.hero-earth .hero-benefit::before {
  content: '✓';
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid rgba(224, 0, 255, .42);
  border-radius: 50%;
  color: var(--earth-white);
  background: linear-gradient(145deg, var(--earth-electric), var(--earth-violet));
  box-shadow: 0 0 18px rgba(139, 0, 255, .45);
  font-size: 12px;
}

html body .hero.hero-earth .hero-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  opacity: 1;
  animation: none;
}

html body .hero.hero-earth .hero-actions .btn {
  display: inline-flex;
  width: auto !important;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--earth-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hero-earth .hero-actions .btn-primary {
  border: 1px solid rgba(224, 0, 255, .62);
  background: linear-gradient(115deg, var(--earth-electric), var(--earth-violet));
  box-shadow: 0 12px 30px rgba(139, 0, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.hero-earth .hero-actions .btn-ghost {
  border: 1px solid rgba(176, 38, 255, .62);
  background: rgba(18, 5, 38, .72);
}

.hero-earth .hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(139, 0, 255, .34);
}

.earth-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 440px;
  aspect-ratio: 1.08 / 1;
  isolation: isolate;
}

.earth-halo {
  position: absolute;
  inset: 10%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 0, 255, .3), rgba(176, 38, 255, .12) 36%, transparent 70%);
  filter: blur(24px);
}

.earth-trails {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(224, 0, 255, .75));
  pointer-events: none;
}

.earth-trails path {
  fill: none;
  stroke: url(#earthTrailGradient);
  stroke-width: 1.15;
  stroke-dasharray: 7 13;
  opacity: .72;
  animation: earth-trail-flow 12s linear infinite;
}

.earth-trails path:nth-child(2) { animation-duration: 15s; animation-direction: reverse; }
.earth-trails path:nth-child(3) { animation-duration: 18s; opacity: .45; }

.earth-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  filter: drop-shadow(0 0 18px rgba(139, 0, 255, .26));
  pointer-events: none;
}

.earth-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.earth-unavailable {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  color: var(--earth-lavender);
  font-size: 12px;
}

.earth-country-flags {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.earth-country-flag {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background-image: url("../images/country-flags.webp");
  background-repeat: no-repeat;
  background-size: var(--country-flag-sprite-size);
  box-shadow: 0 1px 5px rgba(5, 2, 13, .7);
}

.earth-catalog.home-section {
  --earth-black: #05020D;
  --earth-purple: #120526;
  --earth-electric: #8B00FF;
  --earth-violet: #B026FF;
  --earth-magenta: #E000FF;
  --earth-white: #FFFFFF;
  --earth-lavender: #D8C4F5;
  max-width: none;
  padding: 86px 24px 94px;
  color: var(--earth-white);
  background: linear-gradient(180deg, var(--earth-black), var(--earth-purple) 60%, var(--earth-black));
}

.earth-catalog .home-section-heading {
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}

.earth-catalog .home-section-kicker,
.earth-card-kicker {
  color: var(--earth-magenta);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.earth-catalog .home-section-heading h2 {
  margin: 10px 0 12px;
  color: var(--earth-white);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.04em;
}

.earth-catalog .home-section-heading p {
  margin: 0;
  color: var(--earth-lavender);
  font-size: 16px;
  line-height: 1.65;
}

.earth-service-grid {
  display: grid;
  width: min(1200px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.earth-service-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(176, 38, 255, .25);
  border-radius: 20px;
  color: var(--earth-white);
  background: linear-gradient(145deg, rgba(18, 5, 38, .96), rgba(5, 2, 13, .88));
  box-shadow: 0 16px 42px rgba(5, 2, 13, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.earth-service-card:hover,
.earth-service-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 0, 255, .72);
  box-shadow: 0 22px 48px rgba(139, 0, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.earth-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(176, 38, 255, .4);
  border-radius: 15px;
  color: var(--earth-white);
  background: linear-gradient(145deg, rgba(139, 0, 255, .38), rgba(18, 5, 38, .85));
  box-shadow: 0 0 22px rgba(139, 0, 255, .18);
}

.earth-card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.earth-service-card strong {
  margin-top: 8px;
  color: var(--earth-white);
  font-size: 17px;
  line-height: 1.3;
}

.earth-service-card > span:not(.earth-card-icon):not(.earth-card-kicker) {
  margin-top: 9px;
  color: var(--earth-lavender);
  font-size: 13px;
  line-height: 1.55;
}

.earth-service-card b {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--earth-violet);
  font-size: 12px;
}

.earth-service-card b i {
  font-size: 16px;
  font-style: normal;
}

@keyframes earth-trail-flow { to { stroke-dashoffset: -80; } }
@keyframes earth-icon-drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -9px; }
}

@media (max-width: 1100px) {
  .earth-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .earth-stage { min-height: 390px; }

}

@media (max-width: 820px) {
  .hero.hero-earth { padding: 56px 0 52px !important; }
  html body .hero.hero-earth .container {
    width: min(680px, calc(100% - 36px));
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px !important;
  }
  html body .hero.hero-earth .hero-content { max-width: 680px; }
  html body .hero.hero-earth .earth-stage { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(110vw, 560px); min-height: 0; aspect-ratio: 1 / 1; margin: 0; opacity: .38; z-index: 0; pointer-events: none; }
  html body .hero.hero-earth .hero-content h1 { max-width: 680px; font-size: clamp(44px, 8vw, 64px) !important; }
  .earth-stage { width: min(100%, 560px); min-height: 0; aspect-ratio: 1.08 / 1; margin: 0 auto; }
  .earth-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .hero.hero-earth { padding: 44px 0 42px !important; }
  html body .hero.hero-earth .container { width: calc(100% - 34px); gap: 16px !important; }
  .hero-earth .eyebrow { max-width: 100%; padding: 9px 11px; font-size: 9px; letter-spacing: .055em; }
  html body .hero.hero-earth .hero-content h1 { margin-top: 20px; font-size: clamp(37px, 10.4vw, 48px) !important; line-height: 1.04; }
  html body .hero.hero-earth .hero-content > p { margin-top: 16px; font-size: 15px; line-height: 1.65; }
  .hero-earth .hero-benefits { gap: 11px 8px; margin-top: 22px; }
  .hero-earth .hero-benefit { gap: 7px; font-size: 11px; }
  .hero-earth .hero-benefit::before { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; }
  html body .hero.hero-earth .hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  html body .hero.hero-earth .hero-actions .btn { min-height: 48px; padding: 0 10px; font-size: 12px; }
  .earth-stage { width: min(110vw, 440px); aspect-ratio: 1 / 1; }





  .earth-trails path { stroke-width: 1.5; }
  .earth-catalog.home-section { padding: 64px 18px 70px; }
  .earth-catalog .home-section-heading { margin-bottom: 24px; }
  .earth-catalog .home-section-heading h2 { font-size: 30px; }
  .earth-catalog .home-section-heading p { font-size: 14px; }
  .earth-service-grid { gap: 10px; }
  .earth-service-card { min-height: 222px; padding: 15px; border-radius: 17px; }
  .earth-card-icon { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 13px; }
  .earth-card-icon svg { width: 20px; height: 20px; }
  .earth-service-card strong { font-size: 14px; }
  .earth-service-card > span:not(.earth-card-icon):not(.earth-card-kicker) { font-size: 11px; }
  .earth-card-kicker { font-size: 9px; }
  .earth-service-card b { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .earth-trails path,
  .hero-earth .hero-actions .btn,
  .earth-service-card { animation: none !important; transition: none !important; }
}
