/* styles.css — Synax Client (tema roxo neon)
   Estatico, sem dependencias de build. Fontes via Google Fonts com fallback. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Variaveis ---------- */
:root {
  --bg: #0a0414;
  --bg-2: #120726;
  --panel: rgba(22, 8, 40, 0.66);
  --ink: #f4ecff;
  --muted: #b9a7d8;
  --muted-2: #8f7cb5;
  --neon: #c026ff;
  --neon-2: #ff2bd6;
  --neon-soft: #d24dff;
  --line: rgba(178, 102, 255, 0.22);
  --glow: 0 0 18px rgba(192, 38, 255, 0.55);
  --radius: 14px;
  --maxw: 1120px;
}

/* ---------- Background ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 20, 0.72) 0%, rgba(10, 4, 20, 0.35) 32%,
      rgba(10, 4, 20, 0.45) 68%, rgba(10, 4, 20, 0.9) 100%),
    url("assets/bg.jpg") center top / cover no-repeat;
  z-index: -2;
}

/* vinheta/clareada central (coincide com o mockup) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 44%,
      rgba(120, 20, 200, 0.28), rgba(10, 4, 20, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Utilidades ---------- */
.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;
}

.skip {
  position: absolute;
  left: 50%; top: -60px;
  transform: translateX(-50%);
  background: var(--neon);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip:focus { top: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--neon-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 4, 20, 0.92), rgba(10, 4, 20, 0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  filter: drop-shadow(0 0 10px rgba(192, 38, 255, 0.7));
  border-radius: 9px;
}
.brand__name {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 20px;
  color: var(--neon-soft);
  text-shadow: 0 0 14px rgba(192, 38, 255, 0.75);
}
.brand__name b { color: #fff; font-weight: 800; text-shadow: 0 0 12px rgba(255, 255, 255, 0.45); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 2px;
  transition: color 0.18s ease;
}
.nav__link svg { width: 18px; height: 18px; fill: currentColor; }
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vh, 72px) 22px clamp(40px, 8vh, 90px);
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero__glow {
  position: absolute;
  top: 8%; left: 50%;
  width: min(760px, 90vw);
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(192, 38, 255, 0.35), rgba(192, 38, 255, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

.hero__crown {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 22px rgba(192, 38, 255, 0.9));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.wordmark {
  margin: 0;
  line-height: 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wordmark__main {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(56px, 12vw, 132px);
  letter-spacing: 0.03em;
  color: #e9c4ff;
  background: linear-gradient(180deg, #ffffff 0%, #e79bff 42%, #b026ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 26px rgba(192, 38, 255, 0.55);
  filter: drop-shadow(0 0 18px rgba(192, 38, 255, 0.65)) drop-shadow(0 0 42px rgba(140, 0, 255, 0.5));
}
.wordmark__sub {
  font-family: "Press Start 2P", "Orbitron", monospace;
  font-size: clamp(20px, 4.4vw, 46px);
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 26px rgba(192, 38, 255, 0.7);
}

.tagline {
  margin: 26px 0 0;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 700;
  color: #efe4ff;
}
.tagline em {
  font-style: normal;
  color: var(--neon-soft);
  text-shadow: 0 0 16px rgba(192, 38, 255, 0.7);
}

.lead {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: clamp(14px, 1.7vw, 18px);
  color: var(--muted);
}
.lead b { color: #efe4ff; font-weight: 700; }

/* ---------- Botoes ---------- */
.cta {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 0;
  white-space: nowrap;
}
.btn svg { fill: currentColor; }

.btn--primary {
  position: relative;
  min-width: min(520px, 92vw);
  padding: 19px 26px;
  font-size: clamp(17px, 2vw, 22px);
  color: #fff;
  background: linear-gradient(180deg, rgba(60, 8, 96, 0.85), rgba(28, 4, 48, 0.9));
  border: 2px solid var(--neon);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.35) inset,
    0 0 26px rgba(192, 38, 255, 0.55),
    0 0 60px rgba(140, 0, 255, 0.35);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 43, 214, 0.5) inset,
    0 0 34px rgba(220, 60, 255, 0.75),
    0 0 90px rgba(160, 0, 255, 0.5);
}
.btn--primary:active { transform: translateY(0); }
.btn__win { width: 26px; height: 26px; }
.btn__chev { width: 22px; height: 22px; stroke: currentColor; stroke-width: 3; fill: none; margin-left: 4px; }

.btn--ghost {
  padding: 12px 24px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink);
  background: rgba(20, 8, 36, 0.6);
  border: 1px solid rgba(192, 38, 255, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.btn--ghost svg { width: 20px; height: 20px; }
.btn--ghost:hover {
  background: rgba(40, 12, 66, 0.8);
  box-shadow: 0 0 22px rgba(192, 38, 255, 0.45);
}

.meta {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.meta .sep { color: rgba(178, 102, 255, 0.5); }
.meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #35e07a;
  box-shadow: 0 0 10px #35e07a;
}

/* ---------- Features ---------- */
.features {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 4, 20, 0.35), rgba(10, 4, 20, 0.85));
}
.features__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 54px) 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feature {
  padding: 10px 24px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.feature:first-child { border-left: 0; }

.feature__icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature__icon svg {
  width: 40px; height: 40px;
  fill: var(--neon-soft);
  filter: drop-shadow(0 0 12px rgba(192, 38, 255, 0.8));
}
.feature__title {
  margin: 0 0 4px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  color: #fff;
}
.feature__desc {
  margin: 0;
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(8, 3, 16, 0.92);
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand--footer .brand__name { font-size: 16px; }
.footer__made { margin: 0; color: var(--muted); font-size: 14px; }
.footer__made .heart { color: var(--neon-soft); font-weight: 700; }
.footer__made .beat { color: var(--neon-2); text-shadow: 0 0 10px var(--neon-2); }
.footer__tags { margin: 0; color: var(--muted-2); font-size: 13.5px; }
.footer__tags span { color: rgba(178, 102, 255, 0.6); margin: 0 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 8, 46, 0.96);
  border: 1px solid var(--neon);
  color: #fff;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  box-shadow: var(--glow);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
  max-width: 92vw;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--neon-soft); font-weight: 700; text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 18px;
    background: rgba(12, 5, 24, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid rgba(178, 102, 255, 0.12); }
  .nav__link.is-active::after { display: none; }
  .nav__toggle { display: flex; }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 10px 0; }
  .feature { padding: 18px 12px; }
  .feature:nth-child(odd) { border-left: 0; }
  .feature:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .footer__inner { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .features__grid { grid-template-columns: 1fr; }
  .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
  .features__grid .feature:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Respeita quem prefere menos animacao */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__crown { animation: none; }
  * { transition: none !important; }
}
