@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/IBMPlexSans_400Regular.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  src: url("/assets/fonts/IBMPlexSans_500Medium.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/IBMPlexSans_600SemiBold.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/IBMPlexSans_700Bold.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --canvas: #090909;
  --panel: #121212;
  --panel-muted: #1c1b18;
  --panel-strong: #29251c;
  --ink: #f5f0e5;
  --muted: #c6bdae;
  --soft: #8f877c;
  --brand: #c49a3c;
  --brand-deep: #f2d28a;
  --brand-muted: #332815;
  --border: #24231f;
  --border-strong: #4a3d24;
  --danger: #d16c62;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(196, 154, 60, 0.14), transparent 32rem),
    linear-gradient(180deg, #090909 0%, #12100c 56%, #090909 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--brand-deep);
  text-decoration-color: rgba(242, 210, 138, 0.45);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--ink);
}

.site-shell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 28px 22px 56px;
}

.site-header,
.site-footer,
.hero,
.content-grid {
  width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 54px;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: min(300px, 66vw);
  width: 300px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a,
.open-app {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 9px 12px;
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  background: rgba(196, 154, 60, 0.16);
  color: var(--brand-deep);
}

.open-app {
  background: var(--brand);
  color: #231f20;
}

.hero {
  border-bottom: 1px solid var(--border-strong);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 260px;
  margin-bottom: 32px;
  padding-bottom: 34px;
}

.eyebrow {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(38px, 7vw, 76px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 18px;
  max-width: 760px;
}

.hero-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
  margin: 0;
  max-width: 720px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.store-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #121212;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  min-width: 168px;
  padding: 12px 15px;
  text-decoration: none;
}

.store-button:hover,
.store-button:focus-visible {
  color: #121212;
}

.store-icon {
  display: block;
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.invite-download-panel {
  background: rgba(196, 154, 60, 0.1);
  border: 1px solid rgba(196, 154, 60, 0.28);
  border-radius: 8px;
  margin-top: 24px;
  padding: 18px;
}

.invite-download-panel p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.summary-panel {
  align-self: end;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 18px;
}

.summary-label {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.summary-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.content-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 250px minmax(0, 1fr);
}

.toc {
  align-self: start;
  border-left: 1px solid var(--border-strong);
  padding-left: 18px;
  position: sticky;
  top: 24px;
}

.toc-title {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.toc a {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.45;
  padding: 7px 0;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--ink);
}

.legal-card {
  background: rgba(18, 18, 18, 0.84);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 42px);
}

.notice {
  background: rgba(196, 154, 60, 0.12);
  border: 1px solid rgba(196, 154, 60, 0.32);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  margin: 0 0 30px;
  padding: 16px;
}

section {
  border-top: 1px solid var(--border);
  padding: 28px 0 0;
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

section + section {
  margin-top: 28px;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  margin: 0 0 12px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 8px;
}

strong {
  color: var(--ink);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 22px;
}

.site-footer p {
  color: var(--soft);
  font-size: 13px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.utility-shell {
  min-height: 100vh;
}

.utility-shell .site-header {
  margin-bottom: 34px;
}

.utility-main {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 260px);
}

.utility-card {
  background: rgba(18, 18, 18, 0.84);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(24px, 6vw, 48px);
  width: 100%;
}

.utility-card .brand-logo {
  margin-bottom: 30px;
  max-width: min(360px, 78vw);
  width: 360px;
}

.utility-card h1 {
  font-size: clamp(36px, 7vw, 64px);
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link {
  align-items: center;
  background: var(--brand);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #231f20;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  color: #231f20;
}

.button-link.secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.button-link.secondary:hover,
.button-link.secondary:focus-visible {
  border-color: var(--brand);
  color: var(--brand-deep);
}

@media (max-width: 760px) {
  .site-shell {
    padding: 22px 16px 42px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    align-self: stretch;
  }

  .toc {
    border-left: 0;
    border-top: 1px solid var(--border-strong);
    padding: 16px 0 0;
    position: static;
  }
}
