:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --brand: #3b82f6;
  --brand-2: #a855f7;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
  --ring: 0 0 0 3px rgba(168, 85, 247, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

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

/* Reusable Components */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s transform;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #334455;
}
.btn.small {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #1e293b;
  color: #818cf8;
  border: 1px solid #334455;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.navlinks {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.navlinks a {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
}
.navlinks a.active, .navlinks a:hover {
  background: #1e293b;
}

/* SECTIONS */
section {
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
h1, h2, h3 {
  margin-top: 0;
  font-weight: 700;
}
p.lead {
  color: var(--muted);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid #334455;
  border-radius: 20px;
  padding: 16px;
}

/* FORMS */
form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
label {
  font-size: 0.9rem;
  color: #bac8e5;
}
input, select, textarea {
  width: 100%;
  background: #141b2a;
  color: var(--text);
  border: 1px solid #334455;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  box-shadow: var(--ring);
  border-color: var(--brand-2);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* FOOTER */
footer {
  padding: 30px 0;
  color: #a8b3cf;
  text-align: center;
}

@media (max-width: 980px) {
  .cards, .two {
    grid-template-columns: 1fr;
  }
}
