/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #04060f;
  --bg2: #080c1a;
  --bg3: #0c1225;
  --bg4: #101730;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --surface3: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --border3: rgba(255,255,255,0.20);
  --text: #e8eeff;
  --text2: #c4cdeb;
  --muted: #6b7a9e;
  --muted2: #8b9bbf;
  --accent: #4f8ef7;
  --accent-hover: #3a78e8;
  --accent2: #7c5cfc;
  --accent3: #00d4aa;
  --accent4: #f7954f;
  --red: #f75f5f;
  --yellow: #f7d44f;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --nav-h: 68px;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
a { text-decoration: none; color: inherit; }
input, textarea, select, button { font-family: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: var(--nav-h);
  background: rgba(4,6,15,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.4px;
  color: var(--text);
}
.logo-icon {
  width: 33px; height: 33px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  color: var(--muted2); font-size: 0.875rem; font-weight: 500;
  padding: 0.45rem 0.85rem; border-radius: 7px;
  transition: all 0.18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; gap: 0.65rem; align-items: center; }
.btn-nav-ghost {
  color: var(--muted2); font-size: 0.875rem; font-weight: 500;
  padding: 0.48rem 1rem; border-radius: 8px;
  border: 1px solid var(--border2); transition: all 0.18s;
}
.btn-nav-ghost:hover { color: var(--text); background: var(--surface); }
.btn-nav-primary {
  background: var(--accent); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  padding: 0.52rem 1.15rem; border-radius: 8px;
  border: none; cursor: pointer; transition: all 0.18s;
}
.btn-nav-primary:hover { background: var(--accent-hover); }

/* ── PAGE WRAPPER ── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 12px;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 0 28px rgba(79,142,247,0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(79,142,247,0.42); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid var(--border2); color: var(--text);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 12px;
  background: transparent; cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--border3); }
.btn-sm {
  padding: 0.55rem 1.2rem; font-size: 0.84rem; border-radius: 9px;
}
.btn-danger {
  background: rgba(247,95,95,0.12); color: var(--red);
  border: 1px solid rgba(247,95,95,0.25);
  font-weight: 600; font-size: 0.875rem;
  padding: 0.55rem 1.2rem; border-radius: 9px;
  cursor: pointer; transition: all 0.18s;
}
.btn-danger:hover { background: rgba(247,95,95,0.2); }

/* ── SECTION ── */
.section { padding: 5.5rem 4rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
  color: var(--accent); margin-bottom: 0.9rem;
}
.section-tag::before { content:''; width: 14px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 0.9rem; line-height: 1.1;
}
.section-sub { font-size: 1rem; color: var(--muted2); max-width: 560px; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text2); }
.form-input {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: 0.9rem;
  padding: 0.75rem 1rem; border-radius: 10px;
  transition: all 0.18s; outline: none; width: 100%;
}
.form-input:focus { border-color: var(--accent); background: var(--surface2); box-shadow: 0 0 0 3px rgba(79,142,247,0.12); }
.form-input::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); font-size: 0.9rem;
  padding: 0.75rem 1rem; border-radius: 10px;
  transition: all 0.18s; outline: none; width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%236b7a9e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,247,0.12); }
.form-select option { background: var(--bg3); }
.form-hint { font-size: 0.77rem; color: var(--muted); }
.form-error { font-size: 0.77rem; color: var(--red); }
.form-divider { display: flex; align-items: center; gap: 1rem; }
.form-divider::before, .form-divider::after { content:''; flex:1; height:1px; background: var(--border2); }
.form-divider span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.checkbox-row { display: flex; align-items: flex-start; gap: 0.65rem; }
.checkbox-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.checkbox-row label { font-size: 0.84rem; color: var(--muted2); cursor: pointer; }
.checkbox-row label a { color: var(--accent); }

/* ── CARD ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all 0.25s;
}
.card:hover { border-color: var(--border2); background: var(--surface2); }
.card-raised {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius);
}

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; padding: 0.28rem 0.7rem;
  border-radius: 999px; border: 1px solid;
}
.badge-blue { color: #93b8fc; border-color: rgba(79,142,247,0.3); background: rgba(79,142,247,0.1); }
.badge-green { color: #5eefd8; border-color: rgba(0,212,170,0.3); background: rgba(0,212,170,0.1); }
.badge-purple { color: #b39dfc; border-color: rgba(124,92,252,0.3); background: rgba(124,92,252,0.1); }
.badge-amber { color: #facda0; border-color: rgba(247,149,79,0.3); background: rgba(247,149,79,0.1); }
.badge-red { color: #fc9e9e; border-color: rgba(247,95,95,0.3); background: rgba(247,95,95,0.1); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── ALERT ── */
.alert {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem; border-radius: 10px; border: 1px solid; font-size: 0.875rem;
}
.alert-success { background: rgba(0,212,170,0.08); border-color: rgba(0,212,170,0.25); color: #5eefd8; }
.alert-error { background: rgba(247,95,95,0.08); border-color: rgba(247,95,95,0.25); color: #fc9e9e; }
.alert-info { background: rgba(79,142,247,0.08); border-color: rgba(79,142,247,0.25); color: #93b8fc; }
.alert-warn { background: rgba(247,212,79,0.08); border-color: rgba(247,212,79,0.25); color: #fde68a; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--bg3); }
th { padding: 0.85rem 1.25rem; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); }
td { padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ── CODE ── */
code {
  font-family: 'Fira Code', monospace; font-size: 0.82rem;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.1rem 0.45rem; border-radius: 5px; color: #93b8fc;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 4rem 2.5rem;
  background: var(--bg2);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.84rem; color: var(--muted2); margin-top: 0.75rem; max-width: 260px; line-height: 1.7; }
.footer-col h6 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { font-size: 0.84rem; color: var(--muted2); transition: color 0.18s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.75rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: var(--muted); }
.footer-legal a:hover { color: var(--muted2); }
.status-dot {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: var(--accent3); font-weight: 600;
}
.status-dot::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--accent3); animation: pulse 2.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* ── GRADIENT TEXT ── */
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO GRID BG ── */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.025;
  background-image: linear-gradient(var(--border2) 1px,transparent 1px), linear-gradient(90deg,var(--border2) 1px,transparent 1px);
  background-size: 56px 56px;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .section { padding: 3.5rem 1.25rem; }
  footer { padding: 3rem 1.25rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
