:root {
  --bg: #060a12;
  --surface: #0f172a;
  --surface-2: #1e293b;
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --accent: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #1e293b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 16px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

select.lang-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #042f2e;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  transition: 0.2s;
}

.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: rgba(6, 182, 212, 0.08); }
.btn-accent { background: var(--accent); color: #022c22; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 76px 0 56px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(6, 182, 212, 0.16), transparent 62%);
}

.pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
  border-color: rgba(6, 182, 212, 0.35);
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  max-width: 960px;
  margin: 0 auto 20px;
}

h1 span { color: var(--primary); }

.hero p {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mapa Submarino Interativo */
.subsea-map-wrapper {
  margin-top: 48px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85), rgba(6, 10, 18, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.subsea-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.map-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.dot-cyan { width: 10px; height: 10px; border-radius: 50%; background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-red { width: 14px; height: 2px; border-top: 2px dashed #ef4444; }

.subsea-svg { width: 100%; height: auto; max-height: 430px; display: block; }
.cable-flow { stroke-dasharray: 10 8; animation: flowPacket 1.8s linear infinite; }
.cable-flow-fast { stroke-dasharray: 14 10; animation: flowPacket 1.2s linear infinite; }
.pulse-ring { transform-origin: 365px 255px; animation: radarPulse 2.4s ease-out infinite; }

@keyframes flowPacket { to { stroke-dashoffset: -36; } }
@keyframes radarPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Trust Strip */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 48px 0 10px;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.trust-item strong { display: block; font-size: 1.55rem; color: var(--primary); margin-bottom: 4px; }
.trust-item span { font-size: 0.85rem; color: var(--muted); }

section { padding: 68px 0; }
.sec-title { text-align: center; font-size: clamp(1.75rem, 3.5vw, 2.35rem); font-weight: 800; margin-bottom: 12px; }
.sec-sub { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 44px; }

/* Fortaleza Hub & Tier III Banner */
.hub-box {
  background: linear-gradient(145deg, #0f172a, #0b1324);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 18px;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: center;
}

.cable-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cable-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Products Showcase */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.prod-card.highlight {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.06), var(--surface));
}

.prod-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent);
}

.prod-card.highlight .prod-tag { background: rgba(6, 182, 212, 0.18); color: var(--primary); }

/* No-Logs & Security Box */
.nologs-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 16px;
  padding: 28px;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--surface);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
  margin-inline: auto;
  border: 1px solid var(--border);
}

.toggle-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn.active { background: var(--primary); color: #042f2e; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.popular { border: 2px solid var(--primary); }

.badge-pop {
  position: absolute;
  top: -13px;
  right: 20px;
  background: var(--accent);
  color: #022c22;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.plan-price { font-size: 2.5rem; font-weight: 800; margin: 14px 0 4px; }
.plan-price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.plan-features { list-style: none; margin: 20px 0 28px; flex-grow: 1; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.92rem; }
.plan-features li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* Downloads */
.os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.os-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
}
.os-card:hover { border-color: var(--primary); background: var(--surface-2); }
.os-card span { font-size: 0.84rem; color: var(--primary); font-weight: 600; }

/* Dashboard */
#dashboardSection {
  display: none;
  background: #0a101d;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.dash-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.role-badge { padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; background: rgba(6, 182, 212, 0.15); color: var(--primary); }
.role-badge.admin { background: rgba(245, 158, 11, 0.2); color: var(--warn); }
.dash-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.st-pending { background: rgba(245, 158, 11, 0.15); color: var(--warn); }
.st-active { background: rgba(16, 185, 129, 0.15); color: var(--accent); }

/* Modals */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.modal-lg { max-width: 780px; }
.close-modal { position: absolute; top: 14px; right: 18px; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-size: 0.84rem; color: var(--muted); margin-bottom: 5px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.92rem;
}

.contract-text {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.7;
}

.contract-text h4 { color: var(--text); margin: 16px 0 6px; }

/* Upgrade summary box */
.upgrade-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.upgrade-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upgrade-row:last-child {
  border-bottom: none;
  padding-top: 10px;
  font-size: 1.05rem;
}

/* Social Links Footer */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: 0.2s;
}

.social-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Floating 24/7 Support Dock (WhatsApp & Discord) */
.support-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: 0.2s;
}

.support-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.support-pill.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.support-pill.discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
}

footer { border-top: 1px solid var(--border); padding: 44px 0 90px; color: var(--muted); font-size: 0.88rem; }
footer a { color: var(--primary); text-decoration: none; cursor: pointer; }

@media (max-width: 860px) { .nav-links { display: none; } }
