:root {
  --asterion-black: #000000;
  --asterion-white: #ffffff;
  --asterion-smoke: #9ca3af;
  --asterion-charcoal: #1a1a1d;
  --asterion-ring: #e5e7eb;
}

* {
  box-sizing: border-box;
}

/* GTM noscript fallback iframe — kept out of layout/visibility */
.gtm-noscript {
  display: none;
  visibility: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--asterion-black);
  color: var(--asterion-white);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--asterion-smoke) var(--asterion-black);
}

/* ---------- Scrollbars (WebKit/Blink) ---------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--asterion-black);
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5); /* asterion-smoke @ 50% */
  border-radius: 999px;
  border: 2px solid var(--asterion-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--asterion-smoke);
}

::-webkit-scrollbar-corner {
  background: var(--asterion-black);
}

#space-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--asterion-black);
  z-index: 0;
}

a {
  color: inherit;
}

/* ---------- Top nav ---------- */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 20px 28px 28px;
  /* Darken behind links so they stay legible over bright content on scroll */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}

.top-nav a {
  pointer-events: auto;
  color: var(--asterion-white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.top-nav a:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .top-nav {
    padding: 16px 18px;
    gap: 18px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}

.logo {
  width: clamp(120px, 18vw, 200px);
  height: auto;
  margin-bottom: 28px;
}

.headline {
  margin: 0 0 14px;
  max-width: 22ch;
  font-size: clamp(24px, 4.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.subhead {
  margin: 0;
  max-width: 40ch;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--asterion-smoke);
}

/* ---------- Sections ---------- */

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 80px 24px;
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid rgba(229, 231, 235, 0.12); /* asterion-ring at low opacity */
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--asterion-smoke);
  text-align: center;
}

/* ---------- Focus areas ---------- */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}

@media (min-width: 760px) {
  .focus-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.focus-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.focus-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--asterion-smoke);
}

/* ---------- Positioning quote ---------- */

.quote-section {
  text-align: center;
}

.quote {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* ---------- Contact ---------- */

.contact-section {
  text-align: center;
}

.contact-line {
  margin: 0;
  font-size: 15px;
  color: var(--asterion-smoke);
}

.contact-line a {
  color: var(--asterion-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px 56px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--asterion-smoke);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--asterion-smoke);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover {
  color: var(--asterion-white);
}

.footer-copy {
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  #space-bg {
    display: none;
  }
}

/* ---------- Legal pages (privacy.html, terms.html) ---------- */

.legal-page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  line-height: 1.6;
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--asterion-smoke);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page h1 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
}

.legal-page .draft-flag {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--asterion-smoke);
  border: 1px solid rgba(229, 231, 235, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
}

.legal-page h2 {
  font-size: 16px;
  margin: 36px 0 10px;
}

.legal-page p,
.legal-page li {
  font-size: 14px;
  color: var(--asterion-smoke);
}

.legal-page a {
  color: var(--asterion-white);
}

/* ---------- About page entity note ---------- */

.about-page .entity-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(229, 231, 235, 0.12);
  font-size: 12px;
  font-style: italic;
  opacity: 0.7;
}
