:root {
  color-scheme: dark;
  --background: #0f131a;
  --surface: #171c25;
  --surface-soft: #1d2330;
  --border: #2c3443;
  --text: #f5f7fb;
  --muted: #aab2c2;
  --accent: #8b6cff;
  --accent-soft: rgba(139, 108, 255, 0.16);
  --success: #4dd27d;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: #b8a8ff;
}

a:hover {
  color: #d1c7ff;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 19, 26, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(139, 108, 255, 0.48);
  border-radius: 9px;
  color: #c4b7ff;
  background: var(--accent-soft);
  font-size: 17px;
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.page {
  padding: 72px 0 88px;
}

.hero {
  padding: 32px 0 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b8a8ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: -0.025em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.06;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 22px);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 48px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.card strong {
  display: block;
  margin-bottom: 7px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.document {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.document h1 {
  font-size: clamp(34px, 6vw, 52px);
}

.document h2 {
  margin: 38px 0 12px;
  font-size: 23px;
}

.document p,
.document li {
  color: #d1d6e0;
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 20px 0 34px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.note {
  padding: 16px 18px;
  border: 1px solid rgba(77, 210, 125, 0.36);
  border-radius: 10px;
  background: rgba(77, 210, 125, 0.08);
}

.oauth-complete {
  max-width: 720px;
  margin: 20px auto 0;
}

.oauth-success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 12px 0 22px;
  place-items: center;
  border: 1px solid rgba(77, 210, 125, 0.5);
  border-radius: 50%;
  color: var(--success);
  background: rgba(77, 210, 125, 0.1);
  font-size: 30px;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .document {
    padding: 24px 20px;
  }

  .footer-inner {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
