*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #f1e6d8;
  background: linear-gradient(180deg, #2a1f38 0%, #1a1320 100%);
}

a {
  color: #f2a65a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #f2c24b;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #231a2c;
  color: #f2a65a;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  padding: 1.25rem 1.5rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #6b5e78;
}

.site-header--marketing {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 19, 32, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.site-logo {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f2a65a;
  text-decoration: none;
}

.site-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #8a7a98;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.875rem;
  color: #8a7a98;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #f2a65a;
  text-decoration: none;
}

.site-nav__cta {
  padding: 0.35rem 0.75rem;
  border: 1px solid #f2a65a;
  border-radius: 999px;
  color: #f2a65a !important;
}

.site-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-main h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: #f2a65a;
}

.site-main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  color: #f2c24b;
}

.site-main h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: #f1e6d8;
}

.site-main p,
.site-main li {
  color: #d8cfc4;
}

.site-main ul {
  padding-left: 1.25rem;
}

.site-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.site-main th,
.site-main td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #6b5e78;
  text-align: left;
  vertical-align: top;
}

.site-main th {
  background: rgba(242, 166, 90, 0.12);
  color: #f2a65a;
}

.site-main code {
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.effective-date {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: #8a7a98;
}

.contact-card {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid #6b5e78;
  border-radius: 8px;
  background: rgba(35, 26, 44, 0.6);
}

.contact-card a {
  font-size: 1.125rem;
  font-weight: 600;
}

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #8a7a98;
  border-top: 1px solid #6b5e78;
}

.site-footer--marketing {
  max-width: none;
  padding: 2.5rem 1.5rem 3rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.footer-meta {
  margin: 0;
}

/* Marketing page */

.marketing-page {
  background:
    radial-gradient(circle at top right, rgba(178, 58, 107, 0.18), transparent 28%),
    linear-gradient(180deg, #2a1f38 0%, #1a1320 100%);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.hero__content {
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7a98;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: #f2a65a;
}

.hero__lede {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: #d8cfc4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__note {
  margin: 0;
  font-size: 0.875rem;
  color: #8a7a98;
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #6b5e78;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.section {
  padding: 3.5rem 1.5rem;
}

.section--alt {
  background: rgba(35, 26, 44, 0.45);
  border-block: 1px solid rgba(107, 94, 120, 0.35);
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #f2c24b;
}

.section__intro {
  max-width: 48rem;
  margin: 0 0 2rem;
  color: #d8cfc4;
}

.subsection-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.125rem;
  color: #f2a65a;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button--primary {
  background: #f2a65a;
  color: #1a1320;
}

.button--secondary {
  border-color: #6b5e78;
  color: #f1e6d8;
  background: rgba(35, 26, 44, 0.8);
}

.feature-grid,
.biome-grid,
.threat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.feature-card,
.biome-card,
.threat-card {
  padding: 1.25rem;
  border: 1px solid #6b5e78;
  border-radius: 10px;
  background: rgba(35, 26, 44, 0.72);
}

.feature-card h3,
.biome-card h4,
.threat-card h3 {
  margin: 0 0 0.5rem;
  color: #f2a65a;
}

.feature-card p,
.biome-card p,
.threat-card p {
  margin: 0;
  color: #d8cfc4;
}

.mode-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #d8cfc4;
}

.lore-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.lore-quote {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid #f2a65a;
  background: rgba(26, 19, 32, 0.55);
  color: #d8cfc4;
  font-style: italic;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid #6b5e78;
  border-radius: 12px;
  background: rgba(35, 26, 44, 0.82);
}

.hero-card img {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: top;
}

.hero-card__body {
  padding: 0 1.25rem 1.25rem;
}

.hero-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #f2a65a;
}

.hero-card__meta {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.875rem;
  color: #8a7a98;
}

.hero-card__story {
  margin: 0 0 1rem;
  color: #d8cfc4;
}

.hero-card__stats {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.hero-card__stats div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
}

.hero-card__stats dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7a98;
}

.hero-card__stats dd {
  margin: 0;
  color: #6bcb8b;
}

.threat-card {
  border-color: color-mix(in srgb, var(--threat-color) 45%, #6b5e78);
}

.threat-card h3 {
  color: var(--threat-color);
}

.threat-card__tagline {
  margin-bottom: 0.5rem !important;
  font-style: italic;
}

.threat-card__detail {
  font-size: 0.8125rem;
  color: #8a7a98 !important;
}

.download-section__inner {
  text-align: center;
}

.download-section .section__intro {
  margin-inline: auto;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store-button {
  display: inline-grid;
  gap: 0.1rem;
  min-width: 11rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid #6b5e78;
  border-radius: 12px;
  background: rgba(26, 19, 32, 0.9);
  color: #f1e6d8;
  text-align: left;
  text-decoration: none;
}

.store-button:hover {
  border-color: #f2a65a;
  text-decoration: none;
}

.store-button--soon,
.store-button[aria-disabled="true"] {
  opacity: 0.72;
  cursor: not-allowed;
}

.store-button__label {
  font-size: 0.7rem;
  color: #8a7a98;
}

.store-button__store {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f2a65a;
}

.store-button__status {
  font-size: 0.75rem;
  color: #f2c24b;
}

.download-note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: #8a7a98;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 4rem;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    grid-template-columns: 10rem 1fr;
    align-items: start;
  }

  .hero-card img {
    width: 10rem;
    max-height: none;
    height: 100%;
    min-height: 100%;
  }

  .hero-card__body {
    padding: 1.25rem 1.25rem 1.25rem 0;
  }
}

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