@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #F7F8FB;
  --surface: #FFFFFF;
  --panel: #EEF3FA;
  --text: #172033;
  --muted: #526173;
  --border: #D9E1EE;
  --primary: #2454D8;
  --accent: #00A7B5;
  --warm: #A47A3A;
  --shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
  --shadow-soft: 0 8px 24px rgba(23, 32, 51, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --measure: 72rem;
  --measure-narrow: 44rem;
  --space-1: clamp(0.5rem, 0.35rem + 0.5vw, 0.75rem);
  --space-2: clamp(0.75rem, 0.55rem + 0.7vw, 1.125rem);
  --space-3: clamp(1rem, 0.8rem + 0.9vw, 1.5rem);
  --space-4: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --space-5: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --space-6: clamp(2.25rem, 1.8rem + 2.4vw, 3.75rem);
  --space-7: clamp(3rem, 2.2rem + 3vw, 5rem);
  --header-h: 4.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(36, 84, 216, 0.07), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(0, 167, 181, 0.08), transparent 28%),
    var(--bg);
  font-family: 'IBM Plex Sans', 'Noto Sans SC', system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--primary); }
button, input, textarea, select {
  font: inherit;
  letter-spacing: 0;
}
button { cursor: pointer; }
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 72%, white);
  outline-offset: 3px;
}

.site-shell,
main,
.site-footer > .inner,
.site-header > .inner {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, rgba(247, 248, 251, 0.88), white 18%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, white);
}
.site-header > .inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, var(--primary), color-mix(in srgb, var(--primary) 40%, var(--accent)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
  flex: 0 0 auto;
}
.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  align-items: center;
}
.site-nav a,
.locale-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current='page'],
.locale-toggle:hover,
.locale-toggle[aria-pressed='true'] {
  color: var(--text);
  background: white;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

main {
  padding: var(--space-5) 0 var(--space-7);
}

.docs-home,
.route-page {
  display: grid;
  gap: var(--space-6);
}
.docs-workspace,
.route-lead,
.route-section,
.route-band,
.route-support,
.docs-index-rail,
.quickstart-strip,
.guide-stack,
.reference-matrix,
.reference-index,
.catalog-grid,
.detail-grid,
.card,
.note,
.panel,
.surface {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.docs-workspace,
.route-lead,
.route-section,
.route-band,
.route-support {
  padding: var(--space-5);
}

.section-title,
h1, h2, h3,
.hero h1 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

h1, .hero h1 {
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(2.15rem, 1.65rem + 2.6vw, 4.15rem);
  line-height: 1.05;
}
h2, .section-title {
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(1.45rem, 1.15rem + 1.15vw, 2.15rem);
  line-height: 1.14;
}
h3 {
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: clamp(1.1rem, 0.96rem + 0.5vw, 1.35rem);
  line-height: 1.25;
}
p, li, dd, dt, label, small, figcaption {
  letter-spacing: 0;
}

.muted { color: var(--muted); }
.lead {
  max-width: 62ch;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
}

.docs-workspace {
  display: grid;
  gap: var(--space-4);
}
.workspace-masthead {
  display: grid;
  gap: var(--space-3);
  align-items: end;
}
.workspace-meta,
.kicker,
.label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, white);
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--border) 78%, white);
  font-size: 0.9rem;
}

.docs-index-rail,
.quickstart-strip,
.guide-stack,
.reference-matrix,
.reference-index,
.catalog-grid,
.detail-grid,
.stack,
.card-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-3);
}
.reference-matrix,
.reference-index,
.catalog-grid,
.detail-grid,
.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-2 > *, .grid-3 > *, .grid-4 > * { grid-column: 1 / -1; }

.card,
.note,
.panel,
.surface,
.summary-card,
.reference-card,
.quick-card,
.info-card,
.metric-card {
  padding: var(--space-4);
}
.card,
.reference-card,
.quick-card,
.info-card,
.summary-card {
  display: grid;
  gap: 0.75rem;
}
.card h3,
.reference-card h3,
.quick-card h3,
.info-card h3,
.summary-card h3 { margin-bottom: 0.1rem; }
.card p,
.reference-card p,
.quick-card p,
.info-card p,
.summary-card p { margin: 0; color: var(--muted); }

.reference-card,
.quick-card,
.info-card,
.summary-card,
.metric-card {
  background: linear-gradient(180deg, white, color-mix(in srgb, white 80%, var(--panel)));
}

.reference-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.tag,
.pill,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, white);
  background: color-mix(in srgb, var(--panel) 66%, white);
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-row,
.action-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.button,
button.button,
.button-secondary,
.button-ghost,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover,
button.button:hover,
input[type='submit']:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.button-secondary,
.button-ghost {
  background: white;
  color: var(--text);
  border-color: var(--border);
}
.button-ghost { background: transparent; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}
.responsive-table th,
.responsive-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.responsive-table th {
  background: color-mix(in srgb, var(--panel) 60%, white);
  font-weight: 600;
}
.responsive-table tr:last-child td { border-bottom: 0; }

.definition-list,
dl.stack {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  gap: 0.8rem 1rem;
}
.definition-list dt,
dl.stack dt {
  color: var(--muted);
  font-weight: 600;
}
.definition-list dd,
dl.stack dd { margin: 0; }

.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, var(--bg));
}
.site-footer > .inner {
  padding: var(--space-5) 0;
  display: grid;
  gap: var(--space-4);
}
.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1.3fr 1fr 1fr;
}
.footer-grid a,
.footer-grid p,
.footer-grid li { color: var(--muted); }
.footer-title {
  margin: 0 0 0.5rem;
  font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--text);
}
.footer-links {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.support-card,
.contact-card,
.process-card,
.reference-card,
.summary-card {
  position: relative;
  overflow: clip;
}
.support-card::before,
.contact-card::before,
.process-card::before,
.reference-card::before,
.summary-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--warm));
}
.support-card > *,
.contact-card > *,
.process-card > *,
.reference-card > *,
.summary-card > * { position: relative; }

.hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 48rem) {
  .workspace-masthead {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    align-items: end;
  }
  .docs-index-rail {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .docs-index-rail > * { grid-column: span 6; }
  .grid-2 > * { grid-column: span 6; }
  .grid-3 > * { grid-column: span 4; }
  .grid-4 > * { grid-column: span 3; }
  .catalog-grid > * { grid-column: span 6; }
  .detail-grid > * { grid-column: span 12; }
  .reference-matrix > * { grid-column: span 4; }
  .footer-grid { grid-template-columns: 1.2fr 0.9fr 0.9fr; }
}

@media (min-width: 68rem) {
  .docs-home,
  .route-page { gap: var(--space-7); }
  .route-lead,
  .route-section,
  .route-band,
  .route-support { padding: var(--space-6); }
  .reference-index > * { grid-column: span 4; }
  .detail-grid { grid-template-columns: 1.15fr 0.85fr; }
  .detail-grid .detail-main { grid-column: 1 / span 8; }
  .detail-grid .detail-side { grid-column: 9 / -1; }
}

@media (max-width: 47.99rem) {
  .site-header > .inner,
  .site-nav,
  .footer-grid,
  .footer-note,
  .cta-row,
  .action-row,
  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav { align-items: stretch; width: 100%; }
  .site-nav a,
  .locale-toggle { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .definition-list,
  dl.stack { grid-template-columns: 1fr; }
  .responsive-table { min-width: 36rem; }
  .docs-workspace,
  .route-lead,
  .route-section,
  .route-band,
  .route-support { padding: var(--space-4); }
}

/* runtime-stock-media-module */
.shpitto-stock-media {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.shpitto-stock-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.75rem;
}
.shpitto-stock-media figcaption {
  margin: 0;
  color: var(--muted, #52606d);
  font-size: 0.95rem;
  line-height: 1.55;
}
.shpitto-stock-media--enterprise-proof {
  max-width: 42rem;
}
.proof-strip .shpitto-stock-media--enterprise-proof {
  margin-inline: auto;
}
.proof-strip .shpitto-stock-media--enterprise-proof img {
  aspect-ratio: 5 / 3;
  border-radius: 0.5rem;
  border: 1px solid var(--line, #e0e0e0);
}
.proof-strip .shpitto-stock-media--enterprise-proof figcaption {
  max-width: 52ch;
}
.enterprise-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 68vh, 44rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.enterprise-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 27, 54, 0.78) 0%, rgba(7, 27, 54, 0.52) 42%, rgba(7, 27, 54, 0.18) 100%);
  z-index: 1;
}
.enterprise-hero .shell-inner,
.enterprise-hero .masthead-stack,
.enterprise-hero .enterprise-hero__content,
.enterprise-hero .enterprise-proof-row {
  position: relative;
  z-index: 2;
}
.enterprise-hero .enterprise-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  max-width: none;
}
.enterprise-hero .enterprise-hero__media .media-cover,
.enterprise-hero .enterprise-hero__media picture {
  width: 100%;
  height: 100%;
  display: block;
}
.enterprise-hero .enterprise-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  border: 0;
}
.enterprise-hero .enterprise-hero__content {
  max-width: 44rem;
  color: white;
}
.enterprise-hero .enterprise-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.enterprise-hero .enterprise-proof-row > * {
  backdrop-filter: blur(8px);
  background: rgba(7, 27, 54, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}
.masthead--single-column .masthead-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
}
.masthead--single-column .panel,
.masthead--single-column .proof-panel {
  max-width: 44rem;
}
.detail-layout .shpitto-stock-media,
.detail-grid .shpitto-stock-media {
  max-width: 32rem;
}
@media (max-width: 48rem) {
  .shpitto-stock-media--enterprise-proof,
  .detail-layout .shpitto-stock-media,
  .detail-grid .shpitto-stock-media {
    max-width: 100%;
  }
}
.page-title--measure {
  max-width: 20ch;
}
.proof-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.proof-figure {
  margin: 0;
  overflow: hidden;
}
.proof-figure__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.proof-figure__caption {
  padding: var(--space-4, 1rem);
  color: var(--text-subtle, #525252);
  font-size: 0.95rem;
}
.section-row--capability {
  align-items: end;
  margin-bottom: 1rem;
}
.section-row--cta {
  flex-wrap: wrap;
  align-items: center;
}
.stack--measure {
  max-width: 47.5rem;
}
.cta-surface {
  background: var(--surface);
}
.stack--section-intro {
  margin-bottom: var(--space-5);
}