/* ============================================================
   MEILLEUR-IMMOBILIER-CROWDFUNDING.COM — Main Stylesheet
   ============================================================
   Architecture:
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Header / Navigation
   6. Hero Section
   7. Comparison Table
   8. Platform Cards
   9. How It Works
   10. Evergreen Content Section
   11. Footer
   12. Animations
   13. Responsive (Mobile-First breakpoints)
   ============================================================ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Colors */
  --navy:        #0a0f1e;
  --navy-light:  #0d1629;
  --navy-mid:    #111827;
  --navy-card:   #131d30;
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-pale:   #f0d890;
  --gold-dim:    rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.25);
  --white:       #ffffff;
  --text-main:   #e8eaf0;
  --text-muted:  #8899aa;
  --text-faint:  #4a5568;

  /* Platform colors */
  --bricks-orange:   #FF6B35;
  --lpb-red:         #E63946;
  --homunity-green:  #2D6A4F;
  --homunity-mint:   #52b788;
  --clubfunding-blue:#1B4FD8;
  --anaxago-gold:    #D4AF37;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-gold:  0 0 30px rgba(201, 168, 76, 0.12);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.5), 0 0 40px rgba(201, 168, 76, 0.1);
}

/* ─── 2. RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--navy);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-light); }

ul, ol { list-style: none; }

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ─── 3. TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }

/* ─── 4. LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  margin-bottom: var(--space-md);
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: var(--space-md) 0;
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.badge-outline {
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ─── 5. HEADER / NAVIGATION ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gold-border);
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.site-logo span {
  color: var(--gold);
}

.header-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  color: var(--gold);
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .header-badge { display: inline; } }

.site-nav {
  display: none;
}
@media (min-width: 900px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }
  .site-nav a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--transition);
    white-space: nowrap;
  }
  .site-nav a:hover { color: var(--gold); }
}

/* ─── 6. HERO SECTION ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,15,30,0.3) 0%,
    rgba(10,15,30,0.5) 50%,
    rgba(10,15,30,0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-pale));
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-platform {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gold-border);
  background: var(--gold-dim);
  color: var(--gold);
  transition: all var(--transition);
}
.btn-copy:hover, .btn-copy.copied {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ─── 7. COMPARISON TABLE ───────────────────────────────────── */
.comparison-section {
  background: var(--navy-light);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: var(--navy-card);
}

.comparison-table thead {
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
  border-bottom: 1px solid var(--gold-border);
}

.comparison-table th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
}

.comparison-table td {
  padding: 1rem 1.2rem;
  font-size: 0.93rem;
  color: var(--text-main);
  border-top: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background: rgba(201, 168, 76, 0.03);
}

.platform-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--white);
}

.platform-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bonus-value {
  font-weight: 700;
  color: var(--gold-light);
}

.return-range {
  font-weight: 600;
  color: #6ee7b7;
}

.table-cta {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-block;
}
.table-cta:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ─── 8. PLATFORM CARDS ─────────────────────────────────────── */
.platforms-section { background: var(--navy); }

.platform-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: var(--space-2xl);
}

.platform-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.platform-card:last-child { margin-bottom: 0; }

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 16/6;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border);
  position: relative;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.platform-card:hover .card-image-wrapper img {
  transform: scale(1.02);
}

.card-body {
  padding: var(--space-lg);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-title-group h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.3rem;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  max-width: 680px;
}

/* Bonus table */
.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

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

.bonus-box {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}

.bonus-box.parrain {
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.04));
  border-color: var(--gold-border);
}

.bonus-box.filleul {
  background: linear-gradient(135deg, rgba(110,231,183,0.08), rgba(110,231,183,0.02));
  border-color: rgba(110,231,183,0.2);
}

.bonus-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.bonus-box.parrain .bonus-role { color: var(--gold); }
.bonus-box.filleul .bonus-role { color: #6ee7b7; }

.bonus-amount {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.bonus-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Metric cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* Code block */
.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.code-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-value {
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  flex: 1;
  text-align: center;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-lg);
}

@media (max-width: 520px) {
  .card-actions { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-section {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-md);
}

.faq-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0.8rem 0;
}

.faq-question {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  cursor: default;
}

.faq-answer {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Platform-specific accent colors */
.platform-card[data-platform="bricks"] { --platform-color: #FF6B35; }
.platform-card[data-platform="lpb"]    { --platform-color: #E63946; }
.platform-card[data-platform="homunity"]  { --platform-color: #52b788; }
.platform-card[data-platform="clubfunding"]{ --platform-color: #4d7aff; }
.platform-card[data-platform="anaxago"]{ --platform-color: #D4AF37; }

.platform-card .btn-platform {
  background: linear-gradient(135deg, var(--platform-color), color-mix(in srgb, var(--platform-color) 80%, white));
  color: var(--white);
}
.platform-card[data-platform="anaxago"] .btn-platform { color: var(--navy); }

.platform-card .btn-platform:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ─── 9. HOW IT WORKS ───────────────────────────────────────── */
.how-section {
  background: var(--navy-light);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.step-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
  background: var(--navy-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--gold-pale));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── 10. EVERGREEN CONTENT ──────────────────────────────────── */
.content-section { background: var(--navy); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .content-grid { grid-template-columns: 2fr 1fr; }
}

.content-body h3 {
  color: var(--gold);
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 1.1rem;
}
.content-body h3:first-child { margin-top: 0; }

.content-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.sidebar-card {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--gold-border);
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.88rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  color: var(--text-main);
  flex: 1;
}
.sidebar-list a:hover { color: var(--gold); }
.sidebar-list .min { color: var(--text-faint); font-size: 0.8rem; }

/* ─── 11. FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--gold-border);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .site-logo { margin-bottom: var(--space-sm); font-size: 1.1rem; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--space-md);
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--gold-border);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ─── 12. ANIMATIONS ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Pulse badge */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
  display: inline-block;
  margin-right: 6px;
}

/* Gold shimmer for hero */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-pale) 40%, var(--gold) 60%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ─── 13. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --space-2xl: 4rem;
    --space-xl: 2.5rem;
  }

  .card-body { padding: var(--space-md); }
  .bonus-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: var(--space-sm); }
  .hero-stat-value { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ─── SCROLL TO TOP ──────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ─── 14. PLATFORM SUBPAGES ────────────────────────────────── */

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4em; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  transition: all var(--transition);
  text-decoration: none;
  margin-bottom: var(--space-md);
  width: fit-content;
}
.back-link:hover {
  color: var(--gold);
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

/* Platform page hero */
.platform-page-hero {
  padding-top: 6rem;
  padding-bottom: 0;
  background: var(--navy);
}
.platform-page-hero .hero-banner {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--gold-border);
  border-bottom: none;
  overflow: hidden;
  max-height: 320px;
}
.platform-page-hero .hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.platform-page-hero .hero-body {
  background: var(--navy-card);
  border: 1px solid var(--gold-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-lg);
}
.platform-page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: var(--space-sm);
}
.platform-page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.platform-page-hero .code-block {
  margin-bottom: var(--space-md);
}
.platform-page-hero .metrics-row {
  margin-bottom: 0;
}

/* Pros/cons grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
@media (max-width: 600px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}
.pros-col {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.07);
}
.pros-col.pros { background: rgba(110,231,183,0.05); border-color: rgba(110,231,183,0.2); }
.pros-col.cons { background: rgba(252,165,165,0.04); border-color: rgba(252,165,165,0.15); }
.pros-col h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.pros-col.pros h3 { color: #6ee7b7; }
.pros-col.cons h3 { color: #fca5a5; }
.pros-cons-list { list-style: none; }
.pros-cons-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pros-cons-list li:last-child { border-bottom: none; }
.pros-cons-list li::before {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
}
.pros-col.pros .pros-cons-list li::before { content: "✓"; color: #6ee7b7; }
.pros-col.cons .pros-cons-list li::before { content: "✗"; color: #fca5a5; }

/* Steps guide (platform pages) */
.steps-guide {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.steps-guide-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  counter-increment: step-counter;
  transition: border-color var(--transition);
}
.steps-guide-item:hover {
  border-color: var(--gold-border);
}
.steps-guide-item::before {
  content: counter(step-counter);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 2rem;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}
.steps-guide-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.steps-guide-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Platform page content body (description) */
.platform-content h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin: var(--space-md) 0 var(--space-xs);
}
.platform-content h3:first-child { margin-top: 0; }
.platform-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Bottom CTA banner on platform pages */
.cta-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(201,168,76,0.03));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}
.cta-banner p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

