:root {
  --navy: #14213d;
  --navy-deep: #0e182e;
  --navy-line: #2c3b60;
  --blue: #2563c9;
  --blue-light: #5b8fe6;
  --blue-tint: #eaf0fb;
  --yellow: #f2b632;
  --yellow-hover: #ffc54a;
  --red: #c2410c;
  --red-tint: #fdeee6;
  --amber-tint: #fdf4dc;
  --amber: #9a6a00;
  --green: #1d7a4a;
  --green-tint: #e5f4ec;
  --text: #1c2540;
  --muted: #56617b;
  --on-navy: #c7d0e4;
  --on-navy-muted: #93a3c6;
  --line: #e1e5ec;
  --surface: #ffffff;
  --surface-tint: #f4f6f9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 8px 24px rgba(20, 33, 61, 0.06);
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 3vw, 2.25rem);
  --step-4: clamp(2.25rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-underline-offset: 3px; }

a:focus-visible, .button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip-link { position: absolute; left: 12px; top: -48px; padding: 8px 14px; background: var(--yellow); color: var(--navy); font-weight: 700; border-radius: 6px; z-index: 20; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { display: flex; flex-direction: column; font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: var(--navy); }
.brand__suffix { margin-top: 4px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.26em; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__link { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav__link:hover { color: var(--blue); }
.site-nav__cta { padding: 9px 18px; border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav__cta:hover { background: var(--blue); }

.hero { background: var(--navy); color: var(--on-navy); padding-block: clamp(56px, 9vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__place { margin-bottom: 18px; font-size: 0.95rem; font-weight: 600; color: var(--yellow); }
.hero__title { font-size: var(--step-4); color: #fff; font-weight: 750; margin-bottom: 22px; }
.hero__lead { max-width: 56ch; font-size: var(--step-1); color: var(--on-navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 8px; font-weight: 650; text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease; }
.button--primary { background: var(--yellow); color: var(--navy); }
.button--primary:hover { background: var(--yellow-hover); }
.button--ghost { border: 1px solid var(--navy-line); color: #fff; }
.button--ghost:hover { border-color: var(--on-navy-muted); }

.delivery { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius); padding: 28px 28px 26px; }
.delivery__title { margin-bottom: 22px; font-size: var(--step-1); font-weight: 650; color: #fff; }
.delivery__steps { list-style: none; margin: 0; padding: 0; }
.delivery__step { position: relative; display: grid; gap: 2px; padding: 0 0 22px 34px; }
.delivery__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 4px var(--navy-deep);
  z-index: 1;
}
.delivery__step::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 2px;
  height: 100%;
  background: var(--navy-line);
}
.delivery__step--final { padding-bottom: 0; }
.delivery__step--final::before { background: var(--yellow); }
.delivery__step--final::after { display: none; }
.delivery__name { font-family: var(--font-mono); font-weight: 700; color: #fff; }
.delivery__step--final .delivery__name { color: var(--yellow); }
.delivery__text { font-size: 0.95rem; color: var(--on-navy-muted); }

.section { padding-block: clamp(64px, 9vw, 104px); }
.section--tinted { background: var(--surface-tint); }
.section__header { margin-bottom: 36px; }
.section__title { font-size: var(--step-3); margin-bottom: 10px; }
.section__intro { color: var(--muted); font-size: var(--step-1); margin: 0; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.product + .product { margin-top: 24px; }
.product--featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; box-shadow: var(--shadow); }
.product__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.product__name { font-size: var(--step-2); }
.product__summary { max-width: 62ch; }

.product--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.product__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contribution { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface-tint); }
.contribution__title { margin: 0 0 14px; font-size: var(--step-1); color: var(--navy); }
.contribution .checklist { margin: 0; }

.badge { padding: 3px 11px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: 0.8rem; font-weight: 650; }
.badge--live { background: var(--green-tint); color: var(--green); }

.checklist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.stack { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }

.arrow-link { font-weight: 650; text-decoration: none; }
.arrow-link::after { content: " →"; }
.arrow-link:hover { text-decoration: underline; }

.preview { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.preview__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; font-size: 0.9rem; font-weight: 600; }
.preview__tag { font-size: 0.72rem; font-weight: 600; color: var(--on-navy-muted); }
.preview__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.preview__table th { padding: 10px 16px; text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--muted); background: var(--surface-tint); border-bottom: 1px solid var(--line); }
.preview__table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.preview__table tr:last-child td { border-bottom: 0; }
.plate { font-family: var(--font-mono); font-weight: 700; color: var(--navy); white-space: nowrap; }
.due { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.due--urgent { background: var(--red-tint); color: var(--red); }
.due--soon { background: var(--amber-tint); color: var(--amber); }
.due--ok { background: var(--green-tint); color: var(--green); }

.pitch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.pitch__item { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface-tint); }
.pitch__item:last-child { background: var(--blue-tint); }
.pitch__title { font-size: var(--step-1); margin-bottom: 10px; }
.pitch__item p { margin: 0; }

.model { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--navy); color: var(--on-navy); }
.model__title { color: #fff; font-size: var(--step-2); margin-bottom: 12px; }
.model__intro p { margin: 0; max-width: 60ch; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.roadmap__stage { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.roadmap__stage--done { border-top: 3px solid var(--green); }
.roadmap__stage--now { border-top: 3px solid var(--yellow); }
.roadmap__stage:not(.roadmap__stage--done):not(.roadmap__stage--now) { border-top: 3px solid var(--blue-light); }
.roadmap__title { font-size: var(--step-1); margin-bottom: 12px; }
.roadmap__list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }

.arch { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.arch__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 0.8fr); gap: 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.arch__row:last-child { border-bottom: 0; }
.arch__row--head { padding-block: 12px; background: var(--navy); color: var(--on-navy-muted); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.arch__layer { font-weight: 700; color: var(--navy); }
.arch__parts { display: flex; flex-wrap: wrap; gap: 8px; }
.arch__target { font-weight: 650; color: var(--blue); }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-tint); font-size: 0.88rem; color: var(--text); }

.page-hero { background: var(--navy); padding-block: clamp(48px, 7vw, 80px); }
.page-hero__title { color: #fff; font-size: var(--step-4); margin-bottom: 14px; }
.page-hero__lead { max-width: 60ch; margin: 0; font-size: var(--step-1); color: var(--on-navy); }

.projects { display: grid; gap: 28px; }
.projects .product + .product { margin-top: 0; }

.work-teaser { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-teaser__item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.work-teaser__name { font-size: var(--step-1); margin-bottom: 6px; }
.work-teaser__text { margin: 0; color: var(--muted); }

.site-nav__link[aria-current="page"] { color: var(--blue); }

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.service__name { font-size: var(--step-1); margin-bottom: 8px; }
.service__text { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.split__main p { max-width: 62ch; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.facts--inverse { border-color: var(--navy-line); }
.facts--inverse .facts__row { border-color: var(--navy-line); }
.facts--inverse dt { color: var(--on-navy-muted); }
.facts--inverse dd { color: #fff; }
.facts--compact .facts__row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-block: 11px; font-size: 0.95rem; }
.product__body > .facts { margin-bottom: 16px; }

.contact { background: var(--navy); color: var(--on-navy); padding-block: clamp(64px, 9vw, 104px); }
.contact__title { font-size: var(--step-3); color: #fff; margin-bottom: 14px; }
.contact__text { font-size: var(--step-1); }
.contact__email { display: inline-block; margin-top: 8px; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; color: var(--yellow); overflow-wrap: anywhere; }
.contact__email:hover { color: var(--yellow-hover); }

.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 22px; font-size: 0.88rem; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 900px) {
  .hero__grid, .product--featured, .product--split, .split, .model, .pitch { grid-template-columns: minmax(0, 1fr); }
  .roadmap, .work-teaser { grid-template-columns: minmax(0, 1fr); }
  .arch__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .arch__row--head { display: none; }
  .arch__target::before { content: "AWS: "; color: var(--muted); font-weight: 500; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav__link { display: none; }
}

@media (max-width: 560px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .facts__row, .facts--compact .facts__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .preview__table th, .preview__table td { padding-inline: 12px; }
  .delivery { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
