/* =======================================================================
   RemoteVault — tema dark refinado (inspiração: tipografia fina + muito ar)
   ======================================================================= */
:root {
  --bg: #0b0f1a;
  --bg-2: #0f172a;
  --card: #1e293b;
  --card-2: #172033;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --text: #e8edf7;
  --muted: #8b97ad;
  --muted-2: #64748b;
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-soft: rgba(37, 99, 235, 0.14);
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Fundo com gradiente radial sutil + grid */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(59, 130, 246, 0.08), transparent 55%),
    var(--bg);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 600px at 50% 0%, #000 40%, transparent 85%);
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Tipografia ----- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 500;
}
.lead { color: var(--muted); font-size: 1.075rem; max-width: 560px; }
.grad-text {
  background: linear-gradient(180deg, #fff 0%, #9fb4d6 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- Navbar ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 26, 0.6);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 6px 20px rgba(37,99,235,0.45);
  display: grid; place-items: center;
}
.nav-links { display: flex; gap: 30px; color: var(--muted); font-size: 0.925rem; }
.nav-links a:hover { color: var(--text); }

/* ----- Botões ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; transition: 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37,99,235,0.5); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ----- Cartões ----- */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card:hover { border-color: var(--line-strong); }

/* ----- Seções ----- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* ----- Hero ----- */
.hero { padding: 110px 0 80px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px; font-size: 0.8rem; color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.pill .ping { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 42px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .n { font-size: 1.7rem; font-weight: 600; }
.hero-stats .l { color: var(--muted); font-size: 0.85rem; }

/* ----- Features ----- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.feature .ic {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); border: 1px solid rgba(37,99,235,0.3);
  color: var(--brand-2);
}
.feature h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ----- Pricing ----- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 1px rgba(37,99,235,0.25), 0 20px 50px rgba(37,99,235,0.15); }
.plan .tag {
  position: absolute; top: 18px; right: 18px; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-2);
  border: 1px solid rgba(37,99,235,0.4); border-radius: 999px; padding: 4px 10px;
}
.plan .pname { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.plan .pprice { font-size: 2.6rem; font-weight: 600; margin: 14px 0 2px; }
.plan .pprice span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan .pdesc { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: #cdd7e8; }
.plan li svg { flex: none; margin-top: 2px; color: var(--brand-2); }
.plan .btn { margin-top: auto; }

/* ----- Forms ----- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.input, select.input {
  width: 100%; height: 48px; padding: 0 14px;
  background: #0d1526; border: 1px solid var(--line-strong);
  border-radius: 11px; color: var(--text); font-size: 0.98rem; outline: none;
  transition: 0.15s;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ----- Chave de licença / código ----- */
.keybox {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #0d1526; border: 1px dashed var(--line-strong);
  border-radius: 12px; padding: 16px 18px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 1.15rem; letter-spacing: 0.06em;
}
code, .mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* ----- Tabela admin ----- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 500; }
.badge.ok { background: rgba(34,197,94,0.14); color: #4ade80; }
.badge.off { background: rgba(239,68,68,0.14); color: #f87171; }
.badge.warn { background: rgba(245,158,11,0.14); color: #fbbf24; }

/* ----- Util ----- */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .num {
  counter-increment: s; flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; background: var(--brand-soft);
  border: 1px solid rgba(37,99,235,0.3); color: var(--brand-2); font-size: 0.85rem; font-weight: 600;
}
.step .num::before { content: counter(s); }
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 0.88rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card); border: 1px solid var(--line-strong); color: var(--text);
  padding: 12px 18px; border-radius: 10px; opacity: 0; transition: 0.25s; z-index: 100;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .grid-3, .grid-2, .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 70px 0 50px; }
  .section { padding: 64px 0; }
}
