:root {
  --green-950: #00170d;
  --green-900: #032d1a;
  --green-700: #087a43;
  --green-500: #24d77d;
  --green-300: #88ffc0;
  --lime: #d9ff6f;
  --white: #f7fff9;
}

* { box-sizing: border-box; }

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

body {
  overflow-x: hidden;
  color: var(--white);
  background: var(--green-950);
  font-family: Arial, Helvetica, sans-serif;
}

.nav-page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.video-bg,
.green-overlay,
.light-sweep {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-bg {
  z-index: -4;
  object-fit: cover;
  filter: hue-rotate(64deg) saturate(1.55) brightness(.55) contrast(1.06);
  transform: scale(1.02);
}

.green-overlay {
  z-index: -3;
  background:
    radial-gradient(circle at 38% 43%, rgba(61, 255, 148, .16), transparent 25%),
    linear-gradient(90deg, rgba(0, 20, 10, .88), rgba(0, 55, 29, .55) 45%, rgba(0, 17, 9, .88));
  mix-blend-mode: multiply;
}

.light-sweep {
  z-index: -2;
  opacity: .72;
  background: linear-gradient(110deg, transparent 20%, rgba(84, 255, 159, .12) 42%, transparent 58%);
  transform: translateX(-70%);
  animation: sweep 7s ease-in-out infinite;
}

.nav-layout {
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(280px, 1fr) minmax(410px, 520px);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 36px 0 30px;
}

.side-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.round-link {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(145deg, rgba(11, 111, 59, .7), rgba(1, 24, 12, .9));
  border: 2px solid rgba(119, 255, 179, .58);
  box-shadow: 0 0 0 5px rgba(3, 51, 26, .7), 0 0 22px rgba(37, 222, 125, .18), inset 0 0 20px rgba(0, 0, 0, .36);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.round-link:hover {
  transform: translateX(6px) scale(1.04);
  border-color: var(--lime);
  box-shadow: 0 0 0 5px rgba(3, 70, 36, .78), 0 0 32px rgba(56, 255, 146, .4), inset 0 0 20px rgba(0, 0, 0, .3);
}

.round-ring {
  width: 82px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(217, 255, 111, .5);
  border-radius: 50%;
}

.round-ring b {
  color: var(--lime);
  font-size: 28px;
  line-height: 1;
}

.round-ring small {
  max-width: 72px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
}

.hero-zone {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: min(48vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 237, 131, .3), rgba(1, 30, 15, .07) 54%, transparent 70%);
  filter: blur(12px);
  animation: pulse 3.2s ease-in-out infinite;
}

.hero-logo {
  width: min(100%, 560px);
  max-height: 210px;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 20px rgba(110, 255, 171, .2));
  animation: float 4.5s ease-in-out infinite;
}

.hero-badge {
  width: min(100%, 390px);
  margin-top: 16px;
  padding: 15px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(136, 255, 192, .45);
  border-radius: 999px;
  background: rgba(0, 35, 18, .72);
  box-shadow: inset 0 0 18px rgba(69, 255, 151, .08), 0 14px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(9px);
}

.hero-badge span { color: var(--lime); font-weight: 900; letter-spacing: .2em; }
.hero-badge strong { color: rgba(232, 255, 241, .72); font-size: 10px; letter-spacing: .15em; }

.floating-token {
  width: 54px;
  height: 54px;
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid var(--green-300);
  border-radius: 50%;
  color: var(--lime);
  background: linear-gradient(145deg, #0b8a4a, #024526);
  box-shadow: 0 0 24px rgba(38, 237, 127, .32);
  font-size: 24px;
  font-weight: 900;
}

.token-one { top: 18%; left: 7%; animation: drift-one 5.2s ease-in-out infinite; }
.token-two { top: 25%; right: 6%; animation: drift-two 4.6s ease-in-out infinite; }
.token-three { bottom: 18%; right: 16%; animation: drift-one 5.8s ease-in-out reverse infinite; }

.entrance-zone { width: 100%; }

.brand-card {
  margin-bottom: 28px;
  text-align: center;
}

.brand-card img {
  width: min(100%, 390px);
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .62));
}

.brand-card p {
  margin: 3px 0 0;
  color: var(--green-300);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}

.entrance-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entrance-link {
  min-height: 64px;
  display: grid;
  grid-template-columns: 48px 76px 1fr 90px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 12px;
  border: 2px solid rgba(136, 255, 192, .76);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(6, 77, 40, .93), rgba(1, 24, 12, .9));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .26), 0 0 18px rgba(27, 210, 112, .1);
  backdrop-filter: blur(8px);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.entrance-link:hover {
  transform: translateX(-7px);
  border-color: var(--lime);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .2), 0 0 30px rgba(40, 235, 128, .28);
}

.route-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 255, 111, .62);
  border-radius: 50%;
  color: var(--lime);
  background: #07572f;
  font-size: 20px;
  font-weight: 900;
}

.latency { color: var(--lime); font-size: 15px; font-weight: 800; }
.entrance-link strong { font-size: 18px; letter-spacing: .04em; text-align: center; }

.enter-button {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #052516;
  background: linear-gradient(135deg, var(--lime), #60efa0);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 0 18px rgba(143, 255, 194, .28);
  font-size: 12px;
  font-weight: 900;
}

footer {
  height: 52px;
  display: grid;
  place-items: center;
  position: relative;
  color: rgba(240, 255, 245, .86);
  font-size: 14px;
  letter-spacing: .13em;
  text-align: center;
}

@keyframes sweep { 0%, 12% { transform: translateX(-70%); } 70%, 100% { transform: translateX(70%); } }
@keyframes pulse { 0%, 100% { transform: scale(.92); opacity: .62; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift-one { 0%, 100% { transform: translate(0, 0) rotate(-7deg); } 50% { transform: translate(12px, -17px) rotate(7deg); } }
@keyframes drift-two { 0%, 100% { transform: translate(0, 0) rotate(8deg); } 50% { transform: translate(-14px, 13px) rotate(-8deg); } }

@media (max-width: 1050px) {
  .nav-layout {
    grid-template-columns: 120px 1fr minmax(360px, 450px);
    gap: 20px;
  }
  .hero-zone { min-height: 480px; }
  .round-link { width: 80px; height: 80px; }
  .round-ring { width: 70px; height: 70px; }
  .round-ring b { font-size: 23px; }
  .round-ring small { font-size: 8px; }
}

@media (max-width: 780px) {
  body { overflow-y: auto; }
  .nav-page { overflow: visible; }
  .nav-layout {
    width: min(100% - 28px, 560px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 0 30px;
  }
  .hero-zone { min-height: auto; order: 1; padding: 10px 0; }
  .hero-logo { width: min(92%, 410px); max-height: 138px; }
  .hero-badge { margin-top: 0; }
  .floating-token { display: none; }
  .side-menu {
    order: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 15px;
  }
  .round-link { width: 88px; height: 88px; justify-self: center; }
  .round-ring { width: 77px; height: 77px; }
  .entrance-zone { order: 3; }
  .brand-card { display: none; }
  .entrance-link { grid-template-columns: 44px 64px 1fr 74px; min-height: 58px; }
  .route-number { width: 38px; height: 38px; }
  .latency { font-size: 13px; }
  .entrance-link strong { font-size: 15px; }
  footer { padding: 0 16px 18px; height: auto; font-size: 11px; }
}

@media (max-width: 380px) {
  .nav-layout { width: calc(100% - 18px); }
  .round-link { width: 78px; height: 78px; }
  .round-ring { width: 68px; height: 68px; }
  .entrance-link { grid-template-columns: 38px 56px 1fr 65px; padding-left: 8px; gap: 6px; }
  .route-number { width: 34px; height: 34px; font-size: 16px; }
  .entrance-link strong { font-size: 13px; }
  .enter-button { min-height: 36px; font-size: 10px; }
}

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