:root {
    color-scheme: dark;
    --background: #100b24;
    --surface: #1a1431;
    --text: #f7f5fc;
    --muted: #b5afc6;
    --accent: #f2734f;
    --line: #342c48;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
svg { flex-shrink: 0; width: 24px; height: 24px; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 32px; }
.page-shell { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 2; padding: 10px 18px; background: var(--accent); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 22px; }
.brand img { width: 123px; height: auto; }
.brand-divider { height: 26px; width: 1px; background: var(--line); }
.brand-label { color: var(--muted); font-size: .875rem; }
nav { display: flex; align-items: center; gap: 30px; font-size: .875rem; }
.overview-link { color: var(--muted); }
.overview-link:hover, .workflow-link:hover, .text-link:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border: 1px solid transparent; border-radius: 7px; font-size: .9375rem; font-weight: 650; text-align: center; }
.button-primary { background: var(--accent); color: #1e1020; }
.button-primary:hover { background: #ff9476; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; padding: 100px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .13em; }
.eyebrow > span { width: 7px; height: 7px; background: var(--accent); }
h1 { margin-top: 25px; font-size: clamp(3rem, 5.5vw, 4.75rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 650; }
h1 span { color: var(--accent); }
.hero-description { max-width: 490px; margin-top: 26px; color: var(--muted); font-size: 1.0625rem; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.text-link { font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #6c627f; }

.routing-panel { position: relative; padding: 26px; border: 1px solid #443553; border-radius: 16px; background: radial-gradient(ellipse at 50% 45%, #302046 0%, transparent 70%), var(--surface); box-shadow: 0 28px 80px #05020f55; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .875rem; }
.panel-label { color: var(--muted); font-size: .75rem; letter-spacing: .09em; }
.routing-diagram { display: flex; flex-direction: column; align-items: center; padding: 36px 8px 28px; }
.source-node { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border: 1px solid #51445f; border-radius: 8px; background: #231b36; font-size: .875rem; }
.source-node svg { width: 20px; height: 20px; color: var(--muted); }
.connector { width: 1px; height: 36px; background: #93715f; }
.gateway-node { z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 23px 16px; border: 1px solid #b66e59; border-radius: 10px; background: #2b2038; box-shadow: 0 0 32px #f2734f0d; }
.gateway-node img { width: 44px; height: 44px; border-radius: 9px; }
.gateway-node strong { display: block; font-size: 1rem; font-weight: 600; }
.gateway-node span { display: block; margin-top: 2px; color: var(--muted); font-size: .8125rem; }
.channel-branches { position: relative; height: 42px; width: 54%; border-top: 1px solid #93715f; border-left: 1px solid #93715f; border-right: 1px solid #93715f; border-radius: 10px 10px 0 0; margin-top: 24px; }
.channel-branches::before { position: absolute; content: ""; left: 50%; top: -25px; height: 24px; width: 1px; background: #93715f; }
.channel-nodes { display: flex; justify-content: space-between; gap: 18px; width: 100%; }
.channel-node { display: flex; align-items: center; justify-content: center; gap: 10px; width: 46%; min-height: 57px; border: 1px solid #51445f; border-radius: 8px; background: #231b36; font-size: .875rem; }
.channel-node svg { color: var(--accent); width: 20px; height: 20px; }
figcaption { border-top: 1px solid #443553; padding-top: 17px; color: var(--muted); font-size: .8125rem; text-align: center; }

.capabilities { padding: 42px 0 58px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.section-heading h2 { font-size: 1.25rem; font-weight: 550; letter-spacing: -.025em; }
.section-heading > p { color: var(--muted); font-size: .875rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin-top: 38px; }
.feature + .feature { border-left: 1px solid var(--line); padding-left: 38px; }
.feature-icon { color: var(--accent); width: 27px; height: 27px; margin-bottom: 15px; }
h3 { font-size: 1rem; font-weight: 600; }
.feature p { color: var(--muted); margin-top: 9px; font-size: 1rem; line-height: 1.8; }

.workflow { display: grid; grid-template-columns: 1fr 1.1fr; gap: 110px; padding: 78px 0; }
.workflow h2 { margin-top: 18px; font-size: 2.3rem; font-weight: 550; line-height: 1.2; letter-spacing: -.04em; }
.workflow-intro > p:last-child { max-width: 300px; color: var(--muted); margin-top: 20px; }
.workflow-steps { list-style: none; margin: 0; padding: 0; }
.workflow-steps li { position: relative; border-left: 1px solid #55415c; padding: 0 0 28px 28px; }
.workflow-steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.workflow-steps li::before { position: absolute; content: ""; top: 7px; left: -4px; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; }
.workflow-steps p { margin-top: 7px; color: var(--muted); font-size: 1rem; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.footer-separator { padding: 0 12px; color: #756b87; }

@media (min-width: 1400px) {
    .hero { padding-top: 118px; padding-bottom: 114px; }
}

@media (max-width: 1050px) {
    .page-shell { padding: 0 32px; }
    .brand-label, .brand-divider { display: none; }
    .hero { gap: 36px; padding: 72px 0; }
    .routing-panel { padding: 20px; }
    .panel-label { display: none; }
    .gateway-node { gap: 10px; padding: 20px 12px; }
    .gateway-node strong { font-size: .9375rem; }
    .gateway-node span { font-size: .75rem; }
    .feature-grid { gap: 24px; }
    .feature + .feature { padding-left: 24px; }
    .workflow { gap: 60px; }
}

@media (max-width: 760px) {
    .page-shell { padding: 0 24px; }
    .site-header { min-height: 88px; }
    .brand img { width: 105px; }
    .overview-link { display: none; }
    .hero { grid-template-columns: 1fr; gap: 48px; padding: 54px 0; }
    h1 { font-size: clamp(3rem, 9vw, 4.5rem); }
    .hero-description { max-width: 550px; }
    .routing-panel { width: 100%; max-width: 500px; justify-self: center; padding: 24px; }
    .panel-label { display: inline; }
    .gateway-node strong { font-size: 1rem; }
    .gateway-node span { font-size: .8125rem; }
    .section-heading { flex-direction: column; gap: 8px; }
    .feature-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }
    .feature + .feature { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
    .feature-icon { margin-bottom: 10px; }
    .capabilities { padding: 32px 0; }
    .workflow { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
    .workflow-intro > p:last-child { max-width: none; }
    .site-footer { flex-direction: column; gap: 8px; padding: 28px 0; }
}

@media (max-width: 380px) {
    .page-shell { padding: 0 18px; }
    .site-header { gap: 14px; }
    .hero-actions { gap: 20px; }
    .eyebrow { font-size: .75rem; letter-spacing: .06em; }
    .routing-panel { padding: 18px 14px; }
    .panel-label { display: none; }
    .channel-node { gap: 7px; }
}
