:root {
  color-scheme: dark;
  --background: #080d18;
  --surface: rgba(17, 27, 45, 0.78);
  --surface-raised: #111b2d;
  --text: #e8efff;
  --muted: #97a8c4;
  --line: rgba(153, 180, 226, 0.16);
  --accent: #70e1d1;
  --accent-strong: #82aaff;
  --glow: rgba(58, 224, 203, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f3f7fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-raised: #ffffff;
  --text: #14213a;
  --muted: #5c6b83;
  --line: rgba(49, 78, 121, 0.16);
  --accent: #087e78;
  --accent-strong: #315fc2;
  --glow: rgba(52, 150, 163, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 4%, var(--glow), transparent 34rem),
    radial-gradient(ellipse at 90% 30%, rgba(91, 119, 255, 0.08), transparent 36rem),
    var(--background);
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.36), transparent 80%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

a:hover {
  color: var(--accent-strong);
}

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

button {
  color: inherit;
  font: inherit;
}

.site-frame {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 19px;
  font-weight: 750;
}

.brand-mark span,
.accent {
  color: var(--accent);
}

.brand-name,
.brand-name span,
.eyebrow,
.card-index,
.meta-label,
.site-footer a {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.1em;
}

.brand-name {
  font-size: 12px;
  font-weight: 700;
}

.brand-name span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.header-controls,
.language-switch {
  display: flex;
  align-items: center;
}

.header-controls {
  gap: 20px;
}

.language-switch {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.language-switch button,
.theme-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switch button {
  padding: 7px 2px;
  color: var(--muted);
}

.language-switch button[aria-pressed="true"] {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
}

.theme-icon {
  color: var(--accent);
  font-size: 16px;
}

.site-content {
  min-height: calc(100vh - 145px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 132px) 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  top: 18%;
  right: 3%;
  width: clamp(130px, 24vw, 250px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  box-shadow: 0 0 80px var(--glow);
  content: "";
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.6;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  vertical-align: 1px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
}

.button-primary {
  border-color: transparent;
  background: var(--accent);
  color: #07131c;
  font-weight: 700;
}

:root[data-theme="light"] .button-primary {
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button-quiet {
  background: var(--surface);
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta > span {
  display: grid;
  gap: 8px;
}

.meta-label {
  color: var(--muted);
  font-size: 9px;
}

.section-block {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading .eyebrow,
.community-strip .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2,
.community-strip h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.04em;
}

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

.info-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.card-index {
  color: var(--accent-strong);
  font-size: 9px;
}

.info-card h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.info-card p,
.connect-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.card-links {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
}

.card-links a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.community-strip {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 48px;
  padding-bottom: 74px;
  border-bottom: 0;
}

.connect-content p {
  margin-bottom: 18px;
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-footer a {
  font-size: 9px;
}

.friend-links {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.site-content > h1,
.site-content > h2,
.site-content > p,
.site-content > ul,
.site-content > ol,
.site-content > blockquote,
.site-content > pre,
.site-content > table {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.site-content > h1 {
  margin-top: 15px;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.045em;
}

.site-content > h2 {
  margin-top: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
}

.site-content > p {
  color: var(--muted);
  line-height: 1.8;
}

.site-content > ul {
  padding: 0;
  list-style: none;
}

.site-content > ul li {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.site-content > ul li::before {
  margin-right: 10px;
  color: var(--accent);
  content: "↳";
}

.site-content > ul a {
  color: var(--text);
}

.site-content > ul a:hover {
  color: var(--accent);
}

.site-content > ul + h2 {
  margin-top: 52px;
}

.page-eyebrow {
  margin-top: 52px;
}

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

  .info-card {
    min-height: 220px;
  }

  .community-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero::after {
    top: 8%;
    right: -8%;
  }
}

@media (max-width: 520px) {
  .site-frame {
    width: min(100% - 28px, 1040px);
  }

  .site-header {
    min-height: 72px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 10px;
  }

  .brand-name span {
    display: block;
    margin-top: 3px;
    font-size: 8px;
  }

  .header-controls {
    gap: 10px;
  }

  .theme-toggle {
    width: 36px;
    min-height: 36px;
    justify-content: center;
    padding: 0;
  }

  .theme-toggle [data-i18n] {
    display: none;
  }

  .hero {
    padding-top: 76px;
  }

  .hero-meta {
    gap: 20px;
    margin-top: 40px;
  }

  .section-block {
    padding: 52px 0;
  }

  .site-content > ul li {
    padding-right: 4px;
    padding-left: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
