@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
}

:root {
  --slate: #1B2733;
  --chalk: #F1F3F5;
  --steel: #3E6FA3;

  --bg: var(--chalk);
  --bg-alt: #E8EBEE;
  --ink: var(--slate);
  --ink-soft: #4A5663;
  --rule: #CDD3D9;
  --link: #345E8A;
  --card: #FFFFFF;

  --hero-bg: var(--slate);
  --hero-ink: var(--chalk);
  --hero-soft: #B7C0C9;
  --hero-rule: rgba(241, 243, 245, 0.12);
  --hero-steel: #8FB0D3;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141D26;
    --bg-alt: var(--slate);
    --ink: var(--chalk);
    --ink-soft: #AEB8C2;
    --rule: #2C3946;
    --link: #8FB0D3;
    --card: #1F2C39;
  }
}
:root[data-theme="dark"] {
  --bg: #141D26;
  --bg-alt: var(--slate);
  --ink: var(--chalk);
  --ink-soft: #AEB8C2;
  --rule: #2C3946;
  --link: #8FB0D3;
  --card: #1F2C39;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.hero a:focus-visible, footer a:focus-visible, .not-found a:focus-visible { outline-color: var(--hero-steel); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* Hero */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-rule) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 45% 70% at 88% 45%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 45% 70% at 88% 45%, #000 0%, transparent 100%);
  pointer-events: none;
}
.nav {
  position: relative;
  display: flex; justify-content: flex-end; gap: 32px;
  padding-top: 28px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
}
.nav a { color: var(--hero-soft); }
.nav a:hover { color: var(--hero-ink); text-decoration: none; }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0 120px;
}
.lockup { display: block; width: 100%; max-width: 300px; }
.lockup img { display: block; width: 100%; height: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--hero-steel);
  margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 {
  font-weight: 600;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 14ch;
}
.lede { font-size: 20px; color: var(--hero-soft); max-width: 36ch; margin: 0 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--chalk); color: var(--slate); }
.btn-primary:hover { background: #FFFFFF; }
.btn-ghost { color: var(--hero-ink); border-color: rgba(241, 243, 245, 0.32); }
.btn-ghost:hover { border-color: var(--hero-ink); }
.btn svg { width: 16px; height: 16px; }

/* Sections */
section { padding: 112px 0; border-top: 1px solid var(--rule); }
section.alt { background: var(--bg-alt); }
.section-head {
  display: grid; grid-template-columns: 300px 1fr; gap: 80px;
  margin-bottom: 56px;
}
.label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1.6;
  color: var(--link);
  padding-top: 10px;
  border-top: 2px solid var(--link);
  align-self: start;
  width: max-content;
}
h2 {
  font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15;
  letter-spacing: -0.015em; margin: 0; max-width: 20ch;
}

.services {
  display: grid; grid-template-columns: 300px 1fr 1fr; gap: 0 80px;
}
.service { border-top: 1px solid var(--rule); padding-top: 28px; }
.service .num {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; letter-spacing: 0.08em;
}
.service h3 { font-size: 22px; font-weight: 600; margin: 14px 0 10px; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--ink-soft); }

.product-row { display: grid; grid-template-columns: 300px 1fr; gap: 80px; }
.product {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 40px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  transition: border-color 0.15s, transform 0.15s;
  color: var(--ink);
}
.product:hover { text-decoration: none; border-color: var(--link); }
.product-logo { width: 72px; height: 72px; border-radius: 16px; display: block; }
.product h3 { margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.product p { margin: 0; color: var(--ink-soft); }
.product .go {
  font-size: 15px; font-weight: 600; color: var(--link);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.product .go svg { width: 16px; height: 16px; transition: transform 0.15s; }
.product:hover .go svg { transform: translateX(3px); }

.contact-row { display: grid; grid-template-columns: 300px 1fr; gap: 80px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 80px; }
.contact { border-top: 1px solid var(--rule); padding-top: 24px; }
.contact .kind { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.contact-title { margin-bottom: 48px; }
.foot .copyright { margin-top: 16px; }
.contact a { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.01em; word-break: break-word; }

footer {
  background: var(--hero-bg); color: var(--hero-soft);
  font-size: 14px; line-height: 1.7;
  padding: 56px 0 64px;
}
.foot { display: grid; grid-template-columns: 300px 1fr auto; gap: 40px 80px; align-items: start; }
.foot strong { color: var(--hero-ink); font-weight: 600; }
.foot p { margin: 0; }
.foot a { color: var(--hero-soft); }
.foot a:hover { color: var(--hero-ink); }
.foot nav { display: flex; flex-direction: column; gap: 4px; text-align: right; }


@media (max-width: 960px) {
  .hero-grid, .section-head, .product-row, .contact-row { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .services .spacer { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot .foot-spacer { display: none; }
  .lockup { max-width: 200px; }
  .hero-grid { padding: 48px 0 88px; }
  section { padding: 80px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 20px; justify-content: flex-start; }
  .lockup { max-width: 160px; }
  .lede { font-size: 18px; }
  .services, .contacts { grid-template-columns: 1fr; gap: 32px; }
  .product { grid-template-columns: auto 1fr; padding: 28px; gap: 20px; }
  .product .go { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .foot nav { text-align: left; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

.not-found {
  background: var(--hero-bg); color: var(--hero-ink);
  min-height: 100vh; display: grid; align-items: center;
}
.not-found main { width: 100%; padding-top: 64px; padding-bottom: 64px; }
