:root {
  --bg: #0b0d12;
  --panel: #111522;
  --text: #e8ecf5;
  --muted: #a7b0c3;
  --border: #1f2636;

  --primary: #7c5cff;

  --radius: 14px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

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

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
  padding: 32px 0 80px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.nav {
  width: min(var(--max), 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

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

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

.hero {
  padding: 56px 0 28px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(17, 21, 34, 0.6);
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  margin: 18px 0 12px;
}

.hero-subtitle {
  max-width: 70ch;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 46px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.section-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: rgba(17, 21, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 130px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-footer {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.card-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.03);
}

.link {
  color: var(--text);
  opacity: 0.9;
  border-bottom: 1px solid transparent;
}

.link:hover {
  border-bottom-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn.primary {
  background: var(--primary);
  border-color: transparent;
}

.btn.ghost:hover {
  border-color: var(--primary);
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.bg-galaxy {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1400px 900px at 80% -10%, rgba(67, 104, 178, 0.36), transparent 62%),
    radial-gradient(1100px 800px at 15% 110%, rgba(80, 146, 255, 0.24), transparent 66%),
    linear-gradient(180deg, #000 0%, #03040a 50%, #000 100%);
}

.container {
  position: relative;
  z-index: 1;
}

#starfield {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
}

.galaxy-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 80% 16%, rgba(112, 170, 255, 0.22), transparent 66%),
    radial-gradient(900px 460px at 22% 84%, rgba(130, 180, 255, 0.16), transparent 70%),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.38) 72%, rgba(0, 0, 0, 0.7) 100%);
}

@media (prefers-reduced-motion: reduce) {

  #starfield {
    display: none;
  }
}