:root {
  color-scheme: dark;
  --bg: #101316;
  --panel: #1b2025;
  --panel-strong: #252b31;
  --panel-soft: #151a1f;
  --line: #3a424a;
  --text: #eef3f6;
  --muted: #a9b3bc;
  --good: #41d17d;
  --warn: #f0c24b;
  --accent: #58c7d8;
  --accent-soft: rgba(88, 199, 216, 0.14);
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(88, 199, 216, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(65, 209, 125, 0.08), transparent 24rem),
    linear-gradient(180deg, #11161a 0%, var(--bg) 48rem);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(238, 243, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 246, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 74%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

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

.site-header {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 32, 37, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand-logo {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(88, 199, 216, 0.32), 0 0 32px rgba(88, 199, 216, 0.14);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.brand-text span,
.muted,
.updated {
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a,
.site-footer a,
.document a {
  color: var(--text);
  text-decoration: none;
}

.site-nav a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 12px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 32, 37, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 520px;
  padding: clamp(24px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.eyebrow,
.panel-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(65, 209, 125, 0.5);
  border-radius: 8px;
  color: var(--good);
  font-size: 0.78rem;
  font-weight: 750;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(65, 209, 125, 0.16);
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 16ch;
  color: var(--text);
  font-size: clamp(2.7rem, 6.1vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.info-panel {
  padding: 18px;
}

.info-panel h2,
.section-heading h2,
.document h1 {
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.info-panel p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.app-feature {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
}

.app-icon {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(88, 199, 216, 0.42);
  border-radius: 19px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 28px rgba(88, 199, 216, 0.12);
}

.metric-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.metric span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metric strong {
  color: var(--text);
  font-size: 0.95rem;
}

.section {
  margin-top: 12px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

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

.values article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.values h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.values p,
.document p {
  color: var(--muted);
  line-height: 1.68;
}

.document {
  max-width: 880px;
  margin: 12px auto 0;
  padding: clamp(22px, 5vw, 42px);
}

.document .eyebrow {
  margin-bottom: 12px;
}

.document .updated {
  margin: 14px 0 32px;
  color: var(--accent);
  font-weight: 700;
}

.document h2 {
  margin: 36px 0 10px;
  color: var(--text);
  font-size: 1.2rem;
}

.document p {
  margin-bottom: 18px;
}

.document a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  margin-top: 12px;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-panel {
    min-height: 460px;
  }

  .side-stack {
    grid-template-rows: auto;
  }

  h1 {
    max-width: 10ch;
  }

  .brand-logo {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    border-radius: 15px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 12px;
  }

  .site-nav,
  .site-footer div {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
    border-radius: 13px;
  }

  .hero-panel,
  .info-panel,
  .section,
  .document {
    padding: 16px;
  }

  .app-feature {
    grid-template-columns: 68px 1fr;
    gap: 12px;
  }

  .app-icon {
    width: 68px;
    height: 68px;
    border-radius: 15px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
  }
}
