/* Spectra — página de download. Mesma linguagem do EchoRoom ("Frequência"). */

:root {
  --bg: #10111a;
  --bg-deep: #0a0b11;
  --surface: #161724;
  --surface-2: #1e1f30;
  --surface-3: #282a3e;
  --line: #2c2e45;
  --line-soft: #1b1c2a;
  --text: #ecebf7;
  --text-muted: #a3a4c2;
  --text-faint: #6a6c8c;
  --accent: #7c5cff;
  --accent-hi: #9479ff;
  --accent-tint: rgba(124, 92, 255, 0.14);
  --live: #2fe0c4;
  --red: #ff5c7a;
  --grad: linear-gradient(90deg, #8b5cff 0%, #4c8dff 55%, #2fe0c4 100%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--font-display);
}
a {
  color: var(--accent-hi);
}
:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

/* ---- barra superior ----------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(10, 11, 17, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--grad);
  opacity: 0.55;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.topnav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  margin-right: 8px;
}
.topnav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.topnav a:hover {
  color: var(--text);
}

/* ---- botões ----------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s, box-shadow 0.12s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.btn-top {
  height: 36px;
}
.btn-xl {
  height: 58px;
  padding: 0 32px;
  margin-top: 36px;
  font-size: 17px;
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.35);
}
.btn-xl:hover {
  box-shadow:
    0 0 0 5px var(--accent-tint),
    0 20px 60px rgba(124, 92, 255, 0.45);
}

/* ---- topo ---------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px 0;
}
.hero > *:not(.glow) {
  position: relative;
  z-index: 1;
}
.glow {
  position: absolute;
  z-index: 0;
  top: -120px;
  left: 50%;
  width: 1200px;
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 45%, rgba(139, 92, 255, 0.42), transparent),
    radial-gradient(closest-side at 65% 50%, rgba(76, 141, 255, 0.3), transparent),
    radial-gradient(closest-side at 50% 80%, rgba(47, 224, 196, 0.18), transparent);
  filter: blur(40px);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px;
  height: 12px;
}
.eq i {
  width: 3px;
  height: 100%;
  background: var(--live);
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.eq i:nth-child(2) {
  animation-duration: 0.7s;
  animation-delay: -0.3s;
}
.eq i:nth-child(3) {
  animation-duration: 1.1s;
  animation-delay: -0.6s;
}
@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}
.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 58ch;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 18px;
}
.note {
  margin-top: 16px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---- prévia do app (desenhada em HTML, nada de imagem pesada) ------------------------ */

.mock {
  width: 100%;
  max-width: 1040px;
  margin-top: 72px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 120px rgba(124, 92, 255, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  font-size: 13px;
  user-select: none;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 196px;
  font-family: var(--font-display);
  font-weight: 700;
}
.mock-room {
  color: var(--text-muted);
}
.mock-room b {
  color: var(--text);
  letter-spacing: 0.1em;
}
.mock-status {
  margin-left: auto;
  padding: 4px 10px;
  color: var(--live);
  background: var(--surface);
  font-weight: 600;
}
.mock-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 400px;
}
.mock-left {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 14px 10px;
  background: var(--bg-deep);
  border-right: 1px solid var(--line-soft);
}
.mock small {
  padding: 0 4px 8px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock-p {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}
.mock-p:first-of-type {
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.mock-p > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.mock-p b,
.mock-p em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-p em {
  font-style: normal;
  color: var(--text-faint);
  font-size: 12px;
}
.mock-p i {
  padding: 1px 6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.mock-main {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 0;
}
.mock-video {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(139, 92, 255, 0.55), transparent),
    radial-gradient(60% 80% at 75% 70%, rgba(47, 224, 196, 0.35), transparent),
    #0b0c18;
  overflow: hidden;
}
/* "Tela" transmitida: janelas flutuando */
.mock-screen {
  position: relative;
  width: 62%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(7, 8, 12, 0.35);
}
.mock-screen i {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}
.mock-screen i:nth-child(1) {
  left: 8%;
  top: 12%;
  width: 46%;
  height: 52%;
}
.mock-screen i:nth-child(2) {
  right: 8%;
  top: 22%;
  width: 34%;
  height: 30%;
  animation-delay: -2s;
}
.mock-screen i:nth-child(3) {
  right: 14%;
  bottom: 12%;
  width: 40%;
  height: 22%;
  background: var(--grad);
  opacity: 0.7;
  animation-delay: -4s;
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
.mock-live {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.mock-live b {
  margin-left: 6px;
}
.mock-q {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  background: rgba(10, 11, 17, 0.8);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-weight: 600;
}
.mock-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.mock-dock b,
.mock-dock em {
  display: block;
}
.mock-dock em {
  font-style: normal;
  color: var(--text-faint);
  font-size: 12px;
}
.mock-btn {
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---- como funciona ---------------------------------------------------------------------- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 120px 24px 0;
}
.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-hi);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2 {
  max-width: 640px;
  margin-bottom: 40px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 32px 28px;
  background: var(--surface);
}
.steps b {
  justify-self: start;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps strong {
  font-size: 18px;
}
.steps span {
  color: var(--text-muted);
}
.smartscreen {
  margin-top: 24px;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 14px;
}
.smartscreen b {
  color: var(--text);
}

/* ---- rodapé -------------------------------------------------------------------------------- */

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---- responsivo ------------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .mock-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-left,
  .mock-brand {
    display: none;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 0 16px;
  }
  .topnav {
    display: none;
  }
  .btn-top {
    margin-left: auto;
  }
  .hero {
    padding: 64px 16px 0;
  }
  .lead {
    font-size: 16px;
  }
  .btn-xl {
    width: 100%;
  }
  .mock {
    margin-top: 48px;
  }
  .mock-video {
    min-height: 180px;
  }
  .mock-status,
  .mock-q {
    display: none;
  }
  .section {
    padding: 80px 16px 0;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 16px 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* aviso do limite de tráfego do servidor */
.usage-notice {
  position: relative;
  z-index: 5;
  padding: 12px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: #f0b54a;
  background: rgba(240, 181, 74, 0.12);
  border-bottom: 1px solid #f0b54a;
}
.usage-notice.blocked {
  color: #ff5c7a;
  background: rgba(255, 92, 122, 0.14);
  border-bottom-color: #ff5c7a;
}
