:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eaf0f6;
  --ink: #111318;
  --muted: #566170;
  --soft: #7b8491;
  --line: #dde3eb;
  --accent: #d60000;
  --accent-dark: #aa0000;
  --code: #121722;
  --blue: #1c5f8f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(calc(100vw - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header.simple {
  position: static;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 92px;
  height: 58px;
  overflow: hidden;
}

.brand-mark img {
  width: 196px;
  max-width: none;
  transform: translate(-2px, -8px);
}

.brand-word {
  color: #111318;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.brand-word span {
  color: var(--accent);
}

.brand.small {
  gap: 12px;
}

.brand-text {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: #15171c;
  font-size: 15px;
  font-weight: 650;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.hero {
  padding: 88px 0 58px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 42%, rgba(236, 243, 249, .86) 100%),
    linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.hero-copy,
.hero-media {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  color: #07080b;
  font-size: clamp(50px, 5.8vw, 68px);
  font-weight: 850;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 820;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.subhead {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  color: #161a22;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(214, 0, 0, .22);
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--accent);
  border-color: rgba(214, 0, 0, .34);
}

dt {
  color: var(--soft);
  font-weight: 780;
}

dd {
  margin: 0;
  color: var(--ink);
}

.hero-media {
  min-height: 420px;
  overflow: hidden;
}

.workspace-scene {
  position: relative;
  min-height: 420px;
  min-width: 0;
}

.workspace-scene::before {
  content: "";
  position: absolute;
  inset: 64% 0 0 12%;
  background: linear-gradient(180deg, rgba(206, 216, 226, .5), rgba(255, 255, 255, .5));
  transform: skewX(-14deg);
  border: 1px solid rgba(170, 184, 199, .28);
}

.laptop {
  position: absolute;
  top: 38px;
  right: 0;
  width: min(620px, 100%);
}

.screen {
  aspect-ratio: 16 / 10;
  padding: 16px;
  background: var(--code);
  border: 10px solid #1a2230;
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(29, 44, 62, .24);
  overflow: hidden;
}

.screen-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.screen-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5d6878;
}

.screen-bar span:first-child {
  background: var(--accent);
}

.code-lines {
  padding: 10px 8px 0;
  color: #dbe7f3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.85;
}

.code-lines p {
  margin: 0 0 7px;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.code-red {
  color: #ff5b5b;
}

.code-blue {
  color: #72b7ff;
}

.base {
  width: 74%;
  height: 16px;
  margin: 0 auto;
  background: linear-gradient(90deg, #c8d1db, #f6f8fa 48%, #aeb9c5);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 28px rgba(29, 44, 62, .16);
}

.phone {
  position: absolute;
  left: 8px;
  bottom: 18px;
  width: 136px;
  min-height: 248px;
  padding: 12px;
  background: #111721;
  border: 4px solid #263142;
  border-radius: 22px;
  box-shadow: 0 24px 42px rgba(29, 44, 62, .24);
}

.phone-notch {
  width: 42px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #344154;
}

.phone-screen {
  display: grid;
  min-height: 194px;
  align-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #edf3f8);
  border-radius: 14px;
  text-align: center;
}

.phone-screen span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.phone-screen strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.phone-screen small {
  color: var(--muted);
  line-height: 1.35;
}

.identity-chip {
  position: absolute;
  right: 18px;
  bottom: 28px;
  display: flex;
  width: 226px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 40px rgba(29, 44, 62, .15);
  font-weight: 850;
}

.chip-mark {
  display: block;
  width: 62px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 auto;
}

.chip-mark img {
  width: 130px;
  max-width: none;
  transform: translate(-1px, -5px);
}

.chip-word {
  line-height: 1;
}

.chip-word span {
  color: var(--accent);
}

.chip-word strong {
  display: inline-block;
  margin-left: 2px;
}

.service-band {
  padding: 44px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(23, 35, 49, .06);
}

.service-item {
  min-height: 230px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.service-item:last-child {
  border-right: 0;
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--accent);
  border: 2px solid rgba(214, 0, 0, .88);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}

.service-item h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.service-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.section {
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 72px;
  align-items: start;
}

.about-section {
  background: var(--surface);
}

.red-rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

.prose p {
  margin-bottom: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.approach-section {
  background: #ffffff;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.approach-item {
  min-height: 190px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
}

.approach-item p {
  color: var(--muted);
}

.company-section {
  background: var(--surface-2);
}

.company-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 58px;
  align-items: start;
}

.company-note {
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
}

.company-list {
  margin: 0;
  padding: 8px 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 35, 49, .08);
}

.company-list div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-list div:last-child {
  border-bottom: 0;
}

.company-list dd {
  font-weight: 760;
}

.company-list a {
  color: var(--accent-dark);
}

.site-footer {
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand img {
  width: 196px;
  max-width: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 68px;
  height: 42px;
}

.footer-brand .brand-mark img {
  width: 148px;
  transform: translate(-2px, -7px);
}

.footer-brand .brand-word {
  font-size: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links span {
  color: #a7aebb;
}

.page {
  min-height: 72vh;
  padding: 72px 0 96px;
  background: var(--surface);
}

.page-content {
  max-width: 780px;
  padding: 42px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 66px);
}

.page h2 {
  margin-top: 38px;
  font-size: 27px;
}

.page p {
  color: var(--muted);
}

.updated {
  margin-bottom: 34px;
  color: var(--soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .company-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-media {
    min-height: 360px;
  }

  .workspace-scene {
    min-height: 360px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-item:nth-child(2) {
    border-right: 0;
  }

  .service-item:nth-child(1),
  .service-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100vw - 28px), var(--max));
  }

  .site-header {
    position: static;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .brand-mark {
    width: 76px;
    height: 48px;
  }

  .brand-mark img {
    width: 166px;
    transform: translate(-2px, -7px);
  }

  .brand-word {
    font-size: 26px;
  }

  .nav {
    gap: 10px 18px;
  }

  .hero,
  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: 46px;
  }

  .subhead {
    font-size: 24px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .workspace-scene {
    min-height: 314px;
  }

  .laptop {
    top: 24px;
    width: 100%;
  }

  .screen {
    border-width: 7px;
    padding: 12px;
  }

  .code-lines {
    font-size: 10px;
    line-height: 1.7;
  }

  .phone {
    display: none;
  }

  .identity-chip {
    right: 8px;
    bottom: 6px;
    width: 218px;
    padding: 10px 12px;
  }

  .identity-chip img {
    width: 108px;
  }

  .service-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .company-list {
    padding: 4px 22px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .page-content {
    padding: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
