:root {
  --bg: #07070b;
  --ink: #f4f4f6;
  --muted: #a0a0b0;
  --accent: #ff2d4a;
  --accent-2: #2ef2c6;
  --card: #12121a;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: "Oxanium", system-ui, sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: inherit; }

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 30%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%),
    #07070b;
  transition: background 0.35s ease;
}

/* Fundo vivo do pack escolhido (só nesta sessão/visitante) */
.pack-live {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-color: #050508;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  transition: opacity 0.25s ease;
}

.pack-live::after {
  content: "";
  position: absolute;
  inset: 0;
  /* leve blur + vinheta: esconde residual de upscale em telas grandes */
  backdrop-filter: blur(0.6px);
  background: linear-gradient(95deg, rgba(7, 7, 11, 0.88) 0%, rgba(7, 7, 11, 0.45) 45%, rgba(7, 7, 11, 0.28) 100%);
}

html[data-site-pack] .pack-live { opacity: 1; }
html[data-site-pack] .sky { opacity: 0.25; }

html[data-site-pack="crimson-glitch"] {
  --accent: #ff2a3d;
  --accent-2: #ff5a6a;
}
html[data-site-pack="cyber-teal"] {
  --accent: #2ef2c6;
  --accent-2: #14d4aa;
}
html[data-site-pack="sakura-haze"] {
  --accent: #ff7eb6;
  --accent-2: #e85a9a;
}
html[data-site-pack="void-ember"] {
  --accent: #ff8a3d;
  --accent-2: #ff6a1a;
}
html[data-site-pack="neon-violet"] {
  --accent: #b57bff;
  --accent-2: #9b5cff;
}
html[data-site-pack="arctic-glass"] {
  --accent: #6ec8ff;
  --accent-2: #3aaef0;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255,255,255,.25), transparent),
    radial-gradient(1.5px 1.5px at 160px 70px, rgba(255,255,255,.2), transparent),
    radial-gradient(1px 1px at 240px 180px, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 320px 40px, rgba(255,255,255,.2), transparent);
  background-size: 360px 220px;
  opacity: 0.55;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to { opacity: 0.7; }
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ----- Nav ----- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-cta {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0c;
  background: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #ffe8eb;
}

/* ----- Hero ----- */
.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 4rem;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: rise 0.8s ease both;
}

.hero-copy h1 .brand-word {
  color: var(--accent);
}

.hero-copy .lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  animation: rise 0.8s ease 0.1s both;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.18s both;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #ff5a6e, #ff2d4a 60%, #d91632);
  padding: 0.95rem 1.4rem;
  border-radius: 12px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-dl:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.ver {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 0.8s ease 0.24s both;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  animation: rise 0.9s ease 0.12s both;
}

.hero-stage {
  position: absolute;
  inset: 8% 0 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0c12;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.06) contrast(1.02) brightness(0.94);
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 7, 11, 0.55) 0%, transparent 55%);
}

.hero-float {
  display: none;
}

.logo-badge {
  position: absolute;
  top: 0;
  right: 8%;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(255, 45, 74, 0.25);
  animation: floaty 4.5s ease-in-out infinite alternate-reverse;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

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

/* ----- Sections ----- */
.section {
  padding: 2.5rem 0 1rem;
}

.section-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 18ch;
}

.section-sub {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Themes highlight */
.themes-panel {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 10% 20%, rgba(255, 45, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(46, 242, 198, 0.1), transparent 50%),
    #101018;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.theme-card {
  position: relative;
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #181822;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
}

.theme-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.theme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.88) 100%);
}

.theme-card strong,
.theme-card span {
  position: relative;
  z-index: 1;
}

.theme-card strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.theme-card span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
}

.theme-card.active,
.theme-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 12px 32px color-mix(in srgb, var(--accent) 22%, transparent);
}

.theme-none {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background: #16161f;
}
.theme-none::after { display: none; }

.themes-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.themes-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--accent-2) 85%, #fff);
}

/* Feature rows */
.feature {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.feature.reverse .feature-media { order: 2; }
.feature.reverse .feature-text { order: 1; }

.feature-media {
  position: relative;
  min-height: 240px;
  border-radius: 20px;
  overflow: hidden;
  background: #0c0c12;
}

.feature-media.glow-red {
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 45, 74, 0.35), transparent 55%),
    #0d0d14;
}

.feature-media.glow-teal {
  background:
    radial-gradient(circle at 70% 40%, rgba(46, 242, 198, 0.28), transparent 55%),
    #0d0d14;
}

.feature-media.glow-ember {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 138, 61, 0.28), transparent 55%),
    #0d0d14;
}

.feature-media img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.92;
}

.mock {
  position: absolute;
  inset: 12%;
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 0.55rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.mock-side {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.55rem;
}

.mock-side .line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 0.4rem;
}

.mock-side .line.short { width: 55%; }
.mock-side .pill {
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 45, 74, 0.2);
  border-left: 3px solid var(--accent);
  margin-top: 0.45rem;
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: flex-end;
}

.bubble {
  align-self: flex-start;
  max-width: 92%;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

.bubble.me {
  align-self: flex-end;
  background: rgba(255, 45, 74, 0.22);
}

.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}

.feature-text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.feature-text p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.perf-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.perf-tags span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.perf-tags .light { color: var(--accent-2); border-color: rgba(46, 242, 198, 0.35); }
.perf-tags .clean { color: #ff8a9a; border-color: rgba(255, 45, 74, 0.35); }

/* CTA band */
.cta-band {
  margin: 3rem 0 2rem;
  padding: 2rem 1.5rem;
  border-radius: 28px;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 45, 74, 0.2), transparent 60%),
    #101018;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-transform: uppercase;
}

.cta-band p {
  margin: 0.7rem auto 1.25rem;
  max-width: 28rem;
  color: var(--muted);
}

.foot {
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c6a;
  border-top: 1px solid var(--line);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.85rem;
}

.foot a {
  color: var(--accent-2);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.foot p {
  margin: 0;
  letter-spacing: 0.1em;
}

/* ----- Legal / contato ----- */
.legal-wrap {
  padding-bottom: 2rem;
}

.legal {
  max-width: 40rem;
  margin: 1.5rem auto 3rem;
  padding: 0 0.25rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.15;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.75rem 0 0.65rem;
  color: var(--ink);
}

.legal p,
.legal li {
  color: #c8c8d4;
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.legal a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
}

.contact-list {
  list-style: none;
  padding: 0 !important;
  margin: 1rem 0 1.25rem !important;
  display: grid;
  gap: 0.75rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-list span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

  .hero-visual {
    min-height: 340px;
    order: -1;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
  }

  .feature.reverse .feature-media,
  .feature.reverse .feature-text {
    order: initial;
  }
}

@media (max-width: 520px) {
  .theme-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-dl, .btn-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sky::after,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-actions,
  .ver,
  .hero-visual,
  .hero-float,
  .logo-badge {
    animation: none;
  }
}

/* ——— Página de convite /i/XXXX ——— */
body.invite-page .invite-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.invite-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

.invite-card {
  width: min(440px, 100%);
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: invite-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.invite-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #12121a;
}

.invite-banner-fallback {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #1a0a10), #0a0a12 70%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent-2) 35%, transparent), transparent 50%);
}

.invite-body {
  padding: 0 1.5rem 1.75rem;
  margin-top: -36px;
  text-align: center;
}

.invite-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 18px;
  border: 4px solid var(--card);
  background: #1a1a24;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.invite-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.invite-body h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
}

.invite-desc {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.invite-meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.invite-meta code {
  font-family: ui-monospace, monospace;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.invite-hint {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.invite-warn {
  color: #ff8a9a;
  margin: 0 0 1rem;
}

.invite-loading,
.invite-error {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.invite-logo {
  margin: 0 auto 1rem;
  border-radius: 16px;
}

.invite-skel {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(90deg, #1a1a24, #2a2a36, #1a1a24);
  background-size: 200% 100%;
  animation: invite-shimmer 1.1s ease infinite;
}

@keyframes invite-shimmer {
  to { background-position: -200% 0; }
}

.invite-card.is-expired {
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .invite-card,
  .invite-skel { animation: none; }
}

