/* Marketify — feuille de style */
:root {
  --bg: #0b0a12;
  --bg-2: #12101c;
  --surface: #17152386;
  --card: #181624;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2fb;
  --muted: #a7a3bd;
  --faint: #6f6a88;
  --orange: #ff7a45;
  --violet: #8b5cff;
  --pink: #ff4fa3;
  --grad: linear-gradient(120deg, var(--orange), var(--pink) 50%, var(--violet));
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* ---------- Boutons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(255, 79, 163, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: background-position 0.4s ease, transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }
.btn--small { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn--light { background: #fff; color: #0b0a12; box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5); }
.btn--light:hover { background: #fff; }
.link { background: none; border: 0; padding: 4px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.icon-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,0.06); cursor: pointer;
}
.icon-btn .i-play { display: none; }
.icon-btn.is-paused .i-play { display: block; }
.icon-btn.is-paused .i-pause { display: none; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(11, 10, 18, 0.72); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.02em; }
.nav nav { margin-left: auto; }
.nav__links { display: none; list-style: none; margin: 0; padding: 0; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 860px) { .nav__links { display: flex; } }
@media (max-width: 859px) { .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(255, 122, 69, 0.22), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(139, 92, 255, 0.28), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(255, 79, 163, 0.16), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 88px 0 110px; } .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--muted); font-size: 14px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
h1 { margin: 0; font: 800 clamp(42px, 7.2vw, 80px)/0.98 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
h1 em { font-size: 1.08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.lead { margin: 24px 0 0; max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.lead--muted { color: var(--muted); }

/* Champ URL */
.urlbox { margin-top: 36px; max-width: 600px; }
.urlbox__field {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 7px;
  border-radius: 999px; background: rgba(23, 21, 35, 0.9); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(139, 92, 255, 0.55), 0 0 0 1px rgba(255,255,255,0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.urlbox__field:focus-within { border-color: rgba(255,255,255,0.4); box-shadow: 0 30px 70px -25px rgba(255, 79, 163, 0.6); }
.urlbox__field.is-invalid { border-color: var(--danger); }
.urlbox__icon { flex: none; margin-left: 14px; color: var(--faint); }
.urlbox input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; outline: none; font-size: 17px; }
.urlbox input::placeholder { color: var(--faint); }
.urlbox__help { margin: 14px 0 0 22px; color: var(--faint); font-size: 14px; }
.urlbox__error { margin: 10px 0 0 22px; color: var(--danger); font-size: 15px; font-weight: 500; }
@media (max-width: 559px) {
  .urlbox__field { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .urlbox__icon { display: none; }
  .urlbox input { padding: 0 12px; flex-basis: 100%; }
  .urlbox .btn { width: 100%; }
  .urlbox__help, .urlbox__error { margin-left: 4px; }
}

/* Téléphones de démonstration */
.hero__stage { position: relative; height: 540px; max-width: 560px; margin: 0 auto; width: 100%; }
.phone { position: absolute; margin: 0; }
.phone canvas { width: 100%; height: auto; border-radius: 22px; background: #1d1a2b; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08); }
.phone figcaption { margin-top: 10px; text-align: center; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.phone--story { width: 42%; left: 4%; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone--feed { width: 44%; right: 2%; top: 42px; z-index: 1; animation: float 8s ease-in-out -2s infinite; }
.phone--square { width: 36%; left: 36%; bottom: 0; z-index: 3; animation: float 6s ease-in-out -4s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 520px) { .hero__stage { height: 420px; } .phone figcaption { display: none; } }

/* ---------- Studio ---------- */
.studio { padding: 40px 0 80px; border-top: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg)); scroll-margin-top: 68px; }
.studio__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 26px; }
.studio__head h2 { margin: 0; font: 800 34px/1.1 var(--display); letter-spacing: -0.03em; }
.studio__source { margin: 0; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }

.loading, .error { display: grid; place-items: center; min-height: 360px; }
.loading__card, .error { width: 100%; max-width: 520px; padding: 32px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.error { display: block; min-height: 0; margin: 0 auto; }
.loading__bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.loading__bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 0.5s ease; }
.loading__steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.loading__steps li { display: flex; align-items: center; gap: 12px; color: var(--faint); font-weight: 500; }
.loading__steps li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); }
.loading__steps li.is-active { color: var(--text); }
.loading__steps li.is-active::before { border-color: var(--pink); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.loading__steps li.is-done { color: var(--muted); }
.loading__steps li.is-done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%230b0a12' stroke-width='3'/%3E%3C/svg%3E") center/14px no-repeat; }
.loading__hint { margin: 22px 0 0; color: var(--faint); font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error__title { margin: 0; font-weight: 700; font-size: 19px; }
.error__msg { margin: 8px 0 22px; color: var(--muted); }
.error__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.editor { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; } .preview { position: sticky; top: 92px; } }
.formats { display: flex; gap: 8px; margin-bottom: 14px; }
.formats button {
  flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; min-height: 52px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); cursor: pointer; font-weight: 700;
}
.formats button small { color: var(--faint); font-weight: 500; font-size: 12px; }
.formats button[aria-checked="true"] { border-color: transparent; background: #fff; color: #0b0a12; }
.formats button[aria-checked="true"] small { color: #55506b; }
.preview__screen { display: grid; place-items: center; padding: 22px; border-radius: var(--radius-lg); background: radial-gradient(80% 80% at 50% 0%, rgba(139,92,255,0.18), transparent), var(--card); border: 1px solid var(--line); }
.preview__screen canvas { width: auto; height: auto; max-width: 100%; max-height: 62vh; border-radius: 16px; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8); }
.player { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.player input[type="range"] { flex: 1; min-width: 0; accent-color: var(--pink); height: 32px; }
.player output { width: 56px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.export { margin-top: 16px; }
.export__progress { margin-top: 14px; }
.export__progress p { margin: 10px 0 4px; color: var(--muted); font-size: 14px; }
.export__done { margin: 10px 0 0; color: var(--ok); font-size: 14px; min-height: 1em; }
.export__done.is-error { color: var(--danger); }

.panel { display: grid; gap: 18px; }
.panel__group { margin: 0; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); min-width: 0; }
.panel__group legend { padding: 0 8px; margin-left: -8px; font: 700 15px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.panel__status { margin: 8px 0 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.panel__status.is-error { color: var(--danger); }
.ai { display: flex; gap: 10px; align-items: flex-end; margin-top: 6px; }
.ai textarea { flex: 1; min-width: 0; resize: vertical; min-height: 52px; }
@media (max-width: 480px) { .ai { flex-direction: column; align-items: stretch; } }
.row { display: grid; gap: 14px; }
@media (min-width: 480px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; margin-top: 6px; }
.field label, .scene label { font-size: 14px; font-weight: 600; color: var(--muted); }
input[type="text"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0f0d18; font-size: 16px; line-height: 1.35;
}
input[type="text"]:focus, textarea:focus, select:focus { outline: none; border-color: rgba(255,255,255,0.5); box-shadow: 0 0 0 3px rgba(139, 92, 255, 0.35); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a7a3bd' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.color { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: #0f0d18; }
.color input { width: 40px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; }
.color span { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); }

.scenes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: sc; }
.scene { position: relative; padding: 16px 16px 16px 54px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); display: grid; gap: 10px; }
.scene::before { counter-increment: sc; content: counter(sc); position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,0.08); font-weight: 700; font-size: 14px; }
.scene__kind { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: #0f0d18 center/cover no-repeat; cursor: pointer; color: var(--faint); font-size: 11px; font-weight: 600; }
.thumbs button[aria-pressed="true"] { border-color: #fff; }
.thumbs button.none { display: grid; place-items: center; border: 2px dashed var(--line-2); }
.thumbs button.none[aria-pressed="true"] { border-style: solid; border-color: #fff; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; scroll-margin-top: 68px; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 14px; color: var(--pink); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.h2 { margin: 0; max-width: 760px; font: 800 clamp(34px, 5vw, 56px)/1.02 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.h2 em { color: var(--muted); }
.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.step::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; background: radial-gradient(closest-side, rgba(139,92,255,0.25), transparent); }
.step__n { font: 400 italic 54px/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 18px 0 8px; font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }

.promise { display: grid; gap: 40px; }
@media (min-width: 920px) { .promise { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { padding: 20px 22px 20px 58px; position: relative; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.rules li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); }
.rules li::after { content: ""; position: absolute; left: 26px; top: 29px; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.rules strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 56px; }
@media (min-width: 820px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.specs div { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.specs span { display: block; font: 800 38px/1.1 var(--display); letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; }

.faq { display: grid; gap: 40px; }
@media (min-width: 920px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq__list { display: grid; gap: 10px; }
details { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 17px; border-radius: var(--radius); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.final { padding: 32px 0 96px; }
.final__inner { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 30px; text-align: center; padding: 72px 24px; border-radius: 36px; background: var(--grad); }
.final__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(255,255,255,0.25), transparent); pointer-events: none; }
.final h2 { position: relative; margin: 0; max-width: 760px; font: 800 clamp(34px, 5vw, 58px)/1.02 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.final h2 em { color: rgba(255,255,255,0.85); }
.final .btn { position: relative; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
  .btn, .loading__bar span, summary::after { transition: none; }
}
