/* ByteStream Technology Solutions — "Bold Signal" theme */
:root {
  --ink: #1B1A1F;
  --ink-2: #46434E;
  --ink-3: #6B6774;
  --paper: #FBF8F3;
  --paper-2: #F3EEE5;
  --line: #D9D3C7;
  --orange: #E8791D;       /* logo orange: fills, large type, buttons with dark text */
  --orange-text: #B4520F;  /* orange that passes contrast for small text on paper */
  --blue: #1A6FC4;         /* logo blue */
  --blue-light: #5DB8F0;
  --red: #E02A1F;          /* logo red */
  --dark: #1B1A1F;
  --dark-2: #2A2930;
  --on-dark: #CFCBD6;
  --radius: 4px;
  --max: 1280px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Type */
.display { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1; }
.h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-3); }
.accent { color: var(--orange); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: var(--radius); font-weight: 800; font-size: 16px; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: #F08A30; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #33313A; color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; font-size: 15px; font-weight: 600; }
.nav__links a[aria-current="page"] { color: var(--orange-text); }
.nav__toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius); width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav__links.is-open { display: flex; }
  .nav__links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .display { margin-bottom: 32px; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end; border-top: 2px solid var(--ink); padding-top: 28px; }
.hero__foot .lead { flex: 1 1 420px; max-width: 640px; }
.page-hero { padding: 64px 0 48px; border-bottom: 2px solid var(--ink); }
.page-hero .display { margin-bottom: 20px; }
.page-hero .lead { max-width: 720px; }

/* Stats band */
.stats { background: var(--blue); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 44px 0; }
.stat__num { font-size: clamp(40px, 5vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-size: 15px; font-weight: 500; margin-top: 8px; }
.footnote { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.stats .footnote { color: #E4EEF9; margin-top: 0; padding-bottom: 24px; }

/* Section head */
.section-head { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }

/* Service rows */
.rows { list-style: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row__n { font-size: 15px; font-weight: 800; color: var(--orange-text); width: 44px; flex: none; }
.row__title { flex: 1 1 340px; font-size: clamp(22px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.row__body { flex: 1 1 360px; color: var(--ink-2); }
a.row:hover .row__title { color: var(--orange-text); }

/* Cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card ul { list-style: none; margin-top: 12px; }
.card li { padding: 6px 0; border-top: 1px solid var(--paper-2); font-size: 16px; color: var(--ink-2); }
.card__n { font-size: 14px; font-weight: 800; color: var(--orange-text); margin-bottom: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tag { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: 16px; }

/* Dark band */
.dark { background: var(--dark); color: #fff; }
.dark .lead, .dark .muted { color: var(--on-dark); }
.dark .eyebrow { color: var(--orange); }
.dark .card { background: var(--dark-2); border-color: #3A3842; }
.dark .card p, .dark .card li { color: var(--on-dark); }
.dark .card li { border-top-color: #3A3842; }
.dark .footnote { color: #A9A5B2; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.metric { background: var(--dark-2); border-radius: var(--radius); padding: 26px; }
.metric__num { font-size: clamp(32px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.metric__label { margin-top: 8px; font-size: 15px; color: var(--on-dark); }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.stage { border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.stage__k { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; }
.stage__t { font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin: 6px 0 8px; }
.stage p { font-size: 15px; line-height: 1.45; }
.stage--1 { background: var(--paper-2); min-height: 180px; }
.stage--2 { background: #DCEBFA; min-height: 220px; }
.stage--3 { background: var(--blue-light); min-height: 260px; }
.stage--4 { background: var(--blue); color: #fff; min-height: 300px; }
.stage--5 { background: var(--orange); min-height: 340px; }
@media (max-width: 700px) { .stage { min-height: 0 !important; } }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--paper-2); }
th { background: var(--ink); color: #fff; font-weight: 700; }
td strong { font-weight: 800; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; list-style: none; counter-reset: s; }
.steps li { border-top: 4px solid var(--ink); padding: 20px 20px 20px 0; }
.steps li:last-child { border-top-color: var(--orange); }
.steps strong { display: block; font-size: 20px; font-weight: 800; margin-bottom: 6px; }

/* Case study */
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-stat--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.case-stat__num { font-size: clamp(30px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; color: var(--orange-text); }
.case-stat--dark .case-stat__num { color: var(--orange); }
.case-stat p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.case-stat--dark p { color: var(--on-dark); }
.bars { display: grid; gap: 14px; }
.bar__label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.bar__track { position: relative; height: 14px; background: var(--paper-2); border-radius: 2px; }
.bar__before, .bar__after { position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px; }
.bar__after { background: var(--blue); }
.bar__before { background: #9AA8BC; height: 50%; top: 25%; z-index: 1; }
.legend { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; background: var(--blue); }
.legend .before::before { background: #9AA8BC; }

/* Compare */
.compare td:first-child { font-weight: 800; }
.compare td:last-child { font-weight: 700; background: #FFF4EA; }

/* CTA */
.cta { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.cta .h2 { flex: 1 1 520px; font-size: clamp(30px, 4.2vw, 44px); }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: 14px; color: var(--ink-3); }
.form__status { font-weight: 700; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding: 56px 0 32px; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer__brand { flex: 1 1 260px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__col h2 { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.footer__col ul { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; color: var(--ink-3); }

/* Keep figures like "↓20–35%" on one line */
.stat__num, .metric__num, .case-stat__num { white-space: nowrap; }
.metric__num { font-size: clamp(28px, 3vw, 38px); }
