
/* ========== Base Reset ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b1020;
  --panel: #0f1530;
  --muted: #8892b0;
  --text: #e6f1ff;
  --brand: #6ee7b7;
  --brand-2: #60a5fa;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --ring: rgba(96,165,250,0.6);
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, #142040 0%, #0b1020 60%);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ========== Header / Nav ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11,16,32,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
}

.brand {
  display: flex; align-items: center; gap: .6rem; font-weight: 700;
}
.brand-logo {
  width: 36px; height: 36px;
}
.brand span { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav ul {
  display: flex; gap: .5rem; flex-wrap: wrap;
}

.nav a {
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--text);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.nav a.active {
  background: linear-gradient(90deg, rgba(110,231,183,.15), rgba(96,165,250,.15));
  outline: 1px solid rgba(255,255,255,0.08);
}

/* ========== Hero / Sections ========== */
.section {
  padding: 3.5rem 0;
}

.hero {
  padding: 5rem 0 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.lead {
  color: var(--muted);
  margin-top: 1rem;
}

.actions {
  margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.35); }
.btn.primary { border-color: rgba(110,231,183,.5); }
.btn.accent { border-color: rgba(96,165,250,.5); }

/* ========== Cards / Grid ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(110,231,183,.4);
  box-shadow: 0 16px 28px rgba(0,0,0,.35);
}

.card h3 { font-size: 1.1rem; margin-top: .6rem; }
.card p  { color: var(--muted); margin-top: .4rem; font-size: .95rem; }

.badge {
  font-size: .75rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--brand-2);
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(255,255,255,0.06);
  padding: .15rem .35rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ========== Forms ========== */
.form {
  display: grid; gap: 1rem; max-width: 680px;
}
.label { font-size: .9rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px var(--ring);
}

.helper { color: var(--muted); font-size: .85rem; }

.inline { display: flex; gap: 1rem; flex-wrap: wrap; }

.alert {
  padding: .75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(16,185,129,0.1);
  color: #a7f3d0;
}
.alert.error {
  background: rgba(239,68,68,0.1);
  color: #fecaca;
}

/* ========== Table ========== */
.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}
.table th, .table td {
  text-align: left;
  padding: .9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table thead th {
  background: rgba(255,255,255,0.06);
  font-weight: 600;
}

/* ========== Footer ========== */
.footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(11,16,32,0.6);
  padding: 1.5rem 0;
  color: var(--muted);
}
.footer a:hover { text-decoration: underline; }

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.modal {
  width: min(720px, 92%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
}
.modal-header { display:flex; justify-content: space-between; align-items:center; gap:1rem; }
.modal-close { cursor:pointer; border:0; background:transparent; color:var(--muted); font-size:1.1rem; }
.modal-title { font-weight:700; }
.modal-body { color: var(--muted); margin-top:.5rem; }

/* ========== Utilities ========== */
.mt-2{ margin-top: .5rem; }
.mt-3{ margin-top: 1rem; }
.mt-4{ margin-top: 1.5rem; }
.mt-6{ margin-top: 2rem; }
.text-center{ text-align:center; }
.hide{ display:none !important; }
