:root {
  --bg: #1d2d4e;
  --bg-deep: #162339;
  --ink: #eef3ff;
  --ink-muted: #a6b3cf;
  --ink-dim: #768299;
  --rule: #2e4067;
  --dot: #8fb9ff;
  --dot-bright: #c9ddff;
  --accent: #6fa8ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% 40%, rgba(90, 130, 200, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

#dotfield {
  position: fixed;
  top: 0;
  right: 0;
  width: 55vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

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

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(28px, 5vw, 72px);
  background: transparent;
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink);
}

.nav-links a {
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.nav-links a:hover {
  border-color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px) 0;
  min-height: calc(100vh - 160px);
}

.hero-copy { max-width: 780px; }

.headline {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  color: var(--ink);
}

.lede {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #a8bce8;
  max-width: 52ch;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer { margin-top: auto; }

.rule {
  height: 1px;
  background: var(--rule);
  margin-bottom: 18px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--ink-dim);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 160ms ease; }
.footer-links a:hover { color: var(--ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  #dotfield { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
