:root {
  --bg: #07070a;
  --panel: #111118;
  --line: #24242e;
  --text: #e9e7ef;
  --muted: #9a97a8;
  --violet: #a98be0;
  --cyan: #5fd6e0;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  font-size: 15px; color: var(--text);
}
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex; align-items: flex-end;
  background: #000 url("img/lunar-transit.jpg") center 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,10,0) 45%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 0 0 14px;
  font-weight: 600; letter-spacing: -0.02em;
}
.hero p { font-size: clamp(17px, 2vw, 21px); color: #cfcbe0; max-width: 620px; margin: 0; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.page-head { padding: 72px 0 24px; }
h1.page { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.lead { font-size: 20px; color: #cfcbe0; max-width: 720px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 10px;
}

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px;
}
.card p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }

code, pre { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
pre {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; margin: 0; overflow-x: auto; font-size: 15px; color: var(--cyan);
}

figure { margin: 0; }
figure img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.button {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  border: 1px solid var(--violet); color: var(--text); margin-top: 8px;
}
.button:hover { background: rgba(169, 139, 224, 0.12); text-decoration: none; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  header.site .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  nav { gap: 16px; }
  section { padding: 52px 0; }
}
