:root {
  --ink: #16161d;
  --ink-raised: #1d1d26;
  --ink-high: #262631;
  --line: #2e2e3a;
  --white: #f4f6fa;
  --muted: #a3a8b8;
  --faint: #737891;
  --blue: #0095ff;
  --blue-soft: rgba(0, 149, 255, 0.14);

  --display: 'Chakra Petch', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 74rem;
  --header-h: 4.25rem;
  --radius-phone: clamp(1rem, 2.4vw, 1.6rem);
  /* Cut corner from the G in the logo */
  --cut: 14px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, dl, dd, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section[id],
article[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.block {
  padding-top: clamp(4.5rem, 10vw, 7.5rem);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.section-head p {
  margin-top: 0.875rem;
  color: var(--muted);
}

/* Buttons: the cut corner echoes the logo's G */
.btn {
  display: inline-block;
  padding: 0.85em 1.4em;
  background: var(--blue);
  color: #fff;
  font: 600 0.9375rem/1 var(--body);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-small {
  padding: 0.7em 1.1em;
  font-size: 0.875rem;
  --cut: 10px;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.text-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-underline-offset: 0.25em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(22, 22, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

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

.site-header .btn {
  margin-left: auto;
}

@media (min-width: 44rem) {
  .nav-links {
    display: flex;
  }
  .site-header .btn {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  padding-top: clamp(3.5rem, 10vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(0, 149, 255, 0.18), transparent 70%),
    var(--ink);
}

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.25rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
}

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tally strong {
  font: 700 1.5rem/1 var(--display);
  color: var(--white);
  margin-right: 0.25rem;
}

.tally li:first-child strong {
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Hero reel: phone screens drifting sideways */
.reel {
  position: relative;
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reel-track {
  display: flex;
  width: max-content;
  animation: drift 80s linear infinite;
}

.reel:hover .reel-track,
.reel:focus-within .reel-track,
.reel.is-paused .reel-track {
  animation-play-state: paused;
}

.reel-set {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

.shot a {
  display: block;
  border-radius: var(--radius-phone);
}

.shot img {
  height: clamp(20rem, 50vw, 32rem);
  width: auto;
  aspect-ratio: 324 / 700;
  object-fit: cover;
  border-radius: var(--radius-phone);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  transition: transform 0.3s ease;
}

.shot a:hover img {
  transform: translateY(-6px);
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

.reel-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(22, 22, 29, 0.85);
  color: var(--white);
  cursor: pointer;
}

.reel-toggle span {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}

.reel.is-paused .reel-toggle span {
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-inline: 10px solid currentColor;
  border-inline-end: 0;
  margin-left: 3px;
}

.reel-toggle:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* Products */
.products {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (min-width: 52rem) {
  .products {
    grid-template-columns: 1fr 1fr;
  }
  .product-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1.5fr;
  }
  .product-wide .product-visual {
    order: 2;
  }
}

.product {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--ink-raised);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem) 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 100%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    color-mix(in srgb, var(--accent) 18%, var(--ink-raised));
}

.fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-bottom: -2.5rem;
}

.fan img {
  width: clamp(7.5rem, 26%, 11rem);
  aspect-ratio: 324 / 700;
  object-fit: cover;
  border-radius: var(--radius-phone);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}

.fan-3 img:nth-child(1) {
  transform: translateX(18%) rotate(-7deg) translateY(1.5rem);
}

.fan-3 img:nth-child(2) {
  position: relative;
  z-index: 1;
}

.fan-3 img:nth-child(3) {
  transform: translateX(-18%) rotate(7deg) translateY(1.5rem);
}

.fan-2 img:nth-child(1) {
  transform: translateX(8%) rotate(-5deg) translateY(1rem);
}

.fan-2 img:nth-child(2) {
  position: relative;
  z-index: 1;
  transform: translateX(-8%) rotate(4deg);
}

.product-wide .product-visual {
  place-items: end center;
}

.browser {
  width: 100%;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  background: #0d0d0d;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

.browser-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: #1a1a1a;
}

.browser-bar i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3a3a3a;
}

.product-wide .fan {
  position: absolute;
  right: clamp(0.5rem, 4%, 2rem);
  bottom: 0;
  width: auto;
  margin: 0;
}

.product-wide .fan img {
  width: clamp(6.5rem, 22vw, 10rem);
  border-radius: var(--radius-phone) var(--radius-phone) 0 0;
}

.product-wide .fan-2 img:nth-child(1) {
  display: none;
}

.product-wide .fan-2 img:nth-child(2) {
  transform: none;
}

.product-info {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.app-icon {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  object-fit: cover;
}

.product h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.1;
}

.kind {
  color: var(--faint);
  font-size: 0.875rem;
}

.status {
  margin-left: auto;
  align-self: flex-start;
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  color: var(--muted);
  background: var(--ink-high);
}

.status::before {
  content: '';
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.05em;
}

.status-live {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-awaiting {
  color: #f2b84b;
  background: rgba(242, 184, 75, 0.12);
}

.product-summary {
  color: var(--muted);
  max-width: 36rem;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}

/* Work with G22 */
.work {
  margin-top: clamp(4.5rem, 10vw, 7.5rem);
  background: var(--ink-raised);
  border-block: 1px solid var(--line);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.capabilities {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .capabilities {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capabilities li {
  padding: 1.75rem;
  background: var(--ink);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.capabilities svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--blue);
}

.capabilities h3 {
  margin-top: 1rem;
  font-size: 1.375rem;
}

.capabilities p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

.principles {
  display: grid;
  gap: 1.75rem 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

@media (min-width: 48rem) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}

.principles div {
  padding-left: 1rem;
  border-left: 2px solid var(--blue);
}

.principles dt {
  font: 600 1.125rem/1.3 var(--display);
}

.principles dd {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

/* Contact */
.contact {
  padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}

.contact h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.02;
}

.contact p {
  margin-top: 0.875rem;
  color: var(--muted);
}

.big-mail {
  display: inline-block;
  margin-top: 2rem;
  font: 600 clamp(1.75rem, 6vw, 4rem) / 1.05 var(--display);
  color: var(--blue);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid currentColor;
}

.big-mail:hover {
  color: var(--white);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-grid img {
  height: 24px;
  width: auto;
}

.footer-grid p {
  margin-top: 0.75rem;
}

.site-footer h2 {
  font-size: 0.875rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  text-decoration: none;
}

.copyright {
  margin-top: 2.5rem;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* Motion off: the reel becomes a swipeable row */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .reel-track {
    animation: none;
  }
  .reel-set[aria-hidden='true'],
  .reel-toggle {
    display: none;
  }
  .shot {
    scroll-snap-align: start;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
