:root {
  --bg: #000;
  --line: #1d1d20;
  --line-strong: #2b2b30;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --accent: #4b8ef0;
  --accent-2: #2c5ea8;
  --neutral-bar: #35353b;
  --display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-top: 2px solid #2a2a2e;
}

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 944px; margin: 0 auto; padding: 0 32px; }

.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.logo svg { width: 26px; height: 26px; }

.nav-links { display: flex; gap: 40px; font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-actions { display: flex; justify-content: flex-end; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease;
}
.btn:hover { background: #111114; }

.btn-primary {
  background: linear-gradient(90deg, #f2f2f3, #b9b9bf);
  color: #0b0b0c;
  border-color: #d4d4d8;
}
.btn-primary:hover { background: linear-gradient(90deg, #f2f2f3, #b9b9bf); filter: brightness(1.06); }

.btn-lg { height: 52px; padding: 0 32px; font-size: 15.5px; }

.page-title {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #ffffff 20%, #9f9fa6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--dim); }
.meta .tag { color: var(--text); font-weight: 500; }

.cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 45% 35% at 85% 12%, rgba(157, 78, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 70%, rgba(20, 110, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 55% at 40% 60%, rgba(18, 90, 140, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 60% at 10% 20%, rgba(10, 40, 220, 0.9), transparent 70%),
    linear-gradient(135deg, #0a1bd6 0%, #0b1a9a 45%, #0a1fc2 100%);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 38% at 38% 42%, rgba(2, 6, 40, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 30% at 55% 100%, rgba(2, 4, 30, 0.6), transparent 70%);
}

.cover > * { position: relative; z-index: 1; }

.cover .cover-mark { width: 13%; max-width: 80px; min-width: 40px; }

.cover .cover-name {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(34px, 6vw, 76px);
  color: #fff;
  line-height: 1;
}

.featured {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.featured .cover { aspect-ratio: 16 / 9; }
.featured .cover .cover-name { font-size: clamp(30px, 4.6vw, 54px); }

.featured-body { padding-top: 4px; }

.featured-body h2 {
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.featured-body p { margin-top: 32px; color: var(--muted); font-size: 16px; }

.featured:hover .featured-body h2 { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

.post-list { list-style: none; }

.page-sub { text-align: center; color: var(--muted); font-size: 16px; margin: -56px 0 72px; }

.read-more { display: inline-block; margin-top: 28px; font-size: 14.5px; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.featured:hover .read-more { border-color: var(--text); }

.list-head { margin-top: 64px; padding-bottom: 14px; font-size: 13px; color: var(--dim); border-bottom: 1px solid var(--line-strong); }

.post {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  gap: 32px;
  align-items: start;
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
}

.post-date { font-size: 14px; color: var(--dim); padding-top: 2px; font-variant-numeric: tabular-nums; }
.post-tag { font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.post h3 { margin-top: 8px; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.post p { margin-top: 8px; color: var(--dim); font-size: 15px; max-width: 600px; }
.post-arrow { justify-self: end; color: var(--dim); font-size: 18px; padding-top: 18px; transition: transform 0.15s ease, color 0.15s ease; }
a.post:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a.post:hover .post-arrow { color: var(--text); transform: translateX(4px); }

.back { display: inline-block; color: var(--dim); font-size: 14.5px; margin: 44px 0 50px; }
.back:hover { color: var(--text); }

.article-title {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.article-cover { margin: 48px 0 32px; aspect-ratio: 16 / 9; }

.prose p { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 26px; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 64px 0 28px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14.5px;
  color: var(--text);
  background: #111114;
  border: 1px solid var(--line);
  padding: 2px 7px;
}

.charts {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  margin: 64px 0 20px;
}

.chart-head { text-align: center; margin-bottom: 30px; }
.chart-head .brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; }
.chart-head .brand svg { width: 16px; height: 16px; }
.chart-head h3 { font-weight: 600; font-size: 20px; margin-top: 6px; }
.chart-head .unit { font-size: 12px; color: var(--dim); margin-top: 2px; }

.plot { position: relative; height: 240px; margin-left: 44px; }

.plot .grid { position: absolute; inset: 0; }

.plot .gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.plot .gridline span {
  position: absolute;
  right: calc(100% + 10px);
  top: -8px;
  font-size: 11px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.plot .bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  border-bottom: 1px solid var(--line-strong);
}

.plot .bar-col { position: relative; width: 22%; max-width: 88px; height: 100%; display: flex; align-items: flex-end; }

.plot .bar { width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.plot .bar.secondary { background: var(--accent-2); }
.plot .bar.neutral { background: var(--neutral-bar); }

.plot .bar .value {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.plot-labels { display: flex; justify-content: space-around; margin-left: 44px; margin-top: 10px; }
.plot-labels span { width: 22%; max-width: 120px; text-align: center; font-size: 12.5px; color: var(--text); }

.methodology { text-align: center; font-size: 11.5px; color: var(--dim); margin-bottom: 20px; }


.hero { padding: 128px 0 112px; text-align: center; border-bottom: 1px solid var(--line); }

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(64px, 12vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 25%, #9f9fa6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.section-label { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.section h2 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -0.02em; line-height: 1.2; max-width: 620px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.stats > div { padding: 28px 24px 0 0; }
.stats .num { font-family: var(--display); font-weight: 500; font-size: 36px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .lbl { margin-top: 4px; font-size: 14px; color: var(--dim); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.features > div { padding: 28px 32px 8px 0; }
.features h3 { font-family: var(--display); font-weight: 500; font-size: 17px; }
.features p { margin-top: 8px; color: var(--dim); font-size: 15px; }

.cta { padding: 112px 0; text-align: center; }
.cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; }
.cta p { margin-top: 14px; color: var(--muted); }
.cta .actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; }

.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13.5px; color: var(--dim); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .featured { grid-template-columns: 1fr; gap: 28px; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .post-arrow { display: none; }
  .charts { grid-template-columns: 1fr; gap: 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding-bottom: 20px; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container, .container-narrow, .nav-inner { padding: 0 16px; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
  .btn { padding: 0 16px; }
  .page-title { padding: 64px 0 48px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%, 0% 0%; }
  50% { background-position: 8% 6%, 92% 90%, 46% 56%, 6% 4%, 0% 0%; }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero h1, .page-title, .article-title { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .actions, .page-sub { animation: rise 0.8s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.article-title + .cover, .back, .meta { animation: fade 0.8s 0.1s both; }
.nav { animation: fade 0.6s both; }

.cover { background-size: 130% 130%, 130% 130%, 130% 130%, 130% 130%, 100% 100%; animation: drift 14s ease-in-out infinite; }
.cover .cover-mark, .cover .cover-name { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.featured:hover .cover .cover-mark, .featured:hover .cover .cover-name { transform: scale(1.03); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

.js .plot .bar { transform: scaleY(0); transform-origin: bottom; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .plot .bar .value { opacity: 0; transition: opacity 0.4s 0.7s; }
.js .plot.in .bar { transform: scaleY(1); }
.js .plot.in .bar .value { opacity: 1; }
.js .plot .bar-col:nth-child(2) .bar { transition-delay: 0.1s; }
.js .plot .bar-col:nth-child(3) .bar { transition-delay: 0.2s; }

.btn { transition: background 0.2s ease, filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease; }
.btn:active { transform: translateY(1px); }
.btn:not(.btn-primary):hover { border-color: #3a3a40; }

.nav-links a, .footer-links a, .back { transition: color 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .plot .bar, .js .plot .bar .value { opacity: 1; transform: none; }
}
