/* Proxfort — production look, no frameworks. Dark premium infrastructure
   aesthetic. All colors via variables for easy rebranding. */
:root {
  --bg: #0b0e14;
  --bg-soft: #10141d;
  --panel: #141a26;
  --panel-2: #1a2232;
  --line: #242e42;
  --text: #e8ecf4;
  --muted: #9aa7bd;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- nav -------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* --- buttons & forms --------------------------------------------------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,140,255,.35); text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { box-shadow: none; border-color: var(--accent); }
.btn.small { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  font-size: 15px; outline: none;
}
.field input:focus { border-color: var(--accent); }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.error { display: block; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.4); color: #fca5a5; }
.alert.ok { display: block; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.4); color: #6ee7b7; }

/* --- hero --------------------------------------------------------------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 620px;
  background: radial-gradient(600px 300px at 30% 20%, rgba(79,140,255,.16), transparent),
              radial-gradient(600px 300px at 70% 10%, rgba(124,92,255,.14), transparent);
  pointer-events: none;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; max-width: 820px; margin: 0 auto 18px; position: relative; }
.hero .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 32px; position: relative; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; position: relative; }

.stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; position: relative; }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* --- sections ----------------------------------------------------------- */
section { padding: 72px 0; }
section h2 { font-size: 30px; text-align: center; margin-bottom: 10px; }
section .lead { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 44px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ico { font-size: 22px; margin-bottom: 14px; display: inline-block; }

/* --- pricing ------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 44px rgba(79,140,255,.14); }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .tag { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); font-size: 14.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
  background: rgba(79,140,255,.14); color: var(--accent); margin-bottom: 10px;
}
.kind-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 34px; }
.kind-tabs button {
  padding: 9px 20px; border-radius: 99px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 14px; cursor: pointer;
}
.kind-tabs button.active { background: var(--panel-2); color: var(--text); border-color: var(--accent); }

/* --- FAQ / footer --------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 14.5px; }
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 13.5px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* --- auth pages ------------------------------------------------------------ */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card { padding: 34px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* --- dashboard -------------------------------------------------------------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 40px 0; }
.dash-side a {
  display: block; padding: 10px 14px; border-radius: 9px; color: var(--muted);
  font-size: 14.5px; margin-bottom: 4px; cursor: pointer;
}
.dash-side a:hover { background: var(--panel); text-decoration: none; color: var(--text); }
.dash-side a.active { background: var(--panel-2); color: var(--text); }
.dash h1 { font-size: 24px; margin-bottom: 4px; }
.dash .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.codebox {
  background: #0d1117; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-family: var(--mono); font-size: 13px;
  overflow-x: auto; white-space: pre; margin: 10px 0 16px; color: #c9d6e8;
}
.usage-bar { height: 10px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: 10px 0 6px; }
.usage-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill.active { background: rgba(52,211,153,.15); color: var(--good); }
.pill.inactive { background: rgba(251,191,36,.14); color: var(--warn); }
.copy-row { display: flex; gap: 10px; align-items: center; }
.copy-row .codebox { flex: 1; margin: 0; }
.muted-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* --- checkout ----------------------------------------------------------------- */
.checkout-card { max-width: 520px; }
.card-mock {
  background: linear-gradient(135deg, #1c2740, #232f4b);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 18px 0;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
}
.pay-badge { font-size: 12.5px; color: var(--warn); background: rgba(251,191,36,.1); border: 1px dashed rgba(251,191,36,.5); padding: 8px 12px; border-radius: 9px; margin-bottom: 16px; }

@media (max-width: 860px) {
  .grid-3, .plans, .panel-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}
