:root {
  --bg: #0b1020;
  --panel: #141c33;
  --panel-alt: #10182c;
  --text: #edf2ff;
  --muted: #a7b3d1;
  --line: #25304f;
  --accent: #8ea3ff;
  --accent-strong: #6d86ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #090d19 0%, #0d1324 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.lead,
.section-heading p,
.project-card p,
.hero-card p,
.site-footer p {
  color: var(--muted);
}

.actions,
.card-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.actions { margin-top: 1.5rem; }
.card-actions { margin-top: 1.2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

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

.button.primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: white;
}

.hero-card,
.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card.featured {
  min-height: 280px;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(142, 163, 255, 0.15);
  color: #dbe2ff;
  font-size: 0.82rem;
  border: 1px solid rgba(142, 163, 255, 0.25);
}

.tag.muted {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  color: var(--muted);
}

.site-footer {
  padding: 1.4rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

@media (max-width: 800px) {
  .header-inner,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 3rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}
