:root {
  --orange: #f47b20;
  --orange-dark: #c75d11;
  --teal: #1f8f8a;
  --ink: #16243a;
  --muted: #657086;
  --line: #e6e0d8;
  --paper: #fff8ef;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(22, 36, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--orange);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.topnav a {
  text-decoration: none;
}

.topnav a:hover {
  color: var(--orange-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, var(--paper), #fffdf8);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: #4e5a6f;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--orange);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#mazeCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.visual-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.docs-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 56px) 70px;
}

.content {
  min-width: 0;
}

.section {
  scroll-margin-top: 96px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.03;
}

.flow {
  display: grid;
  gap: 18px;
}

.club-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 22px;
  max-width: 1080px;
}

.club-main,
.club-side {
  display: grid;
  gap: 16px;
}

.club-intro,
.club-expectations,
.club-details,
.discord-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.club-intro,
.club-expectations,
.club-details {
  padding: 24px;
}

.club-intro {
  min-height: 220px;
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.club-intro h3 {
  max-width: 560px;
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.club-intro p {
  max-width: 620px;
  margin-bottom: 0;
  color: #d7deea;
  font-size: 1.08rem;
}

.club-details {
  display: grid;
  gap: 0;
}

.club-detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.club-detail-row:last-child {
  border-bottom: 0;
}

.club-detail-label,
.discord-card span {
  display: block;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.club-detail-row strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.club-detail-link {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.club-detail-link:hover,
.discord-url:hover {
  color: var(--orange-dark);
}

.discord-card {
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(22, 36, 58, 0.06);
}

.discord-card h3 {
  margin: 0 0 14px;
}

.qr-link {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  padding: 10px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-link img {
  display: block;
  width: min(100%, 240px);
  height: auto;
}

.discord-url {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.info-block {
  max-width: 900px;
  padding: 22px 0;
}

.info-block h3,
.mini-card h3 {
  margin: 0 0 10px;
  line-height: 1.15;
}

.info-block p,
.mini-card p {
  color: #4e5a6f;
}

.check-list {
  padding-left: 20px;
  color: #4e5a6f;
}

.check-list li {
  margin: 7px 0;
}

.mini-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.join {
  border-bottom: 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #586376;
  background: var(--ink);
}

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

@media (max-width: 1040px) {
  .hero,
  .club-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topnav {
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: 2.85rem;
  }

  .mini-card {
    padding: 18px;
  }
}
