:root {
  --background: #ffffff;
  --foreground: #111111;
  --surface: #f7f7f7;
  --surface-hover: #ececec;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --hero: #f7f7f7;
  --line: color-mix(in srgb, #111111 12%, transparent);
  --line-strong: color-mix(in srgb, #111111 22%, transparent);
  --font: "Inter", system-ui, sans-serif;
  --max: 64rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 70px rgb(0 0 0 / 0.14);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.public-page-motion {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  animation: page-fade 0.6s ease-out both;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--foreground);
  color: var(--background);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 12px 0;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 2rem 1rem 4rem;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  margin-top: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  font-size: 1.875rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  padding-top: 2rem;
}

.hero-bg {
  position: absolute;
  z-index: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  top: -8rem;
  height: calc(100% + 8rem);
  background: var(--hero);
  pointer-events: none;
}

.hero-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 4.5rem;
}

.avatar {
  display: block;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  object-fit: cover;
  background: var(--surface-hover);
}

.lede {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.icon-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
}

.icon-btn svg,
.card-go svg,
.slider-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.icon-btn:hover,
.btn-primary:hover {
  background: color-mix(in srgb, var(--foreground) 88%, black);
}

.icon-btn:active,
.btn:active {
  transform: scale(0.98);
}

.btn {
  min-height: 2.75rem;
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
}

.btn-secondary {
  background: var(--surface);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.section-slider {
  margin-top: 3.5rem;
}

.section-feature {
  margin-top: 3.5rem;
}

.section-copy {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.slider-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74vw, 420px);
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1.5rem 1rem 0.5rem;
  scroll-padding-inline: 1rem;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-card {
  min-width: 0;
  min-height: 250px;
  scroll-snap-align: start;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.slider-arrow {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.slider-arrow:hover:not(:disabled) {
  background: var(--surface-hover);
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.dot {
  width: 1.75rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dot i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--foreground) 25%, transparent);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.dot.is-active i {
  width: 20px;
  height: 8px;
  background: var(--foreground);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.375rem;
  color: inherit;
  text-decoration: none;
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--surface-hover);
  aspect-ratio: 1200 / 630;
}

.card-image img,
.card-stage {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.card-image.is-top img {
  object-position: top center;
}

.card-image.is-contain img {
  object-fit: contain;
  padding: 1.75rem 2rem;
  background: var(--surface-hover);
}

.card-stage {
  display: grid;
  place-items: center;
  padding: 1.75rem;
}

.card-stage img,
.card-stage svg {
  width: auto;
  height: 4.5rem;
  max-width: 70%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
}

.card-body {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.card-go {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  pointer-events: none;
}

.card-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease-out;
}

.card-kicker {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  padding-right: 3rem;
}

.card-mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--background);
}

.card-mark img,
.card-mark svg {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.card-domain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.card-body h3 {
  padding-right: 0.5rem;
}

.card-desc {
  margin: 0.375rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.feature-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card .card-go {
  position: static;
}

.feature-card .card-kicker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  padding-right: 0;
}

.feature-card .card-kicker-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.625rem;
}

.stat-grid,
.method-grid,
.cta-row {
  display: grid;
  gap: 1rem;
}

.stat-grid,
.method-grid {
  margin-top: 1.5rem;
}

.surface-card {
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.25rem;
}

.surface-card strong,
.surface-card h3 {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.surface-card p {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.method-index {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta-row {
  margin-top: 1.5rem;
}

.closing {
  margin-top: 3.5rem;
  padding-top: 0.5rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
}

body.is-work-dialog-open {
  overflow: hidden;
}

.work-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}

.work-dialog[hidden] {
  display: none !important;
}

.work-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 0.62);
  backdrop-filter: blur(18px);
}

.work-dialog-card {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 28rem);
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--background);
  box-shadow: var(--shadow);
}

.work-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.work-dialog-close:hover {
  background: var(--surface-hover);
}

.work-dialog-close svg {
  width: 1rem;
  height: 1rem;
}

.work-dialog-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
}

.work-dialog-brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  object-fit: cover;
}

.work-dialog-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.05;
  padding-right: 2rem;
}

.work-dialog-copy {
  margin: 0;
  color: var(--muted);
}

.work-dialog-copy a {
  color: var(--foreground);
  font-weight: 600;
}

.work-dialog-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

.work-dialog-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.work-dialog-password {
  position: relative;
}

.work-dialog-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 2.75rem 0.75rem 0.9rem;
  border: 0;
  border-radius: 0.875rem;
  background: var(--surface);
}

.work-dialog-field input:focus {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.work-dialog-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.work-dialog-password-toggle:hover {
  color: var(--foreground);
  background: var(--surface-hover);
}

.work-dialog-password-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.work-dialog-password-toggle[aria-pressed="true"] .work-dialog-password-icon--show,
.work-dialog-password-toggle[aria-pressed="false"] .work-dialog-password-icon--hide {
  display: none;
}

.work-dialog-error {
  margin: 0;
  color: #8a1f1f;
  font-size: 0.875rem;
  font-weight: 600;
}

.work-dialog-login {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.public-page-motion .hero-bg {
  opacity: 0;
  animation: page-fade 0.7s ease-out both;
}

.public-page-motion .hero-in > * {
  opacity: 0;
  animation: rise 0.68s var(--ease) both;
}

.public-page-motion .hero-in > :nth-child(1) { animation-delay: 80ms; }
.public-page-motion .hero-in > :nth-child(2) { animation-delay: 160ms; }
.public-page-motion .hero-in > :nth-child(3) { animation-delay: 240ms; }
.public-page-motion .hero-in > :nth-child(4) { animation-delay: 320ms; }

.public-page-motion .reveal {
  opacity: 0;
}

.public-page-motion .reveal.is-in {
  animation: rise 0.68s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .link-card:hover .card-image img,
  .link-card:hover .card-stage img,
  .link-card:hover .card-stage svg {
    transform: scale(1.03);
  }

  .link-card:hover .card-arrow {
    transform: rotate(45deg);
  }
}

@media (min-width: 640px) {
  .page {
    padding: 4rem 1.5rem 5rem;
  }

  h1 {
    margin-top: 2rem;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1.02;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-in {
    padding-bottom: 7.5rem;
  }

  .avatar {
    width: 11rem;
    height: 11rem;
  }

  .lede {
    margin-top: 1.25rem;
    font-size: 1.5rem;
  }

  .hero-actions {
    gap: 0.5rem;
    margin-top: 2rem;
  }

  .icon-btn {
    width: 3.5rem;
    height: 3.5rem;
  }

  .section-slider {
    margin-top: 6rem;
  }

  .section-feature,
  .closing {
    margin-top: 8rem;
  }

  .slider-track {
    grid-auto-columns: 340px;
    gap: 1rem;
    padding: 2.5rem 1.5rem 0.5rem;
    scroll-padding-inline: 1.5rem;
  }

  .slider-nav {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .slider-card {
    min-height: 450px;
  }

  .link-card {
    border-radius: 1.5rem;
    padding: 0.5rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .card-go {
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .feature-card .card-go {
    width: 2.5rem;
    height: 2.5rem;
  }

  .card-kicker {
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-right: 3.5rem;
  }

  .feature-card .card-kicker {
    padding-right: 0;
  }

  .card-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
  }

  .feature-stack,
  .stat-grid,
  .method-grid,
  .cta-row {
    margin-top: 2.5rem;
  }

  .stat-grid,
  .method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
  }

  .surface-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
  }

  .surface-card strong,
  .surface-card h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
  }
}

@media (min-width: 64rem) {
  .slider-track {
    padding-inline: calc((100vw - 64rem) / 2 + 1.5rem);
    scroll-padding-inline: calc((100vw - 64rem) / 2 + 1.5rem);
  }
}

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

  .public-page-motion,
  .public-page-motion .hero-bg,
  .public-page-motion .hero-in > *,
  .public-page-motion .reveal,
  .public-page-motion .reveal.is-in {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .card-image img,
  .card-stage img,
  .card-stage svg,
  .card-arrow,
  .icon-btn,
  .btn,
  .dot i {
    transition: none;
  }

  .link-card:hover .card-image img,
  .link-card:hover .card-stage img,
  .link-card:hover .card-stage svg,
  .link-card:hover .card-arrow,
  .icon-btn:active,
  .btn:active {
    transform: none;
  }

  .slider-track {
    scroll-behavior: auto;
  }

  .work-dialog-backdrop {
    backdrop-filter: none;
    background: rgb(255 255 255 / 0.92);
  }
}
