/* selligo.io — "Signal Freight" design system */
:root {
  --ink: #0A0F1A;
  --ink-deep: #070B14;
  --deck: #121A2A;
  --amber: #FFB020;
  --amber-hover: #FFC95C;
  --amber-text: #9A6200;
  --teal: #2DD4BF;
  --steel: #A9B1C2;
  --steel-2: #8C95A8;
  --steel-3: #6B7488;
  --slate: #3A4252;
  --slate-2: #4A5263;
  --paper: #F4F4F0;
  --paper-line: #D3D5CC;
  --card-line: #DADCD4;
  --field-line: #BFC3B8;
  --white: #FFFFFF;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font-display: "Schibsted Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 8px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --header-h: 76px;
  --container: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--radius); background: var(--amber); color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.stack-16, .stack-20, .stack-24, .stack-48, .stack-56 { display: flex; flex-direction: column; }
.stack-16 { gap: 16px; } .stack-20 { gap: 20px; } .stack-24 { gap: 24px; } .stack-48 { gap: 48px; } .stack-56 { gap: 56px; }

/* Typography */
.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--white); text-wrap: balance;
}
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.025em; }
.h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.lead { max-width: 560px; font-size: 19px; line-height: 1.6; color: #C9CFDB; text-wrap: pretty; }
.body-lg { font-size: 17px; line-height: 1.65; color: var(--slate); text-wrap: pretty; }
.muted { color: var(--steel); }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--amber); }
.eyebrow--dark { color: var(--amber-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; border-radius: var(--radius-md); font-size: 16px; }
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-hover); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,0.24); color: var(--white); font-weight: 500; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn--outline-accent { align-self: flex-start; border-color: rgba(255,176,32,0.6); color: var(--amber); }
.btn--outline-accent:hover { background: rgba(255,176,32,0.1); color: var(--amber-hover); }
.btn--light { background: var(--white); border-color: var(--field-line); color: var(--ink); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--light-strong { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn--light-strong:hover { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--deck); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; margin-bottom: calc(var(--header-h) * -1);
  background: rgba(10,15,26,0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand__word span { color: var(--steel-2); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { color: #C9CFDB; font-size: 15px; font-weight: 500; padding: 10px 4px; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--white); border-bottom-color: var(--amber); }
.nav__menu-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.2); background: transparent; color: var(--white); cursor: pointer;
}
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 8px var(--gutter) 24px;
    background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 14px 0; }
  .nav__menu-cta { display: inline-flex; margin-top: 8px; }
}

/* Sections — each fills the viewport */
.section {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; scroll-margin-top: 0;
}
.section > .container { padding-top: 128px; padding-bottom: 96px; }
.section--dark { background-color: var(--ink); border-top: 1px solid rgba(255,255,255,0.06); }
.section--dark .h2 { color: var(--white); }
.section--light { background: var(--paper); }
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head__main { max-width: 760px; }
.section-head__aside { max-width: 400px; font-size: 17px; line-height: 1.6; }
.section-head--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; align-items: end; }

/* Hero */
.hero { overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: blur(4px) saturate(0.9); }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,15,26,0.96) 0%, rgba(10,15,26,0.86) 42%, rgba(10,15,26,0.55) 100%); }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(180deg, rgba(10,15,26,0) 0%, var(--ink) 100%); }
.hero > .container { position: relative; padding-top: 140px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; } }
.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__protocols { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--amber); }
.hero__protocols span[aria-hidden] { color: #4B5468; }

.feed {
  min-width: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(13,19,32,0.78); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
}
.feed__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.feed__title { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; font-size: 14px; }
.feed__note { font-size: 12px; color: var(--steel-2); }
.feed__list { font-size: 13px; }
.feed__list li { display: grid; grid-template-columns: 76px 92px minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.feed__t { color: var(--steel-3); }
.feed__type { color: var(--white); font-weight: 500; }
.feed__route { color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__foot { padding: 14px 20px; font-size: 13px; color: var(--steel-2); }
.status { text-align: right; }
.status--ok { color: var(--teal); }
.status--retry { color: var(--amber); }
@media (max-width: 520px) {
  .feed__list li { grid-template-columns: 84px minmax(0, 1fr) 52px; }
  .feed__t { display: none; }
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,212,191,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(45,212,191,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}

/* Use cases */
.cases { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.cases__tabs { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tab {
  display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 14px 18px;
  border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03); color: #E4E7EE;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.tab:hover { border-color: rgba(255,255,255,0.32); }
@media (max-width: 700px) {
  .cases__tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .cases__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; max-width: 260px; scroll-snap-align: start; }
}
@media (max-width: 480px) { :root { --gutter: 20px; } }
.tab__num { font-size: 12px; font-weight: 400; color: var(--steel-2); }
.tab[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tab[aria-selected="true"] .tab__num { color: var(--ink); }
.cases__panels { flex: 999 1 560px; min-width: 0; display: flex; }
.panel {
  flex: 1; display: flex; flex-direction: column; gap: 28px; padding: 40px;
  border-radius: var(--radius-xl); background: var(--paper); color: var(--ink);
}
.panel[hidden] { display: none; }
.panel__formats { font-size: 13px; color: var(--slate-2); margin-bottom: -14px; }
.panel__lead { max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--slate); }
@media (max-width: 600px) { .panel { padding: 28px 22px; } }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.flow__node {
  flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--card-line);
  font-weight: 600; font-size: 15px; line-height: 1.35;
}
.flow__node--hub { background: var(--ink); border-color: var(--ink); color: var(--white); }
.flow__label { font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: #5A6273; }
.flow__node--hub .flow__label { color: var(--amber); }
.flow__arrow { flex: none; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; counter-reset: pt; }
.points li {
  counter-increment: pt; display: flex; flex-direction: column; gap: 12px; padding-top: 18px;
  border-top: 2px solid var(--ink); font-size: 15px; line-height: 1.55; color: #2A3140;
}
.points li::before { content: "0" counter(pt); font-family: var(--font-mono); font-size: 12px; color: var(--amber-text); }

/* Integrations */
.groups {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: var(--radius-lg); overflow: hidden;
}
.group { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--paper); }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group__n { font-size: 12px; color: #5A6273; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
  border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--card-line);
  font-size: 14px; font-weight: 500; color: #1A2030;
}
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 32px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white);
}
.callout p { max-width: 820px; font-size: 18px; line-height: 1.5; }
.callout strong { color: var(--amber); font-weight: 600; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.step {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border-radius: var(--radius-lg); background: var(--deck); border: 1px solid rgba(255,255,255,0.08);
}
.step .h4 { color: var(--white); font-size: 21px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--steel); }
.step__num { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--amber); }
.benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px;
  padding-top: 40px; border-top: 1px solid var(--line-dark);
}
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit svg { flex: none; margin-top: 2px; fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit strong { display: block; margin-bottom: 6px; font-weight: 600; font-size: 16px; color: var(--white); }
.benefit p { font-size: 15px; line-height: 1.55; color: var(--steel); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact__intro { flex: 1 1 380px; min-width: 0; }
.contact__channels { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--paper-line); }
.contact__link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 17px; }
.contact__link:hover { color: var(--slate); }
.contact__link svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.form {
  flex: 1.3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 40px;
  border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--card-line);
}
@media (max-width: 600px) { .form { padding: 28px 20px; } }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field__opt { font-weight: 400; color: #5A6273; }
.field input, .field textarea {
  min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--field-line);
  font: inherit; font-size: 16px; color: var(--ink); background: #FAFAF8;
}
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent label { font-size: 14px; line-height: 1.55; color: #2A3140; }
.form__legal { font-size: 13px; line-height: 1.6; color: var(--slate-2); }
.form__legal a { color: var(--ink); text-decoration: underline; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 15px; font-weight: 500; }
.form__status.is-ok { color: #0F6B5E; }
.form__status.is-error { color: #B42318; }
.form-banner { margin-bottom: 0; padding: 14px 18px; border-radius: var(--radius); background: #E3F5F1; color: #0F6B5E; font-weight: 500; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--steel); border-top: 1px solid rgba(255,255,255,0.06); }
.site-footer > .container { padding-top: 72px; padding-bottom: 40px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer__brand { flex: 1 1 300px; max-width: 380px; }
.footer__brand p { font-size: 15px; line-height: 1.6; }
.footer__col { flex: 0 1 180px; display: flex; flex-direction: column; gap: 14px; }
.footer__col--wide { flex-basis: 300px; }
.footer__title { font-size: 12px; letter-spacing: 0.08em; color: var(--steel-3); }
.footer__col a, .footer__btn { color: var(--steel); font-size: 14px; line-height: 1.4; }
.footer__col a:hover, .footer__btn:hover { color: var(--white); }
.footer__btn { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; line-height: 1.6; color: var(--steel-2);
}
.footer__bottom p:first-child { max-width: 860px; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 24px;
  border-radius: var(--radius-lg); background: var(--white); color: var(--ink);
  border: 1px solid var(--card-line); box-shadow: 0 24px 60px -12px rgba(0,0,0,0.45);
}
.cookie[hidden] { display: none; }
.cookie__body { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: #2A3140; }
.cookie__title { font-weight: 600; color: var(--ink); }
.cookie__body a { color: var(--ink); text-decoration: underline; }
.cookie__prefs { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.cookie__opt input { width: 18px; height: 18px; accent-color: var(--ink); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Legal / subpages */
.page { min-height: 100vh; background: var(--paper); }
.page > .container { padding-top: 140px; padding-bottom: 96px; max-width: 880px; }
.page__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--slate); font-weight: 500; }
.page__back:hover { color: var(--ink); }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.7; color: #2A3140; }
.prose h2 { margin-top: 20px; font-family: var(--font-display); font-size: 24px; letter-spacing: -0.015em; color: var(--ink); }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: var(--ink); text-decoration: underline; }
.prose .todo { padding: 14px 18px; border-radius: var(--radius); background: #FFF4DC; border: 1px solid #F2D49B; color: #5E3D00; font-size: 14px; }
.prose .prose-ol { list-style: decimal; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .todo { display: flex; flex-direction: column; gap: 6px; }
.prose .todo ul { gap: 4px; }
.prose code { font-family: var(--font-mono); font-size: 14px; background: #E9EAE4; padding: 1px 6px; border-radius: 4px; }
