/* DarkCursor site — dark, minimal, Cursor-like. */
:root {
  --bg: #0a0d12;
  --bg-2: #0e1218;
  --panel: #12161e;
  --panel-2: #161b25;
  --line: #232a36;
  --line-soft: #1b212b;
  --text: #e8eef7;
  --muted: #8b98ab;
  --accent: #4a9eff;
  --accent-2: #78b9ff;
  --gold: #ffd660;
  --danger: #ff6b6b;
  --green: #4fd18b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit; font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #061019; border-color: var(--accent); }
.btn-primary:hover { background: #5aa9ff; border-color: #5aa9ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); border-color: #2e3847; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15.5px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: rgba(10, 13, 18, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.logo { width: 26px; height: 26px; display: block; }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { color: var(--muted); font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding: 88px 24px 0; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: -260px; width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(74, 158, 255, .22), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  position: relative; display: inline-block; margin-bottom: 22px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 13px;
}
.hero h1 {
  position: relative;
  font-size: clamp(34px, 6vw, 60px); font-weight: 680; letter-spacing: -.035em;
  background: linear-gradient(180deg, #ffffff 20%, #a9bcd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  position: relative;
  max-width: 620px; margin: 22px auto 0;
  color: var(--muted); font-size: 17px;
}
.hero-actions { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { position: relative; margin-top: 16px; color: #6c7a8e; font-size: 13px; }

/* ---------- hero screenshot mock ---------- */
.hero-shot { max-width: 980px; margin: 60px auto -1px; padding: 0 24px; }
.window {
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #333f4f; }
.window-title { margin-left: 12px; color: var(--muted); font-size: 12.5px; }
.window-body { display: grid; grid-template-columns: 180px 1fr; min-height: 260px; }
.window-side { padding: 18px 14px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.side-line { height: 8px; border-radius: 4px; background: #202834; }
.side-gap { height: 8px; }
.w70 { width: 70%; } .w65 { width: 65%; } .w60 { width: 60%; } .w55 { width: 55%; } .w50 { width: 50%; } .w45 { width: 45%; }
.window-main { padding: 22px 24px; font-family: var(--mono); font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.code-line { color: #c7d4e6; white-space: pre; }
.indent { padding-left: 22px; }
.tok-k { color: #ff9e64; } .tok-f { color: #7dcfff; } .tok-s { color: #9ece6a; } .tok-p { color: #64748b; }
.agent-chip {
  margin-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(74, 158, 255, .12); border: 1px solid rgba(74, 158, 255, .3);
  color: var(--accent-2); font-family: var(--font); font-size: 12.5px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(74,158,255,.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(74, 158, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0); }
}

/* ---------- features ---------- */
.features { max-width: 1060px; margin: 0 auto; padding: 96px 24px 0; }
.features h2, .pricing h2 { text-align: center; font-size: clamp(26px, 3.6vw, 36px); font-weight: 660; letter-spacing: -.03em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card {
  padding: 24px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: border-color .18s, background .18s;
}
.card:hover { border-color: var(--line); background: var(--panel-2); }
.card-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; margin-bottom: 14px;
  background: rgba(74, 158, 255, .12); color: var(--accent-2); font-size: 18px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: 14.2px; }

/* ---------- pricing ---------- */
.pricing { max-width: 920px; margin: 0 auto; padding: 100px 24px 0; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
}
.plan-pro { border-color: rgba(74, 158, 255, .45); background: linear-gradient(180deg, rgba(74,158,255,.07), transparent 55%), var(--panel); }
.badge {
  position: absolute; top: 20px; right: 20px;
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: #061019; background: var(--gold);
}
.plan h3 { font-size: 18px; font-weight: 620; }
.plan-price { margin-top: 12px; font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.plan-list { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; font-size: 14.2px; }
.plan-list li { position: relative; padding-left: 22px; color: #c9d4e3; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); }
.plan .btn { margin-top: auto; }

/* ---------- download ---------- */
.download { max-width: 1060px; margin: 0 auto; padding: 88px 24px 0; }
.download-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 34px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(74,158,255,.10), rgba(255,214,96,.05)), var(--panel);
  border: 1px solid var(--line-soft);
}
.download-inner h2 { font-size: 24px; margin-bottom: 8px; }
.download-inner p { color: var(--muted); max-width: 520px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); margin-top: 100px; padding: 30px 32px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.foot-note { margin-top: 18px; color: #5c6879; font-size: 13px; }

/* ---------- auth ---------- */
body.centered { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-shell { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-brand { font-size: 17px; }
.auth-card {
  width: 100%; padding: 30px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; font-weight: 620; }
.auth-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
.auth-hint { margin-top: 12px; color: #6c7a8e; font-size: 12.5px; text-align: center; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: #5c6879; font-size: 12.5px; }
.auth-sep::before, .auth-sep::after { content: ""; height: 1px; background: var(--line-soft); flex: 1; }
.auth-back { color: var(--muted); font-size: 13.5px; }
.auth-back:hover { color: var(--text); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; color: var(--muted); }
.field input, .field select {
  height: 42px; padding: 0 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text);
  font: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 158, 255, .16); }
.field input::placeholder { color: #4d5a6c; }
.field-pass { position: relative; display: flex; }
.field-pass input { width: 100%; padding-right: 42px; }
.pass-toggle {
  position: absolute; right: 6px; top: 6px; height: 30px; width: 30px;
  display: grid; place-items: center;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; border-radius: 7px; font-size: 14px;
}
.pass-toggle:hover { background: var(--panel-2); color: var(--text); }
.form-error {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3);
  color: #ffb3b3; font-size: 13.5px;
}
.form-ok {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(79, 209, 139, .1); border: 1px solid rgba(79, 209, 139, .32);
  color: #a9f0c8; font-size: 13.5px;
}

/* ---------- account ---------- */
.account { max-width: 1000px; margin: 0 auto; padding: 44px 24px 0; }
.account-head h1 { font-size: 26px; font-weight: 660; }
.account-head p { margin-top: 6px; font-size: 14px; }
.stat-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-top: 26px; }
.stat {
  padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 30px; font-weight: 660; letter-spacing: -.03em; }
.stat-small { font-size: 22px; }
.cur { font-size: 14px; color: var(--muted); font-weight: 400; }
.stat-main { background: linear-gradient(150deg, rgba(74,158,255,.10), transparent 60%), var(--panel); border-color: rgba(74,158,255,.28); }
.stat .btn { margin-top: 6px; }

.tabs { display: flex; gap: 6px; margin: 32px 0 0; border-bottom: 1px solid var(--line-soft); }
.tab {
  padding: 10px 14px; border: none; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.panel { padding-top: 20px; }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px; margin: 30px 0 0; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.download-panel h2 { font-size: 18px; margin-bottom: 6px; }

.table-wrap { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 16px; color: var(--muted); font-weight: 500; font-size: 12.5px;
  background: var(--panel-2); border-bottom: 1px solid var(--line-soft); text-transform: uppercase; letter-spacing: .04em;
}
.table th.num { text-align: right; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.table tr:last-child td { border-bottom: none; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 26px; color: var(--muted); text-align: center; font-size: 14px; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.pill-ok { background: rgba(79, 209, 139, .12); color: #90e8b7; }
.pill-wait { background: rgba(255, 214, 96, .12); color: #f2d98a; }
.pill-bad { background: rgba(255, 107, 107, .12); color: #ffb3b3; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 6, 10, .72); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: 100%; max-width: 420px; padding: 28px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.modal-card h2 { font-size: 19px; font-weight: 620; }
.modal-card > .muted { margin-top: 8px; font-size: 13.8px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.modal-x:hover { background: var(--panel-2); color: var(--text); }
.copybox {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin-top: 16px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line);
}
.copybox code { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); overflow: auto; white-space: nowrap; }

/* ---------- hacking section ---------- */
.hacking-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 96px 24px 0;
}
.hacking-section h2 {
  text-align: center;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 660;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 16px;
}
.hacking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.hacking-block {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.hacking-block h3 {
  font-size: 17px;
  font-weight: 620;
  margin-bottom: 14px;
  color: var(--accent-2);
}
.tool-list, .role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #c9d4e3;
}
.tool-list li, .role-list li {
  padding-left: 18px;
  position: relative;
}
.tool-list li::before, .role-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.tool-list strong, .role-list strong {
  color: var(--text);
  font-weight: 550;
}
.hacking-block .muted {
  margin-top: 14px;
  font-size: 13px;
}
.cmd-block {
  margin-top: 16px;
}
.cmd-block p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.cmd-block pre {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 10px 0;
  overflow-x: auto;
}
.cmd-block code {
  font-family: var(--mono);
  font-size: 13.5px;
  color: #9ece6a;
  line-height: 1.6;
}
.cmd-block kbd {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}
.example-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.example-list li {
  padding-left: 20px;
  position: relative;
  color: #c9d4e3;
  font-style: italic;
  font-size: 14px;
}
.example-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav { padding: 12px 18px; gap: 14px; }
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
  .download-inner { flex-direction: column; align-items: flex-start; }
  .hacking-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .plans { grid-template-columns: 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .window-side { display: none; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  * { transition: none !important; }
}
