:root {
  --bg: #0B0A14;
  --bg-2: #12101F;
  --card: #171428;
  --line: #2A2645;
  --text: #F4F3FF;
  --muted: #A6A2C4;
  --brand: #7C5CFF;
  --brand-2: #00D4B4;
  --danger: #FF6B8A;
  --radius: 18px;
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 20, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; color: #fff; background: var(--grad);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .35), transparent),
              radial-gradient(closest-side, rgba(0, 212, 180, .18), transparent) 60% 30% / 70% 70% no-repeat;
  z-index: -1;
}
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--brand-2);
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -.02em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 620px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 48px 0 0; }
.trust div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: .92rem; color: var(--muted); }
.trust strong { display: block; color: var(--text); font-size: 1rem; }

/* Catalogue */
section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.01em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: inherit; font-size: .88rem; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
}
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3F3870; }
.card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px -20px rgba(124, 92, 255, .6); }
.thumb {
  aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.15rem; text-align: center; padding: 18px;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .mock {
  width: 72%; height: 70%; border-radius: 10px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; padding: 10px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); backdrop-filter: blur(2px);
}
.thumb .tag {
  position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700;
  background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 999px;
}
.thumb .hot { left: auto; right: 12px; background: #fff; color: var(--brand); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.08rem; }
.card-body .format { color: var(--muted); font-size: .84rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-size: 1.35rem; font-weight: 800; }
.card-foot .btn { padding: 10px 18px; font-size: .92rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer h4 { color: var(--text); margin: 0 0 10px; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .copy { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: .82rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(5, 4, 12, .72); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal-box {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
}
.modal-box .thumb { aspect-ratio: 16 / 7; }
.modal-content { padding: 22px 24px 24px; }
.modal-content h3 { margin: 0 0 4px; font-size: 1.35rem; }
.modal-content ul { color: var(--muted); padding-left: 18px; margin: 12px 0; }
.recap { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-block: 1px solid var(--line); margin: 14px 0; }
.recap small { color: var(--muted); display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 10px 0; }
.consent input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }
.close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.1rem; z-index: 2; }
.notice { font-size: .82rem; color: var(--danger); margin: 8px 0 0; }
.modal-box.simple { width: min(380px, 100%); text-align: center; }
.modal-box.simple .modal-content { padding: 36px 26px 22px; }
.modal-box.simple .close { background: transparent; color: var(--muted); }
.modal-box.simple h3 { font-size: 1.25rem; margin: 0 0 10px; }
.price.big { font-size: 2.3rem; line-height: 1.1; }
.modal-box.simple .ttc { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 20px; }
.modal-box.simple .btn { width: 100%; padding: 14px; font-size: 1.05rem; }
.delivery { font-size: .85rem; color: var(--brand-2); margin: 12px 0 0; }
.legal-line { font-size: .72rem; color: var(--muted); margin: 14px 0 0; line-height: 1.45; }

/* Legal pages */
.legal { padding: 56px 0 24px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #D6D3EC; }
.legal .fill { background: rgba(255, 107, 138, .14); color: #FFB3C4; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-2); }
.table-wrap { overflow-x: auto; }

.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.thanks .icon { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin: 0 auto 18px; font-size: 2rem; }

@media (max-width: 860px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .hero { padding-top: 56px; }
  .trust { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
}
