:root {
  color-scheme: light;
  --shell: 1248px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-sticky: 20;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: calc(var(--z-sticky) + 1);
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-action);
  color: var(--color-on-action);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  border-bottom: var(--border-hairline);
  background: rgb(255 255 255 / 96%);
}

.header-content,
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  min-height: 72px;
}

.wordmark {
  color: var(--color-brand-hover);
  font-size: 1.0625rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 3vw, var(--space-8));
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.site-nav a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav .nav-action {
  color: var(--color-link);
  font-weight: var(--fw-semibold);
}

.hero {
  display: grid;
  min-height: calc(100svh - 73px);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(var(--space-12), 7vw, var(--space-24));
  padding-block: clamp(var(--space-16), 9vw, 132px);
}

.hero-copy {
  animation: hero-settle 700ms var(--ease-out) both;
}

.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-sm);
}

.kicker span {
  width: var(--space-3);
  height: var(--space-3);
  background: var(--color-brand);
}

h1 {
  max-width: 10.5ch;
  margin-bottom: clamp(var(--space-6), 3vw, var(--space-8));
  font-size: clamp(3.25rem, 6.7vw, 5.75rem);
  font-weight: var(--fw-extrabold);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h1 em {
  color: var(--color-brand-hover);
  font-style: normal;
}

.hero-lede {
  max-width: 58ch;
  margin-bottom: var(--space-8);
  font-size: clamp(1.0625rem, 1.7vw, var(--text-body-lg));
  line-height: var(--lh-body-lg);
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-1);
  border-bottom: 2px solid currentColor;
  color: var(--color-link);
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-body);
  text-decoration: none;
}

.text-action span {
  transition: transform 220ms var(--ease-out);
}

.text-action:hover span {
  transform: translateY(3px);
}

.hero-interface {
  margin-bottom: 0;
  border: 12px solid var(--color-brand);
  background: var(--color-brand);
  animation: interface-settle 850ms 80ms var(--ease-out) both;
}

.hero-interface-image {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-subtle);
}

.hero-interface img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 17% center;
}

.hero-interface figcaption,
.preview figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.hero-interface figcaption {
  padding: var(--space-3) var(--space-1) var(--space-1);
  color: var(--color-on-brand);
}

.hero-interface figcaption strong,
.preview figcaption strong {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
}

.hero-interface figcaption span,
.preview figcaption span {
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  line-height: var(--lh-caption);
}

.products-section {
  border-block: var(--border-hairline);
  background: var(--color-bg-subtle);
}

.products-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(var(--space-12), 9vw, 152px);
  padding-block: clamp(var(--space-16), 10vw, 144px);
}

.section-intro p {
  margin-bottom: var(--space-6);
  color: var(--color-brand-hover);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-sm);
}

.section-intro h2,
.interfaces-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.product-list {
  border-top: var(--border-strong);
}

.product {
  display: grid;
  min-height: 132px;
  grid-template-columns: minmax(110px, 0.65fr) minmax(220px, 1.35fr) auto;
  align-items: baseline;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-bottom: var(--border-hairline);
  transition: background 220ms var(--ease-out);
}

.product:hover {
  background: var(--color-brand-subtle);
}

.product h3 {
  transition: transform 220ms var(--ease-out);
}

.product:hover h3 {
  transform: translateX(var(--space-2));
}

.product h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.product p {
  max-width: 34ch;
  margin-bottom: 0;
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.product > span {
  color: var(--color-brand-hover);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-caption);
}

.interfaces-section {
  padding-block: clamp(var(--space-16), 11vw, 164px);
}

.interfaces-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: clamp(var(--space-12), 8vw, 112px);
}

.interfaces-heading p {
  max-width: 45ch;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}

.previews {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  row-gap: clamp(var(--space-16), 11vw, 152px);
}

.preview {
  margin-bottom: 0;
}

.preview-dela {
  grid-column: 1 / span 9;
}

.preview-dialogi {
  grid-column: 5 / -1;
}

.preview-frame {
  overflow: hidden;
  border: var(--border-hairline);
  background: var(--color-bg-subtle);
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms var(--ease-out);
}

.preview:hover img {
  transform: scale(1.012);
}

.preview figcaption {
  padding-top: var(--space-3);
  border-top: 3px solid var(--color-brand);
}

.preview figcaption span {
  color: var(--color-text-muted);
}

.closing {
  background: var(--color-brand);
  color: var(--color-on-brand);
}

.closing-content {
  display: grid;
  min-height: min(74vh, 760px);
  grid-template-columns: 1fr 1fr;
  align-content: center;
  gap: var(--space-8) clamp(var(--space-8), 8vw, 128px);
  padding-block: clamp(var(--space-16), 12vw, 180px);
}

.closing-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-sm);
}

.closing-title {
  margin-bottom: 0;
  font-size: clamp(3.5rem, 8vw, 5.75rem);
  font-weight: var(--fw-extrabold);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.closing-copy {
  align-self: end;
  margin-bottom: 7px;
  padding-top: var(--space-6);
  border-top: 2px solid currentColor;
  font-size: clamp(1.125rem, 2vw, 1.45rem);
  line-height: 1.42;
}

.site-footer {
  border-top: 2px solid var(--color-text);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--text-caption);
  font-weight: var(--fw-medium);
  line-height: var(--lh-caption);
}

.footer-content {
  min-height: 76px;
}

:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 4px;
}

@keyframes hero-settle {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes interface-settle {
  from {
    transform: translateX(20px);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: clamp(var(--space-16), 12vw, var(--space-24));
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-interface {
    width: min(84%, 620px);
    margin-left: auto;
  }

  .hero-interface-image {
    aspect-ratio: 16 / 10;
  }

  .products-layout {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .section-intro h2 {
    max-width: 15ch;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .header-content {
    min-height: 64px;
  }

  .site-nav {
    gap: var(--space-4);
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    gap: var(--space-12);
  }

  .kicker {
    margin-bottom: var(--space-6);
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.4rem);
  }

  .hero-interface {
    width: calc(100% - 24px);
    margin-left: 24px;
    border-width: 8px;
  }

  .hero-interface figcaption,
  .preview figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-1);
  }

  .products-layout {
    gap: var(--space-12);
  }

  .product {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: var(--space-3) var(--space-4);
    padding-block: var(--space-6);
  }

  .product p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .product:hover {
    background: transparent;
  }

  .product:hover h3 {
    transform: none;
  }

  .interfaces-heading {
    align-items: start;
    flex-direction: column;
    gap: var(--space-6);
  }

  .previews {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
  }

  .closing-content {
    min-height: 620px;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: var(--space-12);
  }

  .closing-label {
    grid-column: auto;
  }

  .closing-title {
    align-self: end;
    font-size: clamp(3.2rem, 17vw, 5.2rem);
  }

  .closing-copy {
    align-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
