:root {
  color-scheme: dark;
  --ink: #f3efe4;
  --muted: #aaa99f;
  --night: #080b12;
  --night-soft: #0d121b;
  --gold: #d4ad68;
  --gold-bright: #f1cf8a;
  --green: #73b9a3;
  --line: rgba(235, 218, 177, 0.18);
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 42%, rgba(60, 107, 91, 0.09), transparent 31rem),
    radial-gradient(circle at 88% 62%, rgba(141, 98, 48, 0.08), transparent 28rem),
    var(--night);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.7rem 1rem;
  color: #111;
  background: var(--gold-bright);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 88rem);
  margin-inline: auto;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-variant: small-caps;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.brand-logo {
  width: 2.75rem;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(212, 173, 104, 0.2));
  flex: 0 0 auto;
}

.site-header > .brand {
  gap: 1.3rem;
}

.site-header > .brand .brand-logo {
  width: 5rem;
}

.site-header > .brand .brand-name {
  font-size: 1.28rem;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(225, 202, 151, 0.28);
  border-radius: 999px;
  color: #ded3bb;
  background: rgba(9, 12, 18, 0.48);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-status span {
  width: 0.44rem;
  aspect-ratio: 1;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(115, 185, 163, 0.12), 0 0 12px rgba(115, 185, 163, 0.5);
}

.hero {
  position: relative;
  display: grid;
  min-height: max(47rem, 100svh);
  overflow: hidden;
  place-items: center;
}

.hero-art,
.hero-vignette,
.hero-stars {
  position: absolute;
  inset: 0;
}

.hero-art {
  background: url("/assets/portal-concept-05-dark-colored-ring.webp") center center / cover no-repeat;
  filter: saturate(0.86) contrast(1.03);
  transform: scale(1.015);
}

.hero-vignette {
  background:
    linear-gradient(180deg, rgba(2, 4, 8, 0.28) 0%, rgba(4, 6, 10, 0.04) 28%, rgba(5, 7, 11, 0.22) 74%, rgba(8, 11, 18, 0.78) 100%),
    radial-gradient(ellipse at 49% 42%, rgba(4, 8, 15, 0.04) 0, rgba(2, 4, 8, 0.14) 58%, rgba(2, 3, 6, 0.4) 100%);
}

.hero-stars {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 70rem);
  padding: 9rem 0 8rem;
  text-align: center;
}

.hero-message {
  transform: translateY(0.85rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-inline: auto;
  margin-bottom: 1.6rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8.5vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.76);
}

h1 em {
  color: var(--gold-bright);
  font-weight: 400;
}

.hero-copy {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2.4rem;
  color: #d3d2cc;
  font-size: clamp(1rem, 2vw, 1.23rem);
  text-shadow: 0 2px 15px #000;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.hero-actions p {
  margin: 0;
  color: #a6a59f;
  font-size: 0.78rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 3.35rem;
  padding: 0.85rem 1.2rem 0.85rem 1.45rem;
  border: 1px solid #e5c783;
  color: #18140e;
  background: linear-gradient(135deg, #f2d99f, #c99a51);
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button span {
  display: grid;
  width: 1.8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 18, 11, 0.25);
  place-items: center;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.46), 0 0 34px rgba(214, 174, 102, 0.18);
  transform: translateY(-2px);
}

.world-index {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 2.2rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  color: rgba(242, 235, 217, 0.58);
  font-family: var(--display);
  font-size: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.15em;
}

.promise,
.principles,
.early-access,
footer {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
}

.promise {
  display: grid;
  grid-template-columns: minmax(9rem, 0.42fr) minmax(0, 1.58fr);
  gap: 3rem;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker span {
  color: #6e6b62;
}

.section-kicker p {
  margin: 0;
}

.promise-copy h2,
.access-copy h2 {
  max-width: 15ch;
  margin-bottom: 1.8rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.promise-copy > p {
  max-width: 46rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 0 clamp(5rem, 11vw, 9rem);
}

.principles-title {
  grid-column: 1 / -1;
  max-width: 15ch;
  margin: 0;
  padding-top: clamp(4rem, 8vw, 7rem);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.principles article {
  padding: 3rem 2rem 1rem;
  border-right: 1px solid var(--line);
}

.principles article:first-child {
  padding-left: 0;
}

.principles article:last-child {
  padding-right: 0;
  border-right: 0;
}

.principle-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.8rem;
}

.principles h3 {
  margin-bottom: 0.8rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.principles article > p:last-child {
  margin: 0;
  color: #92938f;
  font-size: 0.91rem;
}

.early-access {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: 34rem;
  margin-bottom: 4rem;
  padding: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border: 1px solid rgba(217, 187, 119, 0.23);
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.68), rgba(4, 7, 11, 0.24) 40%, rgba(4, 7, 11, 0.24) 62%, rgba(4, 7, 11, 0.62)),
    linear-gradient(180deg, rgba(4, 7, 11, 0.02), rgba(4, 7, 11, 0.38)),
    url("/assets/dormant-gate-forest.webp") center 46% / cover no-repeat;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  align-items: center;
}

.access-copy,
.interest-form {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-copy > p:last-child {
  max-width: 34rem;
  color: var(--muted);
}

.interest-form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: rgba(4, 7, 11, 0.5);
  backdrop-filter: blur(10px);
}

.field-row > label {
  display: block;
  margin-bottom: 0.6rem;
  color: #e5dcc9;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(229, 209, 166, 0.3);
  background: rgba(8, 11, 17, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 173, 104, 0.12);
}

.input-wrap input {
  width: 100%;
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.input-wrap input::placeholder {
  color: #74756f;
}

.input-wrap button {
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  border: 0;
  color: #1c160e;
  background: var(--gold-bright);
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.input-wrap button:hover:not(:disabled),
.input-wrap button:focus-visible:not(:disabled) {
  background: #ffe6ad;
}

.input-wrap button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

.interest-form[data-state="submitting"] .input-wrap button:disabled {
  cursor: progress;
}

.field-help,
.privacy-note,
.form-message {
  margin: 0.55rem 0 0;
  color: #7f817c;
  font-size: 0.73rem;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  margin-top: 1.4rem;
  color: #aaa9a2;
  font-size: 0.78rem;
  cursor: pointer;
}

.consent-row input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.22rem;
  accent-color: var(--gold);
}

.form-message {
  min-height: 1.2rem;
  font-weight: 700;
}

.form-message[data-state="error"] {
  color: #ef9d91;
}

.form-message[data-state="success"] {
  color: #8fd0b8;
}

.privacy-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.privacy-note a,
.footer-links a,
.legal-copy a {
  color: var(--gold-bright);
  text-underline-offset: 0.2em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.legal-page {
  min-height: calc(100svh - 6rem);
  padding: 9rem 1.5rem 5rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(67, 129, 109, 0.13), transparent 28rem),
    radial-gradient(circle at 82% 44%, rgba(181, 125, 60, 0.09), transparent 30rem);
}

.site-header--legal {
  position: absolute;
}

.legal-copy {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.legal-copy h1 {
  max-width: none;
  margin: 0 0 0.6rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
  text-align: left;
}

.legal-copy h2 {
  margin: 2.4rem 0 0.7rem;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
}

.legal-copy p {
  color: var(--muted);
}

.legal-copy strong {
  color: var(--ink);
}

.legal-copy .legal-updated {
  margin-bottom: 2.5rem;
  color: #7f817c;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: #767771;
  align-items: center;
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

.brand--footer {
  color: #c8c1b1;
}

.brand--footer .brand-logo {
  width: 2rem;
}

.brand--footer .brand-name {
  font-size: 0.86rem;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

@media (min-width: 761px) and (max-width: 1180px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles article,
  .principles article:first-child,
  .principles article:last-child {
    padding: 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles article:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--line);
  }

  .principles article:nth-child(even) {
    padding-right: 0;
  }

  .principles article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .promise,
  .principles,
  .early-access,
  footer {
    width: min(100% - 2rem, 78rem);
  }

  .site-header {
    padding-block: 1rem;
  }

  .site-header > .brand {
    gap: 1rem;
  }

  .site-header > .brand .brand-logo {
    width: 4.5rem;
  }

  .site-header > .brand .brand-name {
    font-size: 1.05rem;
  }

  .header-status {
    gap: 0.42rem;
    padding: 0.38rem 0.52rem;
    font-size: 0.56rem;
    letter-spacing: 0.065em;
  }

  .header-status span {
    width: 0.38rem;
  }

  .hero-content {
    width: min(100% - 2rem, 70rem);
    padding-top: 7.5rem;
  }

  .hero-message {
    transform: translateY(0.5rem);
  }

  .hero-art {
    background-position: center 36%;
    background-size: 135% auto;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.5rem);
  }

  .world-index {
    gap: 0.45rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .promise {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principles article,
  .principles article:first-child,
  .principles article:last-child {
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles article:last-child {
    border-bottom: 0;
  }

  .early-access {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    background-position: center;
  }

  .input-wrap {
    grid-template-columns: 1fr;
  }

  .input-wrap button {
    border-top: 1px solid rgba(23, 18, 11, 0.18);
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    text-align: center;
  }

  footer .brand {
    justify-content: center;
  }

  footer p:last-child {
    text-align: center;
  }

  .legal-page {
    padding-top: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .hero-vignette,
  .hero-stars {
    display: none;
  }

  .primary-button,
  .input-wrap button {
    border: 1px solid ButtonText;
  }
}
