:root {
  --ink: #f7fbff;
  --ink-soft: #d8e6f4;
  --muted: #94a3b8;
  --deep: #07080b;
  --deep-2: #101116;
  --paper: #f5f7fb;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #1877f2;
  --teal: #00d4aa;
  --amber: #ffb020;
  --rose: #ff4778;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(135deg, rgba(24, 119, 242, 0.14), transparent 28%),
    linear-gradient(220deg, rgba(0, 212, 170, 0.12), transparent 30%),
    linear-gradient(180deg, #07080b 0%, #0b0d12 48%, #f5f7fb 48.1%, #f5f7fb 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transform: translateY(-7px);
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1;
}

.brand span span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-select {
  min-height: 36px;
  padding: 0 30px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
}

.language-select option {
  color: #0f172a;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.btn-primary {
  color: #06100e;
  background: linear-gradient(135deg, #d9fff5, var(--teal));
  box-shadow: 0 18px 46px rgba(0, 212, 170, 0.22);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  padding: 96px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 34px;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

p,
li {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.75;
}

.hero p,
.dark p,
.dark li,
.hero li {
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-panel,
.feature-card,
.faq-item,
.article-card,
.toc {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.hero-panel {
  padding: 26px;
}

.hero-panel ul,
.toc ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.metric {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 24px;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.section {
  padding: 86px 0;
  color: #111827;
  background: var(--paper);
}

.section.dark {
  color: var(--ink);
  background: var(--deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p {
  margin-bottom: 0;
}

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

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

.feature-card,
.faq-item,
.article-card,
.toc {
  padding: 24px;
  color: #111827;
  background: #fff;
  border-color: rgba(17, 24, 39, 0.1);
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.article-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
}

.article-card .card-cover {
  display: block;
  width: calc(100% + 48px);
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: -24px -24px 20px;
  object-fit: cover;
}

.article-card p {
  margin-bottom: 18px;
}

.article-card .read-more {
  margin-top: auto;
  color: #0f766e;
  font-weight: 900;
}

.section.dark .feature-card,
.section.dark .faq-item,
.section.dark .article-card,
.section.dark .toc {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(0, 212, 170, 0.14);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.section.dark .tag {
  color: #dffcf6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.32fr);
  gap: 28px;
  align-items: start;
}

.article-hero {
  padding: 72px 0 56px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 32px;
  align-items: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.back-link:hover {
  color: #fff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.article-cover {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-cover figcaption {
  padding: 13px 16px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.article-body {
  padding: 34px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.article-body h2 {
  margin-top: 34px;
  font-size: 34px;
}

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

.article-body p,
.article-body li {
  color: #374151;
}

.article-body .lead {
  color: #111827;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 700;
}

.article-body strong {
  color: #111827;
}

.article-body a {
  color: #0f766e;
  font-weight: 900;
}

.article-body blockquote,
.scoreflow-box,
.decision-box,
.social-box {
  margin: 28px 0;
  padding: 22px;
  border-radius: 18px;
}

.article-body blockquote {
  border-left: 5px solid var(--teal);
  color: #111827;
  background: #eefdf9;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

.scoreflow-box {
  border: 1px solid rgba(0, 212, 170, 0.24);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.14), rgba(24, 119, 242, 0.08));
}

.decision-box {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #f8fafc;
}

.social-box {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #111827;
}

.social-box h2,
.social-box p {
  color: #fff;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #06100e;
  background: #d9fff5;
  font-weight: 900;
}

.quick-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quick-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
}

.post-nav-section {
  padding-top: 0;
}

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

.post-nav-card {
  display: flex;
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
  flex-direction: column;
  justify-content: space-between;
}

.post-nav-card span {
  color: #64748b;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-nav-card strong {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.post-nav-card:hover {
  border-color: rgba(0, 212, 170, 0.45);
  transform: translateY(-2px);
}

.post-nav-home {
  border-color: rgba(0, 212, 170, 0.28);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(24, 119, 242, 0.08)), #fff;
}

.toc {
  position: sticky;
  top: 96px;
}

.cta-band {
  padding: 62px 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(0, 212, 170, 0.12)),
    #08090d;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.58);
  background: var(--deep);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .language-switcher,
  .language-select {
    width: 100%;
  }

  .language-select {
    min-height: 42px;
  }

  .hero-grid,
  .article-hero-grid,
  .section-heading,
  .grid-3,
  .grid-2,
  .article-layout,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 68px 0;
  }

  .hero-actions,
  .article-actions,
  .btn {
    width: 100%;
  }

  .article-body {
    padding: 24px;
  }

  .article-body h2 {
    font-size: 28px;
  }
}
