:root {
  --paper: #FAF7F2;
  --soft: #F0EAE2;
  --ink: #2B2B2B;
  --muted: #71675f;
  --gold: #C4956A;
  --gold-dark: #8E6035;
  --leaf: #5B7B6F;
  --line: rgba(196, 149, 106, .24);
  --glass: rgba(250, 247, 242, .78);
  font-family: "Noto Sans Thai", "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; }

.muted-inline {
  color: var(--muted);
  font-size: .92em;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(196, 149, 106, .16);
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(14px);
}

.brand,
nav,
.quiet-proof,
.action-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: .55rem;
  color: var(--gold-dark);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img { display: block; }

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .95rem;
  color: var(--muted);
  font-size: .94rem;
}

nav a { text-decoration: none; }

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

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 5rem clamp(1rem, 5vw, 5rem) 3rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250,247,242,.05), rgba(250,247,242,.75)),
    linear-gradient(90deg, rgba(250,247,242,.82), rgba(250,247,242,.25), rgba(250,247,242,.65)),
    url("laan-hero.webp") center / cover no-repeat;
}

.hero-copy {
  width: min(43rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-mark {
  width: clamp(5rem, 18vw, 10rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(114, 73, 33, .16));
}

.kicker {
  margin: .45rem 0 .65rem;
  color: var(--gold-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: .25rem;
  color: var(--gold-dark);
  font-size: clamp(4.8rem, 17vw, 9rem);
  line-height: .82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: .75rem;
  font-size: clamp(1.9rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .35rem;
  color: var(--gold-dark);
  font-size: 1.12rem;
  letter-spacing: 0;
}

.lead,
.section-copy p,
.share-copy p,
.seed-card p,
details p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 34rem;
  margin-inline: auto;
}

.question-pill {
  width: min(39rem, 100%);
  min-height: 4.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.4rem auto 1rem;
  padding: .72rem .78rem .72rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .86);
  box-shadow: 0 22px 70px rgba(84, 54, 24, .12);
  text-align: left;
  text-decoration: none;
}

.question-pill span {
  color: var(--muted);
  line-height: 1.45;
}

.question-pill strong,
.btn.primary {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.question-pill strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .72rem 1rem;
  font-size: .95rem;
}

.quiet-proof {
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.quiet-proof span {
  border: 1px solid rgba(91, 123, 111, .2);
  border-radius: 999px;
  padding: .38rem .68rem;
  color: var(--leaf);
  background: rgba(255, 253, 248, .58);
  font-size: .86rem;
  font-weight: 800;
}

.chat-section,
.community-section,
.seed-section,
.share-section,
.limits-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5.5rem) 0;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.1rem;
}

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

.community-card {
  min-width: 0;
  min-height: 13rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.05rem;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 18px 55px rgba(84, 54, 24, .08);
}

.community-card h3 {
  margin-top: .65rem;
}

.community-card p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.68;
}

.community-card a {
  color: var(--gold-dark);
  font-weight: 900;
  text-decoration: none;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: .24rem .55rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.status.live {
  color: #2f604f;
  background: rgba(91, 123, 111, .15);
}

.status.beta {
  color: #8E6035;
  background: rgba(196, 149, 106, .18);
}

.status.next {
  color: #6d6259;
  background: rgba(45, 45, 45, .08);
}

.room-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.room-list span {
  border: 1px solid rgba(196, 149, 106, .2);
  border-radius: 999px;
  padding: .38rem .62rem;
  background: rgba(255, 253, 248, .62);
  color: var(--gold-dark);
  font-size: .86rem;
  font-weight: 850;
}

.chat-section {
  display: grid;
  grid-template-columns: minmax(16rem, .62fr) minmax(0, 1.38fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.section-copy {
  min-width: 0;
}

.section-copy.compact {
  max-width: 48rem;
  margin-bottom: 1.2rem;
}

.chat-shell {
  min-width: 0;
}

.chat-frame {
  width: 100%;
  min-height: min(42rem, 78svh);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 90px rgba(84, 54, 24, .13);
}

.chat-full {
  display: inline-flex;
  margin-top: .75rem;
  color: var(--gold-dark);
  font-weight: 900;
  text-decoration: none;
}

.seed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.seed-card {
  min-width: 0;
  min-height: 15.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 253, 248, .7);
  box-shadow: 0 18px 55px rgba(84, 54, 24, .08);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.seed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 149, 106, .48);
  box-shadow: 0 22px 70px rgba(84, 54, 24, .12);
}

.seed-card img {
  width: 4.3rem;
  height: 4.3rem;
  object-fit: contain;
  margin-bottom: .8rem;
}

.seed-card p {
  margin-bottom: .85rem;
  font-size: .98rem;
}

.seed-card span {
  color: var(--gold-dark);
  font-weight: 900;
}

.share-section {
  display: grid;
  grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.gathering {
  width: min(24rem, 100%);
  justify-self: center;
  border-radius: 24px;
  filter: drop-shadow(0 22px 46px rgba(84, 54, 24, .09));
}

.share-copy {
  min-width: 0;
}

.share-copy ul {
  margin: .2rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.action-row {
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7rem 1.12rem;
  background: rgba(255, 253, 248, .82);
  text-decoration: none;
  font-weight: 900;
}

.limits-section {
  display: grid;
  gap: .75rem;
  padding-top: 1rem;
}

details {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  background: rgba(255, 253, 248, .62);
}

summary {
  cursor: pointer;
  color: var(--gold-dark);
  font-weight: 900;
}

details p {
  margin: .75rem 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--soft);
}

footer span:first-child {
  color: var(--gold-dark);
  font-weight: 900;
}

.footer-truth {
  max-width: 45rem;
}

.seed-body {
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 0%, rgba(196, 149, 106, .18), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(91, 123, 111, .13), transparent 28rem),
    var(--paper);
}

.seed-page {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.seed-page h1 {
  margin: .1rem 0 .8rem;
  color: var(--gold-dark);
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: .94;
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.artifact-box {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: rgba(255, 253, 248, .7);
  box-shadow: 0 18px 55px rgba(84, 54, 24, .08);
}

.seed-visual {
  width: 100%;
  margin: 1.25rem 0 .35rem;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(84, 54, 24, .1);
}

.server-card {
  display: grid;
  grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 3vw, 1.35rem);
  align-items: center;
}

.server-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.artifact-box h2 {
  margin-bottom: .65rem;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.artifact-box pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(45, 45, 45, .92);
  color: #fff6e8;
  font: 500 .92rem/1.7 "Cascadia Code", Consolas, monospace;
}

.artifact-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.config-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .55rem .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.config-list dt {
  color: var(--gold-dark);
  font-weight: 900;
}

.config-list dd {
  margin: 0;
}

@media not all {
  :root {
    --paper: #181512;
    --soft: #211c18;
    --ink: #F8F1E7;
    --muted: #CDBFAF;
    --line: rgba(250, 247, 242, .14);
    --glass: rgba(24, 21, 18, .74);
  }

  .topbar,
  .question-pill,
  .quiet-proof span,
  .seed-card,
  details,
  .btn {
    background: rgba(33, 28, 24, .78);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(24,21,18,.02), rgba(24,21,18,.72)),
      linear-gradient(90deg, rgba(24,21,18,.78), rgba(24,21,18,.22), rgba(24,21,18,.62)),
      url("laan-hero.webp") center / cover no-repeat;
  }
}

@media (max-width: 920px) {
  .chat-section,
  .share-section,
  .server-card {
    grid-template-columns: 1fr;
  }

  .section-copy {
    max-width: 42rem;
  }

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

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

@media (max-width: 620px) {
  .topbar {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    gap: .55rem .75rem;
    font-size: .9rem;
  }

  .hero {
    min-height: 88svh;
    padding-top: 2.2rem;
  }

  .question-pill {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
    padding: 1rem;
    text-align: center;
  }

  .seed-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .seed-card {
    min-height: 0;
  }

  .chat-frame {
    min-height: 36rem;
  }

  .action-row .btn {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
