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

:root {
  --bg:       #13102a;
  --bg2:      #1a1638;
  --surface:  #211c44;
  --border:   rgba(110, 82, 200, 0.15);
  --border2:  rgba(110, 82, 200, 0.28);
  --purple:   #6b50c8;
  --mid:      #8368d8;
  --accent:   #a48cf2;
  --text:     #dcd7f0;
  --muted:    #7c709e;
  --dim:      #45395e;
  --white:    #f0ecff;
  --green:    #2db87a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle noise texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 300px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(19, 16, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-right: 0.5rem;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--accent), #c4a8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}
.btn-add:hover { background: var(--mid); transform: translateY(-1px); }

.btn-add svg { flex-shrink: 0; }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */

.page { position: relative; z-index: 1; }
.inner { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Section labels ───────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1, h2, h3 { font-family: 'Oxanium', sans-serif; color: var(--white); }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-family: 'Oxanium', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.3px;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(107, 80, 200, 0.28);
}
.btn-primary:hover {
  background: var(--mid);
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(107, 80, 200, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border2);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(164, 140, 242, 0.45); color: var(--text); }

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); }

.card-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover .card-top-bar { opacity: 1; }

.card-num {
  font-family: 'Oxanium', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 1rem;
  display: block;
}

.card h3 { margin-bottom: 0.5rem; }

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Dividers ─────────────────────────────────────────────────────────────── */

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--dim);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--muted); }

.footer-copy { font-size: 0.78rem; color: var(--dim); }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.up {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
}

@media (max-width: 540px) {
  .nav-link { display: none; }
  .footer-links { display: none; }
}
