/* SpectorVPN design system — dark minimal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07090c;
  --bg-2: #0a0d12;
  --surface: #0e1218;
  --surface-2: #131922;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #e9eef3;
  --muted: #8b96a5;
  --dim: #5a6472;
  --accent: #2ab7b5;
  --accent-2: #7fe3d8;
  --accent-soft: rgba(42, 183, 181, .12);
  --danger: #f0616d;
  --warn: #e8b04a;
  --ok: #3ccf91;
  --radius: 14px;
  --radius-lg: 22px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--accent); color: #001312; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 12px;
  font: 600 15px/1 var(--sans); letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #031614; }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 68px;
  background: rgba(7, 9, 12, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }

/* ── Typography ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; font-weight: 700; }
.h-xl { font-size: clamp(42px, 6.4vw, 78px); }
.h-lg { font-size: clamp(32px, 4.2vw, 52px); }
.h-md { font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 620px; }
.grad { background: linear-gradient(100deg, var(--text) 10%, var(--accent-2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Sections ── */
section { position: relative; padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin: 18px 0 16px; }
.divider { border-top: 1px solid var(--line); }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line-2); }
.icon-box {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2); margin-bottom: 20px;
}
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .02em; white-space: nowrap; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.tag.accent { color: var(--accent-2); border-color: rgba(42,183,181,.3); background: var(--accent-soft); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.input {
  height: 48px; padding: 0 16px; border-radius: 12px; width: 100%;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font: 400 15px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder { color: var(--dim); }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-error { background: rgba(240,97,109,.08); border: 1px solid rgba(240,97,109,.25); color: #ff9aa3; }
.alert-ok { background: rgba(60,207,145,.08); border: 1px solid rgba(60,207,145,.25); color: #7de8b8; }

/* ── Auth layout ── */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 48px 20px;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(42,183,181,.12), transparent 70%),
    var(--bg);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { justify-content: center; margin-bottom: 32px; }
.auth-card .card { padding: 36px 32px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.auth-foot a, .link { color: var(--accent-2); }
.auth-foot a:hover, .link:hover { text-decoration: underline; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer h4 { color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 68px; left: 0; right: 0; padding: 24px 28px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-burger { display: block; }
  .nav-actions .btn-ghost { display: none; }
  section { padding: 84px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Auth extras ── */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover, .pw-eye.on { color: var(--accent-2); }
.strength { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.strength i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }
.row-end { display: flex; justify-content: flex-end; margin: -4px 0 20px; font-size: 13.5px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.state { text-align: center; }
.state-icon { width: 60px; height: 60px; border-radius: 18px; margin: 4px auto 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.state-icon.err { background: rgba(240,97,109,.1); color: var(--danger); }
.state h1 { margin-bottom: 10px; }
.state p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.state .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hidden { display: none !important; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(3,22,20,.3); border-top-color: #031614; animation: spin .7s linear infinite; }
.spin.light { border-color: var(--line-2); border-top-color: var(--accent); width: 34px; height: 34px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
