:root { --content-width: 1280px; }

html,
body { overflow-x: hidden; }

.logo { display: inline-flex; align-items: center; gap: 6px; font-size: 25px; letter-spacing: -1.5px; }
.logo-mark { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 7px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -1px; }
.logo-name { color: #fff; font-weight: 800; }
footer .logo { font-size: 22px; }

.hero {
  height: calc(100vh - 100px);
  min-height: 0;
  padding: 42px 5.3vw;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(40px, 6vw, 96px);
}

.hero-copy > p { max-width: 720px; line-height: 1.7; }
.hero-copy > .pink-button { display: inline-block; margin-top: 12px; }
.hero-demo { width: min(100%, 465px); height: min(560px, calc(100vh - 184px)); justify-self: center; overflow: hidden; background: transparent; }
.hero-demo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 10px; }

.cards { max-width: var(--content-width); align-items: stretch; }
.cards article { min-height: 0; text-align: left; padding: 38px 32px; }
.cards p { margin: 0 0 16px; line-height: 1.65; }

.gallery-full {
  width: 100%;
  transform: none;
  padding: 0 4vw;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-full .gallery-img {
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 23px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
}

.gallery-full .gallery-img:nth-child(1) { background-image: url('assets/gallery-anime-red.png'); }
.gallery-full .gallery-img:nth-child(2) { background-image: url('assets/gallery-beach-redhead.png'); }
.gallery-full .gallery-img:nth-child(3) { background-image: url('assets/gallery-anime-blonde.jpg'); }
.gallery-full .gallery-img:nth-child(4) { background-image: url('assets/gallery-painter.png'); }
.gallery-full .gallery-img:nth-child(5) { background-image: url('assets/gallery-neon.png'); }
.gallery-full .gallery-img:nth-child(6) { background-image: url('assets/gallery-evening.png'); }

.dark-section { max-width: 1440px; padding: 100px 7vw 50px; }
.section-heading { max-width: 900px; margin: 0 auto; }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.section-heading p { max-width: 780px; margin: 0 auto 18px; font-size: 18px; line-height: 1.7; }
.section-heading p:last-of-type { margin-bottom: 74px; }
.showcase,
.showcase.flip { max-width: var(--content-width); grid-template-columns: minmax(240px, .52fr) minmax(0, 1.18fr); gap: clamp(48px, 7vw, 96px); align-items: start; margin: 0 auto 100px; }
.showcase.flip { grid-template-columns: minmax(0, 1.18fr) minmax(240px, .52fr); }
.showcase > div:not(.compare) { max-width: 780px; padding-top: 4px; }
.showcase h2,
.use-row h2 { font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 22px; }
.showcase p { max-width: none; margin: 0 0 18px; font-size: 17px; line-height: 1.68; }
.showcase .button { margin-top: 12px; }
.wide-compare { justify-self: center; }

.static-media {
  height: auto;
  justify-self: center;
  overflow: hidden;
  background: transparent;
}

.static-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
}

.showcase-realistic { width: min(100%, 240px); aspect-ratio: 410 / 716; }
.showcase-animation { width: min(100%, 240px); aspect-ratio: 429 / 542; }
.showcase-resolution { width: min(100%, 240px); aspect-ratio: 442 / 549; }

.light-section { padding: 96px 7vw; }
.light-section > p { max-width: 740px; margin: 0 auto 48px; }
.steps { max-width: var(--content-width); align-items: start; }
.steps article { display: flex; flex-direction: column; }
.steps p { margin: 0 0 14px; line-height: 1.65; }

.use-cases { padding: 96px 7vw 110px; }
.use-cases > p { max-width: 760px; margin: 0 auto 48px; }
.case-list { max-width: var(--content-width); }
.use-row,
.use-row.reverse { grid-template-columns: minmax(240px, .52fr) minmax(0, 1.18fr); gap: clamp(48px, 7vw, 96px); align-items: start; margin: 92px auto 0; }
.use-row.reverse { grid-template-columns: minmax(0, 1.18fr) minmax(240px, .52fr); }
.use-row > div:not(.compare):not(.case-art) { max-width: 780px; padding-top: 4px; }
.use-row p { max-width: none; margin: 0 0 18px; font-size: 17px; line-height: 1.68; }
.use-row .button { margin-top: 12px; }

.usecase-portrait { width: min(100%, 240px); aspect-ratio: 546 / 756; }
.usecase-editorial { width: min(100%, 240px); aspect-ratio: 511 / 673; }
.usecase-fantasy { width: min(100%, 240px); aspect-ratio: 472 / 704; }
.usecase-social { width: min(100%, 240px); aspect-ratio: 497 / 679; }
.usecase-portrait img,
.usecase-editorial img,
.usecase-fantasy img,
.usecase-social img { border-radius: 16px; }

.faq { padding: 100px 7vw; }
.faq-list { max-width: 980px; }
.faq p { margin: 0; padding: 0 0 20px; }
.cta { padding: 110px 24px; }

.case-list .use-row:last-child {
  max-width: 1040px;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  margin-top: 72px;
  padding: 48px 56px;
  border: 1px solid #d9dee5;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f6 100%);
}

.case-list .use-row:last-child > div:first-child { max-width: 680px; justify-self: center; text-align: center; }
.case-list .use-row:last-child h2 { margin-bottom: 18px; }
.case-list .use-row:last-child p { margin-bottom: 14px; text-align: center; }
.case-list .use-row:last-child .case-art {
  width: 220px !important;
  justify-self: center;
  align-self: center;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(25, 28, 35, .16);
}

.faq { padding-top: 86px; padding-bottom: 86px; }
.faq h2 { margin-bottom: 38px; }
.faq summary { padding: 20px 0; }
.cta { padding: 92px 24px; }
.cta p { max-width: 720px; }

.light-section { padding-top: 78px; padding-bottom: 48px; }
.light-section > h2 { margin-bottom: 14px; }
.light-section > p { margin-bottom: 38px; }
.steps { gap: 28px; align-items: stretch; }
.steps article { height: 100%; }
.step-art { height: 230px; min-height: 230px; padding: 24px; }
.step-art b { font-size: 56px; }
.step-art span { font-size: 18px; }
.steps h3 { margin: 18px 0 10px; font-size: 18px; line-height: 1.35; }
.steps p { font-size: 14px; line-height: 1.65; }
.use-cases { padding-top: 52px; }
.use-cases > h2 { margin-bottom: 16px; }
.use-cases > p { margin-bottom: 38px; }

@media (max-width: 800px) {
  body { padding-top: 72px; }

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  }

  header .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 75px 22px;
  }

  .hero-demo { width: 100%; height: 470px; }
  .dark-section,
  .light-section,
  .use-cases,
  .faq { padding: 72px 22px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading p,
  .showcase p,
  .use-row p { font-size: 16px; line-height: 1.65; }
  .section-heading p:last-of-type { margin-bottom: 54px; }
  .showcase,
  .showcase.flip,
  .use-row,
  .use-row.reverse { display: flex; flex-direction: column; gap: 28px; margin-bottom: 72px; }
  .showcase > div:not(.compare),
  .use-row > div:not(.compare):not(.case-art) { max-width: none; width: 100%; }
  .showcase .compare,
  .use-row .compare,
  .use-row .case-art { align-self: center; }
  .showcase.flip > div:first-child,
  .use-row.reverse > div:first-child { order: 2; }
  .cards { padding: 70px 22px; }
  .cards article { padding: 30px 26px; }

  .static-media,
  .showcase-realistic,
  .showcase-animation,
  .showcase-resolution,
  .usecase-portrait,
  .usecase-editorial,
  .usecase-fantasy,
  .usecase-social { width: 100%; }

  .case-list .use-row:last-child {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 56px;
    padding: 36px 24px;
  }
  .case-list .use-row:last-child > div:first-child { order: 2; }
  .case-list .use-row:last-child .case-art { width: min(100%, 240px) !important; order: 1; }
  .case-list .use-row:last-child h2 { font-size: 30px; }

  .light-section { padding-top: 64px; padding-bottom: 38px; }
  .step-art { height: 210px; min-height: 210px; }
  .use-cases { padding-top: 48px; }

  .community { padding-bottom: 68px; }
  .community > p { margin-bottom: 28px; }
  .gallery,
  .gallery-full {
    display: flex !important;
    grid-template-columns: none !important;
    width: 100% !important;
    transform: none !important;
    overflow-x: auto !important;
    gap: 14px !important;
    padding: 0 22px 10px !important;
    margin-bottom: 34px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .gallery-img,
  .gallery .a,
  .gallery .b,
  .gallery .c,
  .gallery .d,
  .gallery .e,
  .gallery .portrait,
  .gallery-full .gallery-img {
    display: block !important;
    flex: 0 0 72vw;
    width: 72vw;
    height: auto !important;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
    background-position: center !important;
  }
}
