:root {
    --navy: #10243a;
    --ink: #20354a;
    --muted: #52687d;
    --teal: #087e8b;
    --teal-light: #e7f5f5;
    --gold: #f2b544;
    --paper: #f6f8fb;
    --line: #dce4ec;
}

html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { color: var(--ink); background: var(--paper); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.7; }
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { color: var(--muted); }
a { text-underline-offset: .25em; }
a:focus-visible, pre:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.container { max-width: 1140px; }
.eyebrow { color: var(--teal); text-transform: uppercase; font-size: .75rem; font-weight: 750; letter-spacing: .11em; margin-bottom: 1rem; }
.text-gold { color: var(--gold); }
.skip-link { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); background: white; color: var(--navy); padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.hero { position: relative; overflow: hidden; background: var(--navy); border-top: 7px solid var(--teal); }
.hero::before { content: ""; position: absolute; right: -14rem; top: -18rem; width: 48rem; height: 48rem; border: 7rem solid #18364e; border-radius: 50%; pointer-events: none; }
.site-nav, .hero-content { position: relative; }
.site-nav { padding-top: 2rem; padding-bottom: 1.5rem; }
.brand { display: inline-flex; flex-direction: column; gap: 1.4rem; text-decoration: none; color: #91d9db; }
.brand img { width: 164px; height: auto; }
.brand > span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.brand > span > span { padding: 0 .3rem; }
.nav-links a { color: #d7e3ec; font-size: .88rem; text-decoration: none; }
.nav-links a:hover { color: white; text-decoration: underline; }
.hero-content { padding-top: 4rem; padding-bottom: 5.5rem; }
.hero h1 { color: white; font-size: clamp(3.2rem, 7vw, 5rem); margin-bottom: 1.5rem; }
.hero-description { max-width: 42rem; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; color: #d7e3ec; }
.feature-pills { margin-top: 1.8rem; }
.feature-pills > span { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1.05rem; border-radius: 2rem; font-size: .74rem; line-height: 1.3; font-weight: 650; background: #24485a; color: #c9eff0; min-height: 2.5rem; }
.btn-contact { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; background: var(--gold); border: 2px solid var(--gold); color: var(--navy); font-weight: 750; padding: .85rem 1.4rem; border-radius: .6rem; }
.btn-contact:hover, .btn-contact:focus { color: var(--navy); background: #ffd078; border-color: #ffd078; }
.hero-note { padding: 2rem; border-radius: 1.2rem; background: #19354a; border: 1px solid #315267; }
.hero-note h2 { font-size: 1.5rem; color: white; }
.hero-note p { color: #c7d8e4; font-size: .92rem; }
.note-symbol { font-size: 2.5rem; line-height: 1; color: #91d9db; display: inline-block; margin-bottom: 1.5rem; }
.section-space { padding: 5.5rem 0; }
.section-intro { max-width: 42rem; margin-bottom: 2.8rem; }
.section-intro > p:last-child { font-size: 1.05rem; }
.exchange-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 3rem minmax(0, 1fr) 3rem minmax(0, 1fr); align-items: stretch; }
.dealer-card, .hub-card { border-radius: 1.1rem; padding: 1.7rem; min-width: 0; }
.dealer-card { background: white; border: 1px solid var(--line); }
.dealer-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.dealer-card > p:not(.eyebrow) { font-size: .92rem; min-height: 4.7rem; }
.dealer-card .eyebrow { font-size: .67rem; letter-spacing: .07em; }
.hub-card { background: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.hub-card .eyebrow { color: #91d9db; }
.hub-card h3 { color: white; font-size: 2rem; }
.hub-card p { color: #d7e3ec; font-size: .95rem; }
.hub-caption { padding-top: 1rem; margin-top: .75rem; border-top: 1px solid #315267; color: #91d9db; font-size: .75rem; }
.channel-list { display: grid; gap: .6rem; }
.channel-list span { background: var(--teal-light); color: #066674; padding: .55rem 1rem; border-radius: 1.5rem; font-size: .8rem; font-weight: 700; }
.channel-list span + span { background: #fff4d8; color: #865b0b; }
.exchange-connector { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; color: var(--teal); font-size: 2.25rem; font-weight: 700; }
.exchange-connector > span + span { color: #a96d0d; }
.diagram-caption { font-size: .85rem; margin-top: 1.5rem; }
.process-row { margin-top: 3rem; }
.process-item { display: flex; gap: 1rem; }
.step-number { font-size: .8rem; color: var(--teal); font-weight: 750; padding-top: .2rem; }
.process-item p { margin-bottom: 0; font-size: .92rem; }
.sample-section { background: white; }
.info-note { padding: 1.5rem; background: var(--teal-light); border-left: 3px solid var(--teal); border-radius: 0 .75rem .75rem 0; margin-top: 2rem; }
.info-note h3 { font-size: 1rem; }
.info-note p { font-size: .92rem; }
.code-card { border-radius: 1rem; background: #11283c; overflow: hidden; color: #d6e8f2; }
.code-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid #315267; color: #b8e8ea; font-size: .8rem; font-weight: 600; }
.code-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); }
.sample-label { color: #bdccda; margin-left: auto; font-size: .7rem; font-weight: 400; }
.code-card pre { padding: 1.4rem 1.5rem 1rem; margin: 0; font-size: .78rem; line-height: 1.7; overflow-x: auto; tab-size: 2; }
.code-footnote { color: #aec6d7; font-size: .75rem; padding: 0 1.5rem 1.25rem; margin: 0; }
.ai-card { padding: 2rem; background: white; border: 1px solid var(--line); border-radius: 1rem; }
.ai-card p { font-size: .94rem; margin-bottom: 0; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .85rem; background: var(--teal-light); color: var(--teal); font-size: 1.4rem; font-weight: 650; margin-bottom: 1.5rem; }
.notification-panel { background: var(--teal-light); padding: 2rem; border-radius: 1rem; margin-top: 2rem; }
.notification-panel .eyebrow { margin-bottom: .5rem; }
.notification-panel h3 { margin-bottom: .8rem; }
.notification-panel p:last-child { max-width: 55rem; }
.notification-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: white; background: var(--teal); font-size: 1.1rem; font-weight: 750; }
.contact-section { padding: 0 0 5rem; }
.contact-card { padding: 3.5rem; background: var(--navy); border-radius: 1.25rem; border-top: 5px solid var(--teal); }
.contact-card h2 { color: white; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.contact-card p:not(.eyebrow) { color: #d7e3ec; margin-bottom: 0; }
.contact-action { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.contact-action .btn { font-size: 1.05rem; }
.contact-email { color: #c9eff0; font-size: .9rem; }
.contact-email:hover { color: white; }
.site-footer { padding: 1.5rem 0; font-size: .8rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer span:first-child { color: var(--navy); font-weight: 700; }

@media (max-width: 991.98px) {
    .hero-content { padding-top: 2.5rem; padding-bottom: 4rem; }
    .exchange-diagram { grid-template-columns: minmax(0, 1fr); max-width: 38rem; margin-inline: auto; }
    .exchange-connector { flex-direction: row; height: 3.5rem; gap: 1rem; }
    .exchange-connector > span { transform: rotate(90deg); }
    .dealer-card > p:not(.eyebrow) { min-height: 0; }
    .hub-card { min-height: 13rem; }
    .contact-action { align-items: flex-start; }
}

@media (max-width: 1199.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 575.98px) {
    .container { padding-inline: 1.25rem; }
    .site-nav { padding-top: 1.5rem; }
    .nav-links { gap: 1.25rem !important; }
    .nav-links a { font-size: .8rem; }
    .hero-content { padding-top: 2rem; }
    .section-space { padding: 3.5rem 0; }
    .hero-note, .dealer-card, .hub-card, .ai-card { padding: 1.5rem; }
    .contact-card { padding: 2rem 1.5rem; }
    .notification-panel { padding: 1.5rem; }
    .code-card pre { font-size: .7rem; padding-inline: 1rem; }
    .contact-section { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
