/* ==========================================================
   NEXO INTERNET — Design System
   ========================================================== */

:root {
  --preto: #08080D;
  --grafite: #171720;
  --roxo: #7B2CFF;
  --roxo-neon: #A855F7;
  --roxo-profundo: #3B176D;
  --branco: #FFFFFF;
  --branco-60: rgba(255,255,255,0.6);
  --branco-45: rgba(255,255,255,0.45);
  --branco-10: rgba(255,255,255,0.10);
  --gradiente: linear-gradient(90deg, var(--roxo) 0%, var(--roxo-neon) 100%);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--roxo-neon);
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: #0c0c14; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 640px; }
.mt-8 { margin-top: 32px; }
.mt-14 { margin-top: 56px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  color: var(--branco);
  background: var(--gradiente);
  box-shadow: 0 0 24px -4px rgba(168,85,247,0.7);
}
.btn-primary:hover { transform: scale(1.03); }
.btn-ghost {
  color: var(--branco);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(168,85,247,0.6); background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,13,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--branco-10);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo span { font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }
.logo .accent { color: var(--roxo-neon); }
.logo-img { height: 30px; width: auto; display: block; }
.footer-brand .logo-img { height: 34px; }

.nav-desktop { display: none; gap: 28px; align-items: center; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  color: var(--branco-60);
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--branco); }
.header-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--branco);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--branco-10);
  background: var(--preto);
  padding: 12px 20px 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile a, .nav-mobile button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--branco-60);
  font-size: 16px;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
}
.nav-mobile a.active { background: var(--branco-10); color: var(--branco); }
.nav-mobile .btn { margin-top: 8px; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta { display: block; }
  .nav-toggle { display: none; }
}

/* ---------------- Hero / fiber background ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--preto);
}
.hero-page {
  position: relative;
  overflow: hidden;
  padding: 96px 0 40px;
  background: var(--preto);
  text-align: center;
}
.fiber-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}
.fiber-line {
  animation: fiberflow 5s linear infinite;
}
@keyframes fiberflow { 0% { stroke-dashoffset: 240; } 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fiber-line, .fiber-bundle { animation: none !important; } }

.hero-x {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  pointer-events: none;
}
.hero-x-img {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  max-width: 60vw;
  border-radius: 24px;
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}
@media (min-width: 1024px) {
  .hero-x-img { opacity: 0.85; width: 520px; max-width: 42vw; }
}
.fiber-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.cta-x-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: 90vw;
  opacity: 0.25;
  pointer-events: none;
  border-radius: 24px;
}
.hero-content { position: relative; z-index: 1; padding: 60px 0; }
.hero h1 {
  font-size: 44px;
  line-height: 0.98;
  margin-top: 16px;
}
.hero h1 .accent, .hero-page h1 .accent { color: var(--roxo-neon); }
.hero p.lead { margin-top: 20px; max-width: 460px; color: var(--branco-60); font-size: 16px; }
.hero-tags {
  margin-top: 28px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--branco-45);
}
@media (min-width: 640px) {
  .hero h1 { font-size: 64px; }
  .hero-page h1 { font-size: 52px; }
}

.hero-page h1 { margin-top: 12px; font-size: 40px; }
.hero-page p.lead { margin: 16px auto 0; max-width: 560px; color: var(--branco-60); }

/* ---------------- Grids ---------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ---------------- Cards ---------------- */
.card {
  border: 1px solid var(--branco-10);
  background: rgba(23,23,32,0.5);
  border-radius: 20px;
  padding: 26px;
  transition: border-color .2s ease;
}
.card:hover { border-color: rgba(168,85,247,0.5); }
.card h3 { font-size: 16px; color: var(--branco); }
.card p { margin-top: 8px; font-size: 14px; color: var(--branco-60); }
.feature-icon { font-size: 28px; }

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--branco-10);
  background: rgba(23,23,32,0.6);
}
.plan-card.featured {
  border-color: rgba(168,85,247,0.6);
  background: linear-gradient(180deg, rgba(59,23,109,0.6), var(--grafite));
  box-shadow: 0 0 40px -12px rgba(168,85,247,0.6);
}
.plan-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--gradiente);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.plan-speed { display: flex; align-items: baseline; gap: 8px; }
.plan-speed .num { font-size: 44px; font-weight: 900; }
.plan-speed .unit { font-size: 17px; font-weight: 800; color: var(--roxo-neon); }
.plan-desc { margin-top: 10px; font-size: 14px; color: var(--branco-60); }
.plan-price { margin-top: 16px; font-size: 14px; color: var(--branco-45); }
.plan-perks { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--branco-10); display: flex; flex-direction: column; gap: 8px; }
.plan-perks li { display: flex; gap: 8px; font-size: 14px; color: var(--branco-60); }
.plan-perks li::before { content: "✓"; color: var(--roxo-neon); }
.plan-card .btn { margin-top: 24px; }

/* ---------------- CTA section ---------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--preto);
  padding: 96px 0;
  text-align: center;
}
.cta-x { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 0.18; pointer-events: none; }
.cta h2 { position: relative; font-size: 32px; line-height: 1.1; }
.cta .btn-row { position: relative; justify-content: center; margin-top: 32px; }
@media (min-width: 640px) { .cta h2 { font-size: 44px; } }

/* ---------------- Fiber bundle visual ---------------- */
.fiber-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  border-radius: 24px;
  border: 1px solid var(--branco-10);
  background: rgba(23,23,32,0.6);
}
.fiber-bundle-wrap { display: flex; gap: 8px; }
.fiber-bundle {
  width: 8px;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--roxo-neon), var(--roxo-profundo));
  animation: bundlepulse 2.4s ease-in-out infinite;
}
@keyframes bundlepulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------------- Timeline ---------------- */
.timeline { border-left: 1px solid var(--branco-10); padding-left: 24px; display: flex; flex-direction: column; gap: 24px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--roxo-neon);
}
.timeline-item h4 { font-size: 14px; color: var(--branco); }
.timeline-item p { margin-top: 4px; font-size: 14px; color: var(--branco-60); }

/* ---------------- Forms ---------------- */
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 12px; font-weight: 700; color: var(--branco-45); margin-bottom: 6px; }
.field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--preto);
  color: var(--branco);
  padding: 13px 16px;
  font-size: 14px;
  outline: none;
}
.field input:focus { border-color: var(--roxo-neon); box-shadow: 0 0 0 3px rgba(168,85,247,0.25); }
.form-card { border-radius: 24px; border: 1px solid var(--branco-10); background: rgba(23,23,32,0.6); padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 4px 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.span-2 { grid-column: 1 / -1; }

.result-box { margin-top: 24px; border-radius: 18px; padding: 24px; text-align: center; display: none; }
.result-box.show { display: block; }
.result-box.ok { border: 1px solid rgba(16,185,129,0.4); background: rgba(16,185,129,0.1); }
.result-box.no { border: 1px solid rgba(168,85,247,0.4); background: rgba(59,23,109,0.2); }
.result-box .title { font-size: 18px; font-weight: 800; }
.result-box.ok .title { color: #34d399; }
.result-box.no .title { color: var(--roxo-neon); }
.result-box p { margin-top: 8px; font-size: 14px; color: var(--branco-60); }
.result-box .btn { margin-top: 16px; }

/* ---------------- FAQ ---------------- */
.faq-item { border-bottom: 1px solid var(--branco-10); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.faq-q .plus { color: var(--roxo-neon); font-size: 20px; transition: transform .2s ease; margin-left: 16px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding-bottom: 20px; font-size: 14px; color: var(--branco-60); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--branco-10); background: var(--preto); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 260px; font-size: 14px; color: var(--branco-45); }
.footer-social { margin-top: 20px; display: flex; gap: 16px; }
.footer-social a { font-size: 14px; color: var(--branco-60); }
.footer-social a:hover { color: var(--roxo-neon); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--branco-45); }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--branco-60); }
.footer-col a:hover { color: var(--branco); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid var(--branco-10);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: var(--branco-45);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------------- WhatsApp floating button ---------------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.05); }

/* ---------------- Support cards ---------------- */
.support-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid var(--branco-10);
  background: rgba(23,23,32,0.5);
  padding: 22px;
  transition: border-color .2s ease;
}
.support-card:hover { border-color: rgba(168,85,247,0.5); }
.support-card .icon { font-size: 22px; }
.support-card .label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85); }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ---------------- Login card ---------------- */
.login-wrap { max-width: 420px; margin: 0 auto; text-align: center; }
.login-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--branco-45); }
.login-links button { background: none; border: none; color: inherit; }
.login-links button:hover { color: var(--branco); }
.login-note { margin-top: 24px; font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; }

.small-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.35); text-align: center; }
