:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #101010;
  --surface-raised: #171717;
  --text: #f7f7f7;
  --muted: #a1a1a1;
  --line: #292929;
  --accent: #5b8cff;
  --accent-strong: #7da4ff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(91, 140, 255, 0.15), transparent 34rem),
    var(--background);
  color: var(--text);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0c0c;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  letter-spacing: -0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  min-height: 670px;
  align-content: center;
  justify-items: center;
  padding: 100px 0 118px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.invite-card h1 {
  margin: 0;
  text-wrap: balance;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 620;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-copy {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--text);
  color: #050505;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #dddddd;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-raised);
}

.button-disabled {
  cursor: default;
  opacity: 0.58;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 112px;
}

.feature {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent), var(--surface);
}

.feature-number {
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

.feature h2 {
  margin: 56px 0 12px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.page-hero {
  max-width: 760px;
  padding: 90px 0 54px;
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.page-hero p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.document {
  max-width: 760px;
  padding-bottom: 100px;
}

.document section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 14px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

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

.document ul {
  margin: 0;
  padding-left: 22px;
}

.document strong {
  color: var(--text);
}

.invite-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.invite-card {
  width: min(100%, 480px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(16, 16, 16, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.invite-card .brand-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 28px;
  border-radius: 16px;
  font-size: 18px;
}

.invite-card h1 {
  font-size: 34px;
  letter-spacing: -0.045em;
}

.invite-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.invite-card .button {
  width: 100%;
  margin-top: 30px;
}

.invite-meta {
  margin-top: 22px;
  color: #747474;
  font-size: 13px;
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #777777;
  font-size: 13px;
}

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

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 590px;
    padding: 76px 0 90px;
  }

  .features {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .feature {
    min-height: 210px;
  }

  .feature h2 {
    margin-top: 42px;
  }

  .invite-card {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
