:root {
  --bg: #0b1018;
  --bg-elevated: #121a26;
  --fog: #8fa4bc;
  --mist: #c5d2e0;
  --ink: #e8eef5;
  --muted: #9aadc2;
  --accent: #6eb0d6;
  --accent-soft: rgba(110, 176, 214, 0.18);
  --line: rgba(143, 164, 188, 0.22);
  --shadow: rgba(4, 8, 14, 0.55);
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 68rem;
  --narrow: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mist);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.92em;
  color: var(--mist);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("assets/hero.png") center 42% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(8, 12, 20, 0.94) 0%,
      rgba(8, 12, 20, 0.62) 26%,
      rgba(8, 12, 20, 0.1) 52%,
      rgba(8, 12, 20, 0.2) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 10vh, 6rem);
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise-in 1.1s ease 0.35s forwards;
}

.hero__tagline {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--mist);
  text-shadow: 0 2px 24px var(--shadow);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent-soft);
  border-color: rgba(110, 176, 214, 0.55);
  color: var(--ink);
}

.btn--primary:hover {
  background: rgba(110, 176, 214, 0.3);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(197, 210, 224, 0.35);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: var(--mist);
  color: #fff;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.section__inner--narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--mist);
}

.section__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--muted);
}

.section--play {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(110, 176, 214, 0.08), transparent 55%),
    var(--bg);
}

.section--about {
  background: var(--bg-elevated);
}

.section--about p {
  max-width: 40rem;
  color: var(--muted);
}

.section--about p + p {
  margin-top: 1rem;
}

.feature-list {
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 44rem;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.feature-list strong {
  display: inline;
  font-weight: 500;
  color: var(--ink);
}

.section--story {
  background: var(--bg);
}

.section--news {
  background: var(--bg-elevated);
}

/* —— Connect —— */
.connect {
  margin: 0 0 1rem;
  padding: 0;
  max-width: 28rem;
}

.connect__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.connect__row dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
}

.connect__row dd {
  margin: 0;
}

.connect__hint {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Lore —— */
.lore p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.lore__quote {
  margin: 1.75rem 0;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 2px solid rgba(110, 176, 214, 0.45);
  background: transparent;
}

.lore__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.lore__quote footer {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}

/* —— News stub —— */
.news-stub {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-style: italic;
}

/* —— Footer —— */
.footer {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: #080c12;
}

.footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.footer__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fog);
}

.footer__note a {
  color: var(--fog);
}

.footer__note a:hover {
  color: var(--mist);
}

/* —— Inner page chrome —— */
.page-top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(10px);
}

.page-top__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0.95rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.page-top__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
}

.page-top__brand:hover {
  color: #fff;
}

.page-top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.page-top__nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fog);
}

.page-top__nav a:hover,
.page-top__nav a[aria-current="page"] {
  color: var(--mist);
}

.section--page-intro {
  padding-top: clamp(2.75rem, 7vw, 4rem);
  border-top: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(110, 176, 214, 0.1), transparent 60%),
    var(--bg);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section--faq {
  padding-top: 0;
  border-top: none;
  background: var(--bg);
}

.faq {
  margin: 0;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.75rem 1.15rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--mist);
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.15rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent);
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__body {
  padding: 0 0 1.25rem;
}

.faq__body p,
.faq__body li {
  color: var(--muted);
}

.faq__body p {
  margin: 0 0 0.9rem;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

.faq__body ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.faq__body li + li {
  margin-top: 0.35rem;
}

.faq__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2.25rem 0 0;
}

/* —— Motion —— */
@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media,
  .hero__content {
    animation: none;
  }

  .hero__media {
    transform: none;
  }

  .hero__content {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .hero {
    min-height: 92svh;
  }

  .hero__media {
    background-position: center 38%;
  }

  .hero__content {
    width: min(100% - 1.75rem, var(--max));
    padding-bottom: 3rem;
  }

  .hero__tagline {
    max-width: 20rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section__inner,
  .section__inner--narrow,
  .footer__inner {
    width: min(100% - 1.75rem, var(--max));
  }

  .connect__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .lore__quote {
    padding-left: 1rem;
  }

  .page-top__inner,
  .footer__inner {
    width: min(100% - 1.75rem, var(--max));
  }

  .faq__cta {
    flex-direction: column;
    align-items: stretch;
  }
}
