:root {
  --bg: #061521;
  --bg-alt: #0b2234;
  --surface: rgba(14, 35, 50, 0.8);
  --surface-strong: rgba(17, 43, 63, 0.92);
  --text: #f1f8ff;
  --muted: #acc9dc;
  --accent: #ff4500;
  --accent-2: #4fd0ff;
  --accent-3: #ff66d8;
  --neon-gradient: linear-gradient(90deg, #7fffd4 0%, #6be4ff 50%, #8bf6ff 100%);
  --border: rgba(130, 195, 236, 0.22);
  --shadow: 0 18px 36px rgba(3, 12, 21, 0.42);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Exo 2", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, #0e3e5d 0%, transparent 36%),
    radial-gradient(circle at 88% 18%, #1b456f 0%, transparent 38%),
    linear-gradient(160deg, #030b13 0%, #091b29 52%, #061521 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: #02131f;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.wrapper {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: clip;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 18px 0;
}

#pixi-header {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#pixi-header canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.45) brightness(1.24) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 69, 0, 0.26), transparent 48%),
    radial-gradient(circle at 84% 14%, rgba(79, 208, 255, 0.24), transparent 44%),
    radial-gradient(circle at 52% 72%, rgba(255, 102, 216, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(4, 13, 23, 0.08), rgba(4, 13, 23, 0.58));
  mix-blend-mode: screen;
  pointer-events: none;
}

.pixi-preloader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(123, 212, 255, 0.35);
  background: rgba(8, 26, 39, 0.62);
  color: #d7f0ff;
  font-size: 0.85rem;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pixi-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(215, 240, 255, 0.35);
  border-top-color: #4fd0ff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.hero-content {
  position: relative;
  z-index: auto;
  width: calc(min(1180px, 92vw) - 40px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(8, 26, 38, 0.72), rgba(10, 34, 50, 0.6)),
    rgba(8, 23, 34, 0.48);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 102, 216, 0.06) inset,
    0 0 40px rgba(255, 69, 0, 0.12);
  backdrop-filter: blur(5px);
}

.hero-content > * {
  position: relative;
  z-index: 4;
}

.hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid rgba(145, 206, 236, 0.42);
  border-radius: 999px;
  background: rgba(6, 25, 38, 0.66);
  color: #dff4ff;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-btn:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(133, 222, 255, 0.72);
  color: #ffffff;
}

.lang-btn.active {
  border-color: rgba(123, 228, 255, 0.9);
  background: rgba(9, 40, 58, 0.88);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(123, 228, 255, 0.2) inset;
}

.lang-flag {
  display: inline-flex;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(3, 13, 21, 0.55) inset;
}

.lang-flag img {
  display: block;
  width: 24px;
  height: 18px;
}

.hero-logo {
  display: block;
  width: clamp(64px, 8vw, 102px);
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(70, 242, 255, 0.8))
    drop-shadow(0 0 24px rgba(70, 242, 255, 0.5))
    drop-shadow(0 0 40px rgba(255, 86, 212, 0.24));
  animation: logo-glow 2.8s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from {
    filter:
      drop-shadow(0 0 6px rgba(70, 242, 255, 0.56))
      drop-shadow(0 0 16px rgba(70, 242, 255, 0.38))
      drop-shadow(0 0 24px rgba(255, 86, 212, 0.16));
  }
  to {
    filter:
      drop-shadow(0 0 10px rgba(70, 242, 255, 0.84))
      drop-shadow(0 0 26px rgba(70, 242, 255, 0.6))
      drop-shadow(0 0 42px rgba(255, 86, 212, 0.3));
  }
}

.hero-brand,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand {
  border: 1px solid rgba(94, 239, 218, 0.38);
  color: #bcfef2;
  background: rgba(7, 36, 45, 0.56);
}

.hero-kicker {
  border: 1px solid rgba(123, 212, 255, 0.34);
  color: #cee9ff;
  background: rgba(8, 31, 46, 0.56);
}

.hero-title {
  margin: 24px 0;
  font-size: clamp(1.6rem, 8.2vw, 3.7rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.gradient-text {
  background: var(--neon-gradient);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 16px rgba(107, 228, 255, 0.28);
}

.hero-title-lock {
  display: inline-block;
  vertical-align: baseline;
  white-space: normal;
}

.hero-title-lock br {
  line-height: 0.72;
}

.hero-title-badge {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  padding: 0.08em 0.22em 0.14em;
  background: #ffffff;
  color: #081f2e;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-text {
  margin: 24px 0 30px;
  color: var(--muted);
  max-width: 860px;
  font-size: clamp(0.97rem, 2.7vw, 1.12rem);
  line-height: 1.64;
}

.typewriter-target.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.6ch;
  height: 1.02em;
  margin-left: 3px;
  vertical-align: -0.08em;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #ffd9c7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
  animation: typing-caret 0.72s step-end infinite;
}

@keyframes typing-caret {
  0%,
  42% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.hero-tags {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(123, 212, 255, 0.28);
  background: rgba(9, 36, 53, 0.55);
  color: #c6e6fc;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn:focus-visible,
.contact-links a:focus-visible,
.tile:focus-visible {
  outline: 2px solid #80eeff;
  outline-offset: 2px;
}

.btn {
  background: var(--neon-gradient);
  color: #032638;
  box-shadow: 0 10px 20px rgba(106, 227, 255, 0.24);
}

.btn-ghost {
  background: var(--neon-gradient);
  color: #032638;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(106, 227, 255, 0.24);
}

main {
  padding: 22px 0 60px;
}

.section {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(18px, 3.2vw, 34px);
  background:
    linear-gradient(160deg, rgba(16, 40, 58, 0.84), rgba(10, 28, 42, 0.86)),
    var(--surface);
  box-shadow: 0 12px 24px rgba(3, 11, 19, 0.24);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 5.5vw, 2.3rem);
  line-height: 1.05;
}

.section-text {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 960px;
  line-height: 1.55;
}

.benefits-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.benefit-card {
  border: 1px solid rgba(127, 194, 236, 0.2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(12, 33, 49, 0.58);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 229, 255, 0.42);
}

.benefit-card h3 {
  margin: 0;
  font-size: 1rem;
}

.benefit-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.48;
}

.numbers-row {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.numbers-row li {
  border: 1px solid rgba(120, 200, 242, 0.24);
  border-radius: 14px;
  background: rgba(9, 33, 49, 0.72);
  padding: 12px;
}

.numbers-row strong {
  display: block;
  font-size: clamp(1.24rem, 4.2vw, 1.9rem);
  color: #d6f7ff;
}

.numbers-row span {
  margin-top: 3px;
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.tile-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(145, 198, 236, 0.24);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(21, 48, 69, 0.92), rgba(12, 32, 47, 0.96));
  color: var(--text);
  min-height: 260px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(84, 221, 255, 0.5);
  box-shadow: 0 14px 24px rgba(7, 20, 31, 0.34);
}

.tile-static {
  cursor: default;
}

.tile-static:hover {
  transform: none;
  border-color: rgba(145, 198, 236, 0.24);
  box-shadow: none;
}

.tile-media {
  position: relative;
  overflow: hidden;
  height: 150px;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile:hover .tile-media img {
  transform: scale(1.04);
}

.tile-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 999px;
  border: 1px solid rgba(128, 197, 236, 0.48);
  background: rgba(4, 24, 38, 0.8);
  color: #d5efff;
  padding: 5px 10px;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tile-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.tile-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.46;
  font-size: 0.92rem;
}

.tile-link {
  margin-top: auto;
  color: #5af1ff;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: end;
}

.contact-kicker {
  margin: 0;
  color: #6af4ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-card h2 {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 5.8vw, 2.4rem);
}

.contact-text {
  margin-top: 12px;
}

.contact-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.contact-links a {
  color: #94eaff;
  text-decoration: none;
  font-weight: 600;
}

.contact-links a:hover {
  color: #d2f7ff;
}

.contact-character {
  justify-self: center;
  align-self: end;
  position: relative;
}

.contact-character::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 2px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(70, 223, 255, 0.46), transparent 72%);
  filter: blur(7px);
}

.contact-character img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(74vw, 290px);
  height: auto;
  filter:
    drop-shadow(0 14px 24px rgba(4, 18, 28, 0.44))
    drop-shadow(0 0 22px rgba(99, 239, 255, 0.22));
}

.footer {
  padding: 18px 0 30px;
  color: rgba(171, 200, 220, 0.86);
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  color: rgba(198, 224, 242, 0.95);
  font-weight: 700;
}

.footer-legal {
  margin: 8px 0 0;
  color: rgba(169, 200, 221, 0.86);
  line-height: 1.5;
}

@media (max-width: 680px) {
  .hero-title-lock {
    line-height: 1.1;
  }

  .hero-title-lock br {
    line-height: 1.1;
  }

  .hero-title-badge {
    line-height: 1.1;
  }

  .hero-title-badge-traffic {
    display: inline;
    white-space: normal;
  }
}

@media (min-width: 700px) {
  .hero {
    min-height: clamp(540px, 78vh, 820px);
    padding: 26px 0;
  }

  .hero-content {
    padding: clamp(26px, 3.1vw, 38px);
  }

  .hero-actions {
    gap: 12px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .numbers-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 320px);
    gap: 18px;
  }

  .contact-character {
    justify-self: end;
  }

  .contact-character img {
    width: clamp(220px, 26vw, 320px);
  }
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: calc(min(1180px, 92vw) - 40px);
  }

  .hero-title {
    max-width: 21ch;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .typewriter-target.is-typing::after {
    animation: none !important;
    opacity: 1;
  }
}
