:root {
  --bg: #02040b;
  --panel: rgba(10, 14, 24, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --muted: #a7b0c0;
  --muted-2: #dbe2f4;
  --blue: #2563ff;
  --gold: #f4b400;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(92, 43, 190, 0.24), transparent 22rem),
    linear-gradient(180deg, #09031c 0%, #050816 20%, #02040b 52%, #02040b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 4, 11, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

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

.nav-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #d7deef;
  font-weight: 800;
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  padding: 60px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #dbe2f4;
  font-size: 0.8rem;
  font-weight: 900;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.65rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 860px;
}

.intro {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 820px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 42px;
  align-items: start;
  padding-bottom: 60px;
}

article {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0 28px;
}

article h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

article h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
}

article p,
article li {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}

article ul,
article ol {
  padding-left: 22px;
}

.note {
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(244, 180, 0, 0.22);
  background: rgba(244, 180, 0, 0.08);
  color: #f8dda0;
  line-height: 1.75;
}

.side-card {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.side-card a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  color: #dbe2f4;
  font-weight: 800;
  line-height: 1.35;
}

.cta {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 255, 0.28);
  background: linear-gradient(180deg, rgba(37, 99, 255, 0.16), rgba(255, 255, 255, 0.03));
}

.cta h2 {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  margin-top: 8px;
}

footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line-soft);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-row p,
.footer-row a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .side-card {
    position: static;
  }

  .nav-inner,
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-inner {
    min-height: 72px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.86rem;
  }
}
