:root {
  --red: #a51720;
  --orange: #ff6d1a;
  --ink: #050505;
  --muted: #a8a1a1;
}

* { box-sizing: border-box; }
html { background: var(--ink); }

body {
  min-width: 320px;
  margin: 0;
  color: #f5f0ed;
  background: radial-gradient(circle at 55% 25%, #210608 0, var(--ink) 35rem);
  font-family: "DM Mono", monospace;
}

/* Header and navigation */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  border-bottom: 1px solid #ffffff12;
}

.wordmark {
  position: relative;
  color: var(--orange);
  background: linear-gradient(105deg, #ff9a16 0%, #d14c09 45%, #9e1822 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.3px #be310c;
  filter: drop-shadow(0 0 4px #ff6d1a66) drop-shadow(0 5px 10px #6c38af99);
  font: 700 2rem/1 "Courier 10 Pitch", "Courier New", monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.wordmark::after {
  position: absolute;
  z-index: -1;
  top: 18%;
  left: -8%;
  width: 115%;
  height: 90%;
  content: "";
  background: #6034a5;
  border-radius: 50%;
  filter: blur(13px);
  opacity: 0.35;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }

.site-nav a {
  color: #d3ccca;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active { color: var(--orange); }

.menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.32rem 0;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 2px 7px #6c38af99;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Shared components */
.eyebrow { margin: 0 0 1.25rem; color: var(--orange); font-size: 0.68rem; letter-spacing: 0.18em; }
.text-link { color: var(--orange); font-size: 0.7rem; letter-spacing: 0.13em; text-decoration: none; }
.text-link span { margin-left: 1rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 1.3rem;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.button:hover { filter: brightness(1.15); }
.disabled { cursor: not-allowed; opacity: 0.65; }

/* Home */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: clamp(4rem, 9vw, 9rem) clamp(1.5rem, 12vw, 12rem);
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; max-width: 34rem; }

.hero h1,
.inner-page h1 {
  margin: 0;
  font: 800 clamp(4.5rem, 11vw, 10rem) / 0.76 "Playfair Display", serif;
  letter-spacing: -0.075em;
}

.hero h1 span,
.inner-page h1 span { color: var(--red); }

.intro { max-width: 27rem; margin: 2.5rem 0; color: #d2c9c6; font-size: 0.88rem; line-height: 1.8; }

.hero-image {
  position: absolute;
  top: 0;
  right: -4vw;
  width: min(64vw, 850px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent, black 35%);
  opacity: 0.8;
}

.scroll-note { position: absolute; right: clamp(1.5rem, 6vw, 6rem); bottom: 2rem; color: #8d7775; font-size: 0.58rem; letter-spacing: 0.17em; }

.threat {
  padding: clamp(6rem, 12vw, 12rem) clamp(1.5rem, 18vw, 18rem);
  background: linear-gradient(135deg, #180205, #070707 70%);
}

.threat h2 { margin: 0; font: 800 clamp(2.8rem, 7vw, 6rem) / 0.9 "Playfair Display", serif; letter-spacing: -0.06em; }
.threat > p:not(.eyebrow) { max-width: 31rem; margin: 2rem 0; color: var(--muted); font-size: 0.85rem; line-height: 1.8; }

.updates { padding: clamp(6rem, 11vw, 10rem) clamp(1.5rem, 12vw, 12rem); }
.updates-heading { max-width: 38rem; }

.updates h2,
.launch-alert h2,
.comfort-info h2 { margin: 0; font: 800 clamp(2.4rem, 5vw, 4.8rem) / 0.9 "Playfair Display", serif; letter-spacing: -0.055em; }

.updates h2 span { color: var(--red); }
.updates-heading > p:not(.eyebrow) { margin: 1.5rem 0 3rem; color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
.update-list { margin-bottom: 2rem; border-top: 1px solid #ffffff22; }

.update-list article {
  display: grid;
  grid-template-columns: 11rem 1fr 1.2fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ffffff22;
}

.update-list time { color: var(--orange); font-size: 0.63rem; letter-spacing: 0.1em; }
.update-list h3 { margin: 0; font: 700 1rem "Playfair Display", serif; }
.update-list p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.7; }

.launch-alert {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr auto;
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 12vw, 12rem);
  background: radial-gradient(circle at 20% 50%, #592361 0, #19050a 38%, #070707 75%);
}

.launch-alert h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); }
.launch-alert > p { color: #c2b5bc; font-size: 0.78rem; line-height: 1.75; }

.comfort-strip {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem clamp(1.5rem, 12vw, 12rem);
  color: #c9bec2;
  background: #100a10;
  border-top: 1px solid #ffffff12;
  font-size: 0.7rem;
}

.comfort-strip span { color: var(--orange); letter-spacing: 0.12em; }
.comfort-strip p { flex: 1; margin: 0; }
.comfort-strip a { color: #f0e8e5; font-size: 0.62rem; letter-spacing: 0.1em; text-decoration: none; }

/* Standard inner pages */
.inner-page { min-height: calc(100vh - 84px); padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 12vw, 12rem); }
.page-intro { max-width: 35rem; margin: 2rem 0 3rem; color: #d2c9c6; font-size: 0.9rem; line-height: 1.85; }

.info-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: start; }
.info-layout dl { margin: 1rem 0; border-top: 1px solid #ffffff22; }
.info-layout dl div { display: flex; justify-content: space-between; padding: 1.2rem 0; border-bottom: 1px solid #ffffff22; font-size: 0.7rem; letter-spacing: 0.08em; }
.info-layout dt { color: #887877; }
.info-layout dd { margin: 0; color: var(--orange); }

.platform-grid,
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ffffff22; }

.platform-grid article,
.creator-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 15rem;
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid #ffffff22;
}

.platform-grid article + article,
.creator-grid article + article { padding-left: 2rem; border-left: 1px solid #ffffff22; }

.platform-grid span { color: var(--red); font-size: 0.75rem; }
.platform-grid h2,
.creator-grid h2 { margin: 1.5rem 0 0.75rem; font: 700 1.25rem "Playfair Display", serif; }

.platform-grid p,
.creator-grid article > p:last-child { color: var(--muted); font-size: 0.76rem; line-height: 1.7; }

.store-button { margin-top: auto; padding: 0.75rem 0.9rem; color: var(--orange); border: 1px solid #b63a18; font-size: 0.62rem; letter-spacing: 0.11em; text-decoration: none; }
.store-button.disabled,
.social-link.disabled { pointer-events: none; }

.socials { margin-top: 5rem; }
.socials > div { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.social-link { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.15rem; color: #ede5e1; border: 1px solid #ffffff22; font-size: 0.68rem; letter-spacing: 0.1em; text-decoration: none; }
.social-link span { color: var(--orange); font-size: 0.58rem; }

.comfort-info { max-width: 48rem; margin-top: 5rem; padding-top: 2rem; border-top: 1px solid #ffffff22; }
.comfort-info h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.comfort-info > p:not(.section-label) { max-width: 40rem; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }
.comfort-info .fine-print { color: #7d6c70; font-size: 0.65rem; }

/* Creators */
.founders,
.leadership,
.contributors { margin-top: 4rem; }

.section-label { margin: 0 0 1rem; color: #887877; font-size: 0.65rem; letter-spacing: 0.16em; }
.role { margin: 0; color: var(--orange); font-size: 0.62rem; letter-spacing: 0.12em; }
.founder-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #ffffff22; }

.founder-grid article,
.leadership article { min-height: 12rem; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid #ffffff22; }

.founder-grid article + article { padding-left: 2rem; border-left: 1px solid #ffffff22; }
.founder-grid h2,
.leadership h2 { margin: 1.25rem 0 0.75rem; font: 700 2.25rem "Playfair Display", serif; }

.founder-grid article > p:last-child,
.leadership article > p:last-child { color: var(--muted); font-size: 0.76rem; line-height: 1.7; }

.leadership article { max-width: 42rem; border-top: 1px solid #ffffff22; }
.leadership h2 { color: var(--orange); }

/* FAQ and update archive */
.faq-list { max-width: 52rem; margin-top: 3.5rem; border-top: 1px solid #ffffff22; }
.faq-list details { padding: 1.25rem 0; border-bottom: 1px solid #ffffff22; }
.faq-list summary { color: #f4edeb; cursor: pointer; font: 700 1.1rem "Playfair Display", serif; list-style: none; }
.faq-list summary::after { float: right; color: var(--orange); content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 38rem; margin: 1rem 2rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }

.update-archive { max-width: 65rem; margin-top: 3.5rem; border-top: 1px solid #ffffff22; }
.update-archive article { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2.5rem; align-items: start; padding: 2.5rem 0; border-bottom: 1px solid #ffffff22; }
.update-archive time { color: var(--orange); font-size: 0.62rem; letter-spacing: 0.11em; }
.update-archive h2 { margin: 1rem 0 0; font: 700 clamp(1.3rem, 2.2vw, 2rem) / 1 "Playfair Display", serif; }
.update-archive article > p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }
.status { padding: 0.5rem 0.6rem; color: #e6b7a8; border: 1px solid #ffffff22; font-size: 0.55rem; letter-spacing: 0.08em; white-space: nowrap; }

/* Footer */
footer { display: flex; justify-content: space-between; padding: 1.5rem clamp(1.5rem, 6vw, 6rem); color: #6f6261; border-top: 1px solid #ffffff12; font-size: 0.6rem; letter-spacing: 0.14em; }
.secret-link { color: #6f6261; letter-spacing: 0.25em; text-decoration: none; }
.secret-link:hover { color: var(--orange); text-shadow: 0 0 8px #6c38af; }

/* Hidden lore terminal */
.access-body { display: grid; min-height: 100vh; place-items: center; background: radial-gradient(circle at 50% 45%, #270817, #050505 58%); }
.access-terminal { width: min(90vw, 46rem); padding: clamp(2rem, 7vw, 5rem); background: #090708d9; border: 1px solid #ffffff1c; box-shadow: 0 0 80px #5b2c7938; }
.access-terminal .wordmark { display: inline-block; margin-bottom: 4rem; }
.access-terminal h1 { margin: 0; font: 800 clamp(3rem, 8vw, 6rem) / 0.8 "Playfair Display", serif; letter-spacing: -0.07em; }
.access-terminal h1 span { color: var(--red); }
.terminal-copy { margin: 2rem 0; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }
.code-form label { display: block; margin-bottom: 0.65rem; color: var(--orange); font-size: 0.62rem; letter-spacing: 0.15em; }
.code-form div { display: flex; }
.code-form input { flex: 1; min-width: 0; padding: 1rem; color: #f3e8e4; background: #050505; border: 1px solid #ffffff2a; outline: none; font: 0.85rem "DM Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.code-form input:focus { border-color: var(--orange); box-shadow: 0 0 18px #6c38af55; }
.code-form button { padding: 0 1.1rem; color: white; background: linear-gradient(135deg, var(--orange), var(--red)); border: 0; cursor: pointer; font: 0.65rem "DM Mono", monospace; letter-spacing: 0.1em; }
.code-message { min-height: 1.5rem; color: #ca7174; font-size: 0.7rem; }
.return-link { display: inline-block; margin-top: 3rem; color: #908082; font-size: 0.62rem; letter-spacing: 0.1em; text-decoration: none; }

.lore-body { min-height: 100vh; background: radial-gradient(circle at 82% 15%, #2b1036, #080607 47%, #030303); }
.lore-page { width: min(90vw, 56rem); margin: 0 auto; padding: clamp(2rem, 8vw, 7rem) 0; }
.file-topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.25rem; border-bottom: 1px solid #ffffff1c; }
.file-topline .eyebrow { margin: 0; }
.classified { margin: 4rem 0 1rem; color: #927577; font-size: 0.6rem; letter-spacing: 0.16em; }
.lore-page h1 { max-width: 45rem; margin: 0; color: #f4e9e5; font: 800 clamp(2.7rem, 6vw, 5.5rem) / 0.87 "Playfair Display", serif; letter-spacing: -0.065em; }
.lore-content { max-width: 42rem; margin-top: 3.5rem; padding-left: clamp(1.3rem, 4vw, 3rem); border-left: 1px solid #ad291d; }
.lore-content p { color: #c8bcbc; font-size: 0.85rem; line-height: 2; white-space: pre-line; }
.lore-content p:first-child { color: #e0d1cd; font-size: 1rem; }
.file-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid #ffffff1c; }
.file-actions a { color: var(--orange); font-size: 0.62rem; letter-spacing: 0.1em; text-decoration: none; }

/* Mobile */
@media (max-width: 720px) {
  .site-header { height: 70px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 1.5rem; background: #0c0808; border-bottom: 1px solid #ffffff12; }
  .site-nav.open { display: flex; }
  .hero { min-height: calc(100vh - 70px); padding-top: 5rem; align-items: end; }
  .hero-image { width: 100%; height: 70%; mask-image: linear-gradient(to bottom, black 20%, transparent); opacity: 0.6; }
  .scroll-note { display: none; }
  .platform-grid,
  .creator-grid,
  .founder-grid,
  .info-layout,
  .update-list article,
  .launch-alert,
  .update-archive article { grid-template-columns: 1fr; gap: 0.8rem; }
  .platform-grid article + article,
  .creator-grid article + article,
  .founder-grid article + article { padding-left: 0; border-left: 0; }
  .info-layout { gap: 0; }
  .launch-alert { align-items: start; }
  .comfort-strip { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .file-topline { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .classified { margin-top: 3rem; }
  .file-actions { flex-direction: column; }
}
