/* ═══════════════════════════════════════════════════════════
   PokerHive — design system
   Tokens: BRAND.md §2.2–2.7 · dark warm · one honey accent
   ═══════════════════════════════════════════════════════════ */
:root {
  /* palette */
  --midnight: #0B0A08;
  --felt: #141210;
  --raised: #1D1A16;
  --hairline: #2A2521;
  --ivory: #F4F0E9;
  --smoke: #A9A198;
  --honey: #F2A93B;
  --nectar: #FFCE6B;
  --deep-amber: #B97A1E;
  --on-honey: #1A1207;
  --honey-glow: rgba(242, 169, 59, 0.14);

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* rhythm */
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--honey); color: var(--on-honey); }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ── typography roles ─────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; }
.lead { font-size: 1.125rem; color: var(--smoke); max-width: 60ch; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--honey); margin-bottom: 16px;
}
.honey-text {
  background: linear-gradient(120deg, var(--nectar), var(--honey));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms var(--ease-out),
              border-color 150ms var(--ease-out),
              transform 80ms var(--ease-out),
              box-shadow 150ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--honey); color: var(--on-honey);
  box-shadow: 0 0 0 0 var(--honey-glow);
}
.btn-primary:hover { background: var(--nectar); box-shadow: 0 4px 24px var(--honey-glow); }
.btn-ghost {
  background: transparent; color: var(--ivory); border-color: var(--hairline);
}
.btn-ghost:hover { border-color: var(--honey); color: var(--nectar); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 40px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 28px; height: 28px; }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; }
.logo-word em { font-style: normal; color: var(--honey); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 0.9075rem; color: var(--smoke);
  transition: color 130ms var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.lang-switch {
  font-size: 0.8125rem; font-weight: 600; color: var(--smoke);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 6px 13px;
  transition: color 130ms var(--ease-out), border-color 130ms var(--ease-out);
}
.lang-switch:hover { color: var(--nectar); border-color: var(--honey); }

/* ── hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 172px 0 112px; }
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse at center, var(--honey-glow), transparent 65%);
}
.hex-field {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='97' viewBox='0 0 56 97' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 2 54 17v30L28 62 2 47V17Z M28 66 54 81v30L28 126 2 111V81Z' fill='none' stroke='%23F2A93B' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; display: grid; gap: 64px; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; color: var(--smoke); margin-bottom: 28px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-proof { margin-top: 22px; font-size: 0.8125rem; color: var(--smoke); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--honey); flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* the signature clock */
.clock-card {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, var(--raised), var(--felt));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 32px 32px;
  box-shadow: 0 0 80px var(--honey-glow), 0 24px 48px rgba(0, 0, 0, 0.4);
}
/* cartes + jetons flottant derrière le clock (ADN poker immédiat) */
.clock-card::before {
  content: ""; position: absolute; z-index: -1;
  top: -84px; right: -38px; width: 230px; height: 200px;
  background: url("../assets/img/hero-cards.svg") no-repeat center / contain;
  animation: card-float 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes card-float { from { transform: translateY(0); } to { transform: translateY(9px); } }
.clock-head {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; color: var(--smoke); margin-bottom: 24px;
}
.live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--honey); font-weight: 600; letter-spacing: 0.1em;
}
.clock-event { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock-level {
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.18em; color: var(--smoke); text-align: center;
}
.clock-time {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4rem, 3rem + 4vw, 5.5rem);
  letter-spacing: -0.02em; text-align: center; line-height: 1.05;
  font-variant-numeric: tabular-nums; margin-bottom: 24px;
  color: var(--ivory);
}
.clock-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
}
.clock-grid > div { background: var(--felt); padding: 12px 16px; }
.clock-grid span {
  display: block; font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 2px;
}
.clock-grid strong {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── sections ─────────────────────────────────────────────── */
.section { padding: 112px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(20, 18, 16, 0.7) 12%, rgba(20, 18, 16, 0.7) 88%, transparent);
}
.section h2 { margin-bottom: 20px; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.pillar {
  border-top: 1px solid var(--hairline); padding-top: 20px;
}
.pillar h3 { color: var(--honey); margin-bottom: 8px; }
.pillar p { font-size: 0.9375rem; color: var(--smoke); }

/* ── features ─────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.card {
  background: var(--felt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.card:hover { border-color: rgba(242, 169, 59, 0.35); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--honey-glow); color: var(--honey);
  font-size: 1.25rem; margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9375rem; color: var(--smoke); }

/* ── community ────────────────────────────────────────────── */
.community-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.community-copy .lead { margin-bottom: 32px; }
.feed {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
/* alvéoles de la ruche en toile de fond du feed */
.feed::before {
  content: ""; position: absolute; z-index: -1;
  top: -56px; right: -70px; width: 270px; height: 220px;
  background: url("../assets/img/hive-cells.svg") no-repeat center / contain;
  opacity: 0.6; pointer-events: none;
}
.feed-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--felt); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 14px 18px;
}
.feed-item p { flex: 1; font-size: 0.9075rem; color: var(--smoke); }
.feed-item strong { color: var(--ivory); font-weight: 600; }
.feed-item time { font-size: 0.75rem; color: var(--smoke); font-variant-numeric: tabular-nums; }
.feed-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hairline); flex-shrink: 0;
}

/* ── proof ────────────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin: 56px auto 64px; text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--honey);
}
.stat span { font-size: 0.875rem; color: var(--smoke); }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
blockquote.card { position: relative; overflow: hidden; }
blockquote.card::before {
  content: "♠"; position: absolute; top: 6px; right: 18px;
  font-size: 3rem; line-height: 1; color: var(--honey);
  opacity: 0.09; pointer-events: none;
}
blockquote.card p { font-size: 1rem; color: var(--ivory); margin-bottom: 18px; }
blockquote.card footer { font-size: 0.8125rem; color: var(--smoke); }

/* ── CTA : joueur vs club ─────────────────────────────────── */
.cta-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 56px;
}
.cta-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--felt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
/* filigranes : cartes en éventail (joueur) / pile de jetons (club) */
.cta-card::before {
  content: ""; position: absolute; top: 24px; right: 24px;
  width: 64px; height: 64px; opacity: 0.35; pointer-events: none;
  background: url("../assets/img/mark-cards.svg") no-repeat center / contain;
}
.cta-card.featured::before { background-image: url("../assets/img/mark-chips.svg"); }
.cta-card.featured {
  background: linear-gradient(160deg, var(--raised), var(--felt));
  border-color: rgba(242, 169, 59, 0.4);
  box-shadow: 0 0 60px rgba(242, 169, 59, 0.07);
}
.cta-tag {
  align-self: flex-start;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--honey);
  border: 1px solid rgba(242, 169, 59, 0.35); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 20px;
}
.cta-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.price-line {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.9375rem; color: var(--honey); margin-bottom: 16px;
}
.cta-desc { flex: 1; font-size: 0.9375rem; color: var(--smoke); margin-bottom: 28px; }
.cta-form { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cta-form input {
  flex: 1; min-width: 200px; padding: 12px 18px;
  background: var(--midnight); color: var(--ivory);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 150ms var(--ease-out);
}
.cta-form input::placeholder { color: var(--smoke); }
.cta-form input:focus { outline: none; border-color: var(--honey); }
.cta-card .cta-row { margin-bottom: 14px; }
.cta-note { font-size: 0.8125rem; color: var(--smoke); }

/* ── footer ───────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); padding: 64px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; font-size: 0.9075rem; color: var(--smoke); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--smoke); margin-bottom: 14px;
}
.footer-cols a {
  display: block; font-size: 0.9075rem; color: var(--smoke);
  padding: 4px 0; transition: color 130ms var(--ease-out);
}
.footer-cols a:hover { color: var(--ivory); }
.footer-legal {
  border-top: 1px solid var(--hairline); padding-top: 24px;
  font-size: 0.8125rem; color: var(--smoke);
}

/* ── reveal on scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ── groupes de features par public ───────────────────────── */
.feature-group + .feature-group { margin-top: 64px; }
.feature-group-head {
  display: flex; align-items: center; gap: 16px; margin: 0 auto 32px;
  max-width: var(--container); padding: 0 24px;
}
.feature-group-head .eyebrow { margin: 0; white-space: nowrap; }
.feature-group-head .rule { flex: 1; height: 1px; background: var(--hairline); }
.feature-group-head .group-note { font-size: 0.8125rem; color: var(--smoke); white-space: nowrap; }
.card-tag {
  display: inline-block; margin-top: 14px; align-self: flex-start;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--honey);
  border: 1px solid rgba(242, 169, 59, 0.35); border-radius: 999px; padding: 3px 10px;
}
.card { display: flex; flex-direction: column; }

/* ── bande de lancement ───────────────────────────────────── */
.launch-panel {
  position: relative; overflow: hidden;
  border: 1px solid rgba(242, 169, 59, 0.4); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--raised), var(--felt));
  box-shadow: 0 0 70px rgba(242, 169, 59, 0.08);
  padding: 52px 48px;
}
.launch-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.launch-copy .eyebrow { color: var(--honey); }
.launch-copy h2 { margin-bottom: 16px; }
.launch-copy .lead { margin-bottom: 0; }
.launch-points { display: flex; flex-direction: column; gap: 18px; }
.launch-point { display: flex; gap: 14px; align-items: flex-start; }
.launch-point svg { width: 24px; height: 24px; color: var(--honey); flex-shrink: 0; margin-top: 1px; }
.launch-point strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ivory); }
.launch-point span { font-size: 0.9075rem; color: var(--smoke); }

/* ── tarifs / plans ───────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.plan-card {
  display: flex; flex-direction: column;
  background: var(--felt); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 36px 32px;
}
.plan-card.featured {
  background: linear-gradient(160deg, var(--raised), var(--felt));
  border-color: rgba(242, 169, 59, 0.4); box-shadow: 0 0 60px rgba(242, 169, 59, 0.07);
}
.plan-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  color: var(--honey); margin-bottom: 12px;
}
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-amount {
  font-family: var(--font-display); font-weight: 700; font-size: 2.5rem;
  letter-spacing: -0.02em; color: var(--ivory);
}
.plan-per { font-size: 0.9375rem; color: var(--smoke); }
.plan-sub { font-size: 0.8125rem; color: var(--smoke); margin-top: 6px; }
.plan-sub strong { color: var(--nectar); }
.plan-tagline { font-size: 0.9375rem; font-weight: 500; color: var(--ivory); margin: 20px 0 16px; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 24px; }
.plan-list li { position: relative; padding-left: 28px; font-size: 0.9375rem; color: var(--smoke); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23F2A93B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5 6.5-8'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pricing-note { margin-top: 28px; text-align: center; font-size: 0.8125rem; color: var(--smoke); }
.pricing-note a { color: var(--honey); }
.pricing-note a:hover { color: var(--nectar); }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner, .community-inner, .launch-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid, .quotes-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-split, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .clock-card::before, .feed::before { display: none; }
  .launch-panel { padding: 40px 28px; }
}
@media (max-width: 600px) {
  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .features-grid, .quotes-grid, .pillars { grid-template-columns: 1fr; }
  .clock-card { padding: 20px 20px 24px; }
}

/* ── reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .clock-card::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
