:root {
  --bg: #0b0f16;
  --surface: #0e131b;
  --surface-2: #141b26;
  --border: #1e2633;
  --border-strong: #2b384b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --sky: #38bdf8;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient subtle background glows */
.bg-glow {
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.16;
}
.bg-glow-1 {
  top: -220px;
  left: -120px;
  background: radial-gradient(circle, var(--emerald), transparent 70%);
}
.bg-glow-2 {
  top: 240px;
  right: -180px;
  background: radial-gradient(circle, var(--sky), transparent 70%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(30, 38, 51, 0.85);
  background: rgba(11, 15, 22, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav[hidden] {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 8px 15px;
  font-size: 0.84rem;
}
.btn-lg {
  padding: 13px 22px;
  font-size: 0.96rem;
}
.btn-primary {
  background: var(--emerald);
  color: #052014;
  box-shadow: 0 8px 26px -8px rgba(16, 185, 129, 0.55);
}
.btn-primary:hover {
  background: var(--emerald-bright);
}
.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--sky);
  background: #182231;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* Sections */
.section {
  padding: 88px 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(14, 19, 27, 0.72), rgba(14, 19, 27, 0.28));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* Hero */
.hero {
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-content {
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.09);
  color: var(--emerald-bright);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.8vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, var(--emerald-bright), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 650px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-pills svg {
  color: var(--emerald-bright);
}

/* Hero Product Showcase */
.showcase-wrap {
  margin-top: 52px;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.showcase-tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.showcase-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.showcase-tab.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.browser-frame {
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.78);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #0a0d13;
  border-bottom: 1px solid var(--border);
}

.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #273244;
}

.chrome-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.screen-stage {
  background: #080b10;
}
.screen-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

/* Cards Grids */
.cards-grid {
  display: grid;
  gap: 20px;
}
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature-card,
.step-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover,
.feature-card:hover,
.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card-icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.card-icon-sky {
  background: rgba(56, 189, 248, 0.12);
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.card-icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.card h3,
.feature-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
}
.card p,
.feature-card p,
.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
}

/* Comparison Panel */
.compare-panel {
  margin-top: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.compare-header,
.compare-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1.4fr;
  gap: 16px;
  padding: 15px 22px;
  align-items: center;
  font-size: 0.92rem;
}
.compare-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.86rem;
}
.compare-row + .compare-row {
  border-top: 1px solid rgba(30, 38, 51, 0.8);
}
.compare-label {
  font-weight: 600;
}
.compare-col-muted {
  color: var(--text-dim);
}
.compare-col-accent {
  color: var(--emerald-bright);
  font-weight: 500;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.step-num {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 3px 9px;
  margin-bottom: 12px;
}

/* Mini Simulator */
.mini-sim {
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

.mini-sim-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mini-sim-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-pair {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.mini-sim-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.mini-sim-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.mini-sim-balance strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--text);
  font-size: 0.98rem;
}

.sim-pnl-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.sim-pnl-pill.pos {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald-bright);
}
.sim-pnl-pill.neg {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}

.mini-sim-stage {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #090d14;
  overflow: hidden;
}

.sim-svg {
  width: 100%;
  height: auto;
  display: block;
}

.sim-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(20, 27, 38, 0.72),
    rgba(20, 27, 38, 0.72) 10px,
    rgba(14, 19, 27, 0.82) 10px,
    rgba(14, 19, 27, 0.82) 20px
  );
  border-left: 1px dashed rgba(56, 189, 248, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: width 0.2s ease;
}
.sim-curtain span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 22, 0.9);
  border: 1px solid var(--border-strong);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.mini-sim-controls {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sim-nav-btns,
.sim-trade-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-trade {
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-trade:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-buy {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald-bright);
}
.btn-buy:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.26);
}
.btn-sell {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #fda4af;
}
.btn-sell:hover:not(:disabled) {
  background: rgba(244, 63, 94, 0.26);
}

.sim-hint {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 22px;
}
.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.01rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  color: var(--sky);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Closing CTA */
.cta-section {
  padding-top: 40px;
}

.cta-box {
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.14), rgba(14, 19, 27, 0.96) 62%);
  padding: 54px 28px;
}

.cta-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  margin: 0 auto 20px;
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.1vw, 2.2rem);
  letter-spacing: -0.02em;
}
.cta-box p {
  margin: 0 auto 28px;
  max-width: 600px;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 38px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 600;
}
.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a:hover {
  color: var(--text);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .section {
    padding: 64px 0;
  }
  .cards-3,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .compare-header {
    display: none;
  }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .compare-col-muted::before {
    content: "Démo classique : ";
    color: var(--text-muted);
  }
  .compare-col-accent::before {
    content: "Pipstation : ";
    color: var(--text-muted);
  }
  .sim-curtain span {
    display: none;
  }
}
