:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --bg-card: #1c1c1c;
  --text: #f5f5f4;
  --text-soft: #b5b5b0;
  --muted: #82827d;
  --accent: #00e5c3;
  --accent-dark: #061f1b;
  --border: rgba(255, 255, 255, .1);
  --max: 1180px;
  --reading: 760px;
  --font: "nexa", "General Sans", "DM Sans", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--accent); color: #07110f; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header .container, .footer .container { width: 100%; max-width: 1280px; padding-inline: 24px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-logo { display: block; transition: opacity .15s ease-out; }
.header-logo:hover { opacity: .85; }
.header-logo img { display: block; width: auto; height: 32px; }
.header-nav { display: none; }
.header-content-link { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px; color: var(--text-soft); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-decoration: none; }
.btn-header { display: none; align-items: center; padding: 10px 20px; border-radius: 12px; background: linear-gradient(180deg, #2bf5d8 0%, var(--accent) 60%); color: var(--bg); font-size: 14px; font-weight: 600; letter-spacing: .05em; line-height: 1.6; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.1); transition: transform .2s ease-out, box-shadow .2s ease-out; }
.btn-header:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,229,195,.2), 0 8px 32px rgba(0,229,195,.1); }
.scroll-progress { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent), #59d9c1); }
main { padding-top: 75px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 10px; background: var(--accent); color: #07110f; text-decoration: none; font-weight: 900; line-height: 1.2; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: #2bf5d8; }

@media (min-width: 768px) {
  .header .container, .footer .container { padding-inline: 32px; }
  .header-logo img { height: 36px; }
}

@media (min-width: 900px) {
  .header-nav { display: flex; align-items: center; gap: 32px; }
  .header-nav a { color: var(--text-soft); font-size: 14px; font-weight: 500; letter-spacing: .05em; text-decoration: none; transition: color .15s ease-out; }
  .header-nav a:hover, .header-nav a:focus-visible, .header-nav a[aria-current="page"] { color: var(--text); }
  .header-content-link { display: none; }
  .btn-header { display: inline-flex; }
}
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }

.hub-hero { padding: 112px 0 72px; border-bottom: 1px solid var(--border); overflow: hidden; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 920px; margin-bottom: 24px; font-size: clamp(2.75rem, 7vw, 6.3rem); }
.hub-hero .lead { max-width: 760px; margin: 0; color: var(--text-soft); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.topic-list span { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: .85rem; }

.content-section { padding: 88px 0 112px; }
.section-heading { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); }
.section-heading p { max-width: 620px; margin: 0; color: var(--text-soft); }
.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.article-card { grid-column: span 6; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; transition: transform .2s ease, border-color .2s ease; }
.article-card:hover { transform: translateY(-4px); border-color: rgba(0,229,195,.45); }
.article-card:first-child { grid-column: span 7; }
.article-card:nth-child(2) { grid-column: span 5; }
.article-card a { display: block; height: 100%; text-decoration: none; }
.card-image { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 1px solid var(--border); }
.card-body { padding: 28px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.card-meta span:first-child { color: var(--accent); }
.article-card h2, .article-card h3 { margin-bottom: 14px; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.article-card p { margin: 0 0 20px; color: var(--text-soft); }
.card-link { color: var(--accent); font-weight: 900; }

.article-hero { padding: 72px 0 56px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: 56px; align-items: center; }
.article-hero h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); }
.article-dek { max-width: 760px; margin: 0 0 26px; color: var(--text-soft); font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.byline { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .86rem; }
.byline strong { color: var(--text); }
.byline a { color: inherit; text-underline-offset: 3px; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; border-radius: 18px; border: 1px solid var(--border); }
.hero-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .74rem; }

.article-shell { padding: 56px 0 104px; border-top: 1px solid var(--border); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 72px; align-items: start; max-width: 1100px; }
.article-body { max-width: var(--reading); }
.article-body .answer { margin: 0 0 42px; padding: 26px 28px; background: var(--accent-dark); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; color: #e8fffb; font-size: 1.08rem; }
.article-body h2 { margin: 64px 0 20px; font-size: clamp(1.85rem, 3.4vw, 2.8rem); scroll-margin-top: 110px; }
.article-body h3 { margin: 38px 0 14px; font-size: 1.35rem; scroll-margin-top: 110px; }
.article-body p { margin: 0 0 22px; color: #d2d2cd; }
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 24px; color: #d2d2cd; }
.article-body li { margin: 10px 0; padding-left: 6px; }
.article-body a:not(.button) { color: var(--accent); text-underline-offset: 3px; }
.article-body blockquote { margin: 40px 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent); color: var(--text); font-size: 1.3rem; line-height: 1.45; }
.decision-box { margin: 36px 0; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.decision-box h3 { margin-top: 0; }
.article-cta { margin: 56px 0; padding: 34px; background: var(--text); color: #111; border-radius: 18px; }
.article-cta h2 { margin: 0 0 14px; color: #111; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.article-cta p { margin: 0 0 22px; color: #41413e; }
.article-cta .button { color: #07110f; }
.article-toc { position: sticky; top: 110px; padding: 22px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; }
.article-toc strong { display: block; margin-bottom: 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.article-toc a { display: block; padding: 8px 0; color: var(--text-soft); text-decoration: none; font-size: .84rem; line-height: 1.35; }
.article-toc a:hover { color: var(--accent); }

.related { padding: 88px 0; background: var(--bg-soft); border-top: 1px solid var(--border); }
.related h2 { margin-bottom: 32px; font-size: clamp(2rem, 4vw, 3.3rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related-card { overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; transition: transform .2s ease-out, border-color .2s ease-out; }
.related-card:hover { transform: translateY(-3px); border-color: rgba(0, 229, 195, .55); }
.related-card > img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; border-bottom: 1px solid var(--border); }
.related-card-body { padding: 24px 26px 26px; }
.related-card span { color: var(--accent); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.related-card h3 { margin: 12px 0 10px; font-size: 1.25rem; }
.related-card p { margin: 0; color: var(--text-soft); font-size: .9rem; }
.final-cta { padding: 96px 0; text-align: center; }
.final-cta h2 { max-width: 760px; margin: 0 auto 20px; font-size: clamp(2rem, 5vw, 4.2rem); }
.final-cta p { max-width: 650px; margin: 0 auto 28px; color: var(--text-soft); }

.footer { padding: 48px 0; border-top: 1px solid var(--border); line-height: 1.6; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 16px; }
.footer-top img { display: block; width: 240px; height: auto; }
.footer-tagline { margin: 0; color: var(--muted); font-size: .875rem; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.footer-contact a { color: var(--muted); font-size: .8125rem; text-decoration: none; transition: color .2s ease-out; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { margin: 0; color: var(--muted); font-size: .6875rem; opacity: .6; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .article-hero-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .article-card, .article-card:first-child, .article-card:nth-child(2) { grid-column: span 12; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .hub-hero { padding: 76px 0 54px; }
  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .content-section { padding: 64px 0 80px; }
  .article-hero { padding: 40px 0 42px; }
  .article-hero-grid { gap: 34px; }
  .article-hero h1 { font-size: clamp(2.35rem, 12vw, 3.6rem); }
  .article-shell { padding: 36px 0 76px; }
  .article-body .answer, .decision-box, .article-cta { padding: 22px; }
  .article-body h2 { margin-top: 48px; }
  .related-card-body { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
