:root {
  color-scheme: dark;
  --ink: #f4f3ef;
  --muted: #b9bab7;
  --surface: #0b0d0e;
  --surface-soft: #121516;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #35c4d6;
  --signal: #d6ad32;
  --page: min(1180px, calc(100vw - 3rem));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Poppins", Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: min(900px, 100svh);
  align-items: center;
  overflow: hidden;
  background: #17191a url('../images/hero.jpg') center / cover no-repeat;
}

.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, .58) 0%, rgba(5, 7, 8, .25) 48%, rgba(5, 7, 8, .03) 100%),
    linear-gradient(0deg, rgba(5, 7, 8, .35) 0%, transparent 30%);
}

.hero__content {
  width: var(--page);
  margin: 0 auto;
  padding: 8rem 0 10rem;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1000px;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero__intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
  color: #dededb;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.button {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  padding: .9rem 1.15rem;
  border: 1px solid var(--accent);
  color: #111;
  background: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.button:hover, .button:focus-visible {
  color: var(--accent);
  background: transparent;
}

.hero__note {
  position: absolute;
  right: max(1.5rem, calc((100vw - 1180px) / 2));
  bottom: 2rem;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.services {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.services__heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

h2 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.services article {
  min-height: 270px;
  padding: 1.5rem 2rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.services article + article {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.services article span {
  color: var(--signal);
  font-size: .72rem;
}

.services h3 {
  margin: 5rem 0 .8rem;
  font-size: 1.35rem;
}

.services article p {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: .94rem;
}

.use-cases {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.use-cases__intro {
  max-width: 620px;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.use-cases ul {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-cases li {
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  color: #d9dad7;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.contact {
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100vw - 1180px) / 2));
  color: #111;
  background: var(--accent);
}

.contact .eyebrow { color: #111; }
.contact h2 { max-width: 900px; margin-bottom: 1.5rem; }
.contact > p:not(.eyebrow) { max-width: 620px; }

.text-link {
  display: inline-flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  width: var(--page);
  min-height: 110px;
  margin: 0 auto;
  color: #929592;
  font-size: .72rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }
.site-footer__brand { color: var(--ink); font-size: .82rem; font-weight: 700; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer p { margin: 0; text-align: right; }

.legal-page { background: var(--surface-soft); }
.legal {
  width: min(760px, calc(100vw - 3rem));
  min-height: calc(100svh - 110px);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.back-link { color: var(--accent); font-size: .8rem; font-weight: 700; text-decoration: none; }
.legal h1 { margin: 3rem 0 2.5rem; font-size: clamp(2.7rem, 7vw, 5rem); }
.legal h2 { margin: 3rem 0 1rem; font-size: 1.35rem; letter-spacing: -.02em; }
.legal p { color: #c4c5c2; }
.legal a:not(.back-link) { text-underline-offset: .2em; }

@media (max-width: 760px) {
  :root { --page: calc(100vw - 2rem); }
  .hero__content { padding: 6rem 0 9rem; }
  .hero__shade { background: linear-gradient(90deg, rgba(5, 7, 8, .62), rgba(5, 7, 8, .16)); }
  .hero__note { right: 1rem; bottom: 1.25rem; left: 1rem; }
  .services__heading, .services__grid { grid-template-columns: 1fr; }
  .services article { min-height: 220px; padding: 1.5rem 0; }
  .services article + article { padding-left: 0; border-left: 0; }
  .services h3 { margin-top: 3.5rem; }
  .use-cases { grid-template-columns: 1fr; }
  .use-cases ul { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; gap: .75rem; padding: 2rem 0; }
  .site-footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
