:root {
  color-scheme: dark;
  --bg: #131521;
  --surface: #1b1e2d;
  --line: #3a3d50;
  --text: #f7f5fc;
  --muted: #bbbccf;
  --accent: #d7fc9a;
  --violet: #d4c4ff;
  font: 100%/1.6 ui-sans-serif, system-ui, sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }
p, ul, ol { color: var(--muted); }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.35rem; letter-spacing: -.045em; text-decoration: none; }
.brand span { color: var(--accent); margin-left: -.5rem; }
.header-inner nav { display: flex; gap: clamp(.8rem, 4vw, 2.1rem); margin-left: auto; }
.header-inner nav a, .footer-inner > a:not(.brand) { font-size: .94rem; text-decoration: none; }
.header-inner nav a[aria-current] { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3.25rem, 6.5vw, 6rem); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5.3vw, 4.75rem); font-weight: 750; letter-spacing: -.06em; }
h1 em { color: var(--violet); font-style: normal; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.06em; }
h3 { font-size: 1.52rem; letter-spacing: -.035em; }
.hero p, .docs-intro p { font-size: 1.16rem; margin-top: 1.4rem; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .75rem 1.16rem; border: 1px solid transparent; border-radius: .5rem; font-weight: 680; text-decoration: none; }
.primary { background: var(--accent); color: #1a2314; }
.primary:hover { background: #eeffd2; color: #1a2314; }
.secondary { border-color: var(--line); }
.secondary:hover { border-color: var(--accent); }
.flow { margin: 0; padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.1rem; background: radial-gradient(ellipse at center, #2a263e, #1b1e2d 77%); }
.flow figcaption { margin-bottom: 1.05rem; color: var(--muted); font-size: .91rem; font-weight: 620; }
.flow-node { display: flex; align-items: center; gap: .7rem; min-height: 4.2rem; padding: .75rem; border: 1px solid var(--line); border-radius: .55rem; background: #1b1e2d; }
.flow-node strong, .flow-node small { display: block; }
.flow-node small { font-size: .87rem; color: var(--muted); line-height: 1.35; }
.flow-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: .35rem; background: #303348; font-family: monospace; }
.waypoint { border-color: #8874ae; }
.waypoint .flow-icon { background: var(--violet); color: #241c39; }
.connector { display: block; width: 1px; height: 1.25rem; margin: auto; background: #8874ae; }
.branch { display: grid; grid-template-columns: 1fr 1fr; height: 1.15rem; width: 50%; margin: auto; border-bottom: 1px solid #8874ae; }
.branch span:first-child { border-right: 1px solid #8874ae; }
.outputs { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding-top: .73rem; }
.outputs > div { position: relative; }
.outputs > div::before { content: ""; position: absolute; left: 50%; top: -.76rem; height: .75rem; border-left: 1px solid #8874ae; }
.products { padding-block: 3.5rem 4.5rem; border-block: 1px solid var(--line); background: #171a27; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.65rem; }
.product { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 3vw, 2.15rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); scroll-margin-top: 1rem; }
.product-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 1.1rem; border-radius: .55rem; color: #202a16; background: var(--accent); font-size: 1.5rem; }
.gateway-icon { color: #241c39; background: var(--violet); }
.product p { margin-top: .65rem; }
.product-name { font-size: .95rem; font-weight: 650; }
.product ul { padding-left: 1.2rem; margin-block: 1rem 1.35rem; }
.product li + li { margin-top: .3rem; }
.text-link { margin-top: auto; color: var(--accent); font-weight: 650; text-underline-offset: .23em; }
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; align-items: center; padding-block: 3.5rem; }
.contact p { margin-top: .7rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner .brand { margin-right: auto; }
.docs { padding-block: 3.8rem 5rem; }
.docs h1 { font-size: clamp(2.7rem, 8vw, 4.7rem); }
.docs-layout { display: grid; grid-template-columns: 13rem minmax(0, 46rem); gap: 2rem; margin-top: 3rem; }
.contents { display: flex; flex-direction: column; gap: .65rem; }
.contents a { font-size: .96rem; color: var(--violet); text-underline-offset: .25em; }
.guide section { padding-bottom: 2rem; scroll-margin-top: 1rem; }
.guide section + section { padding-top: 2rem; border-top: 1px solid var(--line); }
.guide h3 { margin-top: 1.6rem; }
.guide p { margin-top: .55rem; }
.guide a { color: var(--accent); text-underline-offset: .24em; }
@media (max-width: 47rem) {
  .hero, .docs-layout { grid-template-columns: 1fr; }
  .hero { padding-block: 3.5rem; }
  .wrap { width: min(100% - 2rem, 72rem); }
  .docs { padding-top: 2.75rem; }
}
@media (max-width: 34rem) {
  .product-grid { grid-template-columns: 1fr; }
  .header-inner, .footer-inner { gap: .75rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 1.4rem; height: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
