:root {
  color-scheme: dark;
  --page: #101b2c;
  --text: #edf2fa;
  --muted: #b4c5d8;
  --line: #ffffff24;
  --accent: #a9c4ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 6%, #334e7c55, transparent 45%), #101b2c;
}
.container { width: min(100% - 48px, 820px); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #dae3ff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 8px 12px; background: #d9e6ff; color: #101b2c; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 0;
  background: #0d1726a6;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #ffffff0f;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-name { color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: opacity .2s; }
.site-name:hover { color: var(--text); opacity: .85; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a { color: #9ca3af; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.site-nav a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 15px;
  border: 1px solid #a78bfa40;
  border-radius: 999px;
  background: #a78bfa1f;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.nav-cta:hover { background: #a78bfa33; border-color: #a78bfa73; color: #ddd6fe; }
main section[id] { scroll-margin-top: 76px; }

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 23%, #7351b244, transparent 36%),
    radial-gradient(circle at 4% 83%, #245d904d, transparent 49%),
    linear-gradient(160deg, #17243a, #101b2c 76%);
  border-bottom: 1px solid var(--line);
}
.hero-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#dce8ff0a 1px, transparent 1px),
    linear-gradient(90deg, #dce8ff0a 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: linear-gradient(90deg, transparent 13%, #000 100%);
}
.hero-band > .container { position: relative; z-index: 1; }
.intro { padding: 105px 0 101px; }
.eyebrow { margin: 0 0 17px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .045em; }
h1 { margin: 0 0 17px; font-size: clamp(48px, 7vw, 76px); line-height: 1.1; letter-spacing: -.055em; }
h1 span {
  background: linear-gradient(120deg, #c8baff, #9bccff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.intro-lead { max-width: 740px; margin: 0 0 22px; font-size: clamp(22px, 3vw, 27px); line-height: 1.45; font-weight: 500; letter-spacing: -.025em; }
.intro > p:not(.eyebrow):not(.intro-lead) { max-width: 690px; color: var(--muted); font-size: 17px; }
.intro > .intro-aside {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 14px 18px;
  border-left: 2px solid #b9a8fa;
  background: #ffffff0c;
  color: #e0dcff !important;
  font-weight: 500;
}

.content-section { border-top: 1px solid var(--line); padding: 47px 0 55px; }
h2 { margin: 0 0 25px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; color: #c8dbff; }
h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; }
p { margin: 0 0 16px; }
.focus-list { display: grid; gap: 23px; }
.focus-item { display: grid; grid-template-columns: 205px 1fr; gap: 24px; }
.focus-item p { margin: 0; color: var(--muted); }
.examples { list-style: none; padding: 0; margin: 0; }
.examples > li {
  border-top: 1px solid var(--line);
  padding: 17px 0 17px 16px;
  border-left: 2px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.examples > li:hover { background: #ffffff0b; border-left-color: #b9a8fa; }
.examples > li:last-child { border-bottom: 1px solid var(--line); }
.examples strong { color: #c7b9ff; }
.migrations {
  list-style: none;
  margin: 12px 0 2px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 28px;
}
.migrations li { position: relative; padding-left: 16px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.migrations li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9a8fa99;
}
.example-gallery { display: grid; gap: 28px; margin-top: 34px; }
.example-preview { margin: 0; }
.example-preview img { display: block; width: 100%; height: auto; border-radius: 10px; }
.example-preview figcaption { margin-top: 11px; color: var(--muted); font-size: 14px; }
.example-preview figcaption strong { color: var(--text); }
.example-disclaimer { margin-top: 17px; color: var(--muted); font-size: 12px; }
.agent > p { color: var(--muted); }
.agent .example-gallery { margin-top: 30px; }
.background p { color: var(--muted); }
.background p:last-child { margin: 0; }
.background strong { color: var(--text); }

.contact { border-top: 1px solid var(--line); padding: 52px 0 86px; }
.contact h2 { margin-bottom: 12px; }
.contact p { color: var(--muted); }
.contact-link {
  display: inline-block;
  margin-top: 9px;
  padding: 10px 15px;
  border: 1px solid #b9a8fa66;
  border-radius: 7px;
  color: #ece6ff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.contact-link:hover { background: #b9a8fa18; border-color: #b9a8fa; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .site-header { padding: 10px 0 0; }
  .header-inner { flex-wrap: wrap; row-gap: 4px; column-gap: 16px; }
  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    padding: 6px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-cta { padding: 5px 12px; }
  main section[id] { scroll-margin-top: 100px; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 36px, 820px); }
  .intro { padding: 78px 0 74px; }
  .content-section { padding: 38px 0 44px; }
  .focus-item { grid-template-columns: 1fr; gap: 4px; }
  .migrations { grid-template-columns: 1fr; }
  .focus-list { gap: 21px; }
  .contact { padding: 42px 0 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.zoom-link {
  display: block;
  cursor: zoom-in;
}

.zoom-link img {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.zoom-link:hover img,
.zoom-link:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(15, 15, 20, 0.92);
  cursor: zoom-out;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
