:root {
  color-scheme: dark;
  --bg: #061225;
  --surface: #091a31;
  --surface-high: #0a2141;
  --line: #5daaff35;
  --text: #f0f6ff;
  --muted: #b7d4ec;
  --accent: #27d9ff;
  --accent-light: #87dcff;
  --focus: #87dcff;
  --radius: 22px;
  --shell: 1200px;
  --section-gap: clamp(2.75rem, 5.5vw, 5rem);
  --grid-gap: clamp(.85rem, 1.8vw, 1.4rem);
  --card-padding: clamp(1.05rem, 2.4vw, 1.65rem);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; color: var(--text); background: radial-gradient(ellipse 65% 520px at 87% 175px, #0b2d5a 0%, var(--bg) 75%) no-repeat, var(--bg); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled), summary { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
::selection { color: #031222; background: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
section[id] { scroll-margin-top: 104px; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 14px; z-index: 40; transform: translateY(-180%); padding: 10px 18px; background: var(--surface-high); border-radius: 10px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; inset-block-start: 0; z-index: 10; background: #061225ef; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; color: #f1f7ff; white-space: nowrap; }
.brand-logo { display: block; width: 156px; height: auto; mix-blend-mode: lighten; filter: contrast(1.22); }
.main-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; background: #ffffff06; }
.main-nav a { padding: 7px 13px; white-space: nowrap; border-radius: 100px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a:focus-visible { background: #439bff20; color: var(--text); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 13px; white-space: nowrap; font-weight: 700; font-size: 15px; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--primary { background: linear-gradient(135deg, #2de2ff, #37a4ff); color: #04152c; box-shadow: 0 9px 26px #10a1ff38, inset 0 1px 0 #fff4; }
.button--primary:hover { box-shadow: 0 12px 34px #279de46d; }
.button--outline { border-color: var(--line); background: #ffffff08; }
.button--outline:hover { border-color: #6fbcff70; background: #4da6ff23; }
.button--small { min-height: 42px; padding-inline: 16px; font-size: 14px; }
.plane { width: 17px; height: 17px; display: inline-block; background: currentColor; clip-path: polygon(0 43%, 100% 3%, 79% 96%, 52% 69%, 37% 87%, 40% 58%, 85% 19%, 29% 55%); }
.icon-button { width: 43px; height: 43px; display: grid; place-content: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-high); }
.menu-toggle { display: none; gap: 5px; }
.menu-toggle span { display: block; width: 16px; height: 2px; background: var(--text); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding-block: clamp(2rem, 4.5vw, 4rem) 1rem; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 .32em; font-size: clamp(2.25rem, 5.15vw, 5rem); line-height: 1.03; font-weight: 790; letter-spacing: -.05em; text-wrap: balance; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1875rem); max-width: 43ch; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.visual-placeholder { display: grid; place-content: center; justify-items: center; border: 1px dashed #73baff58; color: var(--muted); }
.hero-art { min-width: 0; border-radius: 25px; overflow: hidden; box-shadow: 0 0 38px #008dff25; transition: box-shadow .45s ease; }
.hero-art img { display: block; width: 100%; height: auto; transition: transform .75s cubic-bezier(.2,.7,.25,1); }
.placeholder-label { font-size: 14px; }
.placeholder-glyph { position: relative; display: block; width: 29px; height: 23px; color: #82b5de; border: 1px solid currentColor; border-radius: 5px; }
.placeholder-glyph::before { content: ""; position: absolute; top: 4px; right: 5px; width: 4px; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.placeholder-glyph::after { content: ""; position: absolute; inset: 8px 4px 4px; background: currentColor; clip-path: polygon(0 100%, 35% 15%, 58% 64%, 74% 37%, 100% 100%); }

.section { padding-block-start: var(--section-gap); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--grid-gap); margin-bottom: var(--grid-gap); }
h2, .page-title { font-size: clamp(1.65rem, 3.2vw, 2.8rem); font-weight: 760; letter-spacing: -.04em; line-height: 1.13; overflow-wrap: break-word; text-wrap: balance; }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 730; letter-spacing: -.022em; line-height: 1.27; overflow-wrap: break-word; text-wrap: pretty; }
.section-side { max-width: 27ch; color: var(--muted); font-size: 15px; }
.example-grid, .article-grid, .tile-grid, .details-grid { display: grid; gap: var(--grid-gap); }
.example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.example { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 7px 7px 0; }
.compare-frame { position: relative; min-width: 0; overflow: hidden; border-radius: 11px; background: #0c2138; }
.compare-frame img { display: block; width: 100%; height: auto; }
.compare-label { position: absolute; z-index: 1; top: 8px; left: 8px; border-radius: 7px; padding: 3px 7px; background: #071525e6; color: #fff; font-size: 11px; font-weight: 650; }
.example figcaption { padding: .8rem 1rem 1rem; color: var(--muted); font-size: .9375rem; overflow-wrap: break-word; }

.tile-grid, .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile, .details-grid article { min-width: 0; background: linear-gradient(145deg, var(--surface-high), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: var(--card-padding); }
.tile p, .details-grid p, .steps p, .dialog p { color: var(--muted); margin-top: 8px; }
.tile-icon { position: relative; display: block; width: 42px; height: 42px; margin-bottom: 19px; color: var(--accent-light); background: #359bff22; border: 1px solid #4aa2ff50; border-radius: 12px; }
.tile-icon::before, .tile-icon::after { content: ""; display: block; position: absolute; }
.icon-spark::before { width: 20px; height: 20px; inset: 10px; background: currentColor; clip-path: polygon(50% 0, 61% 37%, 100% 50%, 61% 62%, 50% 100%, 38% 62%, 0 50%, 38% 37%); }
.icon-window::before { inset: 12px 10px; border: 1.5px solid currentColor; border-radius: 3px; }
.icon-window::after { inset: 17px 11px auto; border-top: 1.5px solid currentColor; }
.icon-orbit::before { inset: 11px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-orbit::after { inset: 17px 9px; border: 1.5px solid currentColor; border-radius: 50%; transform: rotate(-30deg); }
.steps-panel { background: radial-gradient(ellipse at 100% 12%, #10376a, var(--surface-high) 62%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 43px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 34px 0 25px; gap: 18px; }
.steps li { display: flex; gap: 12px; align-items: start; }
.step-no { flex: 0 0 auto; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #65c7ff56; border-radius: 10px; color: var(--accent-light); font-size: 13px; font-weight: 750; }
.steps li h3 { font-size: 18px; }
.steps p { margin-top: .4rem; }
.article-card { display: flex; min-width: 0; min-height: 145px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .24s, transform .24s; }
.article-card:hover { border-color: #60bfff5d; transform: translateY(-3px); }
.article-copy { padding: var(--card-padding); display: flex; flex-direction: column; flex: 1; align-items: start; gap: .55rem; }
.article-copy > p { color: var(--muted); }
.article-category { color: var(--muted); font-size: .875rem; }
.article-name { font-size: clamp(1.125rem, 1.65vw, 1.375rem); }
.article-read { color: var(--accent-light); font-size: 14px; font-weight: 650; margin-top: auto; }
.details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-section { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr); gap: clamp(24px, 6vw, 82px); padding-bottom: 84px; }
.faq-intro h2 { max-width: 10ch; }
.faq-intro > .button { margin-top: 20px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.faq-list details[open] { border-color: #439fff65; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 15px; min-height: 50px; font-weight: 650; font-size: 16px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 21px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 15px 15px; color: var(--muted); animation: detail-in .22s both; }
.faq-body p + p { margin-top: 10px; }
.faq-body a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.purpose-grid p { font-size: 16px; }
.landing-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 33rem), 1fr)); gap: var(--grid-gap); }
.landing-topics .tile { display: block; min-height: 0; }
.landing-topics h3 { margin-bottom: 12px; }
.landing-topics .tile p { max-width: 68ch; }
.landing-topics p + p { margin-top: 12px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 27px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 22px; }
.footer-grid .brand + p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.footer-grid nav, .footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: start; gap: 7px; }
.footer-grid h2 { font-size: 15px; font-weight: 750; letter-spacing: -.015em; margin-bottom: 3px; }
.footer-grid a:not(.brand), .footer-link { padding: 0; border: 0; background: none; font-size: 14px; color: var(--muted); text-align: left; }
.footer-grid a:hover, .footer-link:hover { color: var(--accent-light); }
.dialog { width: min(calc(100% - 32px), 520px); max-height: calc(100dvh - 32px); color: var(--text); background: var(--surface-high); border: 1px solid #559dff70; border-radius: var(--radius); padding: 0; box-shadow: 0 24px 80px #020913a0; }
.dialog[open] { animation: modal-in .22s both ease-out; }
.dialog::backdrop { background: #030914c9; backdrop-filter: blur(5px); }
.dialog-inner { position: relative; padding: 28px; }
.dialog h2 { font-size: 34px; padding-right: 40px; }
.dialog form { position: absolute; right: 18px; top: 18px; }
.close-button { transform: none; }
.close-button::before, .close-button::after { content: ""; grid-area: 1 / 1; width: 14px; height: 2px; background: var(--text); transform: rotate(45deg); }
.close-button::after { transform: rotate(-45deg); }
.dialog .button { margin-top: 20px; }

.inner-page { min-height: 64vh; padding-block: clamp(1.75rem, 4vw, 3.5rem) var(--section-gap); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--accent-light); font-size: 15px; font-weight: 650; }
.page-lead { margin-top: 15px; max-width: 53ch; color: var(--muted); }
.blog-tools { margin: 27px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.blog-search { width: min(100%, 320px); height: 44px; padding: 0 13px; color: var(--text); border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.blog-search::placeholder { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list button[aria-pressed="true"] { background: #2199ff3e; border-color: #56acff74; }
.empty-state { padding: 18px 0; color: var(--muted); }
.prose { max-width: 780px; }
.prose h2 { margin: 26px 0 10px; font-size: 26px; letter-spacing: -.045em; }
.prose p { color: var(--muted); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .58s ease, transform .65s cubic-bezier(.2,.75,.3,1); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.shown { opacity: 1; transform: translateY(0); }
.js .reveal:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: hero-arrive .65s cubic-bezier(.2,.75,.3,1) both; }
  .hero-art { animation: hero-arrive .8s cubic-bezier(.2,.75,.3,1) .12s both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-art:hover { box-shadow: 0 0 52px #0bbcff50; }
  .hero-art:hover img { transform: scale(1.025); }
  .example, .tile, .details-grid article { transition: border-color .25s, box-shadow .25s; }
  .js :is(.example, .tile).reveal { transition-property: opacity, transform, border-color, box-shadow; }
  :is(.example, .tile, .details-grid article):hover { border-color: #52bfff75; box-shadow: 0 9px 28px #020e2360; }
}
@keyframes hero-arrive { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1000px) {
  .shell { width: min(calc(100% - 44px), var(--shell)); }
  .hero { gap: 26px; }
  .button-row { gap: 8px; }
  .hero .button { padding-inline: 14px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-row { min-height: 64px; gap: 10px; }
  .brand-logo { width: clamp(117px, 35vw, 144px); }
  .menu-toggle { display: grid; margin-left: auto; }
  .main-nav { position: absolute; z-index: 10; top: calc(100% + 8px); right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 3px; border-radius: 14px; padding: 7px; background: #112440; box-shadow: 0 15px 34px #040814b0; }
  .main-nav.open { display: flex; animation: detail-in .2s both; }
  .main-nav a { border-radius: 8px; padding: 10px 12px; }
  .header-plans { min-height: 41px; padding-inline: 12px; }
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 32px 14px; }
  .hero h1 { font-size: clamp(2.25rem, 9.5vw, 3.5rem); }
  .hero-lead { max-width: 38ch; }
  .button-row { margin-top: 21px; }
  .section-head { align-items: start; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
  .section-side { max-width: 44ch; }
  .example-grid { grid-template-columns: 1fr; gap: 10px; }
  .tile-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile, .details-grid article { padding: 17px; }
  .steps { grid-template-columns: 1fr; margin: 22px 0; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; padding-bottom: 50px; }
  .faq-intro h2 { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .hero-art { border-radius: 17px; }
  .button-row .button { min-height: 46px; font-size: 14px; }
  .tile-grid, .article-grid, .details-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.breadcrumbs { margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "›"; margin-right: 12px; color: var(--muted); }
.breadcrumbs a { color: var(--accent-light); }
.breadcrumbs a:hover { text-decoration: underline; }
.related { margin-top: 36px; }
.related h2 { font-size: 24px; margin-bottom: 14px; }
.related div { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.related > .back-link + .back-link { margin-left: 18px; }


.guide-prose { max-width: 760px; }
.guide-prose .page-title { font-size: clamp(1.95rem, 4.3vw, 3.35rem); }
.guide-prose .page-lead { max-width: 58ch; font-size: clamp(1.0625rem, 1.8vw, 1.1875rem); }
.guide-prose section { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.guide-prose section p { max-width: 68ch; font-size: 1.0625rem; }
.guide-prose section p + p { margin-top: .85rem; }
.guide-sources ul { padding-left: 22px; }
.guide-sources li { margin-top: 7px; }
.guide-sources a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.related .related-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 12px; max-width: 760px; }
