:root {
  --bg: #2B2F3A;
  --surface-raised: #343948;
  --surface-inset: #1E222B;
  --text: #DCE0EA;
  --text-secondary: #9DA4B6;
  --accent-violet: #B397E4;
  --accent-pink: #D2A5AD;
  --accent-gray: #7D8294;
  --border: #232733;
  --gradient-stop-1: #FE6776;
  --gradient-stop-2: #FFC268;
  --gradient-stop-3: #71C9DC;
  --gradient-stop-4: #EF3A9D;
  --gradient-mark: linear-gradient(90deg, var(--gradient-stop-1), var(--gradient-stop-2) 34%, var(--gradient-stop-3) 68%, var(--gradient-stop-4));
  --bg-clear: #2B2F3A00;
  --shadow: #15192399;
  --focus-ring: #B397E466;
  --transparent: transparent;
  --font: -apple-system, "SF Pro Text", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 8px;
  --tile-desktop: 420px;
  --tile-tablet: 360px;
  --tile-mobile-max: 420px;
  --row-gap-desktop: 96px;
  --row-gap-mobile: 56px;
  --row-column-gap: 64px;
  --feature-top-gap: clamp(56px, 7vw, 92px);
  --feature-mobile-gap: 28px;
  --feature-copy-max: 34em;
  --feature-heading-size: clamp(28px, 3vw, 40px);
  --feature-body-size: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 7px;
  background: var(--text);
  color: var(--surface-inset);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--transparent);
  transition: padding 240ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  border-color: var(--border);
  background: var(--surface-raised);
  box-shadow: 0 10px 32px var(--shadow);
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 112px;
}

.brand img {
  width: 100%;
  height: auto;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--accent-gray);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background-color 220ms var(--ease);
}

.btn:hover {
  border-color: var(--accent-violet);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-compact {
  padding: 10px 16px;
}

.btn-large {
  min-height: 54px;
  padding: 15px 21px;
  font-size: 16px;
}

.btn-primary {
  border-color: var(--accent-violet);
  background: var(--accent-violet);
  color: var(--surface-inset);
}

.btn-primary:hover {
  border-color: var(--accent-pink);
  background: var(--accent-pink);
}

.btn-morph .btn-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.btn-morph .btn-icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.btn-morph .icon-arrow {
  opacity: 0;
  transform: translateX(8px);
}

.btn-morph:hover .icon-apple {
  opacity: 0;
  transform: translateX(-8px) scale(0.62);
}

.btn-morph:hover .icon-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  left: 20%;
  right: -20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: contain;
  object-position: center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 8%, var(--bg-clear) 48%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg-clear) 18%, var(--bg-clear) 82%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(900px, 100svh);
  align-items: center;
  padding-top: 96px;
  padding-bottom: 64px;
}

.hero-copy {
  width: min(52%, 650px);
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(50px, 5.9vw, 88px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.headline-accent {
  position: relative;
  white-space: nowrap;
}

.headline-accent::after {
  position: absolute;
  right: 0;
  bottom: -0.08em;
  left: 0.04em;
  height: 0.075em;
  border-radius: 999px;
  background: var(--gradient-mark);
  content: "";
}

.hero-lede {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.48;
}

.hero-action {
  margin-top: 34px;
}

.hero-meta {
  min-height: 1.6em;
  margin: 13px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

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

.capabilities {
  padding-top: clamp(96px, 12vw, 176px);
  padding-bottom: clamp(96px, 12vw, 176px);
}

.section-heading,
.studio-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 92px);
}

.section-kicker {
  margin: 12px 0 0;
  color: var(--accent-pink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.section-heading h2,
.studio-heading h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.04;
}

.feature-rows {
  display: grid;
  gap: var(--row-gap-desktop);
  margin-top: var(--feature-top-gap);
}

.feature-row {
  display: grid;
  grid-template-columns: var(--tile-desktop) minmax(0, 1fr);
  align-items: center;
  column-gap: var(--row-column-gap);
}

.feature-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) var(--tile-desktop);
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-row:nth-child(even) .feature-copy {
  order: 1;
}

.feature-media {
  display: block;
  width: var(--tile-desktop);
  height: var(--tile-desktop);
  min-width: 0;
}

.feature-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
}

.feature-copy {
  width: 100%;
  max-width: var(--feature-copy-max);
}

.feature-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--feature-heading-size);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.feature-copy p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: var(--feature-body-size);
  line-height: 1.7;
}

.studio-fact h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.studio-fact p {
  max-width: 53ch;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.studio {
  padding-top: clamp(88px, 11vw, 148px);
  padding-bottom: clamp(88px, 11vw, 148px);
  border-top: 1px solid var(--border);
}

.studio-heading h2 {
  max-width: 800px;
}

.studio-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.studio-fact {
  padding: 32px 36px 36px 0;
}

.studio-fact + .studio-fact {
  padding-left: 36px;
  border-left: 1px solid var(--border);
}

.studio-fact a {
  color: var(--text);
}

.studio-fact a:hover {
  color: var(--accent-violet);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.footer-majento {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 220ms var(--ease);
}

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

.footer-majento-mark {
  display: block;
  width: 86px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("/assets/majento-logo.svg") center / contain no-repeat;
  mask: url("/assets/majento-logo.svg") center / contain no-repeat;
}

.footer-majento b {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.footer-links a:hover {
  color: var(--text);
}

.js .reveal {
  opacity: 0.01;
  transform: translateY(22px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}

.js .reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

.feature-row:nth-child(2),
.studio-fact:nth-child(2) {
  transition-delay: 80ms;
}

.feature-row:nth-child(3),
.studio-fact:nth-child(3) {
  transition-delay: 140ms;
}

.feature-row:nth-child(4) {
  transition-delay: 200ms;
}

.not-found-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 36px 24px;
}

.not-found {
  max-width: 560px;
  text-align: center;
}

.not-found-brand {
  display: inline-block;
  width: 130px;
}

.not-found-brand img {
  width: 100%;
  height: auto;
}

.not-found-code {
  margin: 54px 0 0;
  font-size: clamp(72px, 18vw, 154px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.not-found-copy {
  margin: 22px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
}

.not-found .btn {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .hero-copy {
    width: 60%;
  }

  .hero h1 {
    font-size: clamp(48px, 7.4vw, 70px);
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .feature-row {
    grid-template-columns: var(--tile-tablet) minmax(0, 1fr);
  }

  .feature-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) var(--tile-tablet);
  }

  .feature-media {
    width: var(--tile-tablet);
    height: var(--tile-tablet);
  }
}

@media (max-width: 760px) {
  .page-width {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-header.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    width: 92px;
  }

  .site-header .btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .site-header .btn {
    width: 44px;
    padding: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 112px;
  }

  .hero-inner {
    order: 1;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 22px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(47px, 14.6vw, 66px);
  }

  .hero-lede {
    max-width: 34ch;
    margin-top: 24px;
    font-size: 18px;
  }

  .hero-action {
    margin-top: 28px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 2;
    width: 116%;
    height: auto;
    margin: 4px -8% 0;
    aspect-ratio: 2688 / 1520;
  }

  .hero-media img {
    object-fit: contain;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, var(--bg-clear) 18%, var(--bg-clear) 82%, var(--bg) 100%),
      linear-gradient(0deg, var(--bg) 0%, var(--bg-clear) 24%, var(--bg-clear) 76%, var(--bg) 100%);
  }

  .section-heading,
  .studio-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-kicker {
    margin-top: 0;
  }

  .section-heading h2,
  .studio-heading h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--feature-mobile-gap);
  }

  .feature-rows {
    gap: var(--row-gap-mobile);
  }

  .feature-row .feature-media,
  .feature-row:nth-child(even) .feature-media {
    order: 1;
    width: min(100%, var(--tile-mobile-max));
    height: auto;
    aspect-ratio: 1 / 1;
    justify-self: center;
  }

  .feature-row .feature-copy,
  .feature-row:nth-child(even) .feature-copy {
    order: 2;
  }

  .studio-facts {
    grid-template-columns: 1fr;
  }

  .studio-fact,
  .studio-fact + .studio-fact {
    padding: 28px 0 30px;
    border-left: 0;
  }

  .studio-fact + .studio-fact {
    border-top: 1px solid var(--border);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 47px;
  }

  .btn-large {
    width: 100%;
  }

  .hero-meta {
    font-size: 12px;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
