/* Mirae site: the app's night-studio look. Single dark theme by design (matches the app). */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #131313;
  --raised: #1a1a1a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #a3a3a8;
  --pink: #f04aa8;
  --plum: #4b0a62;
  --butter: #f6e7a6;
  --sky: #bfe3f5;
  --fuchsia: #ff4fb1;
  --violet: #c9b6ff;
  --display: 'Krona One', 'Arial Black', system-ui, sans-serif;
  --wide: 'Lexend Exa', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pink); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* --- Nav --------------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(0, 0, 0, 0.6); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: #1a0b14; background: linear-gradient(100deg, #ffd6ec, #fff 45%, #e2c8ff);
  box-shadow: 0 10px 40px rgba(240, 74, 168, 0.25); white-space: nowrap;
}
.btn.small { padding: 10px 18px; font-size: 11px; }
.btn svg { width: 18px; height: 18px; }

/* --- Hero -------------------------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 56px; }
.hero::before {
  content: ''; position: absolute; inset: -200px 0 auto; height: 720px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 30%, rgba(122, 20, 150, 0.55), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--wide); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink); margin: 0 0 18px; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.08; margin: 0 0 22px; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--pink); letter-spacing: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { font-size: 14px; color: var(--muted); }
.stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.stats > div { max-width: 150px; }
.stats div { font-size: 14px; color: var(--muted); }
.stats strong { display: block; font-family: var(--display); font-weight: 400; color: var(--text); font-size: 22px; margin-bottom: 2px; }

/* Before/after compare */
.compare {
  position: relative; aspect-ratio: 2 / 3; width: 100%; max-width: 420px; margin-inline: auto;
  border-radius: 32px; overflow: hidden; background: var(--surface); user-select: none; touch-action: pan-y;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare .handle::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: 18px; letter-spacing: 2px;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tag { position: absolute; top: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); font-family: var(--wide); font-size: 10px; letter-spacing: 0.18em; pointer-events: none; }
.tag.l { left: 18px; } .tag.r { right: 18px; }
.look-chip { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 20px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); pointer-events: none; }
.look-chip b { font-family: var(--display); font-weight: 400; font-size: 15px; }
.look-chip span { font-size: 13px; color: var(--muted); }

/* --- Cast marquee ------------------------------------------------------------------------ */
.cast { padding: 40px 0 24px; }
.cast p { text-align: center; color: var(--muted); margin: 0 0 22px; padding-inline: 20px; font-size: 15px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; }
.track figure { margin: 0; width: 168px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; position: relative; background: var(--surface); flex: none; }
.track img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.track figcaption { position: absolute; inset: auto 0 0; padding: 30px 12px 10px; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* --- Sections ---------------------------------------------------------------------------- */
section.block { padding: 88px 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 14px; text-wrap: balance; }
.head p { color: var(--muted); margin: 0; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px 18px 26px; }
.step .pic { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 20px; background: var(--raised); position: relative; }
.step .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.step .num { font-family: var(--wide); font-size: 12px; letter-spacing: 0.2em; color: var(--pink); }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 18px; margin: 8px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.pic.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: none; }
.pic.pair img { border-radius: 14px; }
.pic.stack { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; background: none; }
.pic.stack img { border-radius: 14px; object-position: 50% 50%; }

/* Colorful feature boxes, like the app */
.boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.box { position: relative; border-radius: 30px; padding: 32px; min-height: 300px; overflow: hidden; color: #140812; display: flex; flex-direction: column; }
.box h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0 0 10px; max-width: 52%; }
.box p { margin: 0; max-width: 50%; font-size: 15px; opacity: 0.8; }
.box .art { position: absolute; right: -10px; bottom: -10px; width: 46%; max-width: 230px; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; transform: rotate(4deg); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); }
.box .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.box .bubble { position: absolute; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; right: 38%; bottom: 40px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.box .bubble img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.box.butter { background: var(--butter); } .box.sky { background: var(--sky); }
.box.fuchsia { background: var(--fuchsia); color: #fff; } .box.violet { background: var(--violet); }
.box.fuchsia p { opacity: 0.92; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 50%; }
.chip { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 18px; }
.swatches i { width: 18px; height: 40px; border-radius: 9px; display: block; }

/* Second comparison + privacy */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split .compare { max-width: 380px; }
.promise { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.promise li b { color: var(--text); display: block; }
.promise .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(240, 74, 168, 0.16); color: var(--pink); display: grid; place-items: center; font-size: 16px; }

.final { text-align: center; padding: 96px 0 72px; position: relative; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 60%, rgba(122, 20, 150, 0.45), transparent 70%); }
.final .faces { display: flex; justify-content: center; margin-bottom: 28px; }
.final .faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 3px solid #000; margin-left: -14px; }
.final .faces img:first-child { margin-left: 0; }

/* --- Footer and legal pages -------------------------------------------------------------- */
footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

main.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
main.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-top: 28px; }
main.legal h2 { font-size: 20px; margin: 40px 0 8px; }
main.legal p, main.legal li { color: #d6d6da; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin-top: 16px; }
main.legal footer { margin-top: 64px; font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Responsive -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .stats { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .boxes { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section.block { padding: 64px 0; }
}
@media (max-width: 480px) {
  .box { padding: 26px; min-height: 360px; }
  .box .art { width: 44%; }
  .box h3 { font-size: 21px; max-width: 58%; }
  .box p, .chips { max-width: 56%; }
  .track figure { width: 132px; }
}
