@font-face {
  font-family: "Bungee";
  src: url("./assets/fonts/bungee.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("./assets/fonts/oxanium.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("./assets/fonts/rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #11102d;
  --outline: #1a1024;
  --night: #17143d;
  --night-raised: #211d51;
  --cream: #fff8df;
  --muted: #aaa3c8;
  --yellow: #ffd84a;
  --mint: #62ebc4;
  --cyan: #20c7db;
  --pink: #e6409b;
  --purple: #7048e8;
  --shadow: #0b0a20;
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--night);
  color: var(--cream);
  font-family: "Rubik", system-ui, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 73% 36%, rgba(112, 72, 232, 0.36), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(230, 64, 155, 0.18), transparent 30%),
    linear-gradient(125deg, #151238 0%, #1b1746 52%, #27194c 100%);
}

.site-shell::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 248, 223, 0.018) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(17, 16, 45, 0.04) 5px 6px);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.stars__point {
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 var(--star-glow) currentColor;
  opacity: var(--star-dim);
  will-change: transform, opacity;
  animation:
    star-float var(--drift-time) ease-in-out var(--drift-delay) infinite alternate,
    star-twinkle var(--twinkle-time) ease-in-out var(--twinkle-delay) infinite;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(100% - 64px, 1320px);
  margin: 0 auto;
  padding-top: 26px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand:focus-visible {
  border-radius: 12px;
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.brand__mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 var(--shadow));
}

.brand__name {
  display: inline-flex;
  line-height: 1;
  align-items: center;
  font-family: "Bungee", system-ui, sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  letter-spacing: 0.055em;
  text-shadow: 3px 3px 0 var(--shadow);
}

.brand__city {
  color: var(--pink);
}

.brand__symbol {
  margin-left: 0.22em;
  align-self: flex-start;
  color: var(--cream);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 0.54em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-0.12em);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-status {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--outline);
  border-radius: 10px;
  background: rgba(33, 29, 81, 0.92);
  box-shadow: 4px 4px 0 var(--shadow);
  color: var(--mint);
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.network-status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow:
    0 0 0 3px rgba(98, 235, 196, 0.1),
    0 0 6px rgba(98, 235, 196, 0.2);
  animation: status-breathe 3.6s ease-in-out infinite;
}

.social-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--outline);
  border-radius: 10px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--shadow);
  color: var(--ink);
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.social-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}

.social-link:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100% - 64px, 1320px);
  min-height: calc(100svh - 184px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 710px;
  padding: 48px 0 150px;
}

.eyebrow {
  display: flex;
  margin: 0 0 24px;
  align-items: center;
  gap: 11px;
  color: var(--cyan);
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow span {
  display: inline-grid;
  width: 34px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 7px;
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--shadow);
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Bungee", system-ui, sans-serif;
  font-size: clamp(3.4rem, 6.4vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 6px 7px 0 var(--shadow);
}

h1 em {
  color: var(--yellow);
  font-style: normal;
  text-shadow:
    6px 7px 0 var(--shadow),
    0 0 35px rgba(255, 216, 74, 0.12);
}

.hero__intro {
  max-width: 590px;
  margin: 30px 0 0;
  color: #d8d1ee;
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.65;
}

.hero__intro strong {
  color: var(--cream);
  font-weight: 800;
}

.hero__social-link {
  margin-top: 26px;
}

.hero__visual {
  position: absolute;
  right: -2%;
  bottom: 82px;
  width: min(47vw, 620px);
  height: min(76vh, 760px);
  pointer-events: none;
}

.mascot-player {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  width: min(100%, 650px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  filter: drop-shadow(12px 14px 0 rgba(11, 10, 32, 0.72));
  animation: video-reveal 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mascot-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.08);
  transform-origin: 50% 54%;
  object-fit: contain;
}

.city-video-source {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cityline {
  position: absolute;
  right: -2%;
  bottom: 0;
  left: -2%;
  z-index: 0;
  height: clamp(140px, 24vw, 300px);
  opacity: 0.64;
  pointer-events: none;
  filter: saturate(0.92) brightness(0.78);
  mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 100%);
}

.cityline::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(to top, var(--night), transparent);
}

.cityline img {
  position: absolute;
  bottom: -7%;
  left: 50%;
  width: max(1300px, 105vw);
  height: auto;
  transform: translateX(-50%);
}

.site-footer {
  position: absolute;
  right: 32px;
  bottom: 18px;
  left: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: "Oxanium", system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-footer__message {
  color: var(--mint);
}

@keyframes status-breathe {
  0%, 100% {
    opacity: 0.78;
    box-shadow:
      0 0 0 3px rgba(98, 235, 196, 0.08),
      0 0 5px rgba(98, 235, 196, 0.16);
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 0 3px rgba(98, 235, 196, 0.14),
      0 0 9px rgba(98, 235, 196, 0.28);
    transform: scale(1);
  }
}

@keyframes star-float {
  to { transform: translate3d(var(--drift-x), var(--drift-y), 0); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: var(--star-dim); }
  48% { opacity: var(--star-bright); }
  62% { opacity: var(--star-soft); }
}

@keyframes video-reveal {
  from { opacity: 0; transform: translateY(-46%) scale(0.97); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

@media (max-width: 900px) {
  .site-header,
  .hero {
    width: min(100% - 40px, 760px);
  }

  .hero {
    min-height: calc(100svh - 100px);
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__copy {
    max-width: 600px;
    padding: 16vh 0 520px;
  }

  .hero__visual {
    right: auto;
    bottom: 30px;
    left: 50%;
    width: min(88vw, 620px);
    height: 520px;
    opacity: 0.94;
    transform: translateX(-50%);
  }

  .cityline {
    height: 180px;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 28px);
    padding-top: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 1.65rem;
  }

  .network-status {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.57rem;
    letter-spacing: 0.08em;
  }

  .header-actions {
    gap: 6px;
  }

  .social-link {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.57rem;
    letter-spacing: 0.06em;
  }

  .network-status__dot {
    width: 7px;
    height: 7px;
  }

  .hero {
    width: calc(100% - 32px);
  }

  .hero__copy {
    padding: 13vh 0 440px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  .eyebrow span {
    width: 30px;
    height: 23px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
    text-shadow: 4px 5px 0 var(--shadow);
  }

  .hero__intro {
    margin: 22px 0 0;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero__visual {
    right: auto;
    bottom: 22px;
    left: 50%;
    width: min(96vw, 460px);
    height: 430px;
    transform: translateX(-50%);
  }

  .mascot-player {
    right: 0;
    width: 100%;
    filter: drop-shadow(8px 9px 0 rgba(11, 10, 32, 0.72));
  }

  .site-footer {
    right: 14px;
    bottom: 10px;
    left: 14px;
    font-size: 0.54rem;
  }

  .site-footer > :first-child {
    display: none;
  }

  .site-footer__message {
    margin-left: auto;
  }
}

@media (max-width: 470px) {
  .network-status {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero__copy {
    padding-top: 28px;
    padding-bottom: 110px;
  }

  .hero__visual {
    bottom: 38px;
    height: 68vh;
  }

  h1 {
    font-size: clamp(3.4rem, 5.8vw, 5.6rem);
  }
}

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