
:root {
  --bg: #070912;
  --bg-soft: #0d1020;
  --surface: rgba(19, 23, 44, 0.88);
  --surface-strong: #151a32;
  --text: #f7f8ff;
  --muted: #b7bfd9;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #38f5ff;
  --lime: #b9ff66;
  --pink: #ff49c6;
  --violet: #8d66ff;
  --yellow: #ffe66d;
  --danger: #ff6b8b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(141, 102, 255, .24), transparent 31rem),
    radial-gradient(circle at 90% 8%, rgba(255, 73, 198, .15), transparent 30rem),
    var(--bg);
  color: var(--text);
  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.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #ffffff; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 6px;
}
button { font: inherit; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  transform: translateY(-160%);
  background: #fff;
  color: #090b14;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 2rem)); margin-inline: auto; }
.site-brandbar {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, #2f185f, #0b7c91 52%, #66326c);
  position: relative;
  overflow: hidden;
}
.site-brandbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(110deg, transparent 0 18px, rgba(255,255,255,.07) 18px 19px);
  pointer-events: none;
}
.brandbar-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 76px; position: relative; }
.brand-lockup { display: flex; align-items: center; gap: .8rem; color: white; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.brand-name { display: block; font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.brand-tagline { display: block; color: rgba(255,255,255,.82); font-size: .78rem; margin-top: .25rem; }
.brand-note { color: rgba(255,255,255,.82); font-size: .82rem; text-align: right; max-width: 390px; }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 18, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-home { color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a, .mobile-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  padding: .62rem .72rem;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .mobile-menu a:hover, .mobile-menu a[aria-current="page"] {
  color: white;
  background: rgba(255,255,255,.08);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: white;
}
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 18, .98);
  padding: .65rem 1rem 1rem;
}
.mobile-menu.is-open { display: grid; }
.mobile-menu a { display: block; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 250; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--yellow)); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: 3rem 0; }
.section-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 38px 38px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
  font-weight: 900;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
h1, h2, h3, h4 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 7vw, 5.75rem); max-width: 16ch; }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
p { margin-top: 0; }
.lede { color: #dbe0f2; font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 68ch; }
.muted { color: var(--muted); }
.hero { padding: clamp(4.5rem, 9vw, 8.3rem) 0; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -270px;
  top: 30px;
  background: radial-gradient(circle, rgba(56,245,255,.2), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: 1.25rem; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), var(--lime) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-visual {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: .6rem;
  background: linear-gradient(135deg, rgba(56,245,255,.12), rgba(255,73,198,.1));
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.hero-visual img { border-radius: 21px; width: 100%; height: auto; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #071018; background: linear-gradient(90deg, var(--cyan), var(--lime)); box-shadow: 0 12px 30px rgba(56,245,255,.18); }
.button-primary:hover { color: #071018; box-shadow: 0 16px 38px rgba(56,245,255,.28); }
.button-secondary { color: white; border-color: var(--line); background: rgba(255,255,255,.055); }
.button-secondary:hover { background: rgba(255,255,255,.1); color: white; }
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust-item { background: var(--bg); padding: 1.25rem; }
.trust-item strong { display: block; color: var(--text); font-size: 1rem; }
.trust-item span { color: var(--muted); font-size: .84rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { max-width: 15ch; margin-bottom: 0; }
.section-heading p { max-width: 58ch; color: var(--muted); margin-bottom: .3rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30,36,66,.9), rgba(12,15,30,.95));
  box-shadow: 0 14px 38px rgba(0,0,0,.2);
  overflow: hidden;
}
.card-body { padding: 1.35rem; }
.card h3, .card h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.card p { color: var(--muted); }
.card-link { color: white; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover { border-color: rgba(56,245,255,.45); transform: translateY(-2px); transition: .2s ease; }
.card-media { aspect-ratio: 1.55 / 1; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media.square { aspect-ratio: 1 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-meta { display: flex; flex-wrap: wrap; gap: .45rem .7rem; color: var(--muted); font-size: .78rem; margin-bottom: .7rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(56,245,255,.09);
  border: 1px solid rgba(56,245,255,.22);
  color: #bafaff;
  font-size: .74rem;
  font-weight: 800;
  text-decoration: none;
}
.pill:hover { color: white; background: rgba(56,245,255,.16); }
.icon-card { padding: 1.45rem; }
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(56,245,255,.22), rgba(255,73,198,.2));
  color: white;
  font-weight: 950;
}
.architecture { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .65rem; }
.arch-step { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: rgba(255,255,255,.035); min-height: 150px; }
.arch-step .num { color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.arch-step h3 { font-size: 1rem; margin: .5rem 0; }
.arch-step p { color: var(--muted); font-size: .84rem; margin: 0; }
.quote-panel { border: 1px solid rgba(185,255,102,.28); background: linear-gradient(120deg, rgba(185,255,102,.09), rgba(56,245,255,.06)); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.quote-panel p { font-size: clamp(1.2rem, 2.5vw, 1.65rem); margin: 0; max-width: 55ch; }
.cta-panel { border: 1px solid var(--line); border-radius: 28px; padding: clamp(2rem, 5vw, 4rem); background: linear-gradient(120deg, rgba(141,102,255,.22), rgba(56,245,255,.12), rgba(255,73,198,.18)); position: relative; overflow: hidden; }
.cta-panel h2 { max-width: 18ch; }
.breadcrumbs { padding: 1.25rem 0 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: #6f7899; }
.breadcrumbs a { color: var(--muted); }
.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0 3rem; }
.page-hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.page-hero .lede { max-width: 72ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stack > * + * { margin-top: 1rem; }
.detail-list { display: grid; gap: .75rem; }
.detail-item { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: rgba(255,255,255,.035); }
.detail-item strong { display: block; color: white; margin-bottom: .25rem; }
.detail-item span { color: var(--muted); }
.article-header { padding: clamp(3rem, 7vw, 6rem) 0 2rem; }
.article-header h1 { max-width: 18ch; font-size: clamp(2.5rem, 6.5vw, 5rem); }
.article-deck { max-width: 66ch; color: #dce1f1; font-size: 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; color: var(--muted); font-size: .88rem; margin-top: 1.3rem; }
.article-cover { margin: 1rem auto 3rem; width: min(980px, calc(100% - 2rem)); }
.article-cover img { width: 100%; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(210px, 280px); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article-body { min-width: 0; }
.article-body > p:first-child { font-size: 1.18rem; color: #eef1ff; }
.article-body p, .article-body li { color: #d2d8ea; font-size: 1.04rem; }
.article-body h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); margin-top: 3.4rem; margin-bottom: 1rem; scroll-margin-top: 7rem; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .55rem; }
.article-body a { font-weight: 750; }
.article-aside { position: sticky; top: 88px; }
.toc { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: rgba(255,255,255,.035); }
.toc h2 { font-size: 1rem; margin-bottom: .75rem; }
.toc ol { padding-left: 1.1rem; margin: 0; }
.toc li { color: var(--muted); font-size: .82rem; }
.toc li + li { margin-top: .5rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: white; }
.checklist { list-style: none; padding: 0 !important; display: grid; gap: .7rem; }
.checklist li { position: relative; padding: .85rem 1rem .85rem 2.7rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.checklist li::before { content: "✓"; position: absolute; left: .95rem; top: .8rem; color: var(--lime); font-weight: 950; }
.article-tags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.source-note { margin-top: 2.2rem; padding: 1rem 1.15rem; border-left: 3px solid var(--cyan); background: rgba(56,245,255,.055); border-radius: 0 14px 14px 0; color: var(--muted); font-size: .9rem; }
.related { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.archive-intro { max-width: 70ch; color: var(--muted); }
.faq-grid { display: grid; gap: .75rem; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: rgba(255,255,255,.035); }
summary { cursor: pointer; font-weight: 850; color: white; }
details p { color: var(--muted); margin: .8rem 0 0; }
.notice { border: 1px solid rgba(255,230,109,.3); border-radius: 16px; padding: 1rem 1.15rem; background: rgba(255,230,109,.06); color: #f6edbf; }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: #050711; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding: 4rem 0 2.5rem; }
.footer-brand p { color: var(--muted); max-width: 42ch; }
.footer-col h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: white; margin-bottom: .9rem; }
.footer-col a { display: block; width: fit-content; color: var(--muted); text-decoration: none; margin: .45rem 0; font-size: .9rem; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; color: #7f88a7; font-size: .82rem; }
[data-reveal] { opacity: 1; transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (max-width: 980px) {
  .brand-note, .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .article-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; }
  .architecture { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .article-aside { position: static; order: -1; }
  .toc ol { columns: 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 1.25rem, 1180px); }
  .brand-tagline { display: none; }
  .brandbar-inner { min-height: 62px; }
  .brand-mark { width: 40px; height: 40px; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .8rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .architecture { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .toc ol { columns: 1; }
}
@media (max-width: 470px) {
  .architecture, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero { padding-top: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-brandbar, .site-nav, .site-footer, .article-aside, .button-row, .reading-progress { display: none !important; }
  body { background: white; color: black; }
  .article-body p, .article-body li, .muted { color: #222; }
  a { color: black; text-decoration: underline; }
}
