:root {
  --ink: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.55);
  --accent: #ff5a36;
  --night: #0b0d0c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--night);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, #222722 0, var(--night) 57%);
  background-size: 64px 64px, 64px 64px, auto;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.45));
  content: "";
}

.ambient {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 90, 54, 0.18);
  border-radius: 50%;
}

.ambientOne {
  width: min(58vw, 760px);
  aspect-ratio: 1;
  transform: translate(-42vw, -34vh);
}

.ambientTwo {
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: translate(43vw, 38vh);
}

.mapStage {
  position: absolute;
  z-index: -1;
  width: min(92vw, 1180px);
  aspect-ratio: 940 / 477;
  opacity: 0.72;
}

.worldMap {
  width: 100%;
  height: 100%;
  opacity: 0.17;
  filter: invert(1) sepia(0.12) saturate(0.45);
  object-fit: contain;
}

.country {
  position: absolute;
  width: clamp(1.45rem, 2.3vw, 2.1rem);
  height: clamp(1.45rem, 2.3vw, 2.1rem);
  padding: 0;
  border: 1px solid rgba(255, 125, 92, 0.9);
  border-radius: 50%;
  outline: none;
  background: var(--accent);
  box-shadow:
    0 0 0 7px rgba(255, 90, 54, 0.12),
    0 0 28px 12px rgba(255, 90, 54, 0.36);
  color: var(--ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.country::before {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 90, 54, 0.38);
  border-radius: 50%;
  content: "";
  animation: pulse 2.4s ease-out infinite;
}

.country span {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(244, 240, 232, 0.13);
  border-radius: 4px;
  background: rgba(11, 13, 12, 0.78);
  color: rgba(244, 240, 232, 0.82);
  font-size: clamp(0.54rem, 0.75vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.country:hover,
.country:focus-visible {
  background: #ff7658;
  box-shadow:
    0 0 0 10px rgba(255, 90, 54, 0.16),
    0 0 42px 18px rgba(255, 90, 54, 0.58);
  transform: translate(-50%, -50%) scale(1.24);
}

.countryRussia { left: 74%; top: 22%; }
.countryKazakhstan { left: 68.5%; top: 35%; }
.countryChina { left: 78.5%; top: 43%; }
.countryTurkey { left: 59.8%; top: 40%; }

.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  color: var(--muted);
  font-size: clamp(0.68rem, 1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(6.4rem, 23vw, 21rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.69;
  transform: translateX(-0.035em);
}

.rule {
  width: clamp(4.5rem, 9vw, 8rem);
  height: 5px;
  margin: clamp(2.3rem, 5vw, 4.25rem) 0 1.35rem;
  background: var(--accent);
}

.descriptor {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  text-transform: uppercase;
}

.domain {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 2.6rem);
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

@media (max-width: 560px) {
  .hero {
    background-size: 40px 40px, 40px 40px, auto;
  }

  .descriptor {
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }

  .domain {
    right: 50%;
    transform: translateX(50%);
  }

  .mapStage {
    width: 150vw;
  }

  .country span {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand {
    animation: reveal 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  @keyframes pulse {
    from { opacity: 0.8; transform: scale(0.75); }
    to { opacity: 0; transform: scale(1.9); }
  }
}
