:root {
  color-scheme: dark;
  --bg: #050910;
  --surface: #0a111c;
  --surface-2: #0d1724;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f9fc;
  --muted: #9aa9bc;
  --cyan: #32c8ff;
  --green: #39e38a;
  --amber: #ffac2f;
  --red: #ff424d;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(48, 199, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 199, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(48, 199, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 16% 54%, rgba(57, 227, 138, 0.09), transparent 30rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  line-height: 1.65;
}

a { color: var(--cyan); text-underline-offset: 0.2em; }
a:hover { color: #8be2ff; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--cyan);
  color: #00131c;
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 16, 0.86);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand b { font-size: 1.35rem; }
.brand i { color: var(--red); font-style: normal; }
.brand span { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.16em; }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 750; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--text); }
.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: #00131c; background: var(--cyan); }

.wrap { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 4.5rem 0;
}
.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.12; }
h1 { margin: 0.55rem 0 1rem; font-size: clamp(3rem, 8vw, 6.8rem); letter-spacing: -0.055em; }
h1 .slash { color: var(--red); }
h1 small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.25em; letter-spacing: 0.16em; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.035em; }
h3 { margin: 0 0 0.55rem; font-size: 1.08rem; }
.lead { color: #c8d2df; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 39rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 850;
  text-decoration: none;
}
.button.primary { color: #00131c; border-color: var(--cyan); background: var(--cyan); }
.device-shot {
  padding: 0.55rem;
  border: 1px solid rgba(48, 199, 255, 0.28);
  border-radius: 1.6rem;
  background: linear-gradient(145deg, rgba(48, 199, 255, 0.12), rgba(255, 255, 255, 0.025));
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.5), 0 0 4rem rgba(48, 199, 255, 0.1);
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}
.device-shot img { width: 100%; border-radius: 1.1rem; }
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 46rem; margin-bottom: 2rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: linear-gradient(150deg, rgba(13, 23, 36, 0.9), rgba(6, 11, 19, 0.88));
}
.card p { margin: 0; color: var(--muted); }
.metric { color: var(--cyan); font-size: 1.8rem; font-weight: 950; }
.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--amber);
  border-radius: 0.35rem 1rem 1rem 0.35rem;
  background: rgba(255, 172, 47, 0.09);
}
.notice.safe { border-color: var(--green); background: rgba(57, 227, 138, 0.08); }
.content-page { max-width: 860px; padding: 4rem 0 7rem; }
.content-page h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.content-page h2 { margin-top: 3rem; font-size: 1.65rem; }
.content-page h3 { margin-top: 1.7rem; }
.content-page p, .content-page li { color: #c4cfdd; }
.content-page li + li { margin-top: 0.45rem; }
.toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}
.toc a { text-decoration: none; font-weight: 750; }
.status-line { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--muted); }
.status-line::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 1rem rgba(57, 227, 138, 0.6); }
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }

html[data-lang="fr"] .lang-en, html[data-lang="en"] .lang-fr { display: none !important; }

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; padding: 0.8rem 0; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 0.25rem; }
  .lang-switch { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 3.5rem 0; }
  .device-shot { transform: none; }
  .grid { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

