:root {
  color-scheme: light;
  --ink: #10233f;
  --ink-soft: #31445f;
  --muted: #62748a;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-blue: #eef4ff;
  --line: #d8e2ef;
  --primary: #2447d8;
  --primary-strong: #1738bd;
  --indigo: #6555e8;
  --success: #0b7a55;
  --success-bg: #e4f7ef;
  --warning: #a74f00;
  --warning-bg: #fff1df;
  --danger: #b4233a;
  --danger-bg: #ffe9ed;
  --shadow: 0 18px 45px rgba(25, 45, 85, 0.09);
  --shadow-sm: 0 8px 24px rgba(25, 45, 85, 0.07);
  --radius: 20px;
  --radius-sm: 13px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #77a5ff; outline-offset: 3px; border-radius: 5px; }
::selection { color: #fff; background: var(--primary); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: .75rem 1rem; color: #fff; background: var(--ink); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 2.5rem), var(--shell)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section.compact { padding-block: 3.8rem; }
.section-white { background: var(--surface); }
.section-blue { background: #edf3fb; }
.section-dark { color: #fff; background: #0d203b; }
.section-dark p, .section-dark .muted { color: #c4d1e5; }
.section-dark .eyebrow { color: #9dbbff; }
.section-dark .card { color: var(--ink); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(216,226,239,.88); background: rgba(255,255,255,.93); backdrop-filter: blur(18px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: .98rem; letter-spacing: -.01em; }
.brand small { margin-top: .26rem; color: var(--muted); font-size: .7rem; }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav a { padding: .55rem .72rem; color: var(--ink-soft); font-size: .91rem; font-weight: 650; text-decoration: none; border-radius: 9px; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: #edf2ff; }
.nav-toggle { display: none; min-height: 42px; padding: .5rem .8rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-weight: 700; }

.hero { position: relative; overflow: hidden; padding: clamp(5.3rem, 10vw, 9rem) 0 6rem; background: radial-gradient(circle at 82% 2%, rgba(101,85,232,.14), transparent 30%), linear-gradient(180deg, #fff 0%, #f4f7fb 100%); }
.hero::after { content: ""; position: absolute; right: -130px; bottom: -240px; width: 500px; height: 500px; border: 1px solid rgba(36,71,216,.12); border-radius: 50%; box-shadow: 0 0 0 65px rgba(36,71,216,.025), 0 0 0 130px rgba(101,85,232,.02); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; color: var(--primary); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0 0 .75rem; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 850px; font-size: clamp(2.55rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.2rem; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.hero .lead { max-width: 650px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .45rem; padding: .72rem 1.05rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); font-weight: 750; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(25,45,85,.13); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--indigo)); border-color: transparent; }
.button.primary:hover { color: #fff; background: linear-gradient(135deg, var(--primary-strong), #5645da); }
.button.ghost { box-shadow: none; }
.button.link { min-height: auto; padding: 0; color: var(--primary); background: transparent; border: 0; box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 750; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .16s ease; }
.text-link:hover::after { transform: translateX(3px); }

.trust-bar { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; min-height: 92px; align-items: center; gap: 1rem 2rem; }
.trust-label { color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.trust-list { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.4rem; }
.trust-list span { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-weight: 700; }
.trust-list span::before { content: ""; width: 9px; height: 9px; background: #6d88e9; border-radius: 2px; box-shadow: 5px 5px 0 #b8c8fa; }

.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem 4rem; align-items: end; margin-bottom: 2.2rem; }
.section-heading > :last-child { justify-self: end; }
.section-heading p { max-width: 670px; margin: 0; color: var(--muted); }
.center-heading { max-width: 800px; margin: 0 auto 2.5rem; text-align: center; }
.center-heading .eyebrow { justify-content: center; }
.center-heading .eyebrow::before { display: none; }
.center-heading p { margin: 0 auto; }
.grid { 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 { padding: 1.35rem; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card p:last-child { margin-bottom: 0; }
.card-icon { display: grid; width: 42px; height: 42px; margin-bottom: 1rem; place-items: center; color: var(--primary); background: #eaf0ff; border-radius: 12px; font-weight: 850; }
.card .kicker { margin: 0 0 .35rem; color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card p, .muted { color: var(--muted); }

.product-window { overflow: hidden; background: #f7f9fd; border: 1px solid #cbd8e8; border-radius: 24px; box-shadow: 0 28px 70px rgba(25,45,85,.14); }
.window-bar { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; color: var(--muted); background: #fff; border-bottom: 1px solid var(--line); font-size: .78rem; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 8px; height: 8px; background: #b9c6d8; border-radius: 50%; }
.demo-badge, .pill { display: inline-flex; align-items: center; padding: .22rem .5rem; color: var(--primary); background: #e9efff; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.product-body { display: grid; grid-template-columns: 145px 1fr; min-height: 420px; }
.product-sidebar { padding: 1.2rem .8rem; color: #cad6e7; background: #10233f; }
.product-sidebar strong { display: block; margin: 0 .45rem 1rem; color: #fff; font-size: .82rem; }
.product-sidebar span { display: block; margin: .22rem 0; padding: .52rem .6rem; font-size: .73rem; border-radius: 8px; }
.product-sidebar span:first-of-type { color: #fff; background: #2447d8; }
.product-content { padding: 1.25rem; }
.product-title { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.product-title h3 { margin: 0; font-size: 1.32rem; }
.product-title p { margin: .25rem 0 0; color: var(--muted); font-size: .8rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.kpi { padding: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kpi small { display: block; color: var(--muted); font-size: .67rem; }
.kpi strong { display: block; margin-top: .18rem; font-size: 1.15rem; }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: .65rem; }
.chart { min-height: 190px; padding: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.chart h4 { margin: 0 0 .8rem; font-size: .75rem; }
.ring { width: 92px; height: 92px; margin: 1.15rem auto; border-radius: 50%; background: conic-gradient(#2447d8 0 68%, #f0a64c 68% 85%, #cad5e5 85%); position: relative; }
.ring::after { content: "68%"; position: absolute; inset: 16px; display: grid; place-items: center; background: #fff; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.bars { display: grid; gap: .65rem; }
.bar { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: .4rem; color: var(--muted); font-size: .63rem; }
.bar i { display: block; height: 11px; background: #e4eaf3; border-radius: 99px; overflow: hidden; }
.bar i::after { content: ""; display: block; width: var(--value); height: 100%; background: var(--bar, #2447d8); border-radius: inherit; }
.legend { display: flex; justify-content: center; gap: .65rem; color: var(--muted); font-size: .6rem; }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .25rem; background: var(--dot); border-radius: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.2rem, 6vw, 6rem); align-items: center; }
.check-list, .plain-list { padding: 0; margin: 1.4rem 0 0; list-style: none; }
.check-list li { position: relative; margin: .65rem 0; padding-left: 1.75rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; display: grid; width: 1.15rem; height: 1.15rem; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: .68rem; font-weight: 850; }
.plain-list li { padding: .72rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.architecture { position: relative; display: grid; gap: .7rem; padding: 1.2rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 22px; }
.architecture-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .55rem; }
.arch-node { padding: .8rem; color: var(--ink); background: #fff; border-radius: 11px; text-align: center; }
.arch-node strong, .arch-node small { display: block; }
.arch-node small { margin-top: .2rem; color: var(--muted); }
.arch-arrow { color: #a9bff7; font-weight: 900; }
.arch-local { padding: 1rem; border: 1px dashed #7f9ce3; border-radius: 16px; }
.arch-local > small { display: block; margin-bottom: .6rem; color: #a9bff7; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.page-hero { padding: 5.2rem 0 4.2rem; background: radial-gradient(circle at 84% 0, rgba(101,85,232,.12), transparent 30%), #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.breadcrumb { margin-bottom: 1rem; color: var(--muted); font-size: .83rem; }
.breadcrumb a { color: inherit; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.anchor-nav a { padding: .35rem .65rem; color: var(--ink-soft); background: #f2f5f9; border: 1px solid var(--line); border-radius: 999px; font-size: .79rem; font-weight: 700; text-decoration: none; }
.anchor-nav a:hover { color: var(--primary); background: #eaf0ff; }

.callout { padding: 1.15rem 1.25rem; background: #edf3ff; border-left: 4px solid var(--primary); border-radius: 0 13px 13px 0; }
.callout.warning { background: var(--warning-bg); border-color: var(--warning); }
.callout.success { background: var(--success-bg); border-color: var(--success); }
.callout strong { display: block; margin-bottom: .25rem; }
.callout p { margin: 0; }
.boundary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.boundary { padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.boundary strong { display: block; color: var(--primary); }
.boundary p { margin-bottom: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: .95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: var(--ink); background: #f4f7fb; font-size: .82rem; }
td { color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 36%; color: var(--ink); font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 800; }
.status::before { content: ""; width: 8px; height: 8px; background: var(--success); border-radius: 50%; }
.status.limited::before { background: var(--warning); }
.status.locked::before { background: #8a98ab; }

.edition-card { position: relative; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.edition-card.featured { border: 2px solid var(--primary); box-shadow: 0 20px 50px rgba(36,71,216,.14); }
.edition-card .edition-label { color: var(--primary); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.edition-card h2 { margin-top: .35rem; font-size: 2rem; }
.edition-card .price { margin: .2rem 0 1.2rem; color: var(--muted); }
.edition-card .button { width: 100%; margin-top: 1rem; }

.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.docs-nav { position: sticky; top: 96px; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.docs-nav strong { display: block; margin: .2rem .45rem .6rem; }
.docs-nav a { display: block; padding: .43rem .5rem; color: var(--ink-soft); font-size: .83rem; text-decoration: none; border-radius: 7px; }
.docs-nav a:hover { color: var(--primary); background: #eef3ff; }
.docs-content section { padding-bottom: 2.8rem; margin-bottom: 2.8rem; border-bottom: 1px solid var(--line); }
.docs-content section:last-child { border-bottom: 0; }
.docs-content h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.code-block { overflow-x: auto; padding: 1rem 1.1rem; color: #eaf1ff; background: #10233f; border-radius: 13px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84rem; white-space: pre-wrap; }

.support-category { display: flex; align-items: start; gap: .8rem; }
.support-category .card-icon { flex: 0 0 auto; margin: 0; }
.definition-list { display: grid; grid-template-columns: 190px 1fr; gap: .65rem 1.2rem; }
.definition-list dt { font-weight: 800; }
.definition-list dd { margin: 0; color: var(--muted); }
.legal { max-width: 860px; }
.legal h2 { margin-top: 2.8rem; font-size: 1.7rem; }
.legal h3 { margin-top: 1.8rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .effective { color: var(--muted); font-size: .9rem; }

.cta-band { padding: clamp(2rem, 5vw, 3.5rem); color: #fff; background: linear-gradient(135deg, #10233f, #243c7a); border-radius: 26px; box-shadow: 0 24px 60px rgba(16,35,63,.2); }
.cta-band h2 { max-width: 780px; }
.cta-band p { max-width: 720px; color: #ccd8e9; }
.cta-band .button:not(.primary) { color: var(--ink); }

.site-footer { padding: 4rem 0 1.5rem; color: #b9c8dc; background: #0b1c32; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { color: #fff; }
.footer-brand small { color: #b9c8dc; }
.footer-note { max-width: 420px; color: #9eb0c8; font-size: .86rem; }
.site-footer h2 { margin-bottom: .75rem; color: #fff; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; width: fit-content; margin: .45rem 0; color: #b9c8dc; font-size: .86rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; padding-top: 1.5rem; margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #8497b2; font-size: .75rem; }
.footer-bottom span:last-child { max-width: 720px; text-align: right; }

.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.not-found .code { color: var(--primary); font-size: 5rem; font-weight: 900; line-height: 1; }

@media (max-width: 980px) {
  .hero-grid, .split, .section-heading { grid-template-columns: 1fr; }
  .section-heading > :last-child { justify-self: start; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-body { grid-template-columns: 110px 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .chart { min-height: 145px; }
  .ring { margin: .5rem auto; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
  .docs-nav strong { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 1.5rem), var(--shell)); }
  .site-header { backdrop-filter: none; }
  .header-inner { min-height: 66px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 65px; right: .75rem; left: .75rem; display: none; align-items: stretch; padding: .65rem; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: grid; }
  .site-nav a { padding: .72rem; }
  .hero { padding-top: 4.5rem; }
  .hero-grid { gap: 2.5rem; }
  .trust-inner { padding-block: 1.1rem; align-items: start; flex-direction: column; }
  .trust-list { justify-content: flex-start; }
  .grid-2, .grid-3, .grid-4, .boundary-list { grid-template-columns: 1fr; }
  .product-sidebar { display: none; }
  .product-body { display: block; min-height: 0; }
  .product-content { padding: .8rem; }
  .product-title { align-items: start; flex-direction: column; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .architecture-row { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); justify-self: center; }
  .docs-nav { grid-template-columns: 1fr 1fr; }
  .definition-list { grid-template-columns: 1fr; gap: .15rem; }
  .definition-list dd { margin-bottom: .8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid > :last-child { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .footer-bottom span:last-child { text-align: left; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
  .brand strong { font-size: .88rem; }
  .kpis { grid-template-columns: 1fr; }
  .docs-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .actions, .anchor-nav, .docs-nav { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .page-hero { padding-block: 1.5rem; }
  .card, .table-wrap, .product-window { box-shadow: none; }
}
