/* CollageIQ website. Dark navy with neon light, in the app's brand colours. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #030c18;
  --bg-2: #051a2f;
  --panel: rgba(255, 255, 255, .04);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --ink: #eef4ff;
  --muted: #9fb2cb;
  --cyan: #27d3ff;
  --blue: #2f6bff;
  --violet: #7b5cff;
  --magenta: #ff3dbb;
  --q-blue: #2a8cff;
  --q-red: #ff3b30;
  --q-yellow: #ffb800;
  --q-green: #22b14c;
  --radius: 22px;
  --wrap: 1180px;
  --display: "Outfit", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
b { font-weight: 650; }
button { font: inherit; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

.grad {
  background: linear-gradient(100deg, var(--cyan) 0%, #6d8bff 40%, var(--magenta) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(39, 211, 255, .35));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: #c5d3e6; max-width: 34em; margin-top: 22px; }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 16px; max-width: 40em; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.link { color: var(--cyan); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 20px; }
.link:hover { text-decoration: underline; }
.pro { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .1em; vertical-align: middle; padding: 3px 7px; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--magenta)); color: #fff; margin-left: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { padding: 9px 18px; font-size: .92rem; }
.btn--glow { background: linear-gradient(90deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 6px 24px rgba(47, 107, 255, .45); }
.btn--glow:hover { box-shadow: 0 10px 34px rgba(123, 92, 255, .6); }
.btn--ghost { border-color: rgba(255, 255, 255, .22); color: var(--ink); background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--cyan); }

.play {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 0 rgba(39, 211, 255, .0), 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.play:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(39, 211, 255, .18), 0 14px 40px rgba(0, 0, 0, .5); }
.play span { display: flex; flex-direction: column; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.05; }
.play small { font-size: .62rem; letter-spacing: .12em; font-weight: 500; opacity: .85; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(3, 12, 24, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.nav__brand img { height: 38px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: #c9d6ea; font-weight: 500; font-size: .95rem; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s; }
.nav__menu span:first-child { top: 17px; }
.nav__menu span:last-child { top: 25px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: flex; flex-direction: column; padding: 6px 24px 18px; background: rgba(3, 12, 24, .96); border-bottom: 1px solid var(--line); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a { padding: 12px 0; text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: clamp(680px, 100vh, 1000px); min-height: clamp(680px, 100svh, 1000px);
  display: flex; align-items: center;
  padding: 120px 0 90px;
  background: radial-gradient(1200px 700px at 70% 40%, #0a2a4a 0%, var(--bg-2) 45%, var(--bg) 100%);
  overflow: hidden; isolation: isolate;
}
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .7; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 2%; top: 4%; background: radial-gradient(circle, rgba(39, 211, 255, .55), transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 4%; top: 0; background: radial-gradient(circle, rgba(255, 61, 187, .45), transparent 65%); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 50vw; height: 50vw; left: 30%; bottom: -6%; background: radial-gradient(circle, rgba(47, 107, 255, .5), transparent 65%); animation-delay: -12s; }
.aurora i:nth-child(4) { width: 30vw; height: 30vw; left: 60%; top: 40%; background: radial-gradient(circle, rgba(123, 92, 255, .45), transparent 65%); animation-delay: -3s; }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ribbon { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s .2s var(--ease) forwards, sway 9s ease-in-out 3.4s infinite alternate; }
.ribbon--2 { animation-delay: .6s, 3.8s; }
.ribbon--3 { animation-delay: 1s, 4.2s; }
.filmstrip { animation: slide 40s linear infinite; }
.filmstrip--b { animation-direction: reverse; }

.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; width: 100%; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
/* A soft dark pool behind the headline, so the neon ribbons never fight the words. */
.hero__copy { position: relative; }
.hero__copy::before { content: ""; position: absolute; inset: -18% -22% -18% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(3, 12, 24, .82), rgba(3, 12, 24, .55) 55%, transparent); pointer-events: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #b9c8dc; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: rgba(34, 177, 76, .2); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #3ee07a; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hero__demo { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(340px, 78vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1c2a3d, #0a1220 60%, #1a2236);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08) inset, 0 40px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(39, 211, 255, .18);
  animation: float 7s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #05080e; transform: translateX(-50%); z-index: 3; box-shadow: 0 0 0 2px #121a28; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0f141c; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 40px 14px 8px; font-family: var(--display); font-size: 1.05rem; }
.app-bar__back { width: 14px; height: 14px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); margin-left: 4px; }
.app-bar__icons { display: flex; gap: 10px; margin-left: auto; }
.app-bar__icons i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.app-bar__icons .play-i { background: none; width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-radius: 0; }
.app-bar__save { color: #5fb0ff; font-weight: 600; font-size: .9rem; }
.stage-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 18px; }
.stage { position: relative; width: 100%; aspect-ratio: .8; background: #fff; border-radius: 4px; overflow: hidden; --gap: 5px; --rad: 6px; transition: background .6s; }
.stage--big { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, #ffe8f3, #e8f1ff); }
.tile-cell { position: absolute; transition: left .8s var(--ease), top .8s var(--ease), width .8s var(--ease), height .8s var(--ease), transform .8s var(--ease), opacity .5s, box-shadow .8s; }
.tile-cell > div { position: absolute; inset: var(--gap); border-radius: var(--rad); overflow: hidden; transition: inset .4s var(--ease), border-radius .4s var(--ease); background: #ddd; }
.tile-cell svg { width: 100%; height: 100%; }
.tile-cell.is-free > div { inset: 0; border: 6px solid #fff; border-bottom-width: 18px; border-radius: 2px; box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
.tile-cell.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.stage__text {
  position: absolute; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -50%) scale(0) rotate(-6deg);
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; white-space: nowrap;
  padding: 4px 14px; border-radius: 999px; background: #e91e63; box-shadow: 0 6px 18px rgba(233, 30, 99, .5);
  transition: transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.stage__text.is-on { transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
.stage__sticker { position: absolute; right: 8%; bottom: 8%; z-index: 20; font-size: 2.4rem; transition: transform .6s var(--ease); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.stage__sticker.is-flipped { transform: scaleX(-1); }
.scrub { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; font-size: .78rem; color: #cfd8e6; }
.scrub__play { width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.scrub__bar { flex: 1; height: 5px; border-radius: 3px; background: #22324a; overflow: hidden; }
.scrub__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--blue)); animation: scrub 8s linear infinite; }
.toolbar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 8px 8px 16px; background: #141b26; border-top: 1px solid rgba(255, 255, 255, .06); }
.tb { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .62rem; color: #b8c4d6; padding: 6px 0; border-radius: 12px; }
.tb--on { background: #1f6fe5; color: #fff; }
.tb__ico { width: 18px; height: 18px; border-radius: 5px; border: 2px solid currentColor; }
.tb__ico--sticker { border-radius: 50%; }
.tb__ico--text { border: 0; border-top: 3px solid currentColor; width: 14px; position: relative; }
.tb__ico--text::after { content: ""; position: absolute; left: 5px; top: 0; width: 3px; height: 14px; background: currentColor; }
.tb__ico--music { border-radius: 50% 50% 50% 0; }
.tb__ico--fx { transform: rotate(45deg); border-radius: 3px; }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: rgba(10, 22, 40, .72); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: float 6s ease-in-out infinite;
}
.float-chip span { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; background: linear-gradient(135deg, var(--blue), var(--violet)); font-size: .8rem; font-weight: 800; }
.float-chip--a { left: -2%; top: 18%; animation-delay: -1s; }
.float-chip--b { right: -4%; top: 46%; animation-delay: -3s; }
.float-chip--c { left: 4%; bottom: 10%; animation-delay: -5s; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }

/* ---------- sections ---------- */
.section { position: relative; padding: 120px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, #061529 50%, var(--bg) 100%); }
.section__head { text-align: center; margin: 0 auto 60px; max-width: 820px; }
.section__head .sub { margin-left: auto; margin-right: auto; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.mode::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--c), transparent 70%); opacity: .18; transition: opacity .35s, transform .35s; }
.mode:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); background: var(--panel-2); }
.mode:hover::before { opacity: .38; transform: scale(1.2); }
.mode__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 10px 26px color-mix(in srgb, var(--c) 45%, transparent); margin-bottom: 22px; }
.mode__icon svg { width: 30px; height: 30px; }
.mode h3 { margin-bottom: 10px; }
.mode p { color: var(--muted); font-size: .98rem; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--rev .split__copy { order: 2; }
.split__copy h2 { margin-bottom: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  min-width: 46px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03); color: var(--ink); font-weight: 600; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--cyan); }
.chip[aria-selected="true"] { background: linear-gradient(135deg, var(--blue), var(--violet)); border-color: transparent; box-shadow: 0 6px 18px rgba(47, 107, 255, .4); }
.layout-picks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pick { width: 66px; height: 66px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); cursor: pointer; transition: all .2s; }
.pick:hover { border-color: var(--cyan); transform: translateY(-2px); }
.pick[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(39, 211, 255, .22); }
.pick svg { width: 100%; height: 100%; }

.canvas-card { padding: 22px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 70px rgba(123, 92, 255, .14); }
.canvas-card__bar { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px 14px; align-items: center; margin-top: 18px; color: var(--muted); font-size: .88rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: #22324a; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(39, 211, 255, .35); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(39, 211, 255, .35); cursor: pointer; }

/* smart tools */
.smart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); border-color: rgba(39, 211, 255, .3); }
.card--wide { grid-column: span 2; grid-row: span 2; }
.card__body { padding: 22px 24px 26px; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: .98rem; }
.demo { position: relative; height: 200px; overflow: hidden; background: radial-gradient(circle at 50% 120%, rgba(47, 107, 255, .25), transparent 60%); display: grid; place-items: center; }

.ba { position: relative; flex: 1; min-height: 340px; overflow: hidden; }
.ba__img { position: absolute; inset: 0; }
.ba__img svg { width: 100%; height: 100%; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); filter: saturate(.45) brightness(.78) contrast(.85) sepia(.18); }
.ba__img--after { filter: saturate(1.25) contrast(1.06); }
.ba__tag { position: absolute; top: 16px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.ba__tag--l { left: 16px; }
.ba__tag--r { right: 16px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 18px rgba(255, 255, 255, .7); pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.ba__handle span::before, .ba__handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; transform: translateY(-50%); }
.ba__handle span::before { left: 9px; border-right: 8px solid #2f6bff; }
.ba__handle span::after { right: 9px; border-left: 8px solid #2f6bff; }

.face-frame { position: relative; width: 120px; height: 170px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 4px #fff; animation: pan 6s ease-in-out infinite; }
.face-frame svg { width: 260px; height: 170px; max-width: none; }
.face { position: absolute; left: 40%; top: 32%; font-size: 2.6rem; }
.focus { position: absolute; left: calc(40% - 10px); top: calc(32% - 8px); width: 64px; height: 64px; border: 2px solid #3ee07a; border-radius: 10px; animation: focus 6s ease-in-out infinite; }

.match { display: flex; gap: 10px; }
.match svg { width: 82px; height: 120px; border-radius: 10px; box-shadow: 0 0 0 3px #fff; }
.match svg:nth-child(1) { animation: match-a 5s ease-in-out infinite; }
.match svg:nth-child(2) { filter: none; transform: translateY(-8px); box-shadow: 0 0 0 3px var(--cyan), 0 0 24px rgba(39, 211, 255, .5); }
.match svg:nth-child(3) { animation: match-b 5s ease-in-out infinite; }

.pop { position: relative; width: 150px; height: 150px; }
.pop__frame { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 4px #fff; }
.pop__frame svg { width: 100%; height: 100%; }
.pop__subject { position: absolute; left: 50%; top: 36%; font-size: 5rem; transform: translate(-50%, -50%); animation: popout 4s var(--ease) infinite; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); }

.life { position: relative; width: 200px; height: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #fff; border-radius: 8px; }
.life svg { width: 100%; height: 100%; border-radius: 4px; animation: kenburns 6s ease-in-out infinite alternate; }
.life svg:nth-child(2) { animation-delay: -3s; }

.share { display: flex; align-items: center; gap: 18px; }
.share__photos { position: relative; width: 92px; height: 110px; }
.share__photos svg { position: absolute; inset: 0; border-radius: 10px; box-shadow: 0 0 0 3px #fff, 0 8px 18px rgba(0, 0, 0, .35); }
.share__photos svg:nth-child(1) { transform: rotate(-10deg) translateX(-10px); }
.share__photos svg:nth-child(2) { transform: rotate(4deg); }
.share__photos svg:nth-child(3) { transform: rotate(12deg) translateX(10px); }
.share__arrow { width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--cyan)); position: relative; animation: shareflow 1.8s ease-in-out infinite; }
.share__arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 10px solid var(--cyan); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.share img { width: 56px; height: 56px; filter: drop-shadow(0 6px 18px rgba(39, 211, 255, .45)); }
@keyframes shareflow { 0%, 100% { opacity: .4; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(4px); } }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { position: relative; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; min-height: 280px; display: flex; flex-direction: column; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .18); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .97rem; }
.tile--stickers { grid-column: span 3; }
.tile--text { grid-column: span 3; }
.tile--anim { grid-column: span 2; }
.tile--filters { grid-column: span 4; }
.tile--templates { grid-column: span 4; }
.tile--bg { grid-column: span 2; }

.emoji-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: auto; padding-top: 22px; font-size: 2rem; }
.emoji-wall span { display: grid; place-items: center; height: 54px; border-radius: 14px; background: rgba(255, 255, 255, .05); transition: transform .3s var(--ease); position: relative; }
.emoji-wall span:hover { transform: scale(1.15) rotate(-6deg); }
.emoji-wall .flip { animation: flipx 3s ease-in-out infinite; }
.emoji-wall .skin b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(.7); opacity: 0; white-space: nowrap; font-weight: 400; font-size: 1.6rem; padding: 6px 10px; border-radius: 12px; background: #1d2a3e; border: 1px solid var(--line); transition: all .3s var(--ease); letter-spacing: 4px; pointer-events: none; }
.emoji-wall .skin { animation: skin 5s infinite; }
.emoji-wall .skin:hover b, .emoji-wall .skin.is-open b { opacity: 1; transform: translateX(-50%) scale(1); }

.text-looks { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: auto; padding-top: 24px; }
.tl { font-family: var(--display); font-size: 1.6rem; font-weight: 800; padding: 6px 14px; border-radius: 10px; }
.tl--neon { color: #fff; text-shadow: 0 0 6px #00e5ff, 0 0 18px #00e5ff, 0 0 36px #00e5ff; }
.tl--pop { color: #ffd600; -webkit-text-stroke: 1.5px #000; paint-order: stroke fill; text-shadow: 3px 3px 0 #000; letter-spacing: .05em; }
.tl--script { font-style: italic; font-weight: 400; color: #d4af37; font-family: Georgia, "Times New Roman", serif; text-shadow: 0 3px 8px rgba(0, 0, 0, .6); }
.tl--mag { background: #fff; color: #111; font-family: Georgia, serif; letter-spacing: .08em; }

.anim-demo { position: relative; margin-top: auto; height: 120px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #2b1055, #0b3a6e); overflow: hidden; }
.anim-word { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff; }
.anim-label { position: absolute; right: 10px; bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.anim-word.a-fade { animation: a-fade 2.2s var(--ease) both; }
.anim-word.a-pop { animation: a-pop 2.2s cubic-bezier(.3, 1.6, .5, 1) both; }
.anim-word.a-zoom { animation: a-zoom 2.2s var(--ease) both; }
.anim-word.a-slide { animation: a-slide 2.2s var(--ease) both; }

.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: auto; padding-top: 22px; }
.filters figure { margin: 0; }
.filters svg { width: 100%; aspect-ratio: 1; border-radius: 12px; transition: transform .3s var(--ease); }
.filters figure:hover svg { transform: scale(1.05); }
.filters figcaption { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 6px; }
.f-warm svg { filter: sepia(.35) saturate(1.4) hue-rotate(-12deg) brightness(1.05); }
.f-noir svg { filter: grayscale(1) contrast(1.5) brightness(.85); }
.f-cyber svg { filter: hue-rotate(110deg) saturate(1.6) contrast(1.1); }

.tpl-row { display: flex; gap: 16px; margin-top: auto; padding-top: 24px; }
.tpl { position: relative; flex: 1; aspect-ratio: 1; border-radius: 12px; padding: 8%; display: grid; gap: 5px; transition: transform .35s var(--ease); }
.tpl:hover { transform: rotate(-2deg) scale(1.03); }
.tpl i { border-radius: 4px; background: rgba(255, 255, 255, .85); }
.tpl b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg); white-space: nowrap; font-family: var(--display); font-size: clamp(.7rem, 1.3vw, 1rem); padding: 3px 10px; border-radius: 999px; color: #fff; }
.tpl--bday { background: radial-gradient(circle at 20% 20%, #ff8a80 2px, transparent 3px) 0 0 / 14px 14px, #fff3f0; grid-template-columns: 1fr 1fr; }
.tpl--bday i { background: #ffd0c9; }
.tpl--bday b { background: #e91e63; }
.tpl--xmas { background: linear-gradient(135deg, #0f5132, #146c43); grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.tpl--xmas i:first-child { grid-column: span 2; }
.tpl--xmas i { background: rgba(255, 255, 255, .85); }
.tpl--xmas b { background: #c62828; }
.tpl--travel { background: linear-gradient(160deg, #00b4db, #0083b0); grid-template-rows: 1fr 1fr; }
.tpl--travel b { background: #111; }

.bg-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: auto; padding-top: 24px; }
.sw { aspect-ratio: 1; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .15); transition: transform .3s var(--ease); }
.sw:hover { transform: translateY(-4px); }
.sw--1 { background: #ffd0c9; }
.sw--2 { background: linear-gradient(135deg, #27d3ff, #7b5cff); }
.sw--3 { background: repeating-linear-gradient(45deg, #ffe082 0 6px, #fff8e1 6px 12px); }
.sw--4 { background: radial-gradient(circle, #ff8a80 2px, transparent 3px) 0 0 / 10px 10px, #fff3f0; }
.sw--5 { background: linear-gradient(135deg, #ff9a8b, #ff6a88 50%, #ff99ac); filter: blur(.5px); }

/* video timeline */
.timeline { padding: 22px; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 70px rgba(39, 211, 255, .12); }
.timeline__toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .35); margin-bottom: 16px; }
.timeline__toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: all .25s; }
.timeline__toggle button.on { background: #fff; color: #0a1424; }
.timeline__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #fff; }
.tl-clip { position: absolute; top: 4px; bottom: 4px; width: calc(33.333% - 5px); border-radius: 8px; overflow: hidden; transition: all .7s var(--ease); }
.tl-clip svg { width: 100%; height: 100%; }
.tl-clip--a { left: 4px; }
.tl-clip--b { left: calc(33.333% + 2px); }
.tl-clip--c { left: calc(66.666% + 1px); }
.timeline.is-seq .tl-clip { left: 4px; width: calc(100% - 8px); opacity: 0; }
.timeline.is-seq .tl-clip.is-live { opacity: 1; }
.timeline:not(.is-seq) .tl-clip svg { animation: kenburns 5s ease-in-out infinite alternate; }
.tracks { position: relative; margin-top: 16px; }
.track { display: flex; gap: 4px; }
.clip { flex: 1; padding: 8px 10px; border-radius: 8px; font-size: .75rem; font-weight: 600; color: #fff; transition: flex .6s var(--ease); }
.clip--a { background: linear-gradient(90deg, #ff6a3d, #ff9a3d); }
.clip--b { background: linear-gradient(90deg, #6a2bb8, #9b4dff); }
.clip--c { background: linear-gradient(90deg, #0b8a6a, #18c99c); }
.timeline:not(.is-seq) .track { flex-direction: column; }
.wave { display: flex; align-items: center; gap: 3px; height: 46px; margin-top: 8px; padding: 0 4px; border-radius: 8px; background: rgba(39, 211, 255, .08); }
.wave i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); opacity: .75; }
.wave i.beat { background: linear-gradient(180deg, #fff, var(--magenta)); opacity: 1; animation: beat .9s ease-in-out infinite; }
.playhead { position: absolute; top: -6px; bottom: -6px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; left: 0; animation: playhead 8s linear infinite; }

.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.feature-list li { position: relative; padding-left: 34px; color: var(--muted); }
.feature-list li b { color: var(--ink); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 0 14px rgba(39, 211, 255, .45); }

/* export */
.ratios { display: flex; justify-content: center; align-items: flex-end; gap: 26px; flex-wrap: wrap; margin-bottom: 54px; }
.ratio { position: relative; height: 230px; aspect-ratio: var(--w) / var(--h); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 24px 50px rgba(0, 0, 0, .45); transition: transform .4s var(--ease); }
.ratio[style*="--w:16"] { height: 150px; }
.ratio:hover { transform: translateY(-8px); }
.ratio svg { width: 100%; height: 100%; }
.ratio span { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .75rem; font-weight: 700; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec { text-align: center; padding: 24px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.spec b { display: block; font-family: var(--display); font-size: 1.6rem; background: linear-gradient(90deg, var(--cyan), #8fa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec span { color: var(--muted); font-size: .9rem; }

/* privacy */
.privacy { background: radial-gradient(800px 400px at 20% 50%, rgba(39, 211, 255, .1), transparent 70%), var(--bg); }
.privacy__inner { display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: center; max-width: 980px; }
.shield { width: 180px; filter: drop-shadow(0 0 30px rgba(39, 211, 255, .45)); animation: float 6s ease-in-out infinite; }
.privacy__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--muted); }
.privacy__list li { padding-left: 28px; position: relative; }
.privacy__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.privacy__list b { color: var(--ink); }

/* pro */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; transition: transform .35s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan--best { background: linear-gradient(170deg, rgba(47, 107, 255, .22), rgba(123, 92, 255, .12)); border-color: rgba(123, 92, 255, .6); box-shadow: 0 0 0 1px rgba(123, 92, 255, .3), 0 30px 70px rgba(47, 107, 255, .25); transform: scale(1.04); }
.plan--best:hover { transform: scale(1.04) translateY(-4px); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(90deg, var(--blue), var(--magenta)); }
.price { margin: 16px 0 8px; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.price b { font-family: var(--display); font-size: 2.8rem; font-weight: 800; }
.price span { color: var(--muted); }
.plan__note { color: var(--muted); font-size: .92rem; }
.fineprint { text-align: center; color: #6f84a0; font-size: .85rem; margin-top: 22px; }
.compare { max-width: 820px; margin: 56px auto 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.compare__row { display: grid; grid-template-columns: 1fr 90px 90px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); font-size: .97rem; }
.compare__row--head { border-top: 0; background: rgba(255, 255, 255, .04); font-family: var(--display); font-weight: 700; }
.compare__row > span:not(:first-child) { text-align: center; }
.compare__row--head span:last-child { color: var(--cyan); }
.y, .n { position: relative; height: 20px; }
.y::after { content: ""; position: absolute; left: 50%; top: 1px; width: 6px; height: 12px; border: solid #3ee07a; border-width: 0 3px 3px 0; transform: translateX(-50%) rotate(45deg); }
.n::after { content: ""; position: absolute; left: 50%; top: 9px; width: 12px; height: 2px; background: #51647d; transform: translateX(-50%); }
.note { font-size: .78rem; color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; }
.faq a { color: var(--cyan); }

/* final cta */
.final { position: relative; padding: 140px 0; text-align: center; overflow: hidden; isolation: isolate; background: var(--bg-2); }
.aurora--soft { opacity: .55; }
.final__inner { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.final__icon { width: 96px; height: 96px; filter: drop-shadow(0 12px 30px rgba(39, 211, 255, .45)); animation: float 6s ease-in-out infinite; }
.final h2 { max-width: 16em; }

/* footer */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.footer__logo { height: 34px; width: auto; }
.footer nav { display: flex; gap: 24px; margin-left: auto; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer__legal { width: 100%; color: #5e7290; font-size: .82rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal--late { transition-delay: .15s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 50% { opacity: .35; } }
@keyframes drift { to { transform: translate(6%, 8%) scale(1.15); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { to { transform: translateY(18px); } }
@keyframes slide { to { transform: translateX(-240px); } }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes scrub { to { width: 100%; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes pan { 0%, 100% { transform: none; } 50% { transform: translateX(-6px); } }
@keyframes focus { 0%, 20% { opacity: 0; transform: scale(1.6); } 40%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes match-a { 0%, 30% { filter: hue-rotate(40deg) saturate(.6) brightness(1.15); } 60%, 100% { filter: none; } }
@keyframes match-b { 0%, 30% { filter: sepia(.6) saturate(1.6) brightness(.85); } 60%, 100% { filter: none; } }
@keyframes popout { 0%, 25% { transform: translate(-50%, -50%) scale(.8); } 50%, 80% { transform: translate(-50%, -88%) scale(1.15); } 100% { transform: translate(-50%, -50%) scale(.8); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.18) translate(3%, -2%); } }
@keyframes flipx { 0%, 40% { transform: scaleX(1); } 50%, 90% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@keyframes skin { 0%, 100% { transform: none; } }
@keyframes beat { 50% { transform: scaleY(1.25); } }
@keyframes playhead { to { left: 100%; } }
@keyframes a-fade { 0% { opacity: 0; } 25%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes a-pop { 0% { transform: scale(0); } 25%, 75% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes a-zoom { 0% { transform: scale(2.4); opacity: 0; } 25%, 75% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes a-slide { 0% { transform: translateY(70px); opacity: 0; } 25%, 75% { transform: none; opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero__inner, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero__cta, .trust { justify-content: center; }
  .split--rev .split__copy { order: 0; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .smart { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; grid-row: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--stickers, .tile--text, .tile--anim, .tile--filters, .tile--templates, .tile--bg { grid-column: span 2; }
  .tile--anim, .tile--bg { grid-column: span 1; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav .btn { display: none; }
  .nav__menu { display: block; }
  .section { padding: 84px 0; }
  .modes, .smart, .bento { grid-template-columns: 1fr; }
  .card--wide, .tile--anim, .tile--bg { grid-column: auto; }
  .tile--stickers, .tile--text, .tile--filters, .tile--templates { grid-column: auto; }
  .float-chip--a { left: 0; }
  .float-chip--b { right: 0; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan--best { transform: none; }
  .plan--best:hover { transform: translateY(-4px); }
  .compare__row { grid-template-columns: 1fr 62px 62px; padding: 12px 14px; font-size: .9rem; }
  .privacy__inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .shield { margin: 0 auto; width: 130px; }
  .privacy__list { text-align: left; }
  .ratio { height: 170px; }
  .ratio[style*="--w:16"] { height: 110px; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .emoji-wall { grid-template-columns: repeat(4, 1fr); }
  .footer nav { margin-left: 0; }
}

/* Screenshot mode (?shot): everything visible, nothing moving. */
.shot .reveal { opacity: 1; transform: none; transition: none; }
.shot .ribbon { stroke-dashoffset: 0; animation: none; }
.shot *, .shot *::before, .shot *::after { animation-play-state: paused !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ribbon { stroke-dashoffset: 0; }
}
