:root {
  --bg: #0b0d10;
  --panel: #12161c;
  --text: #e6e8eb;
  --muted: #a9b0b8;
  --accent: #7dd3fc; /* light cyan */
  --border: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, #0f172a 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}

.nav a {
  margin-left: 14px;
  color: var(--muted);
}
.nav a:hover { color: var(--text); text-decoration: none; }

.content { padding: 32px 0 56px; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 18px 0;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0.9em 0 0.4em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: 1.5rem; }
p { margin: 0.6em 0; color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.card {
  background: rgba(18, 22, 28, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #041018;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }

.hero {
  position: relative;        /* 🔑 creates positioning context */
  height: 420px;             /* 🔑 constrains size */
  border-radius: 24px;
  overflow: hidden;
  margin: 24px 0 40px;
  background: #000;
}

/* Media layers */
.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stack order */
.hero-video { z-index: 1; }
.hero-image { z-index: 0; }

/* Text overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;                /* 🔑 above media */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
