/* ============================================================
   DDNS+ — styles.css
   Modern SaaS · LIGHT + DARK themes via [data-theme] tokens.
   Type: Sora (display) · Hanken Grotesk (body) · JetBrains Mono (code)
   Beam hero · violet primary, duotone accents.
   ============================================================ */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="light"] {
  --violet:        #7239EA;
  --violet-600:    #5e27cf;
  --violet-ink:    #5e27cf;   /* violet used as text/icon on tint */
  --violet-tint:   #F0E9FF;
  --violet-tint-2: #f7f3ff;
  --green:         #14A286;  --green-ink: #0f8a72;  --green-tint: #e2f6f1;
  --blue:          #1B84FF;  --blue-ink:  #1668d6;  --blue-tint:  #e4f0ff;
  --red:           #F1416C;  --red-ink:   #d62a57;  --red-tint:   #fde7ee;

  --ink:   #071437;
  --ink-2: #2b3a5b;
  --muted: #5b6b84;
  --faint: #8a95ad;
  --line:  #e9ebf2;
  --line-2:#eff1f7;

  --bg:        #ffffff;
  --bg-alt:    #F8F8FB;
  --surface:   #ffffff;
  --surface-2: #fcfcfe;

  --header-bg: rgba(255,255,255,.78);
  --grid-line: var(--line-2);

  --code-bg:  #0c0820;
  --code-bg-2:#15103a;
  --code-line:#221b46;

  --sh-color: 7,20,55;
  --sh-xs: 0 1px 2px rgba(7,20,55,.06);
  --sh-sm: 0 2px 8px rgba(7,20,55,.07);
  --sh-md: 0 12px 30px -12px rgba(7,20,55,.18);
  --sh-lg: 0 30px 70px -28px rgba(7,20,55,.30);
  --sh-violet: 0 18px 44px -16px rgba(114,57,234,.45);

  color-scheme: light;
}

[data-theme="dark"] {
  --violet:        #7c4dff;
  --violet-600:    #8b5cf6;
  --violet-ink:    #c4a6ff;
  --violet-tint:   rgba(124,77,255,.16);
  --violet-tint-2: rgba(124,77,255,.07);
  --green:         #19b894;  --green-ink: #6fe0c6;  --green-tint: rgba(20,162,134,.18);
  --blue:          #3b93ff;  --blue-ink:  #8fc4ff;  --blue-tint:  rgba(27,132,255,.18);
  --red:           #ff5e85;  --red-ink:   #ff9bb4;  --red-tint:   rgba(241,65,108,.18);

  --ink:   #f3f2fb;
  --ink-2: #ccd0e6;
  --muted: #9da1c2;
  --faint: #7d7ca4;
  --line:  rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.06);

  --bg:        #0b0820;
  --bg-alt:    #0f0b28;
  --surface:   #15103a;
  --surface-2: #1a1542;

  --header-bg: rgba(11,8,32,.72);
  --grid-line: rgba(255,255,255,.05);

  --sh-color: 0,0,0;
  --sh-xs: 0 1px 2px rgba(0,0,0,.3);
  --sh-sm: 0 2px 10px rgba(0,0,0,.4);
  --sh-md: 0 14px 34px -14px rgba(0,0,0,.55);
  --sh-lg: 0 34px 80px -30px rgba(0,0,0,.7);
  --sh-violet: 0 18px 44px -18px rgba(124,77,255,.5);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body, "Hanken Grotesk", system-ui, sans-serif);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
:root {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet-ink);
  background: var(--violet-tint);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-ink); }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 18px; text-wrap: balance; }
h3 { font-size: 20px; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); margin-top: 16px; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 12px;
  transition: transform .18s ease, box-shadow .22s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--violet); color: #fff; box-shadow: var(--sh-violet); }
.btn--primary:hover { background: var(--violet-600); transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(114,57,234,.55); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-xs); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-ink); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.btn--soft { background: var(--violet-tint); color: var(--violet-ink); }
.btn--soft:hover { background: color-mix(in srgb, var(--violet-tint) 70%, var(--violet) 30%); transform: translateY(-2px); }
.btn--dark { background: #fff; color: #0c0820; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.btn--lg { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .3s ease, box-shadow .25s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: var(--sh-xs); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand__fallback { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; display: none; color: var(--ink); }
.brand__fallback b { color: var(--violet-ink); }
/* logo swaps with theme */
.brand-light { display: none; }
[data-theme="dark"] .brand-dark { display: none; }
[data-theme="dark"] .brand-light { display: block; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 13px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-btn {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .18s ease;
}
.theme-btn:hover { color: var(--violet-ink); border-color: var(--violet); transform: translateY(-1px); }
.theme-btn svg { width: 19px; height: 19px; }
[data-theme="light"] .theme-btn .ic-sun { display: none; }
[data-theme="dark"]  .theme-btn .ic-moon { display: none; }

/* Language toggle */
.lang {
  display: inline-flex; align-items: center;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.lang button {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 999px; color: var(--faint); transition: all .18s ease;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--violet-ink); box-shadow: var(--sh-xs); }
.nav-login { font-size: 15px; font-weight: 600; padding: 8px 13px; color: var(--ink-2); }
.nav-login:hover { color: var(--violet-ink); }

/* User menu (visible quand connecté) */
.user-menu { position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: 600 14px/1 inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.user-chip:hover { border-color: var(--violet); box-shadow: var(--sh-xs); }
.user-chip__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--violet-tint); color: var(--violet-ink);
  display: inline-grid; place-items: center;
  font: 700 13px/1 inherit;
  text-transform: uppercase;
}
.user-chip__name {
  max-width: 140px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.user-chip__caret { width: 14px; height: 14px; color: var(--ink-2); transition: transform .15s ease; }
.user-menu.is-open .user-chip__caret { transform: rotate(180deg); }

.user-menu__pop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -16px rgba(13, 15, 31, .22);
  padding: 6px;
  display: none; flex-direction: column;
  z-index: 50;
}
.user-menu.is-open .user-menu__pop { display: flex; }
.user-menu__pop a {
  display: flex; align-items: center;
  padding: 9px 12px; border-radius: 8px;
  color: var(--ink); font: 500 14px/1.2 inherit;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.user-menu__pop a:hover { background: var(--violet-tint); color: var(--violet-ink); }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line); align-items: center; justify-content: center; color: var(--ink); transition: background .15s ease, border-color .15s ease; }
.menu-btn svg { width: 22px; height: 22px; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] { background: var(--violet-tint); border-color: var(--violet-tint); color: var(--violet-ink); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(90deg); }

/* Mobile panel (drawer du header — affiché ≤720px quand menu-btn est cliqué) */
.mobile-panel {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 36px -16px rgba(7, 20, 55, .18);
  padding: 14px clamp(16px, 5vw, 28px) 18px;
  transform: translateY(-10px);
  opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.mobile-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-panel__nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-panel__nav a {
  padding: 12px 10px;
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: background .12s ease, color .12s ease;
}
.mobile-panel__nav a:hover,
.mobile-panel__nav a:focus-visible { background: var(--violet-tint); color: var(--violet-ink); }
.mobile-panel__lang {
  display: flex; gap: 6px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mobile-panel__lang button {
  flex: 1;
  padding: 9px 0;
  border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  font-family: var(--font-mono);
}
.mobile-panel__lang button[aria-pressed="true"] {
  background: var(--violet-tint); border-color: var(--violet-tint); color: var(--violet-ink);
}
.mobile-panel__cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mobile-panel__cta .btn { padding: 12px 18px; font-size: 15px; }

/* ============================================================
   HERO (beam)
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero__bg .b1 { width: 540px; height: 540px; background: var(--violet-tint); top: -190px; right: -120px; opacity: .8; }
.hero__bg .b2 { width: 400px; height: 400px; background: var(--blue-tint); bottom: -160px; left: -100px; opacity: .7; }
[data-theme="dark"] .hero__bg .b1 { background: rgba(124,77,255,.4); opacity: .55; }
[data-theme="dark"] .hero__bg .b2 { background: rgba(27,132,255,.3); opacity: .5; }
.hero__bg .grid-fade {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 600px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin-top: 20px; text-wrap: balance; }
.hero h1 .accent { color: var(--violet-ink); }
.hero .lead { font-size: clamp(17px, 1.7vw, 20px); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 14px; color: var(--faint); font-family: var(--font-mono); }
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.hero__visual { position: relative; min-height: 300px; }
.hero-visual { display: block; }

/* ---------- Beam visual ---------- */
.beam { position: relative; display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 440px; margin-left: auto; }
.beam__node {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px 18px; box-shadow: var(--sh-md); position: relative; z-index: 2;
}
.beam__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.beam__icon.violet { background: var(--violet-tint); color: var(--violet-ink); }
.beam__icon.green { background: var(--green-tint); color: var(--green-ink); }
.beam__icon svg { width: 22px; height: 22px; }
.beam__txt .t { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.beam__txt .s { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.beam__txt .s .ip { color: var(--green-ink); font-weight: 600; transition: opacity .3s, filter .3s; }
.beam__txt .s .ip.flip { opacity: .2; filter: blur(2px); }
.beam__line { position: relative; height: 32px; margin-left: 40px; }
.beam__line::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--violet), var(--green)); opacity: .45; }
.beam__line .pkt { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: travel 2.2s ease-in-out infinite; }
@keyframes travel { 0%{ top: -4px; opacity: 0; } 15%{opacity:1;} 85%{opacity:1;} 100%{ top: 100%; opacity: 0; } }
.beam__push { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--violet-ink); position: absolute; left: 24px; top: 50%; transform: translateY(-50%); background: var(--surface); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--sh-xs); }

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.ps__card { border-radius: 26px; padding: clamp(26px, 3vw, 38px); position: relative; }
.ps__card.problem { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.ps__card.solution { background: linear-gradient(160deg, var(--surface), var(--violet-tint-2)); border: 1px solid var(--violet-tint); box-shadow: var(--sh-md); }
.ps__icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.ps__icon svg { width: 26px; height: 26px; }
.ps__icon.red { background: var(--red-tint); color: var(--red-ink); }
.ps__icon.violet { background: var(--violet-tint); color: var(--violet-ink); }
.ps__card h3 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 12px; }
.ps__card p { color: var(--muted); text-wrap: pretty; }
.ps__kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.ps__card.problem .ps__kicker { color: var(--red-ink); }
.ps__card.solution .ps__kicker { color: var(--violet-ink); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.step { position: relative; padding-top: 8px; }
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--violet); color: #fff;
  box-shadow: var(--sh-violet); margin-bottom: 18px;
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--muted); text-wrap: pretty; }
.step::after {
  content: ""; position: absolute; top: 31px; left: 58px; right: -14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet-tint) 0 8px, transparent 8px 16px);
}
.step:last-child::after { display: none; }
.step code { font-family: var(--font-mono); font-size: .9em; color: var(--violet-ink); background: var(--violet-tint); padding: 1px 6px; border-radius: 5px; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 2.4vw, 28px); box-shadow: var(--sh-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--violet); }
.fcard__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.fcard__icon svg { width: 26px; height: 26px; }
.fcard:nth-child(1) .fcard__icon { background: var(--violet-tint); color: var(--violet-ink); }
.fcard:nth-child(2) .fcard__icon { background: var(--blue-tint); color: var(--blue-ink); }
.fcard:nth-child(3) .fcard__icon { background: var(--green-tint); color: var(--green-ink); }
.fcard:nth-child(4) .fcard__icon { background: var(--violet-tint); color: var(--violet-ink); }
.fcard:nth-child(5) .fcard__icon { background: var(--blue-tint); color: var(--blue-ink); }
.fcard:nth-child(6) .fcard__icon { background: var(--green-tint); color: var(--green-ink); }
.fcard h3 { margin-bottom: 9px; }
.fcard p { color: var(--muted); font-size: 15.5px; text-wrap: pretty; }

/* ============================================================
   PLATFORMS
   ============================================================ */
.plat-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; margin-inline: auto; }
.plat {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; box-shadow: var(--sh-xs); font-weight: 600; font-size: 16px; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s, border-color .2s;
}
.plat:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); border-color: var(--violet); }
.plat__mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: #fff; flex: none; }

/* ============================================================
   CODE
   ============================================================ */
.code-sec { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.code-sec__copy { max-width: 440px; }
.code-meta { margin-top: 26px; display: grid; gap: 12px; }
.code-meta__row { display: flex; align-items: center; gap: 14px; }
.code-meta__k { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); width: 78px; flex: none; }
.code-meta__v { font-family: var(--font-mono); font-size: 14px; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; }
.codebox { background: var(--code-bg); border-radius: 26px; box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--code-line); }
.codebox__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--code-bg-2); border-bottom: 1px solid var(--code-line); }
.codebox__bar i { width: 11px; height: 11px; border-radius: 50%; }
.codebox__bar i:nth-child(1){background:#ff5f56;}.codebox__bar i:nth-child(2){background:#ffbd2e;}.codebox__bar i:nth-child(3){background:#27c93f;}
.codebox__title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: #6f6a92; }
.codebox__copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: #9b9fc0; padding: 5px 11px; border-radius: 8px; border: 1px solid #2b2456; transition: all .18s; }
.codebox__copy:hover { color: #fff; background: rgba(255,255,255,.06); }
.codebox__copy.done { color: #6fe0c6; border-color: rgba(20,162,134,.5); }
.codebox__pre { padding: 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; color: #cfcae8; overflow-x: auto; white-space: pre; margin: 0; }
.codebox__pre .c-comment { color: #6f6a92; }
.codebox__pre .c-cmd { color: #c4a6ff; }
.codebox__pre .c-flag { color: #7fd1c0; }
.codebox__pre .c-str { color: #f1a8c0; }
.codebox__pre .c-key { color: #8fc4ff; }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 28px); max-width: 1100px; margin-inline: auto; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(28px, 3vw, 40px); box-shadow: var(--sh-sm); position: relative; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--violet); box-shadow: var(--sh-violet); }
.plan__badge { position: absolute; top: -13px; right: 28px; background: var(--violet); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; font-family: var(--font-mono); letter-spacing: .03em; box-shadow: var(--sh-sm); }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--violet-ink); }
.plan__price { display: flex; align-items: baseline; gap: 9px; margin: 14px 0 4px; }
.plan__price b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.plan__price span { color: var(--faint); font-size: 14px; font-family: var(--font-mono); }
.plan__desc { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.plan__feats { display: grid; gap: 13px; margin-bottom: 28px; }
.plan__feats li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink-2); }
.plan__feats .ck { width: 21px; height: 21px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); display: grid; place-items: center; flex: none; margin-top: 1px; }
.plan__feats .ck svg { width: 13px; height: 13px; }
.plan__cta { margin-top: auto; }

/* Billing cycle toggle (Mensuel / Annuel) */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 18px; padding: 4px;
  border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
}
.billing-toggle__btn {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.billing-toggle__btn.is-active {
  background: var(--surface);
  color: var(--violet-ink);
  box-shadow: var(--sh-xs);
}
.billing-toggle__hint {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--green-ink);
  background: var(--green-tint); padding: 3px 10px; border-radius: 999px;
  margin-left: 6px;
}

/* Prix : monthly/yearly period — un seul .is-active visible */
.plan__price [data-period-monthly],
.plan__price [data-period-yearly] {
  display: none;
}
.plan__price [data-period-monthly].is-active,
.plan__price [data-period-yearly].is-active {
  display: inline;
}
.plan__price-cur { font-family: var(--font-mono); font-size: 13px; color: var(--violet-ink); font-weight: 600; }

/* CTA en chargement (intercept buy) */
.plan__cta.is-loading {
  opacity: .65; pointer-events: none;
  position: relative;
}
.plan__cta.is-loading::after {
  content: ""; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ============================================================
   FINAL CTA  (deliberate dark accent panel in both themes)
   ============================================================ */
.final__card {
  position: relative; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 130% at 85% 10%, #1a1542, #0b0820 65%);
  border: 1px solid rgba(255,255,255,.08);
  padding: clamp(40px, 6vw, 76px); text-align: center; box-shadow: var(--sh-lg);
}
.final__card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
}
.final__card > * { position: relative; z-index: 1; }
.final__card h2 { color: #fff; max-width: 640px; margin-inline: auto; }
.final__card p { color: #b9bdd6; max-width: 520px; margin: 16px auto 0; }
.final__cta { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 30px; }
.final__cta .btn--ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.2); }
.final__cta .btn--ghost:hover { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.35); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 28px; margin-bottom: 14px; }
.footer__brand .brand-light { display: none; }
[data-theme="dark"] .footer__brand .brand-dark { display: none; }
[data-theme="dark"] .footer__brand .brand-light { display: block; }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 260px; }
.footer__col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.footer__col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--violet-ink); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom p { color: var(--faint); font-size: 13.5px; }
.footer__dns { font-family: var(--font-mono); font-size: 13px; color: var(--faint); display: inline-flex; align-items: center; gap: 7px; }
.footer__dns .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  /* Layout sections : hero / how / code / features passent à 1-2 colonnes */
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .beam { margin-inline: auto; max-width: 540px; }
  .ps, .code-sec { grid-template-columns: 1fr; }
  .code-sec__copy { max-width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step::after { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 480px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* Header : nav + boutons sign-in cèdent la place au drawer dès cette
     largeur — sinon le header sature (brand + 4 items de nav + lang +
     thème + 2 boutons = overflow autour de 770px). */
  .nav, .nav-login, .header__right > .btn--primary { display: none; }
  .menu-btn { display: flex; }
  .mobile-panel { display: flex; flex-direction: column; }
  .header__right { gap: 8px; }
}
@media (max-width: 720px) {
  /* Tightening propre aux petits écrans (tablette portrait → phone) */
  .user-chip__name { display: none; }
  .user-chip { padding: 4px; }

  .feat-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .section { padding-block: clamp(52px, 11vw, 96px); }
  .section-head { margin-bottom: 28px; }

  /* CTA hero / finale prennent toute la largeur dispo */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .final__cta { flex-direction: column; align-items: stretch; }
  .final__cta .btn { width: 100%; }
}

@media (max-width: 480px) {
  /* Header très étroit : on tasse les boutons utilitaires + le footer en une colonne */
  .header__inner { gap: 10px; height: 64px; }
  .lang { display: none; } /* déplacé dans le drawer mobile */
  .theme-btn { width: 38px; height: 38px; }
  .menu-btn { width: 38px; height: 38px; }
  .brand img { height: 26px; }

  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== CHECKOUT DRAWER ===================== */
.checkout-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; opacity: 0; display: flex; align-items: center; justify-content: center; padding: 16px; transition: opacity .2s ease, visibility 0s linear .2s; }
.checkout-drawer.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease, visibility 0s; }
.checkout-drawer__backdrop { position: absolute; inset: 0; background: rgba(7, 20, 55, .45); backdrop-filter: blur(2px); }
.checkout-drawer__panel { position: relative; width: 100%; max-width: 540px; max-height: 90vh; background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgba(7, 20, 55, .25); display: flex; flex-direction: column; transform: scale(.96); opacity: 0; transition: transform .25s ease, opacity .2s ease; overflow: hidden; }
.checkout-drawer.is-open .checkout-drawer__panel { transform: scale(1); opacity: 1; }
.checkout-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #eef0f5; }
.checkout-drawer__head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #071437; }
.checkout-drawer__close { background: transparent; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #6b7280; padding: 0 4px; }
.checkout-drawer__close:hover { color: #071437; }
.checkout-drawer__summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; background: #f6f8fc; border-bottom: 1px solid #eef0f5; font-size: 14px; }
.checkout-drawer__summary-plan { font-weight: 600; color: #071437; }
.checkout-drawer__summary-price { font-weight: 700; color: #1B84FF; }
.checkout-drawer__form { padding: 20px 22px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.checkout-drawer__row { display: grid; gap: 12px; }
.checkout-drawer__row--2 { grid-template-columns: 1fr 1fr; }
.checkout-drawer__row--phone { grid-template-columns: 110px 1fr; }
.checkout-drawer__field { display: flex; flex-direction: column; gap: 6px; }
.checkout-drawer__field > span { font-size: 12px; font-weight: 600; color: #4b5563; }
.checkout-drawer__field input, .checkout-drawer__field select { height: 40px; padding: 0 12px; border: 1px solid #d8dde6; border-radius: 8px; font-size: 14px; background: #fff; color: #071437; transition: border-color .15s ease, box-shadow .15s ease; font-family: inherit; }
.checkout-drawer__field input:focus, .checkout-drawer__field select:focus { outline: 0; border-color: #1B84FF; box-shadow: 0 0 0 3px rgba(27, 132, 255, .15); }
.checkout-drawer__field input:disabled, .checkout-drawer__field select:disabled { background: #f5f6f9; cursor: not-allowed; color: #9ca3af; }
.checkout-drawer__error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.checkout-drawer__submit { margin-top: 8px; }
.checkout-drawer__submit.is-loading { pointer-events: none; opacity: .65; }
@media (max-width: 480px) {
  .checkout-drawer__panel { max-width: 100%; }
  .checkout-drawer__row--2 { grid-template-columns: 1fr; }
}
