:root {
  --ink: #18201f;
  --muted: #53615e;
  --paper: #f7f3ea;
  --ivory: #fffaf0;
  --gold: #c5913c;
  --green: #1c5446;
  --green-deep: #0f352f;
  --clay: #9a5d3e;
  --walnut: #553824;
  --line: rgba(24, 32, 31, 0.14);
  --shadow: 0 24px 60px rgba(15, 53, 47, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(12, 25, 24, 0.9), rgba(12, 25, 24, 0.58));
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.38);
  background: rgba(255, 250, 240, 0.12);
  color: #f5d28b;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.94rem;
}

.nav-links a,
.header-action {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-links a:hover {
  color: var(--ivory);
}

.header-action {
  min-width: max-content;
  padding: 11px 16px;
  border: 1px solid rgba(245, 210, 139, 0.5);
  color: #f5d28b;
  font-weight: 750;
}

.header-action:hover {
  background: rgba(245, 210, 139, 0.12);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 130px clamp(20px, 6vw, 84px) 74px;
  overflow: hidden;
  color: var(--ivory);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 18, 17, 0.92) 0%, rgba(9, 18, 17, 0.74) 38%, rgba(9, 18, 17, 0.22) 72%, rgba(9, 18, 17, 0.08) 100%),
    linear-gradient(180deg, rgba(9, 18, 17, 0.2), rgba(9, 18, 17, 0.62));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.35rem);
}

.hero-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: #24170c;
  box-shadow: 0 14px 30px rgba(197, 145, 60, 0.24);
}

.button-primary:hover {
  background: #d2a34e;
}

.button-secondary {
  border-color: rgba(255, 250, 240, 0.46);
  color: var(--ivory);
  background: rgba(255, 250, 240, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 250, 240, 0.14);
}

.mission-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.mission-band div {
  padding: 28px clamp(20px, 4vw, 52px);
  background: var(--ivory);
}

.mission-band strong,
.mission-band span {
  display: block;
}

.mission-band strong {
  font-size: 1.05rem;
}

.mission-band span {
  margin-top: 6px;
  color: var(--muted);
}

.split-section,
.community-section,
.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
  padding: clamp(68px, 9vw, 122px) clamp(20px, 6vw, 84px);
}

.section-copy,
.community-copy {
  max-width: 690px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-copy p,
.community-copy p,
.join-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.feature-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.feature-list p {
  margin: 0;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #e7d6b4;
  color: var(--green-deep);
  font-weight: 900;
}

.chess-panel,
.chat-preview,
.study-detail {
  background: #fffdf6;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chess-panel {
  padding: clamp(18px, 3vw, 26px);
}

.panel-topline,
.file-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.panel-topline {
  align-items: center;
  margin-bottom: 16px;
  color: var(--green-deep);
  font-weight: 850;
}

.status-pill {
  border: 1px solid rgba(28, 84, 70, 0.2);
  color: var(--green);
  padding: 6px 10px;
  font-size: 0.76rem;
}

.board-shell {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

.rank-labels {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.chess-board {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 8px solid var(--walnut);
  background: var(--walnut);
}

.square {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border: 0;
  font-weight: 900;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3.2vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1;
}

.square.light {
  background: #e8cf9f;
}

.square.dark {
  background: #815432;
}

.piece-white {
  color: #fffaf0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.44);
}

.piece-black {
  color: #081f1d;
  text-shadow: 0 1px 0 rgba(255, 250, 240, 0.22);
}

.chess-board .square:hover {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.file-labels {
  margin-left: 26px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.study-section,
.launch-section {
  padding: clamp(68px, 9vw, 122px) clamp(20px, 6vw, 84px);
  background: #eef1e8;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 36px;
}

.study-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.study-card,
.timeline div {
  padding: 24px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  background: rgba(255, 253, 246, 0.76);
}

.study-card {
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.study-card:hover,
.study-card.active {
  transform: translateY(-3px);
  border-color: rgba(197, 145, 60, 0.58);
  background: #fffdf6;
}

.study-card span,
.timeline span,
.detail-label {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.study-card h3,
.study-detail h3 {
  margin: 10px 0 8px;
  font-size: 1.3rem;
}

.study-card p,
.study-detail p,
.timeline p,
.chat-message p {
  margin: 0;
  color: var(--muted);
}

.study-detail {
  margin-top: 18px;
  padding: 28px;
}

.community-section {
  background: var(--green-deep);
  color: var(--ivory);
}

.community-section p {
  color: rgba(255, 250, 240, 0.76);
}

.chat-preview {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #153f37;
  border-color: rgba(255, 250, 240, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.chat-message {
  max-width: 86%;
  padding: 16px;
  background: rgba(255, 250, 240, 0.1);
  border: 1px solid rgba(255, 250, 240, 0.12);
}

.chat-message.self {
  justify-self: end;
  background: rgba(197, 145, 60, 0.18);
}

.chat-message span {
  display: block;
  margin-bottom: 5px;
  color: #f5d28b;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.timeline strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.12rem;
}

.join-section {
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.waitlist-form {
  padding: 26px;
  border: 1px solid var(--line);
  background: #f0eadc;
}

.waitlist-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 850;
}

.waitlist-form input {
  flex: 1 1 240px;
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(24, 32, 31, 0.22);
  background: #fffdf6;
  color: var(--ink);
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: rgba(255, 250, 240, 0.72);
  background: #101b19;
}

.site-footer span:first-child {
  color: var(--ivory);
  font-weight: 900;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .mission-band,
  .split-section,
  .community-section,
  .join-section,
  .study-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 820px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(9, 18, 17, 0.96) 0%, rgba(9, 18, 17, 0.78) 46%, rgba(9, 18, 17, 0.48) 100%);
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-action {
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 760px;
    padding: 150px 18px 52px;
  }

  .hero-actions .button,
  .form-row .button {
    width: 100%;
  }

  .split-section,
  .community-section,
  .join-section,
  .study-section,
  .launch-section {
    padding-inline: 18px;
  }

  .chess-panel {
    padding: 14px;
  }

  .chess-board {
    border-width: 5px;
  }

  .square {
    font-size: clamp(1rem, 7vw, 1.75rem);
  }
}
