:root {
  color-scheme: light;
  --paper: #f4f7f9;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #596575;
  --line: #dde4ea;
  --blue: #046bd2;
  --body-font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display-font: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --data-font: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; }
svg, img { display: block; }
:is(a, button, summary):focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
::selection { background: #c9e3fb; color: #123459; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 12px 20px; border-radius: 6px; background: var(--ink); color: white; font-size: 14px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner, .main-content, .footer-inner { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 19px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 91px; height: 30px; }
.brand-divider { width: 1px; height: 25px; background: #d1d9e1; }
.brand-name { display: flex; align-items: baseline; font-family: var(--display-font); font-size: 28px; font-weight: 600; letter-spacing: -.8px; }
.brand-dot { width: 5px; height: 5px; margin-left: 3px; background: var(--blue); border-radius: 1px; }
.header-caption { color: var(--muted); font-size: 13px; padding-left: 2px; }
.header-link { margin-left: auto; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 15px; color: #365574; background: #f2f6fa; border: 1px solid #e6edf3; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 600; transition: background-color .2s; }
.header-link:hover { background: #e7f1fb; }

.main-content { padding-top: 59px; padding-bottom: 65px; flex: 1; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 56px; }
.eyebrow { margin: 0 0 19px; display: flex; align-items: center; gap: 9px; color: #4e6176; font-size: 11px; font-weight: 650; letter-spacing: .16em; }
.eyebrow > span { width: 17px; height: 2px; background: var(--blue); }
h1 { margin: 0; font-family: var(--display-font); font-size: clamp(32px, 3.45vw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -1.35px; }
h1 > span { color: var(--blue); }
.intro-description { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hub-map { position: relative; flex: 0 0 280px; height: 190px; margin: 7px 13px 0 0; }
.hub-connections { position: absolute; width: 280px; height: 170px; top: 0; left: 0; color: #cad5df; }
.hub-node { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid; border-radius: 10px; box-shadow: 0 4px 10px #17203305; }
.hub-node-main { width: 65px; height: 65px; top: 53px; left: 23px; border: 1px solid #cbd9e7; border-radius: 15px; color: var(--blue); background: white; box-shadow: 0 0 0 8px #eaf0f5, 0 6px 14px #253b5010; }
.hub-node-workflow { top: 12px; left: 205px; color: #046bd2; background: #edf5ff; border-color: #cee0f6; }
.hub-node-cars { top: 65px; left: 205px; color: #95601f; background: #faf4ea; border-color: #e5d9c8; }
.hub-node-transmarket { top: 118px; left: 205px; color: #26775f; background: #ecf6f1; border-color: #cddfd6; }
.hub-map-label { position: absolute; bottom: 0; left: 46px; color: var(--muted); font-family: var(--data-font); font-size: 9px; letter-spacing: .14em; }

.applications { scroll-margin-top: 30px; }
.applications:focus { outline: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading h2 { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 16px; font-weight: 650; }
.app-count { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #dce4ec; border-radius: 6px; background: #edf1f5; color: #5e6c7d; font-family: var(--data-font); font-size: 11px; font-weight: 400; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.app-card { --accent: var(--blue); --tint: #eef5fc; --edge: #d6e4f2; display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-decoration: none; border: 1px solid #dce3ea; border-radius: 13px; background: var(--surface); box-shadow: 0 2px 4px #17203303, 0 6px 18px #17203302; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.app-cars { --accent: #95601f; --tint: #f8f4ed; --edge: #e6dccb; }
.app-transmarket { --accent: #26775f; --tint: #edf6f1; --edge: #cee3d8; }
.card-visual { position: relative; height: 190px; overflow: hidden; flex-shrink: 0; color: var(--accent); background: var(--tint); border-bottom: 1px solid var(--edge); }
.visual-label { position: absolute; z-index: 1; left: 23px; top: 21px; font-size: 9px; font-weight: 650; letter-spacing: .12em; }
.visual-corner { position: absolute; right: 19px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--edge); border-radius: 50%; }
.app-illustration { position: absolute; width: 300px; max-width: 95%; height: 150px; bottom: -1px; left: 50%; transform: translateX(-50%); }
.illustration-guide { opacity: .14; }
.illustration-paper { fill: #fff; stroke: var(--edge); stroke-width: 1.2; }
.illustration-float { filter: drop-shadow(0 4px 5px #1720330d); transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.card-content { flex: 1; display: flex; flex-direction: column; padding: 26px 25px 22px; }
.card-category { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 600; }
.card-content h3 { margin: 0; font-family: var(--display-font); font-size: 27px; font-weight: 650; letter-spacing: -.75px; line-height: 1.3; }
.card-content h3 > span { font-weight: 400; }
.card-description { margin: 13px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 8px; border-top: 1px solid #e9edf1; padding-top: 18px; }
.app-domain { color: #6a7686; font-family: var(--data-font); font-size: 10px; letter-spacing: -.2px; }
.card-action { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 650; white-space: nowrap; }
.card-action svg { flex-shrink: 0; transition: transform .25s var(--ease); }
.app-card:focus-visible { outline-color: var(--accent); }
@media (hover: hover) {
  .app-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 12px 28px #1720330d; }
  .app-card:hover .card-action svg { transform: translateX(4px); }
  .app-card:hover .illustration-float { transform: translateY(-3px); }
}
.access-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 23px; color: var(--muted); }
.access-note p { margin: 0; font-size: 11px; line-height: 1.6; }
.access-note-copy { display: flex; align-items: center; gap: 9px; }
.access-note-copy svg { color: #7b8c9d; flex-shrink: 0; }
#new-tab-note { display: flex; align-items: center; gap: 7px; }
#new-tab-note svg { flex-shrink: 0; }

.install-panel { margin-top: 32px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.install-icon { border-radius: 11px; }
.install-copy h2 { margin: 0; font-size: 15px; font-weight: 650; }
.install-copy p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.install-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 16px; border: 1px solid var(--blue); border-radius: 7px; color: white; background: var(--blue); font: 600 12px var(--body-font); cursor: pointer; transition: background-color .2s; }
.install-button:hover { background: #035eba; }
.install-button:disabled { opacity: .7; cursor: wait; }
.install-help { color: var(--muted); font-size: 12px; line-height: 1.7; }
.install-help summary { min-height: 44px; padding: 12px 4px; color: var(--blue); font-weight: 600; cursor: pointer; }
.install-help[open] { grid-column: 2 / -1; }
.install-help p { max-width: 700px; margin: 0 0 10px; }
.install-feedback { grid-column: 2 / -1; margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.offline-notice { margin: 0 0 28px; padding: 12px 16px; border: 1px solid #e6dccb; border-radius: 7px; background: #f8f4ed; color: #785020; font-size: 13px; line-height: 1.6; }
@media (display-mode: standalone) {
  .install-panel { display: none; }
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 90px; display: flex; align-items: center; gap: 27px; }
.footer-inner img { width: 139px; height: auto; opacity: .64; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 11px; }
.footer-inner > span { margin-left: auto; color: var(--muted); font-family: var(--data-font); font-size: 10px; }

@media (min-width: 1600px) {
  .main-content { padding-top: 80px; padding-bottom: 80px; }
  .intro { margin-bottom: 70px; }
}
@media (max-width: 1100px) {
  .header-inner, .main-content, .footer-inner { width: calc(100% - 64px); }
  .hub-map { flex-basis: 245px; margin-right: 0; }
  .hub-connections { width: 245px; }
  .hub-node-main { left: 15px; }
  .hub-node-workflow, .hub-node-cars, .hub-node-transmarket { left: 180px; }
  .hub-map-label { left: 22px; }
  .app-grid { gap: 16px; }
  .card-content { padding-inline: 21px; }
  .card-content h3 { font-size: 25px; }
  .card-bottom { flex-direction: column; align-items: flex-start; }
  .card-action { justify-content: space-between; width: 100%; font-size: 12px; }
}
@media (max-width: 780px) {
  .main-content { padding-top: 42px; padding-bottom: 42px; }
  .intro { margin-bottom: 38px; }
  .hub-map { display: none; }
  .header-caption { display: none; }
  h1 { font-size: 38px; }
  .app-grid { grid-template-columns: 1fr; gap: 18px; }
  .app-card { flex-direction: row; }
  .card-visual { width: 36%; height: auto; min-height: 245px; border-bottom: 0; border-right: 1px solid var(--edge); }
  .visual-label { left: 16px; font-size: 8px; }
  .visual-corner { display: none; }
  .app-illustration { width: 300px; max-width: 130%; bottom: calc(50% - 85px); }
  .card-content { padding: 25px; }
  .card-description { margin-bottom: 18px; }
  .card-bottom { flex-direction: row; align-items: center; }
  .card-action { width: auto; font-size: 11px; }
  .access-note { margin-top: 23px; gap: 13px; }
  #new-tab-note { margin-left: 28px; }
}
@media (max-width: 540px) {
  .header-inner, .main-content, .footer-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 74px; gap: 16px; }
  .brand { gap: 14px; }
  .brand img { width: 76px; height: 25px; }
  .brand-name { font-size: 25px; }
  .brand-divider { height: 22px; }
  .header-link { padding: 8px 11px; font-size: 12px; gap: 7px; }
  .main-content { padding-top: 34px; }
  .intro { margin-bottom: 35px; }
  .eyebrow { margin-bottom: 16px; font-size: 10px; }
  h1 { font-size: clamp(27px, 6.7vw, 35px); letter-spacing: -.8px; line-height: 1.25; }
  .intro-description { max-width: 260px; font-size: 13px; margin-top: 15px; }
  .section-heading { margin-bottom: 15px; }
  .section-heading h2 { font-size: 14px; }
  .section-heading > span { font-size: 10px; }
  .app-card { flex-direction: column; }
  .card-visual { width: 100%; height: 155px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--edge); }
  .visual-label { left: 21px; top: 19px; font-size: 9px; }
  .visual-corner { display: grid; top: 13px; }
  .app-illustration { width: 265px; max-width: 95%; height: 132px; bottom: -11px; }
  .card-content { padding: 23px 21px 20px; }
  .card-content h3 { font-size: 27px; }
  .card-description { font-size: 13px; margin: 10px 0 19px; }
  .card-bottom { padding-top: 16px; }
  .app-domain { font-size: 10px; }
  .card-action { font-size: 11px; gap: 5px; }
  .access-note-copy { align-items: flex-start; }
  .access-note-copy svg { margin-top: 1px; }
  .access-note p { font-size: 10px; }
  .install-panel { grid-template-columns: auto 1fr; padding: 20px; gap: 13px; margin-top: 26px; }
  .install-icon { width: 42px; height: 42px; }
  .install-copy h2 { font-size: 14px; }
  .install-button, .install-help, .install-help[open], .install-feedback { grid-column: 1 / -1; }
  .install-button { width: 100%; }
  .install-help summary { padding-bottom: 0; }
  .footer-inner { min-height: 101px; flex-wrap: wrap; justify-content: space-between; align-content: center; column-gap: 15px; row-gap: 12px; }
  .footer-inner img { width: 119px; }
  .footer-inner p { order: 3; width: 100%; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
