:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --text: #0b0b0c;
  --muted: #5f6368;
  --line: #e6e6e3;
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --radius: 14px;
  --wrap: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-alt: #121214;
    --text: #f2f2f0;
    --muted: #9a9ca1;
    --line: #232326;
    --accent: #6b8bff;
    --accent-ink: #0b0b0c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.muted { color: var(--muted); }
.lead { font-size: clamp(19px, 1.5vw, 22px); color: var(--muted); max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--text);
  transition: opacity .2s, background .2s, color .2s;
}
.btn:hover { opacity: .85; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); opacity: 1; }
.btn--small { padding: 8px 16px; font-size: 14px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.14em; font-size: 16px; }
.logo__mark { width: 28px; height: 28px; display: block; flex: none; }
.logo__bg { fill: var(--text); }
.logo__y { fill: var(--bg); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: clamp(96px, 11vw, 160px) 0 clamp(88px, 10vw, 144px); }
.hero h1 { font-size: clamp(40px, 6vw, 96px); max-width: 1180px; margin-bottom: 28px; letter-spacing: -0.035em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Sections */
.section { padding: clamp(88px, 8vw, 128px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 48px; }
.section__head h2, .contact h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }

.num { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }

/* Services */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service__title { font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; letter-spacing: -0.01em; transition: color .2s; }
.service summary:hover .service__title { color: var(--accent); }

.plus { position: relative; width: 16px; height: 16px; justify-self: end; }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s;
}
.plus::after { transform: rotate(90deg); }
.service[open] .plus::after { transform: rotate(0deg); }

.service p, .service ul { margin-left: 64px; }
.service p { color: var(--muted); margin-bottom: 18px; max-width: 640px; }
.service ul {
  list-style: none;
  padding: 0 0 30px;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 24px;
  font-size: 15px;
}
.service li::before { content: "—"; color: var(--accent); margin-right: 10px; }

/* Process */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps li { padding-top: 24px; border-top: 1px solid var(--text); }
.steps h3 { font-size: 20px; margin: 12px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Technologies */
.stack { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.stack div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stack dt { font-weight: 500; }
.stack dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Industries */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 15px;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.about .section__head { margin-bottom: 0; }
.about__body p { font-size: 19px; margin-bottom: 20px; }
.about__body p:last-child { color: var(--muted); }

/* Contact */
.contact { padding: 120px 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 420px); gap: 16px; margin-top: 48px; }
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.contact__card:hover { border-color: var(--text); transform: translateY(-2px); }
.contact__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact__value { font-size: 19px; font-weight: 500; word-break: break-word; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a:hover { color: var(--text); }


/* Legal pages */
.nav--static { display: flex; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.legal__updated { font-size: 15px; margin-bottom: 48px; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 22px; margin: 44px 0 14px; }
.legal__body p, .legal__body li { color: var(--muted); }
.legal__body p + p, .legal__body ul + p { margin-top: 14px; }
.legal__body ul { padding-left: 20px; margin: 14px 0 0; }
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body a, .footer a[href="privacy.html"] { text-decoration: underline; text-underline-offset: 3px; }
.legal__body a { color: var(--text); }

/* Wide screens: use the extra width */
@media (min-width: 1100px) {
  .services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 72px;
    align-items: start;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .service { border-top: 1px solid var(--line); border-bottom: 0; }
  .service ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; align-items: end; }
  .section__head .eyebrow { grid-column: 1 / -1; }
  .section__head h2 { margin-bottom: 0; }
  .section__head .muted { justify-self: start; }
  .about .section__head { display: block; }
  .steps { gap: 48px; }
}

@media (min-width: 1300px) {
  .stack { grid-template-columns: repeat(3, 1fr); }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
}

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stack { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open, .nav--static { display: flex; }
  .nav--static { position: static; padding: 0; border: 0; background: none; }
  .nav--static a:not(.btn) { width: auto; padding: 0; font-size: 15px; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; font-size: 17px; color: var(--text); }
  .nav .btn { margin-top: 12px; }

  .hero { padding: 72px 0 80px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .service summary { grid-template-columns: 36px 1fr 20px; gap: 12px; padding: 22px 0; }
  .service p, .service ul { margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
  .contact { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
