:root {
  color-scheme: light;
  --paper: #f5f7fa;
  --white: #fff;
  --ink: #17243e;
  --muted: #4c5c74;
  --line: #d6dfe9;
  --navy: #101d36;
  --blue: #224ecf;
  --blue-dark: #183baf;
  --mint: #91edcf;
  --radius: 16px;
  --shadow: 0 16px 45px #1c316011;
  font: 100%/1.6 Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.25vw, 5.15rem); font-weight: 760; }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 745; }
h3 { font-size: 1.32rem; font-weight: 730; }
p { color: var(--muted); }
a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2881f0; outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code {
  font: .92em/1.35 Consolas, "SFMono-Regular", monospace;
  background: #e2eaf4;
  padding: .14em .34em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.frame { width: min(100% - 80px, 1260px); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: 0; left: 8px; padding: .65rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #dfe5ee;
}
.header-inner { min-height: 68px; display: flex; gap: 2rem; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .64rem; color: var(--ink); font-size: 1.12rem; font-weight: 780; letter-spacing: -.05em; white-space: nowrap; text-decoration: none; }
.brand-to { color: #3763ca; }
.brand-mark { display: grid; place-items: center; position: relative; width: 31px; height: 31px; border-radius: 9px; background: #2551d5; }
.brand-mark::before { content: ""; width: 15px; aspect-ratio: 1; border: 1.5px solid white; border-radius: 50%; }
.brand-mark i { position: absolute; width: 12px; height: 1.5px; transform: rotate(-44deg) translateX(5px); background: #b7f5e4; }
.brand-mark i::before { position: absolute; content: ""; width: 4px; height: 4px; top: -1px; left: 0; border-radius: 50%; background: white; }
.site-nav { display: flex; align-items: stretch; gap: clamp(1.5rem, 3.7vw, 3.3rem); align-self: stretch; }
.site-nav a, .lang { display: inline-flex; align-items: center; min-height: 42px; color: var(--muted); font-size: .93rem; font-weight: 670; white-space: nowrap; text-decoration: none; }
.site-nav a { position: relative; }
.site-nav a:hover, .lang:hover, .site-nav a[aria-current] { color: var(--blue-dark); }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.lang { gap: .36rem; color: var(--ink); }

.kicker { display: flex; align-items: center; gap: .58rem; font-size: .805rem; letter-spacing: .095em; font-weight: 730; text-transform: uppercase; color: var(--blue-dark); }
.kicker .dot { width: .52rem; height: .52rem; flex: none; border-radius: 50%; background: currentColor; }
.hero, .page-intro, .layer-section { color: #fff; background: var(--navy); }
.hero, .page-intro {
  background-image: radial-gradient(ellipse at 92% 30%, #214b9750, transparent 66%), linear-gradient(125deg, #131e36 10%, #0f1d38 56%, #152e52 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 7.4vw, 7rem);
}
.hero h1 { margin-top: .94rem; font-size: clamp(2.65rem, 4.4vw, 4.55rem); }
.hero h1 em { display: block; color: var(--mint); font-style: normal; }
.hero .kicker, .page-intro .kicker, .layer-section .kicker { color: #a0e9da; }
.hero-lead { margin-top: 1.35rem; color: #d4e0f3; font-size: clamp(1.02rem, 1.65vw, 1.16rem); max-width: 53ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.85rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.06rem;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--blue);
  color: var(--white);
  font-size: .93rem;
  font-weight: 720;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: var(--blue-dark); }
.hero .button:not(.button-outline) { background: var(--mint); color: #102640; }
.hero .button:not(.button-outline):hover { background: #b4ffe6; }
.button-outline { background: #ffffff0c; color: #f5f9ff; border-color: #7688a8; }
.button-outline:hover { background: #ffffff24; }
.button-secondary { background: #edf3ff; color: #173aae; border-color: #cbd9fb; }
.button-secondary:hover { background: #dce7ff; }
.hero-visual { min-width: 0; align-self: center; background: #ecf2fb; padding: 1px; border-radius: var(--radius); box-shadow: 0 24px 56px #020b225c; }
.visual-heading { min-height: 38px; padding: .45rem .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .22rem .75rem; justify-content: space-between; color: var(--ink); font-size: .75rem; font-weight: 700; }
.visual-heading span:last-child { color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.visual-heading i { width: .42rem; height: .42rem; background: #247d62; border-radius: 100%; }
.hero-visual .screenshot { margin: 0; border-radius: 0 0 15px 15px; border: 0; }

.section { padding-block: clamp(3.4rem, 6vw, 6rem); }
.section-title { max-width: 58ch; margin-bottom: 1.75rem; }
.section-title h2 { margin-top: .5rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature, .build-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.3vw, 2rem); }
.feature { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.feature p { flex: 1; }
.feature-symbol { display: grid; position: relative; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e9f0ff; color: var(--blue-dark); }
.feature-symbol::before, .feature-symbol::after { content: ""; display: block; }
.smart-symbol::before { width: 15px; height: 19px; border: 1.5px solid; border-radius: 3px; }
.smart-symbol::after { width: 7px; border-top: 1.5px solid; position: absolute; top: 25px; }
.chart-symbol::before { width: 20px; height: 15px; border: solid; border-width: 0 0 1.5px 1.5px; }
.chart-symbol::after { width: 17px; height: 11px; position: absolute; left: 13px; top: 14px; background: currentColor; clip-path: polygon(0 79%, 34% 38%, 63% 59%, 100% 0, 100% 20%, 66% 80%, 35% 59%, 0 100%); }
.folder-symbol::before { width: 20px; height: 13px; border: 1.5px solid; border-radius: 2px; margin-top: 3px; }
.folder-symbol::after { position: absolute; width: 9px; height: 4px; border: solid; border-width: 1.5px 1.5px 0; left: 10px; top: 10px; border-radius: 2px 2px 0 0; }
.text-link { display: inline-block; font-weight: 720; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.layer-section { background: #172a49; }
.layer-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 5.5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.layer-grid h2 { margin-block: .55rem .85rem; }
.layer-grid p:not(.kicker) { color: #d1dbec; }
.layer-grid .text-link { color: var(--mint); margin-top: 1rem; }
.layer-list { margin-top: 1.25rem; display: grid; gap: 1px; background: #657790; border: 1px solid #657790; border-radius: 8px; overflow: hidden; }
.layer-list > div { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .4rem; align-items: baseline; background: #1f3658; padding: .62rem .76rem; }
.layer-list span { color: var(--mint); font: .79rem/1.4 Consolas, monospace; }
.layer-list strong { font-size: .94rem; color: #edf5ff; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 1.35rem; }
.cta-row p { margin-top: .45rem; }

.intro-content { padding-block: clamp(2.9rem, 7vw, 5.9rem); }
.intro-content h1 { margin-top: .6rem; max-width: 16ch; }
.download-content { padding-block: 2rem 4.5rem; }
.build-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.build-card { box-shadow: var(--shadow); }
.build-card:first-child { border-top: 4px solid var(--blue); }
.build-card:last-child { border-top: 4px solid #c7d6f3; }
.build-card h2 { margin-block: .4rem .54rem; font-size: clamp(1.55rem, 3.1vw, 2.5rem); }
.build-card .button { margin-top: 1.25rem; }
.system-note { border-block: 1px solid var(--line); margin-top: 1.6rem; padding-block: 1rem; }
.system-note p + p { margin-top: .5rem; }
.setup-section { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.setup-section h2 { margin-block: .35rem .65rem; }

.manual-layout { display: grid; grid-template-columns: minmax(185px, 225px) minmax(0, 840px); gap: clamp(1.5rem, 4.5vw, 4rem); padding-block: 2rem 4rem; }
.toc { position: sticky; top: 100px; align-self: start; margin-right: .25rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.toc h2 { margin-bottom: .65rem; font-size: 1.04rem; letter-spacing: -.018em; }
.toc ol { list-style: none; padding: 0; }
.toc li a { display: block; padding: .38rem 0; color: var(--muted); text-decoration: none; font-size: .92rem; }
.toc li a:hover { color: var(--blue-dark); text-decoration: underline; }
.toc .text-link { margin-top: .7rem; font-size: .91rem; }
.manual { min-width: 0; }
.callout { border: 1px solid #b7cbe7; border-left: 4px solid #4977d6; border-radius: 10px; background: #eaf2fe; color: #283d60; padding: .92rem 1rem; }
.manual-section { padding-block: 2.05rem; border-bottom: 1px solid var(--line); }
.manual-section:last-child { border-bottom: 0; padding-bottom: 0; }
.manual-section h2 { margin-bottom: .8rem; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.manual-section > p, .manual-section ol, .manual-section ul { margin-bottom: 1rem; color: var(--muted); }
.manual-section strong, .setup-section strong { color: var(--ink); }
.manual-section li + li { margin-top: .55rem; }
.steps { padding-left: 1.6rem; color: var(--muted); }
.steps li { padding-left: .25rem; }
.steps li + li { margin-top: .7rem; }
.steps li::marker { color: var(--blue-dark); font-weight: 760; }
.manual-section ul { padding-left: 1.3rem; }
.workflow-list { background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.workflow-list > div { display: grid; grid-template-columns: minmax(160px, .65fr) 1fr; gap: .85rem; padding: .85rem 1rem; }
.workflow-list > div + div { border-top: 1px solid var(--line); }
.workflow-list dt { font-weight: 720; }
.workflow-list dd { color: var(--muted); }
.manual-section .source { display: flex; flex-wrap: wrap; column-gap: .6rem; margin-block: .85rem 0; color: var(--muted); font-size: .83rem; }
details { margin-top: .95rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding-inline: .8rem; }
summary { padding-block: .64rem; min-height: 44px; cursor: pointer; color: var(--blue-dark); font-weight: 710; }
details p { margin-block: .2rem .65rem; }
details .screenshot { margin-bottom: .8rem; }
.screenshot { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
.screenshot > a { display: block; background: #dde4ef; }
.screenshot img { width: 100%; }
.screenshot figcaption { display: flex; gap: .18rem .85rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; padding: .58rem .75rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.screenshot figcaption a { font-weight: 710; }
.screenshot a:focus-visible { outline-offset: -4px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: #edf1f6; }
.footer-inner { padding-block: 1.65rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.footer-inner p { margin-top: .4rem; font-size: .86rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; font-size: .87rem; font-weight: 650; }
.footer-inner nav a:hover { color: var(--blue-dark); text-decoration: underline; }
.footer-inner small { font-size: .75rem; }

@media (max-width: 960px) {
  .frame { width: calc(100% - 48px); }
  .hero-grid { gap: 1.8rem; }
  .manual-layout { grid-template-columns: minmax(155px, 177px) minmax(0, 1fr); }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 128px; }
  .frame { width: calc(100% - 36px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; padding-top: .45rem; }
  .site-nav { grid-area: 2 / 1 / 3 / 3; justify-content: space-between; gap: .75rem; }
  .lang { justify-self: end; }
  .hero-grid, .layer-grid, .manual-layout, .setup-section { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 2.85rem; }
  .hero h1 { font-size: clamp(2.48rem, 8.25vw, 4.15rem); }
  .hero-lead { margin-top: 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .manual-layout { padding-top: 1.3rem; gap: 1.15rem; }
  .toc { position: static; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; background: #fff; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: .12rem .75rem; }
  .toc li a { padding-block: .42rem; }
  .footer-inner { grid-template-columns: 1fr; gap: .65rem; }
}
@media (max-width: 480px) {
  .section-title { margin-bottom: 1.25rem; }
  .build-grid { grid-template-columns: 1fr; }
  .workflow-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .actions > .button { width: 100%; }
}

.workflow-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.workflow-route > div { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: .7rem .84rem; align-self: stretch; }
.workflow-route > span { color: var(--blue-dark); font-weight: 750; }
.workflow-route p { margin-top: .25rem; }
@media (max-width: 480px) {
  .workflow-route { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .workflow-route > span { justify-self: center; transform: rotate(90deg); }
}
