:root {
  --bg: #fbfcf9;
  --bg-base: #ffffff;
  --text: #24362d;
  --muted: #8d9991;
  --accent: #3f9a53;
  --accent-web: rgba(63, 154, 83, 0.36);
  --accent-web-strong: rgba(63, 154, 83, 0.88);
  --accent-apps: rgba(56, 73, 185, 0.28);
  --accent-apps-strong: rgba(56, 73, 185, 0.82);
  --accent-systems: rgba(255, 139, 97, 0.3);
  --accent-systems-strong: rgba(255, 139, 97, 0.84);
  --hero-about-color: color-mix(in srgb, var(--text) 82%, white);
  --focus-ring: color-mix(in srgb, var(--accent) 45%, white);
  --canvas-tint: rgba(251, 252, 249, 0.58);
  --content-width: 76rem;
  --hero-safe-left: clamp(2.8rem, 8vw, 4.8rem);
  --hero-safe-right: clamp(8.8rem, 24vw, 15rem);
  --ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #07111d;
    --bg-base: #040a12;
    --text: #e7eefb;
    --muted: #8f9eb7;
    --accent: #71c8a1;
    --accent-web: rgba(113, 200, 161, 0.44);
    --accent-web-strong: rgba(144, 232, 190, 0.96);
    --accent-apps: rgba(122, 149, 255, 0.44);
    --accent-apps-strong: rgba(165, 187, 255, 0.96);
    --accent-systems: rgba(255, 164, 121, 0.42);
    --accent-systems-strong: rgba(255, 191, 160, 0.96);
    --hero-about-color: color-mix(in srgb, var(--text) 82%, #9db0d0);
    --focus-ring: color-mix(in srgb, var(--accent) 62%, white);
    --canvas-tint: rgba(12, 23, 39, 0.36);
  }
} */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Gabarito", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready {
  background: var(--bg);
}

.background-canvas-wrap {
  position: fixed;
  inset: 0;
  height: 120svh;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .background-canvas-wrap {
  opacity: 1;
}

.background-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.background-canvas-tint {
  position: absolute;
  inset: 0;
  background: var(--canvas-tint);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 0.22rem;
  border-radius: 0.4rem;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.25rem 0 5rem;
}

.corner-info {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0;
  justify-items: end;
  text-align: right;
  font-family: "Gabarito", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.04rem, 0.94rem + 0.48vw, 1.22rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .corner-info {
  opacity: 1;
}

.corner-info p,
.corner-info a {
  margin: 0;
}

.corner-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.88rem;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: opacity var(--ease), text-decoration-color var(--ease);
}

.corner-link-name {
  font-weight: 700;
}

.corner-link-web {
  text-decoration-color: var(--accent-web);
}

.corner-link-apps {
  text-decoration-color: var(--accent-apps);
}

.corner-link-systems {
  text-decoration-color: var(--accent-systems);
}

.corner-link-web:hover,
.corner-link-web:focus-visible {
  opacity: 0.82;
  text-decoration-color: var(--accent-web-strong);
}

.corner-link-apps:hover,
.corner-link-apps:focus-visible {
  opacity: 0.82;
  text-decoration-color: var(--accent-apps-strong);
}

.corner-link-systems:hover,
.corner-link-systems:focus-visible {
  transition: opacity var(--ease), text-decoration-color var(--ease);
  opacity: 0.82;
  text-decoration-color: var(--accent-systems-strong);
}

.site-header {
  min-height: 0;
  padding: 0;
}

.logo {
  position: fixed;
  top: 1.4rem;
  left: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  font-family: "Syne", "Arial Black", sans-serif;
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  opacity: 0;
}

.logo-tail {
  display: inline-block;
  min-width: 0;
  white-space: pre;
}

body.is-ready .logo {
  opacity: 1;
}

.nav-link,
.logo-item,
.stage-cta,
.hero-link {
  border: 0;
  background: transparent;
}

.logo-item,
.logo,
.hero-link {
  transition:
    transform var(--ease),
    color var(--ease),
    opacity var(--ease),
    text-decoration-color var(--ease);
}

.logo-item:hover,
.logo-item:focus-visible,
.logo:hover,
.logo:focus-visible,
.stage-cta:hover,
.stage-cta:focus-visible,
.hero-link:hover,
.hero-link:focus-visible {
  opacity: 0.72;
}

.stage {
  min-height: calc(100svh - 4rem);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
}

.stage-panel {
  width: min(100%, calc(100vw - var(--hero-safe-left) - var(--hero-safe-right) - 2rem), 54rem);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  margin-top: -10px;
  margin-inline: auto;
  opacity: 1;
  transform: translateY(0);
  animation: rise-in 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.strip-label {
  margin: 0;
  color: var(--muted);
  letter-spacing: -0.01em;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.stage h1,
.stage-title {
  margin: 0;
  line-height: 1.1;
}

.stage h1,
.stage-title {
  font-size: clamp(2.26rem, 6.35vw, 4.28rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

@media (max-width: 700px) and (orientation: portrait) {
  .stage-panel {
    width: min(100%, calc(100vw - 2rem), 35rem);
  }

  .stage h1,
  .stage-title {
    font-size: clamp(2.58rem, 10.2vw, 3.72rem);
  }
}

.hero-title {
  width: 100%;
}

.hero-about {
  max-width: 28rem;
  margin: 0;
  color: var(--hero-about-color);
  font-size: clamp(1.02rem, 1rem + 0.55vw, 1.36rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.hero-about[hidden] {
  display: none;
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-about {
    max-width: 20.5rem;
  }
}

.hero-about-links[hidden] {
  display: none;
}

.hero-about-links a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  text-decoration-color: var(--accent-web);
  font-style: italic;
  font-weight: 600;
}

.hero-about-links a:hover,
.hero-about-links a:focus-visible {
  text-decoration-color: var(--accent-web-strong);
}

.hero-line {
  text-wrap: balance;
}

.hero-line {
  display: block;
}

.hero-line + .hero-line {
  margin-top: 0.04em;
}

.hero-prefix,
.hero-punctuation {
  display: inline;
}

.hero-static {
  display: none;
}

.hero-title:has([data-type-sequence="apps"]:not(:empty)) [data-hero-static="comma"] {
  display: inline;
}

.hero-title:has([data-type-sequence="systems"]:not(:empty)) [data-hero-static="ampersand"],
.hero-title:has([data-type-sequence="systems"]:not(:empty)) [data-hero-static="period"] {
  display: inline;
}

.hero-link {
  display: inline;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  line-height: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.hero-link:active {
  opacity: 1;
  text-decoration-color: transparent;
}

.hero-insert {
  display: inline;
  color: inherit;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-link-web {
  text-decoration-color: var(--accent-web);
}

.hero-link-apps {
  text-decoration-color: var(--accent-apps);
}

.hero-link-systems {
  text-decoration-color: var(--accent-systems);
}

.hero-link-web:hover,
.hero-link-web:focus-visible,
.hero-link-web.is-active {
  text-decoration-color: var(--accent-web-strong);
}

.hero-link-apps:hover,
.hero-link-apps:focus-visible,
.hero-link-apps.is-active {
  text-decoration-color: var(--accent-apps-strong);
}

.hero-link-systems:hover,
.hero-link-systems:focus-visible,
.hero-link-systems.is-active {
  text-decoration-color: var(--accent-systems-strong);
}

.hero-link.is-selected {
  opacity: 1;
  text-decoration-color: transparent;
}

.hero-link.is-complete {
  cursor: default;
}

.hero-link.is-complete,
.hero-link.is-complete:hover,
.hero-link.is-complete:focus-visible,
.hero-link.is-selected:hover,
.hero-link.is-selected:focus-visible {
  opacity: 1;
  text-decoration-color: transparent;
}

.stage-label,
.stage-copy {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.45;
}

.stage-label {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.stage-figure {
  width: min(100%, 38rem);
  margin: 0;
}

.stage-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.stage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(63, 154, 83, 0.1);
  color: var(--accent);
}

.stage-cta.is-disabled {
  cursor: default;
  opacity: 0.6;
}

.friends-strip {
  padding-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 4vw, 2.6rem);
  padding-top: 1.25rem;
  scrollbar-width: none;
}

.logo-row::-webkit-scrollbar {
  display: none;
}

.logo-item {
  flex: 0 0 auto;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 0;
  cursor: pointer;
}

.logo-item:nth-child(1) {
  color: #3849b9;
}

.logo-item:nth-child(2) {
  color: #419f3f;
}

.logo-item:nth-child(3) {
  color: #173f57;
}

.logo-item:nth-child(4) {
  color: #ff8b61;
  font-style: italic;
}

[data-panel-trigger].is-active {
  opacity: 1;
}

@media (min-width: 860px) {
  .site-shell {
    width: min(calc(100% - 3rem), var(--content-width));
    padding-top: 2rem;
    padding-bottom: 7rem;
  }

  .logo {
    top: 2rem;
    left: 2rem;
  }

  .stage {
    min-height: calc(100svh - 4rem);
  }

  .stage-panel {
    width: min(100%, calc(100vw - var(--hero-safe-left) - var(--hero-safe-right) - 4rem), 58rem);
  }

  .corner-info {
    bottom: 2rem;
  }

  .corner-info-right {
    right: 2rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .stage {
    min-height: calc(100svh - 0.5rem);
    justify-content: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .stage-panel {
    width: min(100%, calc(100vw - var(--hero-safe-left) - var(--hero-safe-right) - 0.5rem), 52rem);
    margin-top: 0;
  }

  .stage h1,
  .stage-title {
    font-size: clamp(2.34rem, 5.9vw, 3.46rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .background-canvas-tint {
    background: var(--canvas-tint);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}