:root {
  --bg: #060c1a;
  --bg-b: #0f1f3f;
  --surface: rgba(16, 22, 40, 0.55);
  --surface-b: rgba(9, 13, 26, 0.72);
  --surface-hover: rgba(22, 30, 52, 0.7);
  --border: rgba(216, 183, 122, 0.22);
  --border-strong: rgba(216, 183, 122, 0.55);
  --accent: #e3c383;
  --accent-2: #d8b77a;
  --accent-strong: #c9a463;
  --accent-contrast: #1a1305;
  --blue-glow: #3a6fd8;
  --text: #f3f6fd;
  --muted: #a9bad9;
  --muted-2: #7c8bac;
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1100px;
  --shadow-gold: 0 8px 30px -8px rgba(216, 183, 122, 0.45);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, rgba(4,8,18,0.35), rgba(4,8,18,0.75) 55%, var(--bg) 100%), url('img/bg.webp') center top / cover no-repeat fixed, var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--accent); }

img { max-width: 100%; }

/* Lucide-style inline icons (same icon set as the mobile app) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

h1, h2, h3, .brand { font-family: var(--font-display); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }
.reveal.d6 { transition-delay: 0.48s; }

/* Header / nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 12, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(216, 183, 122, 0.45));
}

nav.main {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}

nav.main a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav.main a:hover { color: var(--text); }
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }
nav.main a.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  user-select: none;
}
.lang-toggle .lang-thumb {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 2px 8px -2px rgba(216,183,122,0.6);
  transition: transform 0.25s ease;
}
.lang-toggle[data-lang="en"] .lang-thumb { transform: translateX(100%); }
.lang-toggle span[data-lang-option] {
  position: relative;
  z-index: 1;
  min-width: 26px;
  text-align: center;
  padding: 6px 10px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.lang-toggle[data-lang="fr"] span[data-lang-option="fr"],
.lang-toggle[data-lang="en"] span[data-lang-option="en"] {
  color: var(--accent-contrast);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.nav-toggle .icon { width: 19px; height: 19px; }

@media (max-width: 760px) {
  nav.main {
    position: fixed;
    top: 65px; left: 0; right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #0a1122;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  nav.main.open { max-height: 340px; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero { padding: 88px 0 70px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .cta-row { justify-content: center; }
  .phone-stage { margin: 0 auto; }
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(216, 183, 122, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero .eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216,183,122,0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216,183,122,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(216,183,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(216,183,122,0); }
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(100deg, var(--accent) 10%, #f3dca6 50%, var(--accent-strong) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 520px;
  margin: 0 0 34px;
}

@media (max-width: 900px) { .hero p.lead { margin-left: auto; margin-right: auto; } }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 13px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: var(--accent-contrast);
  box-shadow: var(--shadow-gold);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(216,183,122,0.6); }

.btn.ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); }

.btn.small { padding: 10px 18px; font-size: 0.85rem; }

.store-note { margin-top: 20px; color: var(--muted-2); font-size: 0.85rem; }

/* Phone mockup */
.phone-stage {
  position: relative;
  width: 100%;
  max-width: 300px;
  perspective: 1200px;
}

.phone {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #1b2338, #0a0f1e);
  border: 1px solid rgba(216,183,122,0.3);
  box-shadow: 0 40px 80px -25px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transform: rotate(-2deg);
  animation: float 6s ease-in-out infinite;
}

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

.phone .screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(175deg, #101a33, #060a16 70%);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone .notch {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px;
  background: #0a0f1e;
  border-radius: 12px;
  z-index: 2;
}

.phone .greet { font-size: 0.62rem; color: var(--muted-2); margin-top: 14px; }
.phone .greet .greet-top { display: flex; align-items: center; gap: 6px; }
.phone .greet .icon { width: 13px; height: 13px; color: var(--accent); flex: none; }
.phone .greet strong { color: var(--text); font-size: 0.8rem; display: block; margin-top: 4px; }

.phone .ring-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone .ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg 265deg, rgba(255,255,255,0.08) 265deg 360deg);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.phone .ring::after {
  content: '74%';
  width: 40px; height: 40px; border-radius: 50%;
  background: #0c1424;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; color: var(--accent);
}

.phone .ring-meta { font-size: 0.6rem; color: var(--muted-2); }
.phone .ring-meta strong { display: block; color: var(--text); font-size: 0.72rem; margin-bottom: 2px; }

.phone .bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}
.phone .bars i {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(216,183,122,0.25));
  border-radius: 4px;
  display: block;
}
.phone .bars i:nth-child(1){height:35%} .phone .bars i:nth-child(2){height:55%}
.phone .bars i:nth-child(3){height:40%} .phone .bars i:nth-child(4){height:80%}
.phone .bars i:nth-child(5){height:60%} .phone .bars i:nth-child(6){height:95%}
.phone .bars i:nth-child(7){height:70%}

.phone .chip-row { display: flex; gap: 8px; }
.phone .chip {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.55rem;
  color: var(--muted-2);
}
.phone .chip strong { display: block; color: var(--text); font-size: 0.7rem; }

.glow-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-b);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.glow-badge.top { top: 6%; right: -8%; animation: floaty 5s ease-in-out infinite; }
.glow-badge.bottom { bottom: 10%; left: -10%; animation: floaty 5.5s ease-in-out infinite reverse; }
.glow-badge .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }
.glow-badge span { color: var(--accent); }

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

@media (max-width: 900px) {
  .glow-badge { display: none; }
}

/* Sections / cards */
section { padding: 54px 0; position: relative; }
section.tight { padding: 32px 0; }

.section-head { max-width: 620px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em; }

p.section-sub { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(150deg, rgba(216,183,122,0.22), rgba(216,183,122,0.05));
  border: 1px solid var(--border);
  color: var(--accent);
}
.icon-badge .icon { width: 22px; height: 22px; stroke-width: 1.8; }

.card h3 { margin: 0 0 8px; font-size: 1.05rem; font-family: var(--font-display); font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Screenshot strip (phone frames) */
.shot-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 2px 20px;
}

.shot {
  flex: 0 0 190px;
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  border: 1px solid rgba(216,183,122,0.28);
  background: linear-gradient(165deg, #131b30, #080c18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 0.78rem;
  text-align: center;
  padding: 14px;
  position: relative;
}
.shot::before {
  content: '';
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 12px; border-radius: 8px; background: #05070d;
}

/* FAQ */
.faq-cat { margin-bottom: 40px; }

.faq-cat h2 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
details.faq-item:hover { border-color: var(--border-strong); }
details.faq-item[open] { background: var(--surface-hover); }

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.faq-plus i {
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.faq-plus i:first-child { width: 10px; height: 2px; }
.faq-plus i:last-child {
  width: 2px; height: 10px;
  transition: opacity 0.2s ease;
}
details.faq-item[open] .faq-plus i:last-child { opacity: 0; }

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.faq-content > div { overflow: hidden; }
.faq-content p { color: var(--muted); margin: 0 0 16px; font-size: 0.93rem; }

/* Legal pages */
.legal-doc h1 { margin-bottom: 4px; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.legal-doc .updated { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 6px; }
.legal-doc .subtitle { color: var(--muted); margin-bottom: 36px; }

.legal-doc section.legal-section {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.legal-doc section.legal-section:last-child { border-bottom: none; }
.legal-doc h2 { font-size: 1.12rem; font-family: var(--font-display); color: var(--accent); margin: 0 0 10px; }
.legal-doc p { color: var(--muted); margin: 0; }

.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 42px; }
.legal-toc a {
  font-size: 0.8rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.legal-toc a:hover { color: var(--accent); border-color: var(--border-strong); background: var(--surface); }

.callout {
  background: var(--surface-b);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 34px;
  font-size: 0.9rem;
  color: var(--muted);
}
.callout strong { color: var(--text); }

table.data-table { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 0.87rem; }
table.data-table th, table.data-table td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted); vertical-align: top;
}
table.data-table th { color: var(--text); font-weight: 700; font-family: var(--font-display); }

/* Contact block */
.contact-block {
  background: linear-gradient(160deg, var(--surface), var(--surface-b));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-block .icon-badge {
  margin: 0 auto 18px;
  position: relative;
}
.contact-block h2 { margin-bottom: 8px; }
.contact-block p { max-width: 420px; margin: 0 auto; color: var(--muted); }
.contact-block a.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 13px 26px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: var(--shadow-gold);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--accent-contrast);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-block a.mail:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(216,183,122,0.6); }
.contact-block a.mail .icon { width: 17px; height: 17px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); margin-top: 70px; padding: 36px 0 54px; color: var(--muted-2); font-size: 0.85rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
