:root {
  --ink: #070a08;
  --forest: #0b1d15;
  --forest-2: #123024;
  --moss: #71885d;
  --moss-light: #afc99c;
  --cream: #eee9dd;
  --muted: #b7b9ae;
  --line: rgba(154, 185, 126, .42);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: #fff;
  color: #111;
}

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

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 24px);
  border-bottom: 1px solid rgba(140, 168, 116, .2);
  background: rgba(5, 9, 7, .96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8fa47a;
  font-family: var(--serif);
  font-size: .78rem;
  line-height: .92;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-tree {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.desktop-nav a {
  color: #e2e1d8;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a:hover { color: var(--moss-light); }
.desktop-nav .nav-signin,
.mobile-nav .nav-signin {
  border: 1px solid #789265;
  border-radius: 4px;
  background: #5d744c;
  color: #fff;
}

.desktop-nav .nav-signin { padding: 10px 14px; }
.desktop-nav .nav-signin:hover,
.mobile-nav .nav-signin:hover { background: #70895d; color: #fff; }
.mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 555px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(140, 168, 116, .2);
  background: #0a1512 url("neq-landing-hero-v1.webp") center 48% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 9, .45), rgba(5, 12, 9, .08) 42%, rgba(5, 12, 9, .28)),
    linear-gradient(180deg, rgba(4, 8, 7, .08), rgba(4, 10, 7, .18) 52%, rgba(5, 15, 10, .76));
}

.hero-copy {
  width: min(760px, calc(100% - 40px));
  margin-top: -12px;
  text-align: center;
  text-shadow: 0 3px 18px #000;
}

.overline {
  margin: 0 0 14px;
  color: #d4ddc8;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  color: #fffdf5;
  font-size: clamp(2.9rem, 5vw, 4.65rem);
  line-height: .99;
  letter-spacing: -.035em;
}

.hero-copy > p:not(.overline) {
  max-width: 620px;
  margin: 18px auto 28px;
  color: #f0f1e9;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid #789265;
  border-radius: 4px;
  background: #5d744c;
  color: #fff;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background-color 150ms ease, transform 150ms ease;
}

.button:hover { background: #70895d; transform: translateY(-2px); }

.hero-actions,
.alpha-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.button-outline {
  border-color: rgba(238, 233, 221, .72);
  background: rgba(6, 13, 10, .64);
}

.button-outline:hover { background: rgba(22, 43, 32, .9); }

.continuity-band {
  min-height: 245px;
  display: grid;
  place-items: center;
  padding: 50px 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(42, 86, 61, .36), transparent 54%),
    linear-gradient(100deg, #0d241a, #153326 52%, #0d241a);
  text-align: center;
}

.continuity-band > div { max-width: 760px; }

.continuity-band h2,
.how-section h2,
.principles h2,
.alpha h2 {
  margin: 0;
  color: #f4f0e7;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.continuity-band p {
  margin: 16px auto 0;
  color: #e2e6dd;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.how-section {
  position: relative;
  z-index: 2;
  padding: 58px 0 0;
  background: linear-gradient(110deg, #070a08, #0b0f0c 54%, #070a08);
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  margin: 36px 0 42px;
  padding: 0 30px;
  list-style: none;
}

.steps li { min-width: 0; }

.step-icon {
  width: 84px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: #7d9668;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: rgba(124, 150, 103, .18);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.steps h3 {
  margin: 8px 0 7px;
  color: #f0ede5;
  font-size: 1.35rem;
}

.steps p {
  max-width: 290px;
  margin: 0 auto;
  color: #d6dad2;
  font-size: .83rem;
  line-height: 1.5;
}

.game-preview {
  position: relative;
  z-index: 3;
  min-height: 150px;
  display: grid;
  grid-template-columns: 1.45fr .75fr .8fr;
  gap: 10px;
  margin-bottom: -55px;
  padding: 16px;
  border: 1px solid #577247;
  border-radius: 8px 8px 0 0;
  background: #08100d;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .38), inset 0 0 0 4px rgba(89, 116, 72, .08);
  text-align: left;
}

.preview-story,
.preview-check,
.preview-action {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(116, 145, 94, .32);
  border-radius: 5px;
  background: #0a120f;
}

.preview-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: #91aa7b;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.preview-story p,
.preview-check p {
  margin: 0;
  color: #e5e7df;
  font-family: var(--serif);
  font-size: .75rem;
  line-height: 1.5;
}

.preview-check { display: flex; align-items: center; gap: 10px; }
.preview-check b { color: #a9c88e; }
.preview-check small { color: #aeb5aa; }

.die {
  flex: 0 0 auto;
  color: #cbd6c1;
  font-size: 2.25rem;
}

.preview-label {
  display: block;
  margin: 0 0 10px;
  color: #dfe4da;
  font-size: .68rem;
  font-weight: 700;
}

.preview-input {
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid #4b5949;
  border-radius: 4px;
  background: #252a27;
  color: #f3f4f0;
  font: .7rem/1.2 var(--sans);
}

.principles {
  padding: 105px 0 58px;
  background:
    radial-gradient(circle at 50% 0, rgba(52, 100, 73, .27), transparent 48%),
    linear-gradient(100deg, #0d241a, #153326 52%, #0d241a);
  text-align: center;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.principle-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 22, 16, .42);
  text-align: left;
}

.principle-grid h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.principle-grid p {
  margin: 0;
  color: #d9ddd5;
  font-size: .78rem;
  line-height: 1.55;
}

.alpha {
  padding: 58px 24px;
  background: linear-gradient(110deg, #070a08, #0c100d 54%, #070a08);
}

.alpha-panel {
  max-width: 930px;
  margin: auto;
  padding: 34px 60px;
  border: 1px solid #6f8b5d;
  border-radius: 6px;
  background: rgba(8, 14, 10, .75);
  text-align: center;
}

.alpha-panel > p:not(.overline) {
  max-width: 700px;
  margin: 13px auto 20px;
  color: #dfe2db;
  font-size: .82rem;
  line-height: 1.55;
}

.button-secondary { min-height: 38px; padding-block: 8px; }
.text-link { font-size: .78rem; text-underline-offset: 3px; }
.text-link:hover { color: var(--moss-light); }

.site-footer {
  min-height: 124px;
  display: grid;
  grid-template-columns: .8fr .8fr 1.6fr;
  gap: 50px;
  align-items: center;
  padding: 30px max(7vw, 24px);
  border-top: 1px solid rgba(140, 168, 116, .2);
  background: #0d2419;
  color: #cdd3c9;
  font-size: .67rem;
}

.site-footer nav { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav a { font-weight: 800; text-transform: uppercase; }
.footer-legal { text-align: right; }
.footer-legal p { margin: 4px 0; }
.footer-legal span { color: #eef1e9; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary i { width: 22px; height: 1px; background: #e7e8df; }
  .mobile-nav nav {
    position: absolute;
    top: 44px;
    right: 0;
    width: 190px;
    display: grid;
    padding: 8px;
    border: 1px solid var(--line);
    background: #07100c;
    box-shadow: 0 18px 50px #000;
  }
  .mobile-nav nav a { padding: 12px; font-size: .75rem; text-decoration: none; }
  .mobile-nav nav .nav-signin { margin-top: 4px; text-align: center; }

  .steps { gap: 30px; padding-inline: 0; }
  .game-preview { grid-template-columns: 1fr 1fr; }
  .preview-story { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; padding-inline: 16px; }
  .brand-tree { width: 30px; height: 30px; }

  .hero {
    min-height: 640px;
    align-items: end;
    background-position: 53% center;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(5, 12, 9, .05), rgba(5, 12, 9, .15) 36%, rgba(5, 12, 9, .92) 86%);
  }
  .hero-copy { margin: 0 0 42px; }
  .hero h1 { font-size: clamp(2.55rem, 12vw, 3.45rem); }
  .hero-copy > p:not(.overline) { font-size: .96rem; }
  .hero-actions { max-width: 330px; margin-inline: auto; }

  .continuity-band { min-height: 280px; padding-inline: 22px; }
  .how-section { padding-top: 48px; }
  .steps { grid-template-columns: 1fr; gap: 38px; }
  .steps p { max-width: 330px; }
  .game-preview { grid-template-columns: 1fr; margin-bottom: -45px; }
  .preview-story { grid-column: auto; }
  .principles { padding-top: 94px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { text-align: center; }
  .alpha { padding-inline: 16px; }
  .alpha-panel { padding: 30px 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 25px; text-align: left; }
  .footer-legal { grid-column: auto; }
}

@media (max-width: 390px) {
  html,
  body { min-width: 0; }
  .section-shell { width: calc(100% - 30px); }
  .hero-copy { width: calc(100% - 28px); }
  .hero h1 { letter-spacing: -.045em; }
  .hero-actions { width: 100%; max-width: 100%; }
  .button { width: 100%; }
  .game-preview { padding: 10px; }
  .site-footer { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
