:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.6);
  --text-faint: rgba(245, 245, 245, 0.4);
  --gold: #C9A84C;
  --gold-soft: #e0c574;
  --gains: #00C853;
  --loss: #EF4444;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --font-heading: 'Geist', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.link-muted {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: none;
}
@media (min-width: 640px) {
  .link-muted { display: inline-block; }
}
.link-muted:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  transition: opacity 0.15s, background-color 0.15s;
  border: none;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: #0a0a0a; }
.btn-gold:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.9375rem; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 3.5rem 0 5rem;
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; }
}
.hero .wrap {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
}
h1.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-text {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-visual { justify-content: flex-end; }
}
.hero-glow {
  position: absolute;
  inset: -2.5rem;
  z-index: -1;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.12);
  filter: blur(60px);
}

/* ── Store badges ───────────────────────────────────────────────────── */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.store-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #000;
  padding: 0.6rem 1rem;
  color: #fff;
  transition: border-color 0.15s;
}
.store-badge:hover { border-color: rgba(255,255,255,0.3); }
.store-badge svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.store-badge-text { line-height: 1.2; }
.store-badge-eyebrow { display: block; font-size: 0.625rem; color: rgba(255,255,255,0.6); }
.store-badge-title { display: block; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge-flag {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.4rem;
}

/* ── Phone mockup ───────────────────────────────────────────────────── */
.phone {
  width: 300px;
  max-width: 100%;
  flex-shrink: 0;
}
.phone-frame {
  position: relative;
  border-radius: 2.75rem;
  border: 10px solid #0a0a0a;
  background: #0a0a0a;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 8rem;
  height: 1.5rem;
  border-radius: 0 0 1rem 1rem;
  background: #0a0a0a;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 2.1rem;
  background: #0a0a0a;
  line-height: 0;
}

/* Vraie capture d'écran de l'app, ratio natif préservé (384 × 826) */
.phone-screenshot { position: relative; width: 100%; }
.phone-screenshot img { display: block; width: 100%; height: auto; }
.name-patch {
  position: absolute;
  left: 31%;
  top: 6.4%;
  width: 41%;
  height: 6.4%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
}
.name-patch span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  white-space: nowrap;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.phone-body { height: calc(100% - 28px); overflow: hidden; padding-bottom: 1.5rem; }
.phone-greeting { padding: 0.25rem 1.25rem 0; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* Hero card (recréation exacte du composant hero-card.tsx) */
.pillara-hero-card {
  margin: 1rem 1.25rem 0;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 1.25rem;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
}
.phc-top { display: flex; align-items: center; justify-content: space-between; }
.phc-toggle { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; opacity: 0.8; background: none; border: none; color: inherit; }
.phc-pill { display: flex; align-items: center; gap: 0.25rem; border-radius: 999px; background: rgba(255,255,255,0.25); padding: 0.35rem 0.65rem; font-size: 0.6875rem; font-weight: 600; backdrop-filter: blur(4px); }
.phc-amount { margin-top: 0.75rem; font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
.phc-sub { margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 500; opacity: 0.8; }
.phc-spark { margin-top: 1rem; width: 100%; height: 4rem; display: block; }

/* Stats row */
.pillara-stats {
  margin: 1rem 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stat-card { border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); padding: 1rem; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; margin-right: 0.5rem; }
.stat-icon.gain { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.loss { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-label { display: inline-flex; align-items: center; font-size: 0.8125rem; color: rgba(255,255,255,0.5); vertical-align: middle; }
.stat-value { margin-top: 0.5rem; font-size: 1.125rem; font-weight: 700; }

/* Répartition */
.pillara-repartition { margin: 1.5rem 1.25rem 0; }
.repartition-title { margin-bottom: 0.75rem; font-size: 0.9375rem; font-weight: 600; }
.repartition-card { display: flex; align-items: center; gap: 1.25rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); padding: 1.25rem; }
.donut-wrap { position: relative; width: 6rem; height: 6rem; flex-shrink: 0; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-value { font-size: 1rem; font-weight: 700; line-height: 1; }
.donut-unit { font-size: 0.625rem; color: rgba(255,255,255,0.5); }
.legend { flex: 1; display: flex; flex-direction: column; gap: 0.65rem; }
.legend-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; }
.legend-label { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; }
.legend-value { font-weight: 600; }

/* ── Browser mockup ─────────────────────────────────────────────────── */
.browser {
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1rem;
}
.browser-dots { display: flex; gap: 0.375rem; }
.browser-dots span { width: 0.625rem; height: 0.625rem; border-radius: 999px; background: rgba(255,255,255,0.15); }
.browser-url { flex: 1; text-align: center; border-radius: 999px; background: rgba(255,255,255,0.06); padding: 0.25rem 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.browser-body { padding: 1.5rem; }
@media (min-width: 640px) { .browser-body { padding: 2rem; } }

.bp-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.bp-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); }
.bp-amount { margin-top: 0.25rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.01em; }
.bp-ranges { display: flex; gap: 0.25rem; }
.bp-range { border-radius: 999px; padding: 0.35rem 0.65rem; font-size: 0.6875rem; font-weight: 500; color: rgba(255,255,255,0.4); }
.bp-range.active { background: rgba(255,255,255,0.1); color: #fff; }
.bp-chart { width: 100%; height: 10rem; display: block; }

.bp-positions { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .bp-positions { grid-template-columns: repeat(3, 1fr); } }
.position-card { border-radius: 1rem; border: 1px solid var(--border); background: var(--surface); padding: 1rem; }
.position-name { font-size: 0.8125rem; font-weight: 600; }
.position-symbol { margin-top: 0.15rem; font-family: ui-monospace, monospace; font-size: 0.6875rem; color: rgba(255,255,255,0.4); }
.position-foot { margin-top: 0.75rem; display: flex; align-items: flex-end; justify-content: space-between; }
.position-value { font-size: 1rem; font-weight: 600; }
.position-pnl { text-align: right; font-size: 0.8125rem; font-weight: 600; }
.position-pnl-pct { font-size: 0.6875rem; }

/* ── Trust bar ──────────────────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  padding: 1.5rem 0;
}
.trust-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.5); }
.trust-item svg { width: 0.875rem; height: 0.875rem; color: var(--gold); flex-shrink: 0; }

/* ── Comment ça marche ──────────────────────────────────────────────── */
.hiw-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.hiw-eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--gold);
}

.hiw-visuals {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hiw-visuals { grid-template-columns: 0.85fr 1fr; align-items: stretch; }
}
.hiw-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}
.hiw-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 15% 100%, rgba(201, 168, 76, 0.28), transparent 60%);
  pointer-events: none;
}
.hiw-visual-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hiw-visual-phone { aspect-ratio: 383 / 480; }
.hiw-visual-desktop { aspect-ratio: 4 / 3; }
.hiw-visual-desktop img { object-position: top; }

.hiw-content {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .hiw-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.hiw-blurbs { display: flex; flex-direction: column; }
.hiw-blurb { padding: 1.5rem 0; border-bottom: 1px solid var(--border-soft); }
.hiw-blurb:first-child { padding-top: 0; }
.hiw-blurb:last-child { border-bottom: none; }
.hiw-blurb h3 { font-size: 1.0625rem; font-weight: 600; color: #fff; }
.hiw-blurb p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }

.hiw-steps {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.step-row { display: flex; gap: 1rem; }
.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
}
.step-row h3 { font-size: 0.9375rem; font-weight: 600; color: #fff; }
.step-row p { margin-top: 0.35rem; font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 6rem 0; }
.section-head { max-width: 36rem; margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.section-text { margin-top: 1rem; color: var(--text-muted); }

.showcase-visual { margin-top: 3.5rem; }

.features-section { border-top: 1px solid var(--border-soft); background: rgba(255,255,255,0.02); }
.feature-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: rgba(201, 168, 76, 0.3); }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature-title { margin-top: 1rem; font-size: 1rem; font-weight: 600; }
.feature-text { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.55; color: rgba(255,255,255,0.55); }

.security-section .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .security-section .wrap { grid-template-columns: 1fr 1fr; } }
.security-title { margin-top: 1.25rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.security-text { margin-top: 1rem; color: var(--text-muted); }
.security-card { border-radius: 1.5rem; border: 1px solid var(--border); background: var(--surface); padding: 2rem; }
.security-list { display: flex; flex-direction: column; gap: 1.25rem; }
.security-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.security-list svg { width: 1rem; height: 1rem; margin-top: 0.15rem; color: var(--gold); flex-shrink: 0; }

.cta-section { border-top: 1px solid var(--border-soft); text-align: center; }
.cta-section .wrap { max-width: 40rem; }
.cta-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.site-footer { border-top: 1px solid var(--border-soft); padding: 2.5rem 0; }
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 640px) { .site-footer .wrap { flex-direction: row; } }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
