:root {
  --bg: #0d0f12;
  --bg-soft: #111419;
  --panel: #171a1f;
  --panel-2: #1e2228;
  --line: #2b3038;
  --line-soft: #22272e;
  --text: #f4f6f8;
  --muted: #9ba4af;
  --muted-2: #717b87;
  --accent: #4b9ddd;
  --accent-2: #78bcef;
  --success: #62c897;
  --warn: #e5b565;
  --danger: #eb7178;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }

.site-shell { min-height: 100vh; background:
  radial-gradient(circle at 72% 4%, rgba(75,157,221,.12), transparent 31rem),
  radial-gradient(circle at 15% 31%, rgba(75,157,221,.06), transparent 28rem),
  var(--bg); }

.topbar {
  height: 72px; position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: rgba(13,15,18,.86); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display:flex; align-items:center; gap:11px; text-decoration:none; font-weight:750; letter-spacing:.02em; }
.brand-mark { width:32px; height:32px; border-radius:8px; display:grid; place-items:center; background:linear-gradient(145deg,#58adea,#2d79b4); color:white; font-weight:800; box-shadow:0 8px 24px rgba(75,157,221,.2); }
.brand small { color: var(--muted-2); font-weight:600; margin-left:2px; }
.nav { display:flex; align-items:center; gap:28px; }
.nav a { text-decoration:none; color:var(--muted); font-size:14px; transition:.2s; }
.nav a:hover, .nav a.active { color:var(--text); }
.top-actions { display:flex; align-items:center; gap:9px; }
.lang-switch { border:1px solid var(--line); background:transparent; color:var(--muted); padding:9px 11px; border-radius:9px; }
.btn { border:1px solid var(--line); border-radius:10px; padding:10px 16px; background:var(--panel-2); color:var(--text); transition:.2s ease; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:650; font-size:14px; }
.btn:hover { transform: translateY(-1px); border-color:#3a424c; }
.btn-primary { background:var(--accent); border-color:var(--accent); color:white; }
.btn-primary:hover { background:#58a9e5; border-color:#58a9e5; }
.btn-ghost { background:transparent; }
.btn-danger { background:rgba(235,113,120,.1); color:#ff9ca2; border-color:rgba(235,113,120,.3); }
.btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.mobile-menu { display:none; }

main { min-height: calc(100vh - 72px); }
.container { width:min(1240px, calc(100% - 48px)); margin:0 auto; }
.page { padding:72px 0 92px; }
.hero { min-height:720px; display:grid; grid-template-columns: .92fr 1.28fr; gap:64px; align-items:center; padding:72px 0 88px; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--accent-2); font-size:13px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.eyebrow-dot { width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px rgba(98,200,151,.08); }
h1 { font-size:clamp(44px,5vw,72px); line-height:1.02; letter-spacing:-.04em; margin:18px 0 22px; max-width:780px; }
h2 { font-size:clamp(31px,4vw,48px); line-height:1.08; letter-spacing:-.035em; margin:0 0 16px; }
h3 { margin:0; letter-spacing:-.018em; }
.lead { color:var(--muted); font-size:clamp(17px,1.7vw,20px); line-height:1.65; max-width:650px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:11px; margin-top:30px; }
.hero-note { color:var(--muted-2); font-size:13px; margin-top:15px; }
.hero-visual { position:relative; }
.plugin-window { background:#202329; border:1px solid #343941; border-radius:15px; padding:8px; box-shadow:var(--shadow); transform:perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.plugin-window img { width:100%; height:auto; display:block; border-radius:9px; }
.visual-glow { position:absolute; inset:15% 8% -12% 8%; background:rgba(75,157,221,.16); filter:blur(80px); z-index:-1; }

.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-soft); border:1px solid var(--line-soft); border-radius:14px; overflow:hidden; margin-top:42px; max-width:560px; }
.metric { background:var(--bg-soft); padding:17px 18px; }
.metric strong { display:block; font-size:18px; }
.metric span { color:var(--muted-2); font-size:12px; }

.section { padding:92px 0; border-top:1px solid rgba(255,255,255,.055); }
.section-head { display:flex; justify-content:space-between; gap:32px; align-items:end; margin-bottom:36px; }
.section-head p { color:var(--muted); max-width:560px; line-height:1.6; margin:0; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.feature-card, .price-card, .surface-card { background:linear-gradient(145deg,rgba(30,34,40,.82),rgba(20,23,28,.84)); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.feature-icon { width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:rgba(75,157,221,.1);border:1px solid rgba(75,157,221,.2);color:var(--accent-2);margin-bottom:22px; }
.feature-card p, .price-card p { color:var(--muted); line-height:1.55; font-size:14px; }
.badge { display:inline-flex; padding:5px 9px; border-radius:999px; font-size:11px; font-weight:750; background:rgba(75,157,221,.11); color:var(--accent-2); border:1px solid rgba(75,157,221,.18); }
.badge-success { color:#8de0b4; background:rgba(98,200,151,.08); border-color:rgba(98,200,151,.2); }
.badge-muted { color:var(--muted); background:rgba(255,255,255,.035); border-color:var(--line); }

.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; counter-reset:steps; }
.step { position:relative; padding:24px 22px; border:1px solid var(--line); border-radius:14px; background:var(--bg-soft); }
.step:before { counter-increment:steps; content:counter(steps); display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(75,157,221,.12);color:var(--accent-2);font-size:12px;font-weight:800;margin-bottom:36px; }
.step p { color:var(--muted); font-size:13px; line-height:1.55; }

.price-card.featured { border-color:rgba(75,157,221,.55); box-shadow:0 14px 50px rgba(75,157,221,.08); }
.plan-name { font-weight:800; font-size:14px; letter-spacing:.08em; }
.plan-price { margin:22px 0 16px; font-size:28px; font-weight:800; }
.plan-price small { display:block; color:var(--muted); font-size:13px; font-weight:500; margin-top:4px; }
.plan-list { list-style:none; margin:22px 0 0; padding:0; display:grid; gap:11px; color:#c9d0d8; font-size:14px; }
.plan-list li:before { content:'✓'; color:var(--success); margin-right:9px; }

.page-header { padding:62px 0 32px; }
.page-header p { color:var(--muted); max-width:720px; line-height:1.65; font-size:17px; }

.auth-wrap { min-height:calc(100vh - 160px); display:grid; place-items:center; padding:55px 0 90px; }
.auth-card { width:min(470px,100%); background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:30px; box-shadow:var(--shadow); }
.auth-tabs { display:grid;grid-template-columns:1fr 1fr;background:var(--bg);padding:4px;border-radius:10px;margin:22px 0; }
.auth-tab { border:0;background:transparent;color:var(--muted);padding:10px;border-radius:7px; }
.auth-tab.active { background:var(--panel-2); color:var(--text); }
.field { display:grid; gap:7px; margin:14px 0; }
.name-field[hidden] { display:none !important; }
.field label { font-size:13px; font-weight:650; color:#dce2e8; }
.field input { width:100%; background:#111419; color:var(--text); border:1px solid var(--line); border-radius:10px; padding:12px 13px; outline:none; }
.field input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(75,157,221,.09); }
.form-error { min-height:20px; color:#ff9298; font-size:13px; margin-top:8px; }
.auth-footer { color:var(--muted-2);font-size:12px;line-height:1.5;margin-top:18px; }

.dashboard { display:grid; grid-template-columns:220px 1fr; gap:28px; padding:44px 0 90px; }
.sidebar { position:sticky; top:96px; align-self:start; }
.profile-mini { padding:17px; border:1px solid var(--line); border-radius:13px; background:var(--bg-soft); margin-bottom:14px; }
.avatar { width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#529fda,#246b9f);font-weight:800;margin-bottom:12px; }
.profile-mini strong { display:block; overflow:hidden;text-overflow:ellipsis; }
.profile-mini span { color:var(--muted-2);font-size:12px; }
.side-nav { display:grid; gap:5px; }
.side-nav button { text-align:left;border:0;background:transparent;color:var(--muted);padding:10px 12px;border-radius:8px; }
.side-nav button.active, .side-nav button:hover { background:var(--panel);color:var(--text); }
.dashboard-main { min-width:0; }
.dashboard-title { display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px; }
.dashboard-title h1 { font-size:34px;margin:0; }
.stat-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:26px; }
.stat { padding:20px;border:1px solid var(--line);border-radius:13px;background:var(--panel); }
.stat-label { color:var(--muted-2);font-size:12px;text-transform:uppercase;letter-spacing:.06em; }
.stat-value { margin-top:10px;font-size:24px;font-weight:780; }
.panel { border:1px solid var(--line);border-radius:15px;background:var(--panel);margin-bottom:16px;overflow:hidden; }
.panel-head { padding:18px 20px;border-bottom:1px solid var(--line-soft);display:flex;justify-content:space-between;align-items:center;gap:14px; }
.panel-body { padding:20px; }
.table { width:100%;border-collapse:collapse;font-size:13px; }
.table th { color:var(--muted-2);font-weight:600;text-align:left;padding:10px 8px;border-bottom:1px solid var(--line); }
.table td { padding:13px 8px;border-bottom:1px solid var(--line-soft);vertical-align:middle; }
.table tr:last-child td { border-bottom:0; }
.mono { font-family:"SFMono-Regular",Consolas,monospace;font-size:12px; }
.empty { color:var(--muted-2);padding:30px;text-align:center;border:1px dashed var(--line);border-radius:12px; }
.account-grid { display:grid;grid-template-columns:1fr 1fr;gap:14px; }
.info-row { display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line-soft); }
.info-row:last-child { border-bottom:0; }
.info-row span:first-child { color:var(--muted); }

.download-card { display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:28px;border:1px solid var(--line);background:var(--panel);border-radius:16px; }
.release-version { font-size:26px;font-weight:800;margin:7px 0; }
.requirements { display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px; }
.req { padding:15px;border:1px solid var(--line);border-radius:11px;background:var(--bg-soft); }
.req span { display:block;color:var(--muted-2);font-size:11px;margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em; }

.billing-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.billing-product-list { display:grid; gap:10px; }
.billing-product { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 14px; border:1px solid var(--line-soft); border-radius:10px; background:var(--bg-soft); }
.billing-product strong { display:block; }
.billing-product span { display:block; color:var(--muted-2); font-size:12px; margin-top:4px; }
.dev-checkout-panel { border-color:rgba(75,157,221,.45); }

.footer { border-top:1px solid rgba(255,255,255,.06);padding:34px 0;color:var(--muted-2);font-size:13px; }
.footer-inner { display:flex;justify-content:space-between;align-items:center;gap:24px; }
.footer-links { display:flex;gap:18px; }
.footer a { text-decoration:none; }

.toast-root { position:fixed;right:20px;bottom:20px;z-index:90;display:grid;gap:9px; }
.toast { min-width:260px;max-width:380px;padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#1c2026;box-shadow:var(--shadow);font-size:13px;animation:toast-in .18s ease; }
.toast.error { border-color:rgba(235,113,120,.42); }
.toast.success { border-color:rgba(98,200,151,.35); }
@keyframes toast-in { from{transform:translateY(7px);opacity:0} }
.skeleton { background:linear-gradient(90deg,#1a1e23,#232831,#1a1e23);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:7px;height:24px; }
@keyframes shimmer { to{background-position:-200% 0} }

@media (max-width: 980px) {
  .nav { display:none; }
  .hero { grid-template-columns:1fr;min-height:auto;gap:42px; }
  .hero-visual { max-width:820px; }
  .grid-3 { grid-template-columns:1fr 1fr; }
  .steps { grid-template-columns:1fr 1fr; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .dashboard { grid-template-columns:1fr; }
  .sidebar { position:static;display:grid;grid-template-columns:230px 1fr;gap:12px; }
  .side-nav { grid-template-columns:repeat(5,1fr);align-items:center; }
  .side-nav button { text-align:center; }
}
@media (max-width: 650px) {
  .container { width:min(100% - 28px,1240px); }
  .topbar { padding:0 14px;height:64px; }
  .brand small,.desktop-signin { display:none; }
  .page { padding-top:42px; }
  .hero { padding-top:42px; }
  h1 { font-size:42px; }
  .metrics,.grid-3,.steps,.stat-grid,.account-grid,.requirements { grid-template-columns:1fr; }
  .section-head,.footer-inner,.download-card,.dashboard-title { align-items:flex-start;flex-direction:column; }
  .sidebar { grid-template-columns:1fr; }
  .side-nav { display:flex;overflow:auto;padding-bottom:5px; }
  .side-nav button { white-space:nowrap; }
  .table-wrap { overflow:auto; }
}

.text-link{border:0;background:transparent;color:var(--accent);padding:10px 0;cursor:pointer;font:inherit;text-decoration:none}.forgot-link{width:100%;text-align:center}.dev-reset{margin-top:14px;padding:12px;border:1px dashed var(--line);border-radius:9px;color:var(--muted);font-size:13px}.dev-reset a{color:var(--accent)}
