:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --ink: #081229;
  --muted: #566178;
  --soft: #eef3ff;
  --line: #dfe6f6;
  --blue: #3157ff;
  --blue-2: #6b5cff;
  --purple: #8758ff;
  --green: #18b884;
  --orange: #ff8a2a;
  --shadow: 0 18px 55px rgba(25, 47, 91, 0.12);
  --radius: 18px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(107, 92, 255, 0.16), transparent 260px),
    radial-gradient(circle at 12% 32%, rgba(49, 87, 255, 0.08), transparent 300px),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 62%, #fff 100%);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.article-header,
.article-hero,
.article-shell,
.more-articles,
.article-footer {
  width: min(100% - 42px, var(--wrap));
  margin-inline: auto;
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 10px 3px 10px 3px;
  transform: skew(-6deg);
}

.brand strong,
.brand small { display: block; line-height: .95; }
.brand strong { font-size: 17px; font-weight: 900; }
.brand small { color: #2442b8; font-size: 14px; font-weight: 800; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(49, 87, 255, .26);
  border-radius: 12px;
  padding: 0 16px;
  color: var(--blue);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(25, 47, 91, .08);
}

.article-hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0 26px;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.article-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(49, 87, 255, .1);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -0.055em;
}

h1 span { color: var(--blue); }

.article-lead {
  max-width: 630px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef3ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(49, 87, 255, .92), rgba(107, 92, 255, .9));
  opacity: .9;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding: 24px 0 44px;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin: 42px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.article-body p,
.article-body li {
  color: #26324d;
  font-size: 16px;
  line-height: 1.9;
}

.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 14px 0 24px; padding-left: 22px; }
.article-body li::marker { color: var(--blue); }

.article-body a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.note-card,
.quote-card {
  margin: 28px 0;
  border-radius: 18px;
  padding: 22px;
}

.note-card {
  border: 1px solid rgba(49, 87, 255, .18);
  background: linear-gradient(135deg, #eef3ff, #fff);
}

.quote-card {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 42px rgba(49, 87, 255, .2);
}

.quote-card p {
  color: #fff;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.side-card {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 38px rgba(25, 47, 91, .09);
}

.side-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.side-card a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.side-card a:hover { color: var(--blue); }

.more-articles {
  padding: 0 0 42px;
}

.more-articles h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

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

.more-grid a {
  display: grid;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(25, 47, 91, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.more-grid a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.more-grid span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.more-grid strong {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.3;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 12px;
}

.article-footer a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .side-card {
    position: static;
  }

  .more-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-header,
  .article-hero,
  .article-shell,
  .more-articles,
  .article-footer {
    width: min(100% - 24px, var(--wrap));
  }

  .article-header {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 42px;
  }

  .hero-card,
  .hero-card img {
    min-height: 240px;
  }

  .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
