@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
  --bg:           #0f0f14;
  --bg-card:      #14141a;
  --bg-elevated:  #1a1a24;
  --bg-input:     #111118;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text:         #e8e8f0;
  --text-dim:     #8888aa;
  --text-muted:   #44445a;
  --accent:       #0a84ff;
  --accent-dim:   rgba(10,132,255,0.12);
  --accent-glow:  rgba(10,132,255,0.25);
  --green:        #50fa7b;
  --yellow:       #f1fa8c;
  --red:          #ff5555;
  --orange:       #ffb86c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(10,132,255,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(15,15,20,0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon {
  width: 30px; height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
  color: white;
  box-shadow: 0 0 18px var(--accent-glow);
  font-family: 'DM Mono', monospace;
}
.nav-name {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 20px;
  border-radius: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 46px; padding: 0 32px; font-size: 14px; border-radius: 8px; }
.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-accent:hover { background: #2593ff; transform: translateY(-1px); box-shadow: 0 4px 32px rgba(10,132,255,0.4); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn-elevated:hover { border-color: var(--border-hover); color: var(--text); }
.btn-danger { background: rgba(255,85,85,0.1); border: 1px solid rgba(255,85,85,0.2); color: var(--red); }
.btn-danger:hover { background: rgba(255,85,85,0.18); }
.btn-full { width: 100%; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.form-input {
  width: 100%;
  height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 14px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: rgba(10,132,255,0.5);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.08);
}
.form-input.error { border-color: rgba(255,85,85,0.5); }
.form-error { font-size: 11px; color: var(--red); margin-top: 5px; display: none; }
.form-error.show { display: block; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card-elevated {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.badge-blue { background: var(--accent-dim); border: 1px solid rgba(10,132,255,0.2); color: var(--accent); }
.badge-green { background: rgba(80,250,123,0.08); border: 1px solid rgba(80,250,123,0.2); color: var(--green); }
.badge-orange { background: rgba(255,184,108,0.08); border: 1px solid rgba(255,184,108,0.2); color: var(--orange); }
.badge-muted { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); }

/* ── DIVIDER ── */
.divider { width: 100%; height: 1px; background: var(--border); }
.divider-text {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--text-muted);
}
.divider-text::before, .divider-text::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-copy { font-size: 11px; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text-dim); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(80,250,123,0.2); color: var(--green); }
.toast.error { border-color: rgba(255,85,85,0.2); color: var(--red); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.8); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.anim-up  { animation: fadeUp 0.6s ease both; }
.anim-in  { animation: fadeIn 0.4s ease both; }
.delay-1  { animation-delay: 0.1s; }
.delay-2  { animation-delay: 0.2s; }
.delay-3  { animation-delay: 0.3s; }
.delay-4  { animation-delay: 0.4s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── NOISE TEXTURE ── */
.noise::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.35;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 20px; }
}
