:root {
  --bg: #07070f;
  --text: #f5f5fc;
  --muted: rgba(230, 232, 255, 0.68);
  --faint: rgba(230, 232, 255, 0.44);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --mint: #34d399;
  --grad: linear-gradient(110deg, #c4b5fd 0%, #22d3ee 48%, #34d399 100%);
  --radius: 22px;
  --container: 1180px;
  --header-h: 76px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html:has(dialog[open]) {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

section {
  scroll-margin-top: var(--header-h);
}

/* ---------- Fundo: aurora + grade + ruído ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #15122e 0%, transparent 60%),
    var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 28s var(--ease) infinite alternate;
}

.b1 {
  width: 52vmax;
  height: 52vmax;
  left: -16vmax;
  top: -20vmax;
  background: radial-gradient(circle at 35% 35%, #7c3aed, transparent 65%);
}

.b2 {
  width: 46vmax;
  height: 46vmax;
  right: -18vmax;
  top: 6vh;
  background: radial-gradient(circle at 60% 40%, #0ea5e9, transparent 65%);
  animation-duration: 34s;
  animation-delay: -8s;
}

.b3 {
  width: 42vmax;
  height: 42vmax;
  left: 18vw;
  bottom: -24vmax;
  background: radial-gradient(circle, #10b981, transparent 65%);
  opacity: 0.32;
  animation-duration: 30s;
  animation-delay: -14s;
}

.b4 {
  width: 30vmax;
  height: 30vmax;
  right: 16vw;
  bottom: 8vh;
  background: radial-gradient(circle, #ec4899, transparent 65%);
  opacity: 0.24;
  animation-duration: 38s;
  animation-delay: -4s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.94); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 28%, #000 15%, transparent 75%);
  opacity: 0.4;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 14, 28, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand strong {
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--glass-strong);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(28px, 5vh, 60px) 8px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.2vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 20px auto 18px;
  max-width: 15ch;
  text-wrap: balance;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  text-wrap: pretty;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.stat {
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.9rem;
}

.stat strong {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 2px;
}

/* ---------- Filtros ---------- */
.universe-section {
  padding-top: clamp(22px, 4vh, 36px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  --dev-color: #8b5cf6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.35s var(--ease), transform 0.25s var(--ease);
}

.chip-all {
  padding-left: 16px;
}

.chip .count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--faint);
  min-width: 1.4em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.avatar-sm {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dev-grad, var(--grad));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: 0 10px 34px -12px var(--dev-color), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chip[aria-pressed="true"] .count {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.universe-empty {
  margin: 18px auto 0;
  max-width: 460px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 40, 0.5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.universe-empty strong {
  color: var(--text);
}

/* ---------- Universo de logos ---------- */
.universe {
  --px: 0;
  --py: 0;
  --rx1: 260px;
  --ry1: 150px;
  --rx2: 470px;
  --ry2: 260px;
  position: relative;
  width: min(100%, 1320px);
  height: clamp(600px, 76vh, 760px);
  margin: 8px auto 0;
}

.links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.link {
  stroke: var(--accent);
  stroke-opacity: 0.2;
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  animation: flow 1.8s linear infinite;
  transition: stroke-opacity 0.4s, stroke-width 0.4s;
}

.link.is-hot {
  stroke-opacity: 0.75;
  stroke-width: 1.8;
}

.link.is-dim {
  stroke-opacity: 0.04;
}

@keyframes flow {
  to { stroke-dashoffset: -20; }
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-inner {
  width: calc(var(--rx1) * 2);
  height: calc(var(--ry1) * 2);
  border-style: dashed;
}

.orbit-outer {
  width: calc(var(--rx2) * 2);
  height: calc(var(--ry2) * 2);
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.06), transparent);
}

.hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 62%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -8px), 0);
  transition: transform 0.8s var(--ease);
}

.hub-glow {
  position: absolute;
  inset: -34px;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8b5cf6, #22d3ee, #34d399, #f472b6, #8b5cf6);
  filter: blur(34px);
  opacity: 0.42;
  animation: spin 16s linear infinite;
}

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

.hub-core img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.45));
}

.hub-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.bubbles {
  position: absolute;
  inset: 0;
}

.bubble {
  --size: 110px;
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  animation: pop 0.9s var(--ease) var(--enter, 0s) both;
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

.bubble-parallax,
.bubble-float {
  display: block;
  width: 100%;
  height: 100%;
}

.bubble-parallax {
  transform: translate3d(calc(var(--px) * var(--depth, 10) * 1px), calc(var(--py) * var(--depth, 10) * 1px), 0);
  transition: transform 0.7s var(--ease);
}

.bubble-float {
  position: relative;
  animation: float var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(4px, -10px, 0) rotate(1.5deg); }
  50% { transform: translate3d(-3px, -16px, 0) rotate(-1deg); }
  75% { transform: translate3d(-5px, -6px, 0) rotate(1deg); }
}

.bubble-glass {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05) 46%, rgba(255, 255, 255, 0.02) 72%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow:
    0 22px 50px -20px rgba(0, 0, 0, 0.75),
    0 0 42px -12px color-mix(in srgb, var(--accent) 70%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}

.bubble-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 22, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.35s, background 0.35s;
}

@media (hover: hover) {
  .bubble:hover .bubble-glass {
    transform: scale(1.09);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
      0 30px 60px -20px rgba(0, 0, 0, 0.8),
      0 0 70px -6px color-mix(in srgb, var(--accent) 80%, transparent),
      inset 0 1px 1px rgba(255, 255, 255, 0.5),
      inset 0 -12px 30px rgba(0, 0, 0, 0.12);
  }

  .bubble:hover .bubble-label {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    background: rgba(18, 18, 36, 0.8);
  }
}

.bubble:focus-visible {
  outline: none;
}

.bubble:focus-visible .bubble-glass {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.bubble.is-match .bubble-glass {
  border-color: color-mix(in srgb, var(--accent) 70%, #fff 10%);
  box-shadow:
    0 22px 50px -20px rgba(0, 0, 0, 0.75),
    0 0 80px -4px color-mix(in srgb, var(--accent) 85%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.bubble.is-dim {
  opacity: 0.16;
  filter: grayscale(0.85) blur(1.5px);
}

/* Logos dentro das bolhas, modal e chips */
.logo-plate,
.logo-tile,
.logo-bare {
  display: grid;
  place-items: center;
}

.logo-plate {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #eceefe);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55), inset 0 -3px 8px rgba(30, 30, 80, 0.08);
}

.logo-plate img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.logo-tile {
  width: 60%;
  height: 60%;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 23%;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.65);
}

.logo-bare {
  width: 64%;
  height: 64%;
}

.logo-bare img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.86rem;
}

.hint svg {
  width: 18px;
  height: 18px;
}

.noscript-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.noscript-list a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

/* Modo grade (telas estreitas) */
.universe.is-grid {
  height: auto;
  margin-top: 26px;
  padding-inline: 16px;
}

.universe.is-grid .links,
.universe.is-grid .orbit,
.universe.is-grid .hub-core {
  display: none;
}

.universe.is-grid .bubbles {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 8px;
  max-width: 520px;
  margin-inline: auto;
  padding-bottom: 44px;
}

.universe.is-grid .bubble {
  --size: clamp(80px, 24vw, 108px);
  position: relative;
  left: auto;
  top: auto;
  margin: 0 auto;
}

.universe.is-grid .bubble:nth-child(3n + 2) {
  margin-top: 34px;
}

.universe.is-grid .bubble-label {
  font-size: 0.74rem;
  padding: 2px 9px;
}

/* ---------- Devs ---------- */
.devs-section {
  padding-block: clamp(70px, 12vh, 130px) 40px;
}

.section-head {
  text-align: center;
  margin-bottom: 38px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 14px 0 8px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.devs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}

.dev-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}

.dev-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 200px;
  height: 200px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: var(--dev-color);
  filter: blur(64px);
  opacity: 0.32;
  pointer-events: none;
  transition: opacity 0.4s;
}

@media (hover: hover) {
  .dev-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
  }

  .dev-card:hover::before {
    opacity: 0.5;
  }
}

.dev-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--dev-grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 12px 30px -12px var(--dev-color), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dev-info {
  flex: 1;
  min-width: 0;
}

.dev-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dev-count {
  color: var(--muted);
  font-size: 0.86rem;
}

.dev-filter {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}

.dev-filter svg {
  width: 18px;
  height: 18px;
}

.dev-filter:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.dev-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.mini:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
}

.mini-logo > span {
  width: 100%;
  height: 100%;
}

.mini-logo .logo-tile img {
  border-radius: 8px;
  box-shadow: none;
}

.mini-logo .logo-plate img {
  width: 66%;
  height: 66%;
}

.mini-logo .logo-bare img {
  filter: none;
}

.dev-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--faint);
  font-size: 0.9rem;
}

.dev-empty .dots {
  display: inline-flex;
  gap: 4px;
}

.dev-empty .dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dev-color);
  animation: blink 1.4s infinite;
}

.dev-empty .dots i:nth-child(2) { animation-delay: 0.2s; }
.dev-empty .dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

/* ---------- Rodapé ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- Modal ---------- */
.modal {
  width: min(640px, 100% - 32px);
  max-width: none;
  max-height: min(88vh, 880px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(4, 4, 12, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}

.modal[open] {
  animation: modal-in 0.45s var(--ease);
}

.modal[open]::backdrop {
  animation: fade-in 0.35s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal-card {
  --accent: #8b5cf6;
  --on-accent: #fff;
  position: relative;
  max-height: min(88vh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(90% 60% at 0% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    linear-gradient(160deg, rgba(30, 30, 52, 0.8), rgba(12, 12, 24, 0.86));
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-card:focus {
  outline: none;
}

.sheet-handle {
  display: none;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.25s, transform 0.3s var(--ease);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 48px;
}

.modal-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 60%);
  box-shadow: 0 0 50px -10px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.modal-logo .logo-plate {
  width: 76%;
  height: 76%;
}

.modal-logo .logo-tile,
.modal-logo .logo-bare {
  width: 70%;
  height: 70%;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 55%, #fff);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-title {
  margin: 8px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.modal-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.modal-desc {
  margin: 22px 0 0;
  color: rgba(240, 240, 255, 0.84);
  text-wrap: pretty;
}

.modal-sub {
  margin: 22px 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

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

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  line-height: 1.4;
}

.features svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: color-mix(in srgb, var(--accent) 70%, #fff);
}

.modal-devs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--faint);
  font-size: 0.86rem;
}

.dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.dev-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, border-color 0.25s;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  flex: 1 1 240px;
  color: var(--on-accent);
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%);
  box-shadow: 0 16px 36px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  flex: 1 1 180px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.modal-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.modal-url svg {
  width: 14px;
  height: 14px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  .blob {
    filter: blur(64px);
  }

  .nav-links a {
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .modal {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
  }

  .modal[open] {
    animation: sheet-in 0.5s var(--ease);
  }

  @keyframes sheet-in {
    from { transform: translateY(100%); }
    to { transform: none; }
  }

  .modal-card {
    max-height: 92vh;
    padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
  }

  .sheet-handle {
    display: block;
    width: 44px;
    height: 5px;
    margin: -12px auto 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .modal-close {
    top: 22px;
    right: 14px;
  }

  .modal-hero {
    gap: 14px;
  }

  .modal-logo {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

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

  .btn-primary,
  .btn-ghost {
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .brand {
    font-size: 0.92rem;
    gap: 8px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-links a {
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  .universe.is-grid .bubbles {
    gap: 26px 4px;
  }
}

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