/* BioData — site vitrine. Couleurs reprises de BioData/Assets.xcassets/Colors. */

:root {
  --canvas: #FFFFFF;
  --surface: #F6F8FC;
  --mist: #EEF4FF;
  --ink: #0B1220;
  --ink-2: #4A5468;
  --hairline: rgba(11, 18, 32, 0.08);
  --azure: #2F7BFF;
  --cobalt: #1F4FD8;
  --hot-pink: #FF5C9E;
  --pink-ink: #C2185B;
  --sun: #FFC531;
  --accent-ink: #1F4FD8;
  --shadow: 0 30px 60px -20px rgba(31, 79, 216, 0.28), 0 12px 24px -12px rgba(11, 18, 32, 0.18);
  --radius: 28px;
  --wrap: 1120px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: #0D1119;
    --mist: #0F1A30;
    --ink: #F3F6FC;
    --ink-2: #A3ADC2;
    --hairline: rgba(255, 255, 255, 0.10);
    --azure: #5A97FF;
    --cobalt: #6D8CFF;
    --hot-pink: #FF77AF;
    --pink-ink: #FF77AF;
    --accent-ink: #8AB4FF;
    --shadow: 0 30px 60px -20px rgba(90, 151, 255, 0.25), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 16px;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 14px; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); }

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-ink);
  margin-bottom: 12px;
}

.grad {
  background: linear-gradient(100deg, var(--hot-pink) 0%, var(--azure) 55%, var(--cobalt) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* App icon, rebuilt from its two layers */
.app-icon {
  display: inline-block;
  flex: none;
  background: url("assets/img/icon-fg.webp") center / 92% no-repeat, url("assets/img/icon-bg.webp") center / cover;
  border-radius: 22.5%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.app-icon--xs { width: 22px; height: 22px; }
.app-icon--sm { width: 32px; height: 32px; }
.app-icon--lg { width: 112px; height: 112px; box-shadow: var(--shadow); margin-bottom: 28px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand--muted { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: 13px;
  font-weight: 600;
}
.lang-switch a {
  padding: 4px 9px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .15s, background .15s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 3px rgba(11, 18, 32, 0.12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--azure);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--cobalt); transform: translateY(-1px); }
.btn--small { padding: 8px 16px; font-size: 15px; }

/* App Store badge: Apple's artwork, kept as is (no recolouring, at least 40px high) */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform .15s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; }

/* Before the release: a label in place of the badge and of the download button */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.soon-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot-pink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hot-pink) 30%, transparent);
}
.final-inner .soon-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.final-inner .soon-badge::before { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3); }
.btn { white-space: nowrap; }
@media (max-width: 480px) { .btn--soon { display: none; } }
.btn--soon, .btn--soon:hover { background: var(--mist); color: var(--accent-ink); transform: none; cursor: default; }

/* Device frames */
.phone, .tablet {
  margin: 0;
  background: #0B0D12;
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone {
  position: relative;
  width: min(300px, 70vw);
  padding: 9px;
  border-radius: 52px;
}
.phone img { border-radius: 43px; }
.tablet {
  width: 100%;
  max-width: 520px;
  padding: 12px;
  border-radius: 36px;
}
.tablet img { border-radius: 25px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--azure) 28%, transparent), transparent 70%),
    radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--hot-pink) 22%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-copy .lead { max-width: 520px; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-note { margin: 0; font-size: 15px; color: var(--ink-2); font-weight: 500; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}
.phone--hero { width: min(320px, 72vw); transform: rotate(3deg); z-index: 1; }
.hero-illu {
  position: absolute;
  z-index: 2;
  width: 46%;
  left: -6%;
  bottom: 2%;
  filter: drop-shadow(0 24px 30px rgba(11, 18, 32, 0.22));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Promises */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 40px;
}
.promise {
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.promise strong { display: block; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; color: var(--accent-ink); }
.promise span { color: var(--ink-2); font-size: 15px; }

/* Features */
.features { padding: 40px 0; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  padding: 72px 0;
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature--flip .feature-media { order: 2; }
.feature-copy { max-width: 480px; }
.feature-copy p:not(.eyebrow) { font-size: 18px; }
.feature-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 48px 0;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--mist), var(--surface));
}
.feature-illu {
  position: absolute;
  z-index: 2;
  width: 38%;
  right: -4%;
  bottom: 6%;
  filter: drop-shadow(0 20px 24px rgba(11, 18, 32, 0.2));
}
.feature--flip .feature-illu { right: auto; left: -4%; }
.feature .phone { width: min(270px, 64vw); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azure) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Privacy */
.privacy {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-illu { width: 160px; margin: 0 auto 8px; filter: drop-shadow(0 18px 22px rgba(11, 18, 32, 0.18)); }
.privacy-intro { text-align: center; font-weight: 600; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.card img { width: 120px; margin: -8px 0 8px -8px; }
.card p { color: var(--ink-2); margin: 0; }

/* Devices */
.devices { padding: 112px 0; overflow: hidden; }
.devices-inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; }
.devices-copy { position: relative; }
.devices-illu { width: 150px; margin-top: 32px; filter: drop-shadow(0 18px 22px rgba(11, 18, 32, 0.18)); }
.tablet { justify-self: center; transform: rotate(-2deg); }

/* Final */
.final { padding: 0 0 112px; }
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 32px;
  border-radius: 44px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 0% 100%, #FF5C9E 0%, transparent 55%),
    linear-gradient(135deg, #8AB4FF 0%, #2F7BFF 45%, #1F4FD8 100%);
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 0 var(--gutter);
}
@media (min-width: 1120px) { .final-inner { margin: 0 auto; } }
.final-inner .lead { color: rgba(255, 255, 255, 0.88); max-width: 520px; margin-bottom: 32px; }
.final-inner .app-icon--lg { box-shadow: 0 20px 40px -12px rgba(11, 18, 32, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* Footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--hairline); font-size: 14px; }
.disclaimer {
  color: var(--ink-2);
  max-width: 820px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  margin-bottom: 28px;
}
.disclaimer strong { color: var(--ink); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }

.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Privacy policy */
.legal { padding: 56px 0 96px; }
.legal-inner { max-width: 760px; }
.legal-illu { width: 120px; margin-bottom: 8px; filter: drop-shadow(0 18px 22px rgba(11, 18, 32, 0.18)); }
.legal h1 { font-size: clamp(36px, 6vw, 56px); }
.legal h2 { font-size: 24px; letter-spacing: -0.015em; margin: 48px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent-ink); }
.legal ul:not(.checks) { padding-left: 22px; margin: 0 0 14px; }
.legal ul:not(.checks) li { margin-bottom: 8px; }
.legal-date { font-size: 15px; }
.legal-summary {
  margin: 32px 0 8px;
  padding: 28px 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--mist), var(--surface));
  border: 1px solid var(--hairline);
}
.legal-summary h2 { margin-top: 0; }
.legal-summary .checks li { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  .nav-inner { gap: 12px; }
  .hero { padding-top: 48px; }
  .hero-inner, .feature, .devices-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-illu { left: -2%; width: 38%; bottom: 0; }
  .feature { padding: 56px 0; }
  .feature--flip .feature-media { order: 0; }
  .feature-copy { max-width: none; }
  .feature-illu { right: 2%; width: 34%; }
  .feature--flip .feature-illu { left: 2%; }
  .promises { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .devices { padding: 80px 0; }
  .tablet { transform: none; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .final-inner { padding: 56px 20px; border-radius: 32px; }
  .card { padding: 24px; }
  .phone { border-radius: 44px; padding: 7px; }
  .phone img { border-radius: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-illu { animation: none; }
  .btn, .store-badge { transition: none; }
}
