:root {
  --bg: #0a101c;
  --surface: #111a2e;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f6fc;
  --muted: #8b95ab;
  --brand: #5b7cf9;
  --brand-hover: #6b89ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

.lg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 16, 28, 0.92);
  backdrop-filter: blur(16px);
}

.lg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.lg-back {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.lg-back:hover {
  color: var(--text);
  text-decoration: none;
}

.lg-brand {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.lg-brand:hover {
  text-decoration: none;
}

.lg-brand-accent {
  color: var(--brand);
}

.lg-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.lg-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.lg-main h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.lg-prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  color: var(--text);
}

.lg-prose p,
.lg-prose ul {
  margin: 0 0 0.85rem;
  color: #c5d0e6;
}

.lg-prose ul {
  padding-left: 1.25rem;
}

.lg-lead {
  font-size: 1.05rem;
  color: var(--text) !important;
}

.lg-note {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(91, 124, 249, 0.25);
  background: rgba(91, 124, 249, 0.1);
  color: #c5d0ff !important;
}

.lg-meta {
  margin-top: 2rem !important;
  font-size: 0.875rem;
  color: var(--muted) !important;
}

.lg-footer {
  border-top: 1px solid var(--border);
  background: #070c16;
  padding: 2.5rem 1.25rem 1.75rem;
}

.lg-footer-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .lg-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem 2.5rem;
    max-width: 56rem;
  }

  .lg-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .lg-footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .lg-footer-brand {
    grid-column: auto;
  }
}

.lg-footer-logo {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.lg-footer-tag {
  margin: 0.5rem 0 0;
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.lg-footer-col {
  min-width: 0;
}

.lg-footer-label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7794ff;
}

.lg-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.lg-footer-links a {
  font-size: 0.875rem;
  color: #aab3c5;
  text-decoration: none;
}

.lg-footer-links a:hover {
  color: var(--text);
}

.lg-footer-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #667086;
}

@media (min-width: 640px) {
  .lg-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.lg-footer-bar p {
  margin: 0;
}

.lg-footer-bar a {
  color: #8b95ab;
  text-decoration: none;
}

.lg-footer-bar a:hover {
  color: var(--text);
}
