/* Altivia brand: blue #0080c3, grey #90a4ae, ink #212121 (from the Altivia logo). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --surface: #ffffff;
  --border: #e3e9ee;
  --text: #212121;
  --muted: #5d6b73;
  --grey: #90a4ae;
  --blue: #0080c3;
  --blue-ink: #006aa3;
  --blue-soft: #e6f3fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1217;
    --bg-soft: #121a21;
    --surface: #16202a;
    --border: #243240;
    --text: #eef3f6;
    --muted: #a3b2bb;
    --blue: #2e9fdc;
    --blue-ink: #5cb8ea;
    --blue-soft: #12293a;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Helvetica,
    sans-serif;
}

a {
  color: var(--blue-ink);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  height: 34px;
  width: auto;
}

.logo span {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.nav a.button {
  color: #fff;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
}

.button:hover {
  filter: brightness(1.08);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav .button {
  padding: 9px 18px;
  font-size: 15px;
}

/* Hero */

.hero {
  padding: 88px 0 72px;
  background: radial-gradient(ellipse 60% 70% at 85% 0%, var(--blue-soft), transparent 70%), var(--bg);
}

.eyebrow {
  color: var(--blue-ink);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 13em;
}

h1 .blue {
  color: var(--blue);
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 36em;
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Sections */

section {
  padding: 80px 0;
}

section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 38em;
  margin: 0 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}

.card h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 14px 0 6px;
}

.card.wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border-color: var(--blue);
  background: linear-gradient(120deg, var(--blue-soft), var(--surface) 70%);
}

.card.wide .icon {
  flex: none;
  width: 54px;
  height: 54px;
}

.card.wide h3 {
  margin-top: 4px;
  font-size: 22px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Process */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--blue);
  padding-top: 18px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--blue-ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.steps h3 {
  font-size: 20px;
  margin: 6px 0 6px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* Work */

.work {
  display: flex;
  flex-direction: column;
}

.work .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.work .stack {
  margin-top: 16px;
  color: var(--grey);
  font-size: 14px;
  font-weight: 600;
}

.work .more {
  margin-top: 16px;
  font-weight: 700;
  text-decoration: none;
}

.work img.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-top: 14px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.details {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
}

.details dt {
  color: var(--muted);
  font-weight: 600;
}

.details dd {
  margin: 0;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer a {
  color: var(--muted);
}

@media (max-width: 720px) {
  .nav a:not(.button) {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  section {
    padding: 56px 0;
  }

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

  .card.wide {
    flex-direction: column;
    gap: 0;
  }

  .card.wide h3 {
    margin-top: 14px;
  }
}
