/* ============================================
   The Ricky Bobby Report — Style System
   All brand tokens are CSS custom properties.
   Edit :root to change the entire brand.
   ============================================ */

:root {
  /* Background & Surface */
  --bg: #0F1115;
  --surface: #171A21;
  --surface-hover: #1E222C;
  --border: #2A2F3A;

  /* Text */
  --text: #F5F7FA;
  --text2: #B6BDC9;
  --text-muted: #6B7280;

  /* Rose Gold Palette */
  --rose: #B76E79;
  --rose-light: #E6C7C9;
  --rose-deep: #8E4F59;
  --rose-glow: rgba(183, 110, 121, .15);

  /* Turquoise Palette */
  --teal: #4ECDC4;
  --teal-light: #7EDFD8;
  --teal-deep: #2BA39B;
  --teal-glow: rgba(78, 205, 196, .15);

  /* Semantic */
  --positive: #22C55E;
  --negative: #EF4444;
  --amber: #F59E0B;
  --blue: #3B82F6;
  --purple: #A855F7;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: 5rem;
  --card-radius: 12px;
  --card-pad: 1.5rem;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--rose); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose-light); }
img { max-width: 100%; height: auto; display: block; }

/* === ACCESSIBILITY === */
.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; }
.sr-only-focusable:focus { position: fixed; top: 0; left: 0; z-index: 9999; width: auto; height: auto; padding: .75rem 1.5rem; margin: 0; overflow: visible; clip: auto; white-space: normal; background: var(--rose); color: #fff; font-weight: 600; border-radius: 0 0 8px 0; }

/* === FOCUS STYLES === */
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* === STARFIELD === */
#starfield {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section { padding: var(--section-pad) 0; position: relative; }

/* === NAV === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,17,21,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 700;
  color: var(--text); font-size: 1.1rem;
}
.nav-logo-wrap {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo img, .nav-logo-circle {
  width: 108px; height: 108px; max-width: none;
  border-radius: 0; margin-top: 15px;
}
.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a {
  color: var(--text2); font-size: .9rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 1px;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; border-radius: 1px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(15,17,21,.97); backdrop-filter: blur(14px);
    padding: 1rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* === HERO === */
.hero { padding-top: 7rem; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal-light), var(--teal), var(--rose), var(--rose-deep));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline { color: var(--text2); font-size: 1.15rem; margin-bottom: 1.5rem; max-width: 520px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.mascot-img {
  max-width: 380px; width: 100%;
  filter: drop-shadow(0 0 40px rgba(183,110,121,.2));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-mascot { order: 1; }
  .mascot-img { max-width: 220px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
}

/* === BUTTONS === */
.btn {
  display: inline-block; padding: .75rem 1.5rem; border-radius: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: .95rem;
  transition: all .2s; cursor: pointer; border: none; line-height: 1.4;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-deep); color: #fff; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--rose); color: var(--rose); background: transparent; }
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* === KPI STRIP === */
.kpi-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-top: 3rem;
}
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 1.25rem; text-align: center;
  transition: border-color .2s;
}
.kpi-card:hover { border-color: var(--teal); }
.kpi-label {
  display: block; font-size: .75rem; color: var(--text2);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem;
  font-weight: 500;
}
.kpi-value {
  display: block; font-family: var(--font-mono); font-size: 1.6rem;
  font-weight: 600; color: var(--text);
}
.kpi-value.positive { color: var(--positive); }
.kpi-value.negative { color: var(--negative); }

@media (max-width: 600px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

/* === NEWSLETTER === */
.newsletter-block {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(183,110,121,.08), rgba(142,79,89,.05));
  border: 1px solid var(--rose-deep);
  border-radius: var(--card-radius); padding: 2rem;
  text-align: center;
}
.newsletter-block h3 {
  font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: .5rem;
  color: var(--rose-light);
}
.newsletter-block > p, .newsletter-inner > p { color: var(--text2); max-width: 500px; margin: 0 auto .75rem; font-size: .95rem; }
.newsletter-form {
  display: flex; gap: .5rem; max-width: 440px; margin: 1rem auto 0;
  flex-wrap: wrap; justify-content: center;
}
.newsletter-input {
  flex: 1; min-width: 200px; padding: .7rem 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--rose); outline: none; }
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-btn { white-space: nowrap; }
.newsletter-fine { font-size: .75rem !important; color: var(--text-muted) !important; margin-top: .5rem !important; }
.newsletter-success { color: var(--positive); font-weight: 500; }

/* === SECTION TITLES === */
.section-title {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, var(--teal-light), var(--teal), var(--rose), var(--rose-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { color: var(--text2); margin-bottom: 2rem; font-size: 1.05rem; }
.subsection-title {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--rose-light); margin-bottom: .5rem;
}

/* === PROJECT CARDS === */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: var(--card-pad);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--rose); box-shadow: 0 8px 32px rgba(183,110,121,.1); }
.project-card h4 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: .5rem; }
.project-card p { color: var(--text2); font-size: .9rem; margin-bottom: .75rem; }
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 20px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .5rem;
}
.badge-active { background: rgba(34,197,94,.15); color: var(--positive); }
.badge-planning { background: rgba(245,158,11,.15); color: var(--amber); }
.badge-research { background: rgba(59,130,246,.15); color: var(--blue); }
.badge-idea { background: rgba(183,110,121,.15); color: var(--rose-light); }
.badge-testing { background: rgba(168,85,247,.15); color: var(--purple); }
.badge-launching { background: rgba(34,197,94,.2); color: var(--positive); }
.project-net { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600; }
.pit-milestone { font-size: .8rem; color: var(--text2); margin-top: .5rem; font-style: italic; }

/* === REVENUE === */
.chart-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: var(--card-pad); margin-bottom: 2rem;
}
.revenue-table-wrap { overflow-x: auto; border-radius: var(--card-radius); }
.revenue-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: .85rem;
}
.revenue-table th {
  text-align: left; padding: .75rem 1rem;
  border-bottom: 2px solid var(--border);
  color: var(--text2); font-weight: 500; text-transform: uppercase;
  font-size: .75rem; letter-spacing: .04em;
}
.revenue-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.revenue-table tr:hover td { background: var(--rose-glow); }

/* === JOURNAL === */
.journal-feed { display: flex; flex-direction: column; gap: 1.25rem; }
.journal-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: var(--card-pad);
  transition: border-color .2s, box-shadow .2s;
}
.journal-card:hover { border-color: var(--rose); box-shadow: 0 4px 20px rgba(183,110,121,.08); }
.journal-date { font-family: var(--font-mono); font-size: .8rem; color: var(--teal); margin-bottom: .25rem; }
.journal-card h4 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: .5rem; }
.journal-card p { color: var(--text2); font-size: .9rem; }
.journal-meta {
  display: flex; gap: 1.5rem; margin-top: .75rem;
  font-family: var(--font-mono); font-size: .85rem;
}

/* === WEEKLY === */
.weekly-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.weekly-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: var(--card-pad);
  transition: border-color .2s;
}
.weekly-card:hover { border-color: var(--rose); }
.weekly-card h4 { font-family: var(--font-heading); color: var(--rose-light); margin-bottom: .75rem; font-size: 1.15rem; }
.weekly-card dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem .75rem; align-items: start; }
.weekly-card dt { color: var(--text2); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.weekly-card dd { font-size: .9rem; margin: 0; }

/* === ABOUT === */
.about-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); padding: 2rem; text-align: center;
  transition: border-color .2s;
}
.about-card:hover { border-color: var(--rose); }
.about-card:nth-child(2):hover { border-color: var(--teal); }
.about-img-teal { border-color: var(--teal) !important; }
.about-card h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: .25rem; }
.about-role { color: var(--rose); font-weight: 500; margin-bottom: 1rem; font-size: .95rem; }
.about-card p { color: var(--text2); font-size: .9rem; margin-bottom: .75rem; text-align: left; }
.about-img {
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 50%; margin: 0 auto 1rem;
  border: 3px solid var(--rose);
  object-position: center center;
}
.about-img-teal { border-color: var(--teal) !important; object-position: center 25%; }
.about-avatar-placeholder { font-size: 4rem; margin-bottom: 1rem; line-height: 1.2; }

@media (max-width: 768px) {
  .about-duo { grid-template-columns: 1fr; }
}

/* === COURSES === */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.course-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-3px); border-color: var(--rose); box-shadow: 0 8px 32px rgba(183,110,121,.1); }
.course-img { width: 100%; height: 160px; object-fit: cover; }
.course-info { padding: 1.25rem; }
.course-info h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: .5rem; }
.course-info p { color: var(--text2); font-size: .85rem; margin-bottom: .75rem; }
.course-price {
  font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600;
  color: var(--rose-light); display: block; margin-bottom: .75rem;
}
.course-price.coming-soon {
  font-family: var(--font-heading); font-size: 1rem;
  color: var(--teal); background: var(--teal-glow);
  display: inline-block; padding: .4rem 1rem; border-radius: 20px;
  border: 1px solid var(--teal-deep);
}
.yt-cta {
  text-align: center; margin-top: 3rem; padding: 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--card-radius);
}
.yt-cta p { color: var(--text2); margin-bottom: 1rem; }

/* === SOCIAL ICONS (Footer) === */
.social-links {
  display: flex; justify-content: center; gap: 1.25rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.social-links a {
  color: var(--text2); display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); transition: all .2s;
}
.social-links a:hover { color: var(--rose-light); border-color: var(--rose); background: var(--rose-glow); }

/* === FOOTER === */
#footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0; text-align: center;
  position: relative; z-index: 1;
}
.footer-tagline { font-family: var(--font-heading); font-size: 1.1rem; color: var(--rose-light); margin-bottom: 1.25rem; }
.footer-disclaimer {
  color: var(--text-muted); font-size: .8rem;
  max-width: 600px; margin: 0 auto 1rem; line-height: 1.5;
}
.footer-copy { color: #555; font-size: .8rem; line-height: 1.6; }
.footer-copy a { color: var(--rose-deep); }

/* === ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in { opacity: 1; transform: none; }
  .mascot-img { animation: none; }
}

/* === HERO IMAGE GLASS GLOW === */
.hero-img-glow {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(135deg, var(--rose), var(--teal), var(--rose-deep), var(--teal-deep));
  background-size: 300% 300%;
  animation: glowShift 6s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(183,110,121,.25), 0 0 80px rgba(78,205,196,.15);
}
.hero-img-glow::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: rgba(15,17,21,.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}
.hero-img-glow .mascot-img {
  position: relative; z-index: 1;
  border-radius: 16px;
  max-width: 380px;
  filter: drop-shadow(0 0 20px rgba(183,110,121,.15));
}
@keyframes glowShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === HERO MISSION TEXT === */
.hero-mission {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(23,26,33,.6);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(8px);
}
.hero-mission p {
  color: var(--text2);
  font-size: .95rem;
  margin-bottom: .6rem;
  line-height: 1.6;
}
.hero-mission p:last-child { margin-bottom: 0; }
.hero-mission strong { color: var(--teal-light); }

/* === SOCIAL FOLLOW BLOCK === */
.social-follow-block {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(78,205,196,.08), rgba(183,110,121,.05));
  border: 1px solid var(--teal-deep);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
}
.social-follow-block h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: .5rem;
  color: var(--teal-light);
}
.social-follow-inner > p {
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 1.25rem;
  font-size: .95rem;
}
.social-follow-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-follow-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s;
  text-decoration: none;
}
.social-follow-card:hover {
  border-color: var(--teal);
  background: var(--teal-glow);
  color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(78,205,196,.15);
}
.social-follow-card svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .social-follow-grid { flex-direction: column; align-items: center; }
  .social-follow-card { width: 100%; max-width: 260px; justify-content: center; }
}

/* === BADGES — TEAL VARIANTS === */
.badge-planning { background: rgba(78,205,196,.15); color: var(--teal); }
.badge-research { background: rgba(78,205,196,.1); color: var(--teal-light); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose-deep); }
