:root {
  --ink: #11100e;
  --ink-soft: #1b1716;
  --wine: #7a263a;
  --wine-deep: #4f1725;
  --gold: #f2c94c;
  --paper: #f8f3ea;
  --paper-muted: #bdb4a8;
  --line: rgba(248, 243, 234, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(248, 243, 234, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(242, 201, 76, 0.07), transparent 36rem),
    var(--ink);
  background-size: 72px 72px, auto, auto;
  color: var(--paper);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-elevated {
  width: 100%;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(17, 16, 14, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.header-cta,
.nav-links {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(242, 201, 76, 0.55);
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(242, 201, 76, 0.2);
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--paper-muted);
  font-size: 0.92rem;
}

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

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 800;
}

.header-cta {
  padding: 0 16px;
  color: var(--gold);
  border: 1px solid rgba(242, 201, 76, 0.4);
}

.section-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(3.15rem, 7.8vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 4.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.hero-lede,
.problem-copy,
.community-copy p,
.opening-band p {
  color: var(--paper-muted);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button {
  padding: 0 22px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(242, 201, 76, 0.22);
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid rgba(248, 243, 234, 0.2);
  color: var(--paper);
}

.hero-visual {
  position: relative;
}

.room-card {
  position: relative;
  min-height: 560px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(122, 38, 58, 0.24), transparent 42%),
    repeating-linear-gradient(0deg, rgba(248, 243, 234, 0.035) 0 1px, transparent 1px 18px),
    #171310;
  box-shadow: var(--shadow);
}

.window-light {
  position: absolute;
  inset: 0 0 auto auto;
  width: 58%;
  height: 72%;
  background: linear-gradient(135deg, rgba(242, 201, 76, 0.26), transparent 62%);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 45%);
}

.shelf {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 70px;
  display: flex;
  align-items: end;
  gap: 10px;
  height: 240px;
  padding: 0 0 20px;
  border-bottom: 10px solid #3a2620;
}

.book {
  display: block;
  width: 44px;
  height: 168px;
  border-radius: 4px 4px 2px 2px;
  background: #6a5845;
  box-shadow: inset 8px 0 rgba(255, 255, 255, 0.08);
}

.book.tall {
  height: 220px;
}

.book.slim {
  width: 28px;
  height: 190px;
  background: #2a4f4a;
}

.book.wine {
  background: var(--wine);
}

.book.yellow {
  background: var(--gold);
}

.book.cream {
  background: #d9c5a5;
}

.book-phone {
  position: absolute;
  right: 46px;
  bottom: 120px;
  width: 210px;
  padding: 16px;
  border: 1px solid rgba(248, 243, 234, 0.18);
  border-radius: 24px;
  background: rgba(17, 16, 14, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}

.phone-top {
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
}

.book-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(248, 243, 234, 0.08);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.book-item span {
  width: 22px;
  height: 28px;
  border-radius: 3px;
  background: var(--gold);
}

.book-item.muted span {
  background: var(--wine);
}

.stack-label {
  position: absolute;
  left: 34px;
  bottom: 28px;
  color: rgba(248, 243, 234, 0.62);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.problem-grid,
.community-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-heading.centered {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

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

.feature-card,
.quote-panel,
.opening-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 243, 234, 0.055);
}

.feature-card {
  min-height: 310px;
  padding: 30px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 56px;
  color: var(--gold);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-card p,
.flow-list p,
.quote-panel span,
.site-footer {
  color: var(--paper-muted);
}

.flow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 50px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  min-height: 210px;
  padding: 24px;
  border-left: 2px solid var(--gold);
  background: rgba(122, 38, 58, 0.13);
}

.flow-list span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 32px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
}

.flow-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.quote-panel {
  padding: 34px;
  align-self: stretch;
}

.quote-panel p {
  font-size: clamp(1.7rem, 3.1vw, 3.2rem);
  line-height: 1.12;
}

.opening-band {
  width: min(920px, calc(100% - 32px));
  margin: 40px auto 110px;
  padding: 56px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(242, 201, 76, 0.14), rgba(122, 38, 58, 0.18)),
    rgba(248, 243, 234, 0.055);
}

.opening-band p {
  max-width: 690px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .problem-grid,
  .community-section,
  .flow-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .feature-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .room-card {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .header-cta {
    display: none;
  }

  .section-band {
    width: calc(100% - 24px);
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-actions a {
    width: 100%;
  }

  .room-card {
    min-height: 420px;
    padding: 20px;
  }

  .shelf {
    left: 20px;
    right: 20px;
    bottom: 54px;
    gap: 7px;
  }

  .book {
    width: 34px;
  }

  .book-phone {
    right: 22px;
    bottom: 112px;
    width: 180px;
  }

  .opening-band {
    width: calc(100% - 24px);
    padding: 34px 22px;
  }

  .site-footer {
    flex-direction: column;
    width: calc(100% - 24px);
  }
}
