:root {
  --ink: #0d0d16;
  --muted: #5c5a67;
  --purple-950: #13074c;
  --purple-700: #5220ac;
  --purple: #6935ff;
  --yellow: #ffbe10;
  --lavender: #f4f3ff;
  --peach: #fff5f0;
  --dark: #17161c;
  --dark-card: #29252d;
  --browser-chrome-color: #16075c;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 22px 45px rgba(28, 15, 64, 0.12);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.home-page, .home-page body { background: var(--browser-chrome-color); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-ui); font-synthesis: none; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.hero { min-height: 670px; overflow: hidden; color: #fff; background: linear-gradient(108deg, #100554 0%, #1a0961 47%, #4b1f7d 100%); }
.hero__inner { width: min(var(--max), calc(100% - 96px)); min-height: 670px; margin: 0 auto; display: grid; grid-template-columns: minmax(540px, 1.06fr) minmax(480px, .94fr); align-items: center; gap: 34px; }
.hero__copy { position: relative; z-index: 2; padding: 24px 0 40px; }
.brand-line { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; }
.brand-line__logo { width: 23px; height: 23px; flex: 0 0 23px; border-radius: 7px; object-fit: contain; }
.brand-line__dot { opacity: .45; }
.brand-line__powered { width: 104px; height: 19px; flex: 0 0 104px; object-fit: contain; }
.hero h1 { max-width: 640px; margin: 0; font-size: clamp(42px, 3.7vw, 58px); line-height: 1.04; letter-spacing: -1.8px; font-weight: 800; }
.hero h1 span { color: #ffd02b; }
.hero__description { max-width: 485px; margin: 25px 0 27px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { display: inline-flex; min-width: 148px; min-height: 48px; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 11px; color: #fff; background: rgba(8,6,21,.56); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.store-button:hover, .store-button:focus-visible { transform: translateY(-2px); border-color: #fff; background: rgba(8,6,21,.8); }
.store-button__icon { width: 24px; height: 24px; flex: 0 0 24px; }
.store-button__icon svg { width: 100%; height: 100%; }
.store-button small, .store-button strong { display: block; white-space: nowrap; }
.store-button small { color: rgba(255,255,255,.72); font-size: 7px; line-height: 1.1; letter-spacing: .04em; }
.store-button strong { margin-top: 2px; font-size: 14px; line-height: 1; }
.hero__visual { position: relative; align-self: stretch; min-height: 670px; display: flex; align-items: flex-end; justify-content: center; }
.hero-banner { width: min(720px, 100%); height: auto; filter: drop-shadow(0 30px 44px rgba(0,0,0,.32)); }

.magic { padding: 66px 0 76px; background: #fff; }
.section-heading { width: min(var(--max), calc(100% - 48px)); margin: 0 auto 36px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -1.2px; font-weight: 800; }
.section-heading h2 span { position: relative; color: var(--purple); }
.section-heading h2 span::after { position: absolute; right: 0; bottom: -7px; left: 3%; height: 6px; content: ""; border-radius: 50%; background: var(--yellow); transform: rotate(-2deg); }
.magic__list { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; gap: 18px; }
.magic-card { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: center; gap: 30px; overflow: hidden; padding: 32px 62px; border-radius: var(--radius); }
.magic-card--reverse { grid-template-columns: minmax(0, 1.28fr) minmax(260px, .72fr); }
.magic-card--lavender { background: var(--lavender); }
.magic-card--peach { background: var(--peach); }
.magic-card--reverse .magic-card__copy { order: 2; }
.magic-card--reverse .magic-card__media { order: 1; }
.magic-card__copy { max-width: 390px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #11101b; font-size: 11px; font-weight: 800; }
.eyebrow img { width: 25px; height: 25px; border-radius: 8px; }
.magic-card h3 { margin: 0; font-size: clamp(26px, 2.1vw, 36px); line-height: 1.08; letter-spacing: -.8px; font-weight: 800; }
.magic-card__copy > p:last-child { max-width: 360px; margin: 17px 0 0; color: #6a6871; font-size: 12px; line-height: 1.5; }
.magic-card__media { position: relative; min-height: 252px; display: flex; align-items: center; justify-content: center; }
.magic-card__media > img, .magic-card__media > video { width: 235px; height: 270px; border-radius: 13px; object-fit: cover; background: #efedf4; box-shadow: var(--shadow); }
.magic-card__media--video > .video-preview { width: 248px; height: 322px; }
.style-collage, .dance-collage, .edit-collage { position: relative; width: min(560px, 100%); aspect-ratio: 635 / 572; flex: 0 1 560px; }
.style-collage img, .dance-collage img, .dance-collage video, .edit-collage img { position: absolute; border-radius: 16px; object-fit: cover; background: #efedf4; box-shadow: var(--shadow); }
.style-collage__original, .dance-collage__original, .edit-collage__original { top: 0; left: 0; z-index: 1; width: 43.31%; height: 63.81%; }
.style-collage__result, .dance-collage__result, .edit-collage__result { position: absolute; top: 9.09%; left: 38.58%; z-index: 2; display: block; width: 61.42%; height: 90.91%; }
.style-preview__loading { position: absolute; top: 9.09%; left: 38.58%; z-index: 3; width: 61.42%; height: 90.91%; border-radius: 16px; background: rgba(239,237,244,.82); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.style-collage--loading .style-preview__loading { opacity: 1; animation: style-preview-pulse 1.2s ease-in-out infinite; }
.style-preview.is-loading { opacity: .42; }
.style-preview.is-error { opacity: .72; }
img.media-loading, video.media-loading { background-color: #efedf4; }
img.media-error, video.media-error { background-color: #f4e9e9; }
.dot-grid { position: absolute; top: .7%; left: 55.43%; z-index: 3; display: grid; width: 27.72%; height: 7.69%; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(2, 1fr); align-items: center; justify-items: center; }
.dot-grid span { width: clamp(4px, 18%, 8px); aspect-ratio: 1; border-radius: 1px; background: #cfe9f2; }
.style-preview { transition: opacity .24s ease, transform .24s ease; }
.style-preview.is-switching { opacity: .32; transform: translateY(3px) scale(.98); }
@keyframes style-preview-pulse { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
.dance-collage__result { filter: saturate(1.12) brightness(1.04); }
.edit-collage__label { position: absolute; right: 3px; bottom: 10px; z-index: 3; padding: 7px 9px; border-radius: 6px; color: #fff; background: rgba(12,12,18,.88); font-size: 8px; font-weight: 700; }
.media-toolbar { position: absolute; bottom: 3px; left: 50%; z-index: 2; display: flex; gap: 4px; padding: 10px 13px; border-radius: 13px; background: rgba(25,23,32,.94); box-shadow: 0 13px 26px rgba(0,0,0,.2); transform: translateX(-50%); white-space: nowrap; }
.media-toolbar__item { display: flex; min-width: 69px; flex-direction: column; align-items: center; gap: 4px; padding: 4px 7px; border: 0; border-radius: 9px; color: rgba(255,255,255,.62); background: transparent; cursor: pointer; font: inherit; font-size: 8px; line-height: 1.2; transition: background .2s ease, color .2s ease, transform .2s ease; }
.media-toolbar__item:hover, .media-toolbar__item:focus-visible { color: #fff; transform: translateY(-1px); }
.media-toolbar__item--active { color: #fff; background: var(--purple); }
.media-toolbar__item img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; }
.original-tag { position: absolute; top: 3.5%; left: 3.15%; z-index: 4; padding: clamp(4px, .65vw, 7px) clamp(10px, 1.6vw, 18px); border-radius: 999px; color: #15141b; background: rgba(255,255,255,.84); box-shadow: 0 3px 7px rgba(0,0,0,.12); font-size: clamp(7px, 1vw, 11px); font-weight: 800; }
.scribble { position: absolute; width: 95px; fill: none; stroke: var(--yellow); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }
.scribble--transfer { position: absolute; top: 67.31%; left: 14.49%; width: 24.88%; transform: rotate(-8deg); }
.hot-ribbon { position: absolute; top: 21px; left: -42px; z-index: 3; width: 145px; padding: 7px 0; color: #111; background: var(--yellow); font-size: 13px; font-weight: 900; text-align: center; transform: rotate(-45deg); }

.capabilities { padding: 76px 0 0; color: #fff; background: radial-gradient(circle at 15% 0%, #3d277c 0%, transparent 33%), linear-gradient(112deg, #241a41 0%, #17161c 42%, #1b1515 100%); }
.section-heading--light { margin-bottom: 34px; }
.section-heading--light h2 { font-size: clamp(28px, 3vw, 38px); }
.section-heading--light p { max-width: 670px; margin: 13px auto 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.5; }
.capability-grid { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-card { overflow: hidden; padding: 10px 10px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.07); box-shadow: 0 10px 24px rgba(0,0,0,.11); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.capability-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.11); }
.capability-card > img, .capability-card > video { width: 100%; aspect-ratio: 464 / 320; height: auto; border-radius: 7px; object-fit: cover; }
.compare-media { position: relative; overflow: hidden; aspect-ratio: 464 / 320; border-radius: 7px; background: #222027; }
.compare-media__after, .compare-media__before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-media__before { z-index: 1; clip-path: inset(0 50% 0 0); animation: comparison-sweep 5.8s ease-in-out infinite alternate; }
.compare-media__divider { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(13,13,22,.14), 0 0 12px rgba(0,0,0,.24); animation: comparison-divider 5.8s ease-in-out infinite alternate; }
.compare-media__divider::after { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; content: "↔"; border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(13,13,22,.66); font-size: 14px; line-height: 20px; text-align: center; transform: translate(-50%, -50%); }
.compare-media__label { position: absolute; top: 9px; z-index: 3; padding: 4px 6px; border-radius: 4px; color: #fff; background: rgba(13,13,22,.68); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.compare-media__label--before { left: 9px; }
.compare-media__label--after { right: 9px; }
@keyframes comparison-sweep { from { clip-path: inset(0 78% 0 0); } to { clip-path: inset(0 12% 0 0); } }
@keyframes comparison-divider { from { left: 22%; } to { left: 88%; } }
.capability-card h3 { margin: 14px 6px 6px; font-size: 17px; line-height: 1.15; font-weight: 800; }
.capability-card p { margin: 0 6px; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.5; }
.site-footer { width: calc(100% - 48px); margin: 54px auto 0; padding: 40px 24px 34px; border-radius: 34px 34px 0 0; background: #050506; text-align: center; }
.site-footer__links { display: flex; align-items: center; justify-content: center; }
.site-footer__link { padding: 0 26px; border: 0; color: rgba(255,255,255,.88); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: color .2s ease; }
.site-footer__link + .site-footer__link { border-left: 1px solid rgba(255,255,255,.18); }
.site-footer__link:hover, .site-footer__link:focus-visible { color: #fff; }
.site-footer p { margin: 17px 0 0; color: rgba(255,255,255,.42); font-size: 9px; line-height: 1.4; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease var(--reveal-delay, 0s), transform .5s ease var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal-body { min-width: 320px; background: #f6f6f8; color: #211f28; }
.legal-header { position: sticky; top: 0; z-index: 10; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100% - var(--max)) / 2)); border-bottom: 1px solid rgba(29,20,65,.09); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.legal-header__brand { display: inline-flex; align-items: center; gap: 9px; color: #17151f; font-size: 15px; font-weight: 800; text-decoration: none; }
.legal-header__brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
.legal-header__home { color: #5a5568; font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-header__home:hover, .legal-header__home:focus-visible { color: var(--purple); }
.legal-hero { color: #fff; background: linear-gradient(108deg, #100554 0%, #28106e 60%, #4b1f7d 100%); }
.legal-hero__inner { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 68px; }
.legal-hero__eyebrow { margin: 0 0 13px; color: #ffd02b; font-size: 11px; font-weight: 800; line-height: 1.4; }
.legal-hero h1 { max-width: 760px; margin: 0; font-size: 48px; font-weight: 800; line-height: 1.12; letter-spacing: 0; }
.legal-content { padding: 58px 24px 72px; background: #f6f6f8; }
.legal-content__inner { width: min(900px, 100%); margin: 0 auto; }
.legal-content .part { margin: 0 0 44px; }
.legal-content h2 { margin: 50px 0 18px; color: #17151f; font-size: 25px; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.legal-content .part:first-child > h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 30px 0 12px; color: #28242f; font-size: 17px; font-weight: 800; line-height: 1.45; letter-spacing: 0; }
.legal-content p, .legal-content li { color: #625e6b; font-size: 14px; line-height: 1.78; }
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px; padding-left: 24px; }
.legal-content li + li { margin-top: 7px; }
.legal-content strong { color: #38333f; }
.legal-content a { color: #5a2dde; font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.legal-content table { width: 100%; margin: 24px 0; border-spacing: 0; border-collapse: collapse; table-layout: fixed; background: #fff; }
.legal-content th, .legal-content td { padding: 12px; border: 1px solid #dedce4; color: #5d5966; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; vertical-align: top; }
.legal-content th { color: #26222d; background: #efedf5; font-weight: 800; text-align: left; }
.legal-footer { padding: 42px 24px 36px; color: #fff; background: #09080d; text-align: center; }
.legal-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 0; }
.legal-footer a { padding: 0 24px; color: rgba(255,255,255,.84); font-size: 13px; font-weight: 700; text-decoration: none; }
.legal-footer a + a { border-left: 1px solid rgba(255,255,255,.18); }
.legal-footer a:hover, .legal-footer a:focus-visible { color: #fff; }
.legal-footer p { margin: 18px 0 0; color: rgba(255,255,255,.42); font-size: 9px; line-height: 1.5; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__inner { width: min(720px, calc(100% - 48px)); min-height: 0; grid-template-columns: 1fr; gap: 0; padding-top: 68px; }
  .hero__copy { padding: 0; text-align: center; }
  .brand-line, .store-buttons { justify-content: center; }
  .hero__description { margin-right: auto; margin-left: auto; }
  .hero__visual { width: min(650px, 100%); min-height: 520px; margin: 0 auto; }
  .hero-banner { width: min(700px, 100%); }
  .magic-card, .magic-card--reverse { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; gap: 20px; padding: 28px; }
}

@media (max-width: 620px) {
  .hero__inner { width: calc(100% - 34px); padding-top: 44px; }
  .brand-line { margin-bottom: 14px; font-size: 10px; }
  .brand-line__powered { width: 88px; height: 16px; flex-basis: 88px; }
  .hero h1 { font-size: clamp(39px, 11vw, 53px); letter-spacing: -1.5px; }
  .hero__description { font-size: 12px; }
  .store-button { min-width: 140px; }
  .hero__visual { min-height: 425px; }
  .hero-banner { width: min(590px, 112%); }
  .magic { padding: 48px 0 52px; }
  .section-heading { width: calc(100% - 34px); margin-bottom: 24px; }
  .section-heading h2 { font-size: 28px; }
  .magic__list, .capability-grid { width: calc(100% - 22px); }
  .magic-card, .magic-card--reverse { min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 28px 22px 26px; align-items: stretch; }
  .magic-card--reverse .magic-card__copy, .magic-card--reverse .magic-card__media { order: initial; }
  .magic-card__copy { max-width: none; }
  .magic-card h3 { font-size: 31px; }
  .magic-card__copy > p:last-child { font-size: 12px; line-height: 1.5; }
  .magic-card__media { min-height: 248px; }
  .magic-card__media > img, .magic-card__media > video { width: 195px; height: 230px; }
  .magic-card__media--video > .video-preview { width: 230px; height: 300px; }
  .edit-collage__label { right: 0; bottom: 3px; font-size: 7px; }
  .media-toolbar { bottom: 2px; gap: 1px; padding: 8px 10px; }
  .media-toolbar__item { min-width: 61px; padding: 3px 5px; font-size: 7px; }
  .media-toolbar__item img { width: 32px; height: 32px; }
  .capabilities { padding: 50px 0 0; }
  .section-heading--light p { font-size: 11px; }
  .capability-grid { grid-template-columns: 1fr; gap: 13px; }
  .site-footer { width: calc(100% - 22px); margin-top: 38px; padding: 30px 14px 26px; border-radius: 24px 24px 0 0; }
  .site-footer__link { padding: 0 11px; font-size: 11px; }
  .hot-ribbon { top: 20px; left: -49px; }
  .legal-header { min-height: 58px; padding: 10px 17px; }
  .legal-header__brand { font-size: 13px; }
  .legal-header__brand img { width: 27px; height: 27px; }
  .legal-header__home { font-size: 11px; }
  .legal-hero__inner { width: calc(100% - 34px); padding: 52px 0 50px; }
  .legal-hero h1 { font-size: 32px; line-height: 1.18; }
  .legal-content { padding: 38px 17px 54px; }
  .legal-content .part { margin-bottom: 34px; }
  .legal-content h2 { margin-top: 40px; font-size: 21px; }
  .legal-content h3 { font-size: 16px; }
  .legal-content p, .legal-content li { font-size: 13px; line-height: 1.72; }
  .legal-content th, .legal-content td { padding: 8px; font-size: 10px; }
  .legal-footer { padding: 34px 14px 30px; }
  .legal-footer a { padding: 0 11px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
