:root {
    --bg: #000000;
    --text: #ffffff;
    --gray: #8e8e93;
    --gray-dim: #636366;
    --border: rgba(255, 255, 255, 0.1);
    --card: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-feature-settings: "tnum" 1, "ss01" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.04), transparent 60%),
      #000;
  }

  /* Header */
  .header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 80px;
  }

  .logo-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .brand .title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .brand .subtitle {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.02em;
    margin-top: 2px;
  }

  /* Main counter section */
  .main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 960px;
    flex: 1;
  }

  .counter-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray);
    margin-bottom: 20px;
    font-weight: 500;
  }

  .counter-value {
    font-size: clamp(48px, 12vw, 80px);
    font-weight: 200;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1;
    font-feature-settings: "tnum" 1;
    transition: opacity 0.3s ease;
  }

  .counter-value.updating {
    opacity: 0.5;
  }

  .counter-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--gray);
  }

  .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
    animation: pulse 2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
  }

  /* Sparkline */
  .sparkline-wrap {
    width: 100%;
    max-width: 720px;
    margin: 48px 0 0;
    height: 80px;
    position: relative;
  }

  .sparkline {
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .sparkline path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sparkline .area {
    fill: url(#sparkGrad);
    stroke: none;
  }

  .sparkline .cursor-dot {
    fill: #ffffff;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
  }

  /* Stat cards */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 720px;
    margin-top: 32px;
  }

  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: background 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .card:hover {
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.18);
  }

  .card .val {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }

  .card .lbl {
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  /* Last update */
  .update-time {
    margin-top: 24px;
    font-size: 12px;
    color: var(--gray-dim);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  /* Footer */
  .footer {
    margin-top: auto;
    padding-top: 64px;
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    letter-spacing: 0.03em;
  }

  .footer a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .footer a:hover { color: var(--text); }
  .footer .dot {
    display: inline-block;
    margin: 0 8px;
    color: var(--gray-dim);
  }

  /* Responsive */
  @media (max-width: 640px) {
    body { padding: 32px 20px; }
    .header { margin-bottom: 56px; }
    .stats { grid-template-columns: 1fr; max-width: 360px; }
    .counter-label { font-size: 11px; }
  }

  /* Subtle entrance */
  .fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeIn 0.8s ease forwards;
  }
  .fade-in.d1 { animation-delay: 0.1s; }
  .fade-in.d2 { animation-delay: 0.2s; }
  .fade-in.d3 { animation-delay: 0.3s; }
  .fade-in.d4 { animation-delay: 0.4s; }
  .fade-in.d5 { animation-delay: 0.5s; }

  @keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
  }

/* -------------------------------------------------------------------------- *
 * Sections (sémantique HTML5)
 * -------------------------------------------------------------------------- */

.section {
  width: 100%;
  max-width: 720px;
  margin: 48px auto 0;
}

.section-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section-lede {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- *
 * Live demo
 * -------------------------------------------------------------------------- */

#demo-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px;
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.demo-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.demo-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}

.demo-cell-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.demo-cell-value {
  color: var(--fg);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-cell-value.small {
  font-size: 14px;
}

.demo-token {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
  color: var(--muted);
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  word-break: break-all;
  min-height: 48px;
}

.presence {
  margin-top: 32px;
  text-align: center;
}

.presence-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.presence-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  transition: color 1s ease;
}

.presence-hint {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

/* -------------------------------------------------------------------------- *
 * Pricing
 * -------------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pricing-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.pricing-card.featured {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-amount {
  font-size: 22px;
  font-weight: 600;
}

.pricing-detail {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-cta {
  margin-top: 16px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- *
 * Integration steps
 * -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px;
}

.step-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step code {
  color: var(--fg);
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

/* -------------------------------------------------------------------------- *
 * Site footer
 * -------------------------------------------------------------------------- */

.site-footer {
  width: 100%;
  max-width: 720px;
  margin: 64px auto 0;
  padding: 32px 20px 24px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-tagline {
  margin: 0 0 16px;
}

.footer-links {
  margin: 0 0 16px;
}

.footer-links a {
  color: var(--fg);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  margin: 0 0 4px;
  font-size: 12px;
}

/* -------------------------------------------------------------------------- *
 * Responsive — extend existing breakpoint
 * -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.footer-social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  font-size: 13px;
}
.footer-social a {
  color: #8e8e93;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-social a:hover {
  color: #ffffff;
}

.section#shadow-report {
  padding: 48px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.section#shadow-report h2 {
  font-size: 22px;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.section#shadow-report .muted {
  color: #8e8e93;
  font-size: 14px;
  margin: 0 0 20px 0;
}
.report-form {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.report-form input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: -apple-system, SF Pro, monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
.report-form input:focus {
  border-color: rgba(255,255,255,0.3);
}
.report-form button {
  background: #fff;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.report-form button:hover {
  opacity: 0.85;
}
.report-out {
  color: #8e8e93;
  font-size: 14px;
}
.report-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.report-num {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}
.report-label {
  font-size: 14px;
  color: #8e8e93;
  margin-bottom: 16px;
}
.report-meta {
  font-size: 12px;
  color: #8e8e93;
  font-family: -apple-system, SF Pro, monospace;
}
