:root {
  --bg: #0f0c1d;
  --bg-soft: #1a1430;
  --text: #ece9f5;
  --muted: #a79fc7;
  --accent: #9d6bff;
  --accent-soft: #c9a9ff;
  --max-width: 960px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

code {
  background: var(--bg-soft);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 12, 29, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bg-soft);
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section h2 {
  font-size: 1.8rem;
  margin-top: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
  color: var(--accent-soft);
}

/* Buttons / CTA */
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cta:hover {
  background: var(--accent-soft);
  color: #0f0c1d;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--bg-soft);
}

@media (max-width: 540px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}
