/* ---------- Base ---------- */
:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --text-muted: #9aa1b2;
  --accent: #7c6cff;
  --accent-2: #46c8b2;
  --radius: 16px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background glow ---------- */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -160px;
  left: -120px;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: var(--accent-2);
  bottom: -140px;
  right: -100px;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  padding: 24px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand .dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .gradient {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 20px auto 0;
  max-width: 540px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.card .icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(70, 200, 178, 0.1);
  border: 1px solid rgba(70, 200, 178, 0.25);
}

.tag.alt {
  color: var(--accent);
  background: rgba(124, 108, 255, 0.1);
  border-color: rgba(124, 108, 255, 0.25);
}

/* ---------- About / Contact ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}

.panel p {
  color: var(--text-muted);
}

.panel p + p {
  margin-top: 12px;
}

.contact-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 48px 0 72px;
  max-width: 720px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  padding-left: 22px;
  margin: 12px 0;
}

.legal li {
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }

  section {
    padding: 40px 0;
  }
}
