@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;600;700;800&display=swap");

:root {
  --ink: #2c2b31;
  --muted: #a9a5ad;
  --soft: #f5f2f6;
  --line: #ebe8ed;
  --pink: #e68ee6;
  --peach: #f69c78;
  --blue: #586cff;
  --radius: 8px;
  --hero-font: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fbf6ff;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--hero-font);
  background:
    linear-gradient(180deg, #f0e8fb 0, #fff7f1 1060px, #fff 3000px, #fbf4ff 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 178px;
  background: rgba(255, 255, 255, 0.34);
  border-right: 1px solid rgba(255, 255, 255, 0.54);
}

.brand {
  position: absolute;
  top: 52px;
  left: 54px;
  width: 30px;
  height: 30px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rail-nav {
  position: absolute;
  top: 1005px;
  left: 45px;
  display: grid;
  gap: 58px;
}

.rail-item,
.rail-help {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #77717a;
  border-radius: 50%;
}

.rail-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.rail-help img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.rail-item svg,
.rail-help svg,
.topbar svg,
.composer svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-item.active {
  background: transparent;
  box-shadow: none;
}

.rail-help {
  position: absolute;
  left: 44px;
  bottom: 92px;
  color: var(--blue);
}

.topbar {
  position: fixed;
  top: 44px;
  right: 36px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent,
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  color: #56515a;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
}

.agent {
  min-width: 170px;
}

.account-pill {
  gap: 14px;
  padding-right: 18px;
}

.credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #56515a;
  background: transparent;
  font-weight: 700;
}

.account-divider {
  width: 1px;
  height: 20px;
  background: rgba(86, 81, 90, 0.16);
}

.upgrade {
  color: #ec9c8e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 30%, #ffe8a9 0 11%, transparent 12%),
    radial-gradient(circle at 48% 44%, #8d6f50 0 34%, transparent 35%),
    linear-gradient(135deg, #f3c172, #6f553c);
}

.page {
  width: min(100%, 4320px);
  margin: 0 auto;
  padding: 0 0 300px 178px;
}

.hero {
  width: 2748px;
  margin: 0 auto;
  padding-top: 550px;
}

.hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 178px;
  color: #303036;
  font-family: var(--hero-font);
  font-size: 132px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
}

.hero-title-text {
  display: inline-block;
}

.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero h1 strong {
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--peach));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 600;
}

.matilda-word {
  display: inline-block;
  will-change: transform, opacity;
}

.spark {
  --spark-angle: 45deg;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  object-fit: contain;
  transform: rotate(var(--spark-angle));
  transform-origin: center;
  will-change: transform, opacity;
}

.spark.is-looping {
  animation: spark-look-spin 3.1s ease-in-out infinite;
}

@keyframes spark-look-spin {
  0% {
    transform: translateX(0) rotate(var(--spark-angle));
  }

  18% {
    transform: translateX(-5px) rotate(var(--spark-angle));
  }

  36% {
    transform: translateX(5px) rotate(var(--spark-angle));
  }

  54% {
    transform: translateX(0) rotate(var(--spark-angle));
  }

  100% {
    transform: translateX(0) rotate(calc(var(--spark-angle) + 360deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .spark.is-looping {
    animation: none;
  }
}

.composer {
  position: relative;
  height: 520px;
  padding: 66px 70px;
  background: #fff;
  border-radius: 65px;
  box-shadow: 0 16px 32px rgba(55, 46, 61, 0.1);
}

.reference {
  position: absolute;
  top: 56px;
  left: 70px;
  display: grid;
  place-items: center;
  width: 180px;
  height: 216px;
  background: transparent;
  border-radius: 0;
  transform: rotate(8deg);
}

.reference img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.composer p {
  margin: 4px 0 0 235px;
  color: #b6b2b8;
  font-size: 36px;
  font-weight: 500;
}

.composer-actions {
  position: absolute;
  left: 70px;
  right: 58px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.pill img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.send {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-left: auto;
  color: #c7c3c8;
  background: #f3f2f3;
  border-radius: 50%;
}

.quick {
  margin-top: 132px;
}

.quick h2,
.animation h2,
.created h2 {
  margin: 0 0 52px;
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 64px;
}

.quick-card {
  position: relative;
  aspect-ratio: 645 / 441;
  height: auto;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.quick-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quick-card span {
  display: none;
}

.animation {
  width: 3810px;
  margin: 760px auto 0;
}

.animation h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 92px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 2370px 1345px;
  gap: 90px;
}

.media-frame {
  overflow: hidden;
}

.feature-main .media-frame {
  width: 2370px;
  height: 1680px;
  border-radius: 30px;
}

.feature-main img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.feature-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 72px;
}

.feature-copy h3,
.feature-side h3,
.type-card h3 {
  margin: 0 0 24px;
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
}

.feature-copy p,
.feature-side p,
.type-card p {
  margin: 0;
  color: #b0abb3;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
}

.feature-copy button {
  width: 400px;
  height: 156px;
  color: #fff;
  background: #050505;
  border-radius: 999px;
  font-size: 44px;
  font-weight: 800;
}

.feature-side {
  display: grid;
  gap: 80px;
}

.feature-side .media-frame {
  width: 1345px;
  height: 730px;
  border-radius: 28px;
}

.feature-side article:last-child .media-frame {
  height: 635px;
}

.feature-side img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.feature-side h3 {
  margin-top: 48px;
}

.video-types {
  display: grid;
  grid-template-columns: repeat(3, 1195px);
  gap: 132px;
  width: 3810px;
  margin: 350px auto 0;
}

.type-card {
  position: relative;
  padding-bottom: 72px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}

.type-card img {
  display: block;
  width: 100%;
  height: 890px;
  margin-inline: auto;
  object-position: center;
}

.feature-main img,
.feature-side img,
.type-card img {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    filter 260ms ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .media-frame:hover img,
  .type-card img:hover {
    transform: translateY(-6px) scale(1.025);
    filter: brightness(1.04) saturate(1.05);
    box-shadow: 0 22px 44px rgba(42, 34, 49, 0.16);
  }

  .type-card img:hover {
    box-shadow: none;
  }
}

.type-card div {
  width: calc(100% - 300px);
  margin: 0;
  padding: 44px 42px 0 0;
  text-align: left;
}

.type-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 36px;
}

.type-card p {
  font-size: 27px;
}

.type-card button {
  position: absolute;
  right: 25px;
  bottom: 68px;
  width: 210px;
  height: 74px;
  color: #4d494f;
  background: #f1f0f1;
  border-radius: 999px;
  font-size: 30px;
  font-weight: 800;
}

.created {
  width: 3810px;
  margin: 340px auto 0;
}

.created h2 {
  margin-bottom: 44px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 54px;
}

.filters button {
  height: 62px;
  padding: 0 36px;
  color: #9e98a1;
  background: #f0eff0;
  border-radius: 999px;
  font-size: 21px;
  font-weight: 800;
}

.filters .selected {
  color: #fff;
  background: #111;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.masonry-col {
  display: grid;
  gap: 22px;
  align-content: start;
  will-change: transform;
}

.masonry img {
  width: 100%;
  border-radius: 14px;
}

@media (max-width: 1800px) {
  body {
    background:
      linear-gradient(180deg, #f0e8fb 0, #fff7f1 360px, #fff 1030px, #fbf4ff 100%);
  }

  .rail {
    width: 58px;
  }

  .brand {
    top: 14px;
    left: 17px;
    width: 14px;
    height: 14px;
  }

  .rail-nav {
    top: 318px;
    left: 13px;
    gap: 20px;
  }

  .rail-item,
  .rail-help {
    width: 32px;
    height: 32px;
  }

  .rail-item img {
    width: 32px;
    height: 32px;
  }

  .rail-help img {
    width: 14px;
    height: 14px;
  }

  .rail-item svg,
  .rail-help svg,
  .composer svg {
    width: 14px;
    height: 14px;
  }

  .rail-help {
    left: 13px;
    bottom: 74px;
  }

  .topbar {
    top: 13px;
    right: 14px;
    gap: 8px;
  }

  .agent,
  .account-pill {
    height: 26px;
    padding: 0 10px;
    gap: 5px;
    font-size: 10px;
  }

  .agent {
    min-width: 116px;
  }

  .credits {
    gap: 5px;
    font-size: 10px;
  }

  .account-divider {
    height: 14px;
  }

  .upgrade {
    font-size: 10px;
  }

  .avatar {
    width: 28px;
    height: 28px;
  }

  .page {
    width: 100%;
    padding-left: 58px;
    padding-bottom: 90px;
  }

  .hero {
    width: min(88vw, 868px);
    padding-top: 172px;
  }

  .hero h1 {
    gap: 6px;
    margin-bottom: 58px;
    font-size: 40px;
  }

  .spark {
    --spark-angle: 35deg;
    width: 28px;
    height: 28px;
    margin-left: 5px;
    margin-bottom: 46px;
  }

  .composer {
    height: 164px;
    padding: 21px 22px;
    border-radius: 18px;
    box-shadow: 0 7px 14px rgba(55, 46, 61, 0.1);
  }

  .reference {
    top: 18px;
    left: 22px;
    width: 58px;
    height: 70px;
  }

  .composer p {
    margin: 1px 0 0 76px;
    font-size: 12px;
  }

  .composer-actions {
    left: 22px;
    right: 18px;
    bottom: 16px;
    gap: 5px;
  }

  .pill {
    height: 25px;
  }

  .send {
    width: 28px;
    height: 28px;
  }

  .quick {
    margin-top: 42px;
  }

  .quick h2,
  .animation h2,
  .created h2 {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .quick h2 {
    font-weight: 600;
  }

  .quick-grid {
    gap: 14px;
  }

  .quick-card {
    aspect-ratio: 645 / 441;
  }

  .animation,
  .video-types,
  .created {
    width: min(88vw, 1215px);
  }

  .animation {
    margin-top: 190px;
  }

  .animation h2 {
    margin-bottom: 32px;
    gap: 4px;
    font-size: 20px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 28px;
  }

  .feature-main .media-frame,
  .feature-side .media-frame,
  .feature-side article:last-child .media-frame {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .feature-main img,
  .feature-side img,
  .feature-side article:last-child img {
    width: 100%;
    height: auto;
  }

  .feature-copy {
    padding-top: 22px;
  }

  .feature-copy h3,
  .feature-side h3,
  .type-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .feature-copy h3,
  .feature-side h3 {
    font-weight: 600;
  }

  .feature-copy p,
  .feature-side p,
  .type-card p {
    font-size: 12px;
  }

  .feature-copy p,
  .feature-side p {
    font-weight: 300;
  }

  .feature-copy button {
    width: 114px;
    height: 44px;
    font-size: 18px;
    font-weight: 600;
  }

  .feature-side {
    gap: 26px;
  }

  .feature-side h3 {
    margin-top: 16px;
  }

  .video-types {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 105px;
  }

  .type-card {
    padding-bottom: 24px;
    border-radius: 8px;
  }

  .type-card img {
    height: auto;
  }

  .type-card div {
    width: calc(100% - 88px);
    max-width: none;
    margin: 0;
    padding: 16px 12px 0 0;
    text-align: left;
  }

  .type-card h3 {
    justify-content: flex-start;
    gap: 4px;
    margin-bottom: 7px;
    font-size: 14px;
  }

  .type-card p {
    font-size: 11px;
    font-weight: 300;
  }

  .type-card button {
    right: 8px;
    bottom: 34px;
    width: 66px;
    height: 25px;
    font-size: 10px;
  }

  .created {
    margin-top: 105px;
  }

  .created h2 {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .filters {
    gap: 8px;
    margin-bottom: 18px;
  }

  .filters button {
    min-width: 86px;
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 550;
  }

  .filters .selected {
    min-width: 50px;
  }

  .filters button:nth-child(3) {
    min-width: 84px;
  }

  .filters button:nth-child(4) {
    min-width: 47.55px;
  }

  .masonry {
    gap: 8px;
  }

  .masonry-col {
    gap: 8px;
  }

  .masonry img {
    border-radius: 5px;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .rail {
    width: 44px;
  }

  .rail-nav,
  .rail-help {
    display: none;
  }

  .brand {
    left: 14px;
  }

  .page {
    padding-left: 44px;
  }

  .hero,
  .animation,
  .video-types,
  .created {
    width: calc(100vw - 70px);
  }

  .hero {
    padding-top: 88px;
  }

  .hero h1 {
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 28px;
    line-height: 1.15;
  }

  .composer {
    height: 150px;
  }

  .composer p {
    line-height: 1.35;
  }

  .quick-grid,
  .video-types {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .animation {
    margin-top: 88px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-copy button {
    width: 92px;
    height: 38px;
    font-size: 12px;
  }

  .video-types {
    margin-top: 70px;
  }

  .created {
    margin-top: 70px;
  }

  .filters {
    flex-wrap: wrap;
  }

  .masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}
