
:root {
  --bg: #070911;
  --bg-soft: #0d1020;
  --panel: rgba(17, 20, 38, .76);
  --panel-solid: #111426;
  --panel-2: #171a30;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --text: #f8f8ff;
  --muted: #b7b9ca;
  --muted-2: #8d90a7;
  --pink: #ff42c8;
  --cyan: #42ddff;
  --lime: #b9ff55;
  --orange: #ffad42;
  --violet: #a98bff;
  --danger: #ff6e91;
  --max: 1180px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 13% -8%, rgba(255, 66, 200, .15), transparent 29rem),
    radial-gradient(circle at 94% 4%, rgba(66, 221, 255, .12), transparent 29rem),
    linear-gradient(180deg, #080a13 0%, #070911 62%, #090b15 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button { font: inherit; }
::selection { background: rgba(255, 66, 200, .34); color: white; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 9999;
  transform: translateY(-160%); padding: .7rem 1rem; border-radius: .65rem;
  color: #070911; background: var(--lime); font-weight: 800; transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 5.4rem 0; }
.section-sm { padding: 3.4rem 0; }
.section-head { max-width: 760px; margin-bottom: 2rem; }
.section-head h2 { margin: .35rem 0 .65rem; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--lime);
  font-size: .78rem; line-height: 1; font-weight: 850; text-transform: uppercase;
  letter-spacing: .16em;
}
.eyebrow::before { content: ""; width: 1.3rem; height: 2px; background: linear-gradient(90deg, var(--pink), var(--lime)); }
.gradient-text {
  color: transparent;
  background: linear-gradient(92deg, var(--pink), var(--cyan) 48%, var(--lime));
  -webkit-background-clip: text; background-clip: text;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid transparent;
  background: rgba(7, 9, 17, .76); backdrop-filter: blur(18px); transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 900; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark {
  position: relative; width: 2.15rem; aspect-ratio: 1; border-radius: .6rem;
  background: conic-gradient(from 30deg, var(--pink), var(--cyan), var(--lime), var(--orange), var(--pink));
  box-shadow: 0 0 24px rgba(255,66,200,.28);
}
.brand-mark::after { content: ""; position: absolute; inset: 5px; border-radius: .35rem; background: #090b15; border: 1px solid rgba(255,255,255,.16); }
.brand-name { font-size: 1.05rem; }
.desktop-nav { display: flex; align-items: center; gap: .15rem; }
.nav-link { padding: .65rem .72rem; border-radius: .65rem; color: #c9cad8; text-decoration: none; font-size: .9rem; font-weight: 720; }
.nav-link:hover, .nav-link[aria-current="page"] { color: white; background: rgba(255,255,255,.07); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: .7rem; color: white; background: rgba(255,255,255,.04); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { padding: .2rem 0 1rem; border-top: 1px solid var(--line); }
.mobile-menu .nav-link { display: block; padding: .8rem .7rem; }
.mobile-cta { margin-top: .55rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .72rem 1rem; border: 1px solid transparent; border-radius: .72rem;
  text-decoration: none; font-weight: 850; line-height: 1.1; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #080a13; background: linear-gradient(100deg, var(--pink), #ff75d7); box-shadow: 0 12px 34px rgba(255,66,200,.19); }
.btn-secondary { color: white; background: rgba(255,255,255,.055); border-color: var(--line-strong); }
.btn-compact { min-height: 39px; padding: .55rem .82rem; font-size: .86rem; }
.arrow { font-size: 1.1em; transition: transform .18s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }

.hero { padding: 5.5rem 0 4.6rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); gap: clamp(2.5rem, 6vw, 5.7rem); align-items: center; }
.hero h1 { margin: .75rem 0 1.15rem; font-size: clamp(3rem, 7.2vw, 6.1rem); line-height: .96; letter-spacing: -.065em; max-width: 12ch; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.hero-art-wrap { position: relative; }
.hero-art-wrap::before { content: ""; position: absolute; inset: 9% -6% -8% 8%; background: radial-gradient(circle, rgba(66,221,255,.22), transparent 60%); filter: blur(30px); z-index: -1; }
.hero-art { border: 1px solid var(--line-strong); border-radius: 1.25rem; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-facts { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.fact { padding: .85rem .9rem; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: .78rem; }
.fact strong { display: block; font-size: 1rem; }
.fact span { color: var(--muted-2); font-size: .78rem; }
.disclosure-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.disclosure-inner { padding: 1rem 0; display: flex; align-items: flex-start; gap: .75rem; color: var(--muted); font-size: .9rem; }
.disclosure-dot { flex: 0 0 auto; width: .65rem; height: .65rem; margin-top: .38rem; border-radius: 999px; background: var(--lime); box-shadow: 0 0 16px rgba(185,255,85,.55); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem;
  background: linear-gradient(145deg, rgba(22,25,46,.88), rgba(12,14,27,.84)); box-shadow: 0 14px 44px rgba(0,0,0,.17);
}
.card::after { content: ""; position: absolute; inset: auto -3rem -4rem auto; width: 9rem; height: 9rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,66,200,.11), transparent 68%); pointer-events: none; }
.card-body { padding: 1.25rem; }
.card h3 { margin: .25rem 0 .55rem; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.02em; }
.card p { color: var(--muted); margin: 0; }
.card:hover { border-color: rgba(66,221,255,.36); }
.icon-box {
  width: 2.55rem; height: 2.55rem; display: grid; place-items: center; margin-bottom: .9rem;
  border: 1px solid var(--line); border-radius: .72rem; background: rgba(255,255,255,.05); color: var(--cyan); font-weight: 900;
}
.text-link { display: inline-flex; align-items: center; gap: .38rem; margin-top: 1rem; color: white; font-weight: 800; text-decoration: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; padding: .35rem .62rem; border: 1px solid var(--line); border-radius: 999px; color: #d8d9e6; background: rgba(255,255,255,.035); text-decoration: none; font-size: .78rem; font-weight: 760; }
.chip:hover { border-color: var(--cyan); color: white; }

.lifecycle { counter-reset: stage; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .75rem; }
.stage { position: relative; min-height: 165px; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.035); }
.stage::before { counter-increment: stage; content: "0" counter(stage); display: block; margin-bottom: 1.5rem; color: var(--pink); font-weight: 900; font-size: .78rem; letter-spacing: .12em; }
.stage strong { display: block; margin-bottom: .35rem; }
.stage span { color: var(--muted-2); font-size: .82rem; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; background: rgba(13,16,32,.76); }
.matrix th, .matrix td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix th { color: white; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.035); }
.matrix td { color: var(--muted); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix td:first-child { color: white; font-weight: 800; }

.page-hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: .65rem 0 1rem; max-width: 920px; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .99; letter-spacing: -.055em; }
.page-hero p { max-width: 790px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1.1rem; color: var(--muted-2); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: white; }
.breadcrumbs span[aria-hidden] { color: #62657a; }
.meta-line { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: 1.25rem; color: var(--muted-2); font-size: .86rem; }
.meta-line a { color: var(--cyan); text-decoration: none; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 3.3rem; align-items: start; }
.article-body { min-width: 0; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { scroll-margin-top: 105px; margin: 3rem 0 1rem; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.13; letter-spacing: -.035em; }
.article-body h3 { scroll-margin-top: 105px; margin: 2rem 0 .8rem; font-size: 1.35rem; line-height: 1.25; }
.article-body p, .article-body li { color: #d2d3df; font-size: 1.04rem; }
.article-body p { margin: 0 0 1.15rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li { margin: .45rem 0; }
.article-body a { color: var(--cyan); font-weight: 720; }
.article-body strong { color: white; }
.article-body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--pink); background: rgba(255,255,255,.04); color: var(--muted); }
.article-body code { padding: .1rem .35rem; border-radius: .3rem; background: #1d2035; color: var(--lime); }
.toc { position: sticky; top: 100px; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(13,16,30,.84); }
.toc h2 { margin: 0 0 .75rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: .45rem; }
.toc a { display: block; color: var(--muted); font-size: .82rem; text-decoration: none; line-height: 1.4; }
.toc a:hover { color: white; }
.toc-divider { height: 1px; margin: 1rem 0; background: var(--line); }
.toc .small-link { display: block; margin-top: .55rem; color: var(--cyan); font-size: .8rem; text-decoration: none; font-weight: 700; }
.guide-note { margin: 2rem 0; padding: 1.25rem; border: 1px solid rgba(185,255,85,.3); border-radius: .9rem; background: rgba(185,255,85,.055); }
.guide-note strong { color: var(--lime); }

.post-hero { padding-bottom: 2.3rem; }
.featured-image { width: 100%; border: 1px solid var(--line-strong); border-radius: 1.05rem; box-shadow: var(--shadow); }
.post-image-wrap { margin: 0 auto 3rem; width: min(900px, calc(100% - 2rem)); }
.post-footer-box { margin-top: 3rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.035); }
.post-footer-box h2 { margin: 0 0 .55rem; font-size: 1.2rem; }
.post-footer-box p { margin: 0; color: var(--muted); }

.post-card { height: 100%; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-card .card-body { display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { color: var(--muted-2); font-size: .78rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--cyan); }
.post-card .text-link { margin-top: auto; padding-top: 1rem; }
.featured-post { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.featured-post img { width: 100%; height: 100%; object-fit: cover; border-right: 1px solid var(--line); }
.featured-post .card-body { padding: 2rem; align-self: center; }
.featured-post h2 { margin: .4rem 0 .75rem; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }

.faq-list { display: grid; gap: .7rem; }
details { border: 1px solid var(--line); border-radius: .85rem; background: rgba(255,255,255,.035); }
summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 820; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--cyan); font-size: 1.25rem; }
details[open] summary::after { content: "–"; }
details p { padding: 0 1.2rem 1.15rem; margin: 0; color: var(--muted); }

.cta-panel { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2rem; border: 1px solid rgba(255,66,200,.28); border-radius: 1.1rem; background: linear-gradient(110deg, rgba(255,66,200,.09), rgba(66,221,255,.055), rgba(185,255,85,.04)); }
.cta-panel h2 { margin: 0 0 .45rem; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.1; }
.cta-panel p { margin: 0; color: var(--muted); }

.contact-card { padding: 1.7rem; }
.contact-email { display: inline-block; margin: .7rem 0 1rem; color: var(--cyan); font-size: clamp(1.35rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.035em; overflow-wrap: anywhere; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.65rem; color: var(--muted); margin: .65rem 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 900; }

.site-footer { border-top: 1px solid var(--line); background: rgba(5,7,13,.78); }
.footer-grid { padding: 3.8rem 0 2.3rem; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.2rem; }
.footer-about { max-width: 360px; }
.footer-about p { color: var(--muted); font-size: .9rem; }
.footer-col h2 { margin: 0 0 .8rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: white; }
.footer-col a { display: block; width: fit-content; margin: .52rem 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: white; }
.footer-bottom { padding: 1.15rem 0 1.5rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .8rem; }
.footer-bottom a { color: var(--muted); }

@media (max-width: 1050px) {
  .desktop-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-art-wrap { max-width: 760px; }
  .lifecycle { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1.35fr repeat(2,1fr); }
  .footer-grid .footer-col:last-child { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 1.25rem, var(--max)); }
  .section { padding: 4rem 0; }
  .hero { padding: 3.8rem 0 3.4rem; }
  .hero-art-wrap::before { right: 0; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.6rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post img { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .brand-name { font-size: .96rem; }
  .page-hero { padding-top: 3rem; }
  .page-hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .lifecycle { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about, .footer-grid .footer-col:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .toc, .hero-actions, .cta-panel, .disclosure-strip { display: none !important; }
  body { color: #111; background: white; }
  .article-body p, .article-body li, .muted { color: #222; }
  .page-hero { border: 0; padding-bottom: 1rem; }
}
