/* ============================================================
   Klippy — landing page
   Palette dérivée de l'icône (indigo → violet → magenta)
   ============================================================ */
:root {
  --brand:       #7C3AED;
  --brand-deep:  #4C1D95;
  --brand-bright:#9D4EFF;
  --accent:      #C44FD9;
  --brand-soft:  #F1EBFD;
  --ink:         #17141F;
  --ink-soft:    #544E66;
  --ink-mute:    #8B8499;
  --bg:          #FFFFFF;
  --bg-warm:     #F8F6FD;
  --bg-warm2:    #F0EBFA;
  --line:        #E9E3F5;
  --grad:        linear-gradient(135deg, #5B27CF 0%, #8B3FF0 52%, #C45CE0 100%);
  --radius:      18px;
  --maxw:        1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
section { padding: 96px 24px; }

/* ---------- typographie partagée ---------- */
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.022em;
  text-align: center;
  line-height: 1.15;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 18px;
  margin: 14px auto 0;
  max-width: 540px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(108,40,217,.55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.07);
             box-shadow: 0 14px 30px -10px rgba(108,40,217,.6); }
.btn--lg  { font-size: 17.5px; padding: 17px 34px; }
.btn--sm  { font-size: 14.5px; padding: 9px 18px; box-shadow: none; }
.btn svg  { opacity: .9; }

/* ---------- touches clavier ---------- */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(#fff, #EFEAF8);
  border: 1px solid var(--line);
  border-bottom-width: 2.5px;
  border-radius: 9px;
}
.key--win { color: var(--brand); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 13px 28px;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav__brand img { border-radius: 7px; }
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--ink); }
.nav .btn { margin-left: 4px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(139,63,240,.28), transparent 62%);
  filter: blur(14px);
  z-index: -1;
}
.hero__copy { min-width: 0; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 16px 0 18px;
}
.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 460px;
}
.lede strong { color: var(--ink); font-weight: 600; }
.hero__cta { margin-top: 28px; }
.hero__meta {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-mute);
  font-weight: 500;
}
.kbd-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.kbd-line span { margin-right: 4px; }

.hero__shot {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero__shot::before {
  content: "";
  position: absolute;
  inset: 6% 8%;
  background: radial-gradient(circle, rgba(196,79,217,.26), transparent 70%);
  z-index: -1;
}
.hero__shot img {
  width: 100%;
  max-width: 430px;
  border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(50,20,90,.45);
}

/* ============================================================
   BANDEAU WIN+V
   ============================================================ */
.winv {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.winv__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
}
.winv__side { min-width: 220px; }
.winv__os {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.winv__side--mac .winv__os { color: var(--brand); }
.kbd-combo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 17px;
  color: var(--ink-mute);
}
.winv__txt { margin-top: 13px; color: var(--ink-soft); font-size: 16px; }
.winv__txt strong { color: var(--ink); }
.winv__arrow { font-size: 30px; color: var(--brand-bright); }
.winv__note {
  margin-top: 34px;
  color: var(--ink-mute);
  font-size: 15px;
}

/* ============================================================
   FENÊTRE macOS (encadré screenshots / vidéo)
   ============================================================ */
.window {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(50,20,90,.4);
}
.window__bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  background: #F3F0F9;
  border-bottom: 1px solid var(--line);
}
.window__bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #D9D2E6;
}
.window__bar span:nth-child(1) { background: #ED6A5E; }
.window__bar span:nth-child(2) { background: #F4BE4F; }
.window__bar span:nth-child(3) { background: #61C554; }
.window video, .window img { width: 100%; display: block; }

/* ============================================================
   DÉMO
   ============================================================ */
.demo .window {
  max-width: 880px;
  margin: 44px auto 0;
}

/* ============================================================
   FONCTIONNALITÉS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: var(--maxw);
  margin: 52px auto 0;
}
.card {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); border-color: #D6C6F2; }
.card__ic {
  font-size: 26px;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 15px;
}
.card h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.card p  { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   APERÇUS
   ============================================================ */
.shots {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}
.shots__row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.shots__row + .shots__row { margin-top: 80px; }
.shots__media, .shots__copy { min-width: 0; }
.shots__row--rev .shots__media { order: 2; }
.shots__copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shots__copy p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ============================================================
   INSTALLATION
   ============================================================ */
.steps__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 52px auto 0;
}
.step {
  text-align: center;
  padding: 12px;
}
.step__n {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { font-size: 17.5px; font-weight: 650; }
.step p  { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.step code {
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}
.callout {
  max-width: 760px;
  margin: 48px auto 0;
  background: var(--brand-soft);
  border: 1px solid #DDCFF5;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 14.5px;
  color: #4A3A6B;
  line-height: 1.65;
}
.callout strong { color: var(--brand-deep); }

/* ============================================================
   CONFIDENTIALITÉ
   ============================================================ */
.privacy {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.privacy__inner { max-width: 640px; margin: 0 auto; }
.privacy__ic {
  font-size: 32px;
  width: 66px; height: 66px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
}
.privacy h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.privacy p {
  margin-top: 16px;
  color: #B7B0C4;
  font-size: 17px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list {
  max-width: 720px;
  margin: 44px auto 0;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 16.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 4px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.final {
  position: relative;
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.final__glow {
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(139,63,240,.26), transparent 65%);
  z-index: 0;
}
.final > * { position: relative; z-index: 1; }
.final__icon {
  border-radius: 19px;
  margin: 0 auto 22px;
  box-shadow: 0 18px 36px -20px rgba(50,20,90,.5);
}
.final h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  text-align: center;
  padding: 44px 24px;
  border-top: 1px solid var(--line);
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}
.foot__brand img { border-radius: 6px; }
.foot__meta {
  margin-top: 12px;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  section { padding: 72px 22px; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero__cta, .kbd-line { justify-content: center; }
  .kbd-line { display: inline-flex; }
  .hero__shot { order: -1; }
  .hero__shot img { max-width: 320px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shots__row { grid-template-columns: 1fr; gap: 28px; }
  .shots__row--rev .shots__media { order: 0; }
  .steps__row { grid-template-columns: 1fr; gap: 30px; }
  .winv__inner { gap: 26px; }
  .winv__arrow { transform: rotate(90deg); }
}
@media (max-width: 540px) {
  .nav__links { display: none; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 60px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
