:root {
  --bg: #000;
  --fg: #ffffff;
  --accent: #2448d8;
  --glow-core: rgba(30, 66, 210, 0.6);
  --glow-edge: rgba(12, 30, 120, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Fredoka One", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-core), var(--glow-edge) 42%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  transform: translate3d(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%), 0) scale(var(--scale, 1));
  will-change: transform;
}

main {
  position: relative;
  z-index: 1;
}

.brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  animation: brand-in 1.6s var(--ease-out) 0.2s both;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  text-decoration: none;
}

.brand__icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand__name {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.35s var(--ease-out),
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.social__icon {
  width: 21px;
  height: 21px;
  transition: transform 0.45s var(--ease-out);
}

.social:hover {
  color: #fff;
  background: rgba(36, 72, 216, 0.28);
  border-color: rgba(84, 118, 255, 0.55);
  box-shadow: 0 0 24px rgba(36, 72, 216, 0.45);
  transform: translateY(-2px);
}

.social:hover .social__icon {
  transform: rotate(10deg) scale(1.1);
}

.social:active {
  transform: translateY(0) scale(0.9);
  background: rgba(36, 72, 216, 0.45);
  box-shadow: 0 0 12px rgba(36, 72, 216, 0.6);
  transition-duration: 0.12s;
}

.social:focus-visible {
  outline: 2px solid rgba(84, 118, 255, 0.9);
  outline-offset: 3px;
}

.social::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid rgba(84, 118, 255, 0.8);
  opacity: 0;
  pointer-events: none;
}

.social.is-pressed::after {
  animation: press-ring 0.6s var(--ease-out);
}

@keyframes press-ring {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.6); }
}

@keyframes brand-in {
  from { opacity: 0; filter: blur(8px); transform: translateY(-0.5rem); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.finale {
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

.soon {
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 1.6s var(--ease-out),
    transform 1.6s var(--ease-out);
}

.soon.is-visible {
  opacity: 1;
  transform: none;
}

.panel {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 1rem;
}

.line {
  font-size: clamp(3.5rem, 14vw, 12rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(2.5rem);
  transition:
    opacity 1.4s var(--ease-out),
    filter 1.4s var(--ease-out),
    transform 1.4s var(--ease-out);
}

.line.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.accent {
  color: var(--fg);
  transition:
    color 1.2s var(--ease-out) 0.35s,
    text-shadow 1.2s var(--ease-out) 0.35s;
}

.accent.is-lit {
  color: var(--accent);
  text-shadow: 0 0 48px rgba(36, 72, 216, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .social.is-pressed::after {
    animation: none;
  }

  .social,
  .social__icon {
    transition: none;
  }

  .line,
  .soon {
    transition: opacity 0.6s linear;
    filter: none;
    transform: none;
  }
}
