:root {
  --bg: #07080c;
  --bg-elev: #10131a;
  --ink: #f4f1ea;
  --muted: #9aa3b2;
  --line: rgba(244, 241, 234, 0.1);
  --brand: #8b5cf6;
  --brand-deep: #6d28d9;
  --accent: #2dd4bf;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 50% -20%, #161022 0%, var(--bg) 58%);
}

.stage-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(45, 212, 191, 0.08), transparent 40%);
}

.stage-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.stage-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.stage-orb-a {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -160px;
  background: rgba(109, 40, 217, 0.35);
  animation: drift 14s ease-in-out infinite;
}

.stage-orb-b {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 18%;
  background: rgba(45, 212, 191, 0.18);
  animation: drift 18s ease-in-out infinite reverse;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.75rem);
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.nav-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.92rem/1 var(--font-body);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.22);
}

.top-actions {
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 0.92rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-login,
.btn-primary {
  color: #0a0b0f;
  background: linear-gradient(135deg, #f4f1ea 0%, #d7dde8 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-login:hover,
.btn-primary:hover {
  background: #fff;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

main {
  min-height: calc(100vh - 7rem);
}

.panel {
  display: none;
}

.panel.is-visible {
  display: block;
}

.hero {
  min-height: calc(100vh - 5.75rem);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 7vh, 4.5rem) 0;
  animation: rise 0.75s ease both;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff 10%, #b9c0ce 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  margin: 0;
  max-width: 19ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.8vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.nowrap {
  white-space: nowrap;
}

.hero-lede {
  margin: 1.15rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero-reviews {
  justify-self: end;
  width: min(100%, 520px);
}

.orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.orbit-ring {
  position: absolute;
  top: 42px;
  left: 90px;
  width: 100%;
  height: 100%;
  z-index: 3;
  animation: orbit-spin 42s linear infinite;
  transform-origin: center center;
}

.orbit.is-paused .orbit-ring,
.orbit.is-paused .balloon-face {
  animation-play-state: paused;
}

.logo-core {
  position: absolute;
  inset: 26%;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.logo-glass {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 35% 25%, rgba(139, 92, 246, 0.4), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(45, 212, 191, 0.22), transparent 50%),
    linear-gradient(165deg, rgba(28, 22, 48, 0.92), rgba(10, 16, 18, 0.95));
  border: 1px solid rgba(244, 241, 234, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: floaty 6.5s ease-in-out infinite;
}

.logo-glass img {
  width: 68%;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(139, 92, 246, 0.4));
}

.balloon {
  --angle: 0deg;
  /* Percentual aqui virava zero porque o marcador não tem largura/altura. */
  --radius: clamp(150px, 20vw, 210px);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateY(calc(var(--radius) * -1));
  transform-origin: center center;
}

.balloon-face {
  position: absolute;
  left: 0;
  top: 0;
  width: 118px;
  animation: orbit-spin-rev 42s linear infinite;
  transform-origin: center center;
}

.balloon-level {
  transform: rotate(calc(var(--angle) * -1));
  transform-origin: center center;
}

.balloon-card {
  width: 100%;
  padding: 0.42rem 0.5rem;
  border-radius: 12px;
  background: rgba(18, 20, 28, 0.92);
  border: 1px solid rgba(244, 241, 234, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  text-align: left;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.balloon.is-front {
  z-index: 30;
}

.balloon.is-front .balloon-card {
  transform: translate(-50%, -50%) scale(1.18);
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.balloon-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.22rem;
}

.balloon-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(139, 92, 246, 0.55);
  background: #1a1228;
  flex-shrink: 0;
}

.balloon-name {
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.1;
}

.balloon-stars {
  color: #fbbf24;
  font-size: 0.55rem;
  line-height: 1;
}

.balloon-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reviews-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.servers {
  width: min(920px, calc(100% - 2rem));
  margin: 2.75rem auto 4.5rem;
  animation: rise 0.6s ease both;
}

.servers-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.servers-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.servers-lede {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.server-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(16, 19, 26, 0.72);
}

.server-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.server-row:last-child {
  border-bottom: 0;
}

.server-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.server-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.server-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.server-meta strong {
  font-size: 1.05rem;
}

.server-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.foot-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.foot-brand p {
  max-width: 32ch;
  margin: 0.8rem 0 0;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: clamp(2rem, 7vw, 5rem);
}

.foot-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.foot-links strong {
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.82rem;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin-rev {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -18px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-reviews {
    order: -1;
    justify-self: stretch;
    width: min(100%, 380px);
    margin: 0 auto;
    transform: none;
  }

  .orbit-ring {
    top: 0;
    left: 0;
  }

  .balloon {
    --radius: clamp(142px, 39vw, 158px);
  }
}

@media (max-width: 720px) {
  .top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .brand {
    grid-area: brand;
  }

  .nav {
    grid-area: nav;
    justify-content: stretch;
  }

  .nav-link {
    flex: 1;
  }

  .top-actions {
    grid-area: actions;
  }

  .server-row {
    grid-template-columns: auto 1fr;
  }

  .server-row .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .foot {
    grid-template-columns: 1fr;
  }

  .foot-links {
    gap: 1.5rem;
  }

  .foot-bottom {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .foot-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
