/* Moonside Live — site. Same palette, radii and type as the app (App.swift → Theme). */
:root {
  --bg: #0B0B0B; --panel: #141413; --control: #1C1C1B; --line: #2C2C2A; --line-strong: #44443F;
  --text: #F1EFE8; --muted: #888780; --faint: #5F5E5A;
  --live: #E24B4A; --ok: #5DCAA5; --warn: #EF9F27; --violet: #8B5CF6; --violet-soft: #A78BFA;
  --accent: linear-gradient(90deg, var(--violet-soft), var(--live));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.accent { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 11, .78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(44, 44, 42, .6); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; font-family: inherit; cursor: pointer; }
.lang:hover { color: var(--text); border-color: var(--line-strong); }

/* Buttons: primary = the app's red "Passer en live" button. */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-live { background: var(--live); color: #fff; }
.btn-live:hover { background: #ec5958; }
.btn-ghost { background: var(--control); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* Status pill with the live dot, like the app's top bar. */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--live); padding: 6px 12px 6px 10px; border-radius: 99px; background: rgba(226, 75, 74, .1); border: 1px solid rgba(226, 75, 74, .25); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--live); box-shadow: 0 0 0 0 rgba(226, 75, 74, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(226, 75, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 75, 74, 0); } }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; background: radial-gradient(600px 380px at 50% 30%, rgba(139, 92, 246, .22), transparent 70%), radial-gradient(500px 300px at 75% 70%, rgba(226, 75, 74, .12), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 22px auto 20px; max-width: 15ch; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.meta { margin-top: 16px; font-size: 13px; color: var(--faint); }
.shot { margin: 64px auto 0; width: min(1180px, 100%); perspective: 2000px; }
.shot .window { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 120px rgba(0, 0, 0, .7), 0 0 120px rgba(139, 92, 246, .12); transform: rotateX(8deg); transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.shot.in .window { transform: rotateX(0); }
/* Product shot (MacBook + iPhone + cards), rises and settles into place. */
.shot.product { margin-top: 36px; width: min(1320px, 100% + 80px); margin-inline: auto; transform: translateY(40px) scale(.96); opacity: .0; transition: transform 1.4s cubic-bezier(.22, 1, .36, 1), opacity 1s; }
.shot.product.in { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shot.product { transform: none; opacity: 1; } }

/* Platforms / DAWs strip */
.strip { padding: 40px 0 8px; display: grid; gap: 14px; justify-items: center; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.strip-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); }
.chip i { width: 8px; height: 8px; border-radius: 99px; }
.chip.soft { color: var(--muted); font-weight: 500; }

/* Sections */
section { padding: 110px 0 0; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-soft); padding: 5px 12px; border-radius: 99px; background: rgba(139, 92, 246, .12); border: 1px solid rgba(167, 139, 250, .3); }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.03em; margin: 16px 0 14px; font-weight: 800; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Feature tiles: the app's panels. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.tile .txt { padding: 26px 28px 22px; }
.tile h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.015em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .pic { margin-top: auto; padding: 0 22px 22px; }
.tile .pic img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.tile.pro h3::after { content: "PRO"; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; vertical-align: 3px; padding: 3px 7px; border-radius: 6px; color: #fff; background: linear-gradient(90deg, var(--violet), var(--live)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.tile.wide { flex-direction: row; align-items: center; }
.tile.wide .txt { flex: 1; padding: 40px; }
.tile.wide .pic { flex: 1.2; padding: 26px; margin: 0; }
.tile .pic.center { display: flex; justify-content: center; }
.tile .pic.center img { width: auto; max-height: 300px; }

/* Small features */
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.mini div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.mini svg { width: 26px; height: 26px; stroke: var(--violet-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini b { display: block; margin: 12px 0 4px; font-size: 15px; }
.mini span { color: var(--muted); font-size: 14px; }

/* Video */
.video { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); background: #000; }
.video video { width: 100%; aspect-ratio: 16 / 9; }

/* Comparison table */
.compare { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--control); }
.compare th:nth-child(n+2), .compare td:nth-child(n+2) { text-align: center; width: 150px; }
.compare th.us { color: var(--text); }
.yes, .no, .plug { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 99px; font-size: 14px; font-weight: 800; }
.yes { color: var(--ok); background: rgba(93, 202, 165, .14); }
.no { color: var(--faint); }
.plug { width: auto; padding: 0 9px; font-size: 11px; font-weight: 700; color: var(--warn); background: rgba(239, 159, 39, .12); letter-spacing: .02em; }
.compare-note { margin: 16px 4px 0; color: var(--muted); font-size: 14px; text-align: center; }

/* Pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 34px 36px; display: flex; flex-direction: column; }
.price.pro { border: 2px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, var(--violet-soft), var(--live), var(--violet)) border-box; box-shadow: 0 0 80px rgba(139, 92, 246, .18); }
.price-top { display: flex; align-items: center; justify-content: space-between; }
.price h3 { margin: 0; font-size: 22px; }
.badge { font-size: 12px; font-weight: 700; color: #fff; padding: 6px 12px; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--live)); }
.amount { font-size: 54px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.amount small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 11px; }
.price li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.price li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 99px; background: rgba(93, 202, 165, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l3 2.8 5.2-5.8' fill='none' stroke='%235DCAA5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.price.pro li::before { background-color: rgba(139, 92, 246, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l3 2.8 5.2-5.8' fill='none' stroke='%23A78BFA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price .btn { margin-top: auto; justify-content: center; }
.price .note { margin: -12px 0 22px; font-size: 13px; color: var(--muted); }

/* Download */
.download { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 64px 24px; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 50% 0, rgba(139, 92, 246, .2), transparent 70%); pointer-events: none; }
.download > * { position: relative; }
.download img.icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 20px 60px rgba(139, 92, 246, .4); }
.req { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
footer { margin-top: 110px; border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 0 0; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; text-align: left; max-width: none; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: #cfcdc6; }
.legal ul { padding-left: 20px; }

/* Getting-started steps */
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; margin-top: 40px; }
.step-n { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--violet), var(--live)); }
.step h2 { margin: 6px 0 8px; }
.step img { margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .shot .window { transform: none; } .dot { animation: none; } }

/* Phones and tablets */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: auto; }
  .tile.wide { flex-direction: column; }
  .tile.wide .txt { padding: 26px 28px 0; }
  .mini { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 12px; font-size: 14px; }
  .compare th:nth-child(n+2), .compare td:nth-child(n+2) { width: 84px; }
  section { padding-top: 80px; }
  .hero { padding-top: 56px; }
  .shot.product { width: 100%; margin-top: 28px; }
}
@media (max-width: 520px) { .mini { grid-template-columns: 1fr; } .nav .btn { display: none; } }
