/* Datacenter v2: navy / cobalt / cyan infrastructure refresh */

body.theme-datacenter {
  --color-primary: #2EA8FF;
  --color-primary-light: #73C9FF;
  --color-primary-dark: #006DD6;
  --color-primary-darker: #064B96;
  --color-secondary: #18D5FF;
  --color-secondary-light: #8AEAFF;
  --color-secondary-dark: #00A6D6;
  --color-secondary-darker: #076780;
  --color-accent: #A6F3FF;
  --color-accent-light: #D7FAFF;
  --color-accent-dark: #4ECDE6;
  --color-primary-rgb: 46, 168, 255;
  --color-primary-light-rgb: 115, 201, 255;
  --color-primary-dark-rgb: 0, 109, 214;
  --color-primary-darker-rgb: 6, 75, 150;
  --color-secondary-rgb: 24, 213, 255;
  --color-secondary-light-rgb: 138, 234, 255;
  --color-secondary-dark-rgb: 0, 166, 214;
  --color-secondary-darker-rgb: 7, 103, 128;
  --color-accent-rgb: 166, 243, 255;
  --border-primary: rgba(46, 168, 255, 0.24);
  --border-secondary: rgba(24, 213, 255, 0.18);
  --border-accent: rgba(166, 243, 255, 0.34);
  --gradient-horizontal: linear-gradient(90deg, #006DD6, #2EA8FF, #18D5FF);
  --gradient-primary: linear-gradient(135deg, #082A58 0%, #006DD6 52%, #18D5FF 100%);
  --gradient-card-header: linear-gradient(135deg, #06162E 0%, #0B3270 55%, #006DD6 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(2, 10, 22, 0.94), rgba(7, 31, 69, 0.88), rgba(0, 109, 214, 0.48));
  --gradient-cta: linear-gradient(135deg, #006DD6 0%, #2EA8FF 58%, #18D5FF 100%);
  --shadow-sm: 0 4px 12px rgba(6, 75, 150, 0.12);
  --shadow-md: 0 10px 24px rgba(6, 75, 150, 0.22);
  --shadow-lg: 0 16px 34px rgba(6, 75, 150, 0.28);
  --shadow-xl: 0 24px 54px rgba(2, 10, 22, 0.22);
  --shadow-glow: 0 0 34px rgba(24, 213, 255, 0.34);
  --shadow-card: 0 30px 50px -18px rgba(6, 75, 150, 0.24);
}

.dcv2-hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 72px 0 70px;
  background-color: #020A16;
  color: #fff;
  isolation: isolate;
}

.dcv2-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(2, 10, 22, 0.97) 0%, rgba(5, 18, 42, 0.92) 40%, rgba(4, 24, 58, 0.72) 100%),
    url("https://cdn.underhost.com/images/datacenterbg.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.dcv2-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(115, 201, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 201, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.12));
}

.dcv2-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 220px;
  background: linear-gradient(0deg, #07111f 0%, rgba(7, 17, 31, 0) 100%);
}

.dcv2-hero__links {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.dcv2-link {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46, 168, 255, 0), rgba(46, 168, 255, 0.55), rgba(24, 213, 255, 0));
  box-shadow: 0 0 20px rgba(24, 213, 255, 0.35);
  transform-origin: left center;
}

.dcv2-link--na {
  top: 34%;
  right: 13%;
  width: 420px;
  transform: rotate(-13deg);
}

.dcv2-link--eu {
  top: 51%;
  right: 6%;
  width: 520px;
  transform: rotate(9deg);
}

.dcv2-link--asia {
  top: 67%;
  right: 17%;
  width: 390px;
  transform: rotate(-6deg);
}

.dcv2-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: 46px;
  align-items: center;
}

.dcv2-hero__copy {
  max-width: 780px;
}

.dcv2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(24, 213, 255, 0.34);
  border-radius: 999px;
  background: rgba(24, 213, 255, 0.09);
  color: #A6F3FF;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.dcv2-kicker i {
  color: #18D5FF;
}

.dcv2-hero h1 {
  max-width: 760px;
  margin: 22px 0 20px;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.dcv2-lede {
  max-width: 700px;
  color: rgba(238, 247, 255, 0.9);
  font-size: 18px;
  line-height: 1.72;
}

.dcv2-lede {
  margin: 0;
}

.dcv2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}

.dcv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.dcv2-btn--primary {
  background: linear-gradient(135deg, #006DD6, #2EA8FF 58%, #18D5FF);
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(0, 109, 214, 0.34);
}

.dcv2-btn--ghost {
  border: 1px solid rgba(166, 243, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #EAF8FF !important;
}

.dcv2-btn:hover {
  transform: translateY(-2px);
}

.dcv2-btn--ghost:hover {
  border-color: rgba(24, 213, 255, 0.72);
  background: rgba(24, 213, 255, 0.12);
}

.dcv2-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dcv2-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 247, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.dcv2-trust i {
  color: #18D5FF;
}

.dcv2-hero__visual {
  min-width: 0;
}

.dcv2-map-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(115, 201, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(7, 24, 55, 0.92), rgba(3, 12, 30, 0.86)),
    radial-gradient(circle at 80% 15%, rgba(24, 213, 255, 0.18), transparent 35%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.dcv2-map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(115, 201, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 201, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.dcv2-panel-top,
.dcv2-region-grid,
.dcv2-map-panel img {
  position: relative;
  z-index: 1;
}

.dcv2-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: #EAF8FF;
}

.dcv2-panel-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.dcv2-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #A6F3FF;
  font-size: 13px;
  font-weight: 800;
}

.dcv2-panel-status i {
  color: #3CF6A5;
  font-size: 8px;
  filter: drop-shadow(0 0 8px rgba(60, 246, 165, 0.72));
}

.dcv2-map-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 10, 22, 0.56);
}

.dcv2-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dcv2-region-grid span {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(115, 201, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 247, 255, 0.84);
  font-size: 12px;
  line-height: 1.35;
}

.dcv2-region-grid strong {
  display: block;
  margin-bottom: 2px;
  color: #18D5FF;
  font-size: 12px;
}

body.theme-datacenter .datacenter-header {
  background: linear-gradient(135deg, #06162E 0%, #0B3270 58%, #006DD6 100%) !important;
}

body.theme-datacenter .speed-badge,
body.theme-datacenter .datacenter-badge,
body.theme-datacenter .facility-tag {
  letter-spacing: 0;
}

body.theme-datacenter .network-map-container {
  background: linear-gradient(135deg, #06162E 0%, #0B3270 58%, #006DD6 100%) !important;
  text-align: center;
}

body.theme-datacenter .network-map-container > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

body.theme-datacenter .btn-speed,
body.theme-datacenter .features-btn,
body.theme-datacenter .migration-badge,
body.theme-datacenter .migration-free-badge,
body.theme-datacenter .migration-btn {
  background: var(--gradient-cta) !important;
}

body.theme-datacenter .uh-divider--datacenter .uh-divider-line,
body.theme-datacenter .faq-divider-line {
  background: linear-gradient(90deg, transparent, #2EA8FF, #18D5FF, transparent) !important;
}

@media (max-width: 1199px) {
  .dcv2-hero__layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .dcv2-hero__copy {
    max-width: 860px;
  }

  .dcv2-map-panel {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .dcv2-hero {
    min-height: auto;
    padding: 68px 0 58px;
  }

  .dcv2-hero h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .dcv2-lede,
  .dcv2-copy {
    font-size: 16px;
  }

  .dcv2-actions {
    flex-direction: column;
  }

  .dcv2-btn {
    width: 100%;
  }

  .dcv2-region-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dcv2-hero h1 {
    font-size: 36px;
  }

  .dcv2-map-panel {
    padding: 16px;
  }

  .dcv2-panel-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
