@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:       #0a0a0f;
  --surface:  #12121a;
  --surface2: #1a1a26;
  --border:   #2a2a3d;
  --purple:   #7c3aed;
  --purple-l: #a78bfa;
  --blue:     #3b82f6;
  --green:    #22c55e;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --radius:   12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-l); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 800; color: var(--text);
  text-decoration: none;
}
.nav-logo img { height: 56px; }
.nav-logo span { color: var(--purple-l); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--purple); color: #fff !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 600;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.15s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--purple-l);
  border: 1.5px solid var(--purple);
}
.btn-outline:hover { background: rgba(124,58,237,0.1); text-decoration: none; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-danger { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.input {
  width: 100%; padding: 12px 16px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit;
  font-size: 15px; outline: none; transition: border-color 0.15s;
}
.input:focus { border-color: var(--purple); }
.input::placeholder { color: var(--muted); }
.input.mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.06em; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-error { font-size: 13px; color: #fca5a5; margin-top: 4px; }
.form-success { font-size: 13px; color: #86efac; margin-top: 4px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge-green  { background: rgba(34,197,94,0.12);  color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.badge-purple { background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.25); }
.badge-red    { background: rgba(239,68,68,0.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.badge-blue   { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }

/* ── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 96px 40px; max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple-l); margin-bottom: 12px; }
.section-title { font-size: 40px; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 600px; }
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  display: none;
}
.alert.show { display: block; }
.alert-error   { background: rgba(239,68,68,0.1);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.alert-success { background: rgba(34,197,94,0.1);  color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.alert-info    { background: rgba(59,130,246,0.1); color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center; z-index: 999;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal-body  { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
