/* ═══════════════════════════════════════════════════════════════
   CardioBoyo — global.css  (Premium Dark Edition)
   Palette: Rose #C4686A | Burgundy #6B3347 | Plum #3D2040 | Navy #1A1F3C
   Last updated: 2025
═══════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────
   1. COLOR VARIABLES
─────────────────────────────────────────── */
:root {
  --rose:         #C4686A;
  --burgundy:     #6B3347;
  --plum:         #3D2040;
  --navy:         #1A1F3C;
  --darkbase:     #0f1225;

  --glass-bg:     rgba(255, 255, 255, 0.04);
  --glass-hover:  rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(196, 104, 106, 0.4);

  --text-bright:  #ffffff;
  --text-light:   #f5e8ea;
  --text-muted:   rgba(255, 255, 255, 0.45);
  --text-dim:     rgba(255, 255, 255, 0.25);

  --warning:      rgba(249, 199, 79, 0.8);
  --warning-bg:   rgba(249, 199, 79, 0.08);
  --warning-border: rgba(249, 199, 79, 0.2);
  --success:      #4ade80;
  --danger:       #f87171;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--darkbase);
  color: var(--text-light);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}


/* ───────────────────────────────────────────
   3. BACKGROUND BLUR ORBS
─────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 104, 106, 0.22) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  filter: blur(60px);
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61, 32, 64, 0.5) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  filter: blur(70px);
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 51, 71, 0.3) 0%, transparent 70%);
  top: 45%;
  left: 38%;
  filter: blur(80px);
}


/* ───────────────────────────────────────────
   4. NAVIGATION BAR
─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.3px;
}

.nav-logo span {
  font-style: italic;
  font-weight: 700;
  color: var(--rose);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}


/* ───────────────────────────────────────────
   5. HERO SECTION
─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 24px 48px;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(196, 104, 106, 0.1);
  border: 1px solid rgba(196, 104, 106, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  animation: dot-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.hero-title span {
  font-style: italic;
  font-weight: 700;
  color: var(--rose);
}

.hero-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 18px;
}

.hero-description {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-bottom: 22px;
}

.hero-disclaimer {
  display: inline-block;
  font-size: 12px;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 7px 18px;
}


/* ───────────────────────────────────────────
   6. PLATFORM CARDS SECTION
─────────────────────────────────────────── */
.platforms-section {
  position: relative;
  z-index: 1;
  padding: 8px 24px 64px;
}

.section-label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(196, 104, 106, 0.5);
  margin-bottom: 22px;
}

.platforms-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}


/* ───────────────────────────────────────────
   7. PLATFORM CARD (glassmorphism)
─────────────────────────────────────────── */
.platform-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.platform-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 28px;
  line-height: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.3px;
}

.card-description {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  flex: 1;
}

.card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(196, 104, 106, 0.9);
  background: rgba(196, 104, 106, 0.1);
  border: 1px solid rgba(196, 104, 106, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
}

.card-badge.pro {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.card-btn {
  display: block;
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  color: var(--text-bright);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.2px;
  transition: opacity 0.2s, transform 0.1s;
}

.card-btn:hover {
  opacity: 0.88;
}

.card-btn:active {
  transform: scale(0.98);
}


/* ───────────────────────────────────────────
   8. MODE BANNER (used on platform pages)
─────────────────────────────────────────── */
.mode-banner {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  letter-spacing: 0.3px;
}

.mode-banner.demo {
  background: rgba(249, 199, 79, 0.1);
  color: #b45309;
  border-bottom: 1px solid rgba(249, 199, 79, 0.3);
}

.mode-banner.pro {
  background: rgba(74, 222, 128, 0.1);
  color: #15803d;
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
}


/* ───────────────────────────────────────────
   9. FOOTER
─────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(196, 104, 106, 0.7);
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.6;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.12);
}


/* ───────────────────────────────────────────
   10. UTILITY CLASSES
─────────────────────────────────────────── */
.hidden   { display: none !important; }
.blurred  { filter: blur(4px); user-select: none; pointer-events: none; }
.pro-only { display: none; }
.text-center { text-align: center; }


/* ───────────────────────────────────────────
   11. ACCESS STATUS (auth.js feedback)
─────────────────────────────────────────── */
.access-status        { font-size: 13px; font-weight: 500; }
.access-status.success { color: var(--success); }
.access-status.error   { color: var(--danger); }


/* ───────────────────────────────────────────
   12. RESPONSIVE — MOBILE & TABLET
─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 14px;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 260px; height: 260px; }
  .orb-3 { display: none; }
}

@media (max-width: 480px) {
  .nav-container { padding: 0 18px; }
  .nav-logo { font-size: 16px; }
  .nav-links { gap: 18px; }

  .hero { padding: 44px 18px 36px; }
  .hero-title { font-size: 32px; }

  .platforms-section { padding: 8px 16px 48px; }
  .platform-card { padding: 22px 16px 18px; }
}
