/*
  REVALYTICS — OUR PHILOSOPHY
  Self-contained. Imports: tokens → base → typography → buttons → wirebar → nav → footer → this file.
  All required moneyball styles are included here directly so moneyball.css is not needed.
*/

/* ─── Footer tagline row ────────────────────────────── */
.footer-tagline-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── Section scaffold ───────────────────────────────── */
.s-wrap {
  padding: 25px 30px 0;
}

.s-light {
  background: #fff;
  border-radius: var(--rev-radius-lg);
  box-shadow: var(--rev-shadow-card);
  padding: clamp(48px, 5vw, 72px) clamp(32px, 6vw, 80px);
}

.s-dark {
  background: var(--rev-navy-900);
  border-radius: var(--rev-radius-lg);
  box-shadow: var(--rev-shadow-card);
  padding: clamp(48px, 5vw, 72px) clamp(32px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.ls-orb {
  position: absolute;
  right: -80px;
  top: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: rgba(75, 133, 234, 0.15);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.s-dark::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(75, 133, 234, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Hero ──────────────────────────────────────────── */
.hero-wrap {
  padding: 90px 30px 0;
}

.hero-card {
  border-radius: var(--rev-radius-lg);
  box-shadow: var(--rev-shadow-card);
  overflow: hidden;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/hero-section-backgroud-blue-gradient.webp');
  background-size: cover;
  background-position: center center;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(4, 18, 45, 0.82) 0%,
      rgba(4, 18, 45, 0.68) 35%,
      rgba(4, 18, 45, 0.35) 65%,
      rgba(4, 18, 45, 0.55) 100%);
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(4, 18, 45, 0.35) 0%,
      transparent 25%,
      transparent 75%,
      rgba(4, 18, 45, 0.25) 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(16px, 2vw, 28px) clamp(32px, 6vw, 80px) clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: center;
  flex: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-blue-300);
  margin-top: 20px;
  margin-bottom: 32px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rev-pos);
  animation: wire-pulse 1.4s infinite;
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 850px;
}

.hero-h1 em { color: var(--rev-blue-300); font-style: italic; }

.hero-support {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.hero-support strong {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-shift {
  border-left: 2px solid var(--rev-blue);
  padding-left: 28px;
}

.hero-shift-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-blue-300);
  margin: 0 0 16px;
}

.hero-shift-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.hero-shift-text em {
  color: #fff;
  font-style: italic;
}

/* ─── Section header ─────────────────────────────────── */
/* Eyebrow + H2 (left col) | Description (right col)     */
.s-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 40px;
}

/* Eyebrow — matches hero .hero-label exactly */
.s-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.s-eyebrow.light { color: var(--rev-blue); }
.s-eyebrow.dark  { color: var(--rev-blue-300); }

/* H2 — matches hero .hero-h1 style & scale */
.s-h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}

.s-h2.light { color: var(--rev-text); }
.s-h2.dark  { color: #fff; }
.s-h2 em    { font-style: italic; }
.s-h2.light em { color: var(--rev-blue); }
.s-h2.dark em  { color: var(--rev-blue-300); }

/* Description panel — right column card */
.s-header > div:last-child {
  background: var(--rev-blue-25);
  border: 1px solid var(--rev-border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
}

.s-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.s-sub.light { color: var(--rev-text); }
.s-sub.dark  { color: rgba(255, 255, 255, 0.85); }

/* Section 03 only — right card: light blue-white */
#blindspots .s-header {
  align-items: start;
}

#blindspots .s-header > div:last-child {
  background: var(--rev-blue-25);
  border: 1px solid var(--rev-border);
  border-radius: 20px;
  padding: 28px 30px;
  display: block;
}

#blindspots .s-header > div:last-child .s-sub {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rev-text);
}

/* Section 04 only — right card: light blue-white */
#principles .s-header {
  align-items: start;
}

#principles .s-header > div:last-child {
  background: var(--rev-blue-25);
  border: 1px solid var(--rev-border);
  border-radius: 20px;
  padding: 28px 30px;
  display: block;
}

#principles .s-header > div:last-child .s-sub {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rev-text);
}

/* Section — Principle 03 in practice */
#practice .s-sub {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}

/* ─── Pull quote (section 02 heading — matches hero H1 spec) ── */
.pull-quote {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 10px 0 28px;
  max-width: 850px;
}

.pull-quote em { color: var(--rev-blue-300); font-style: italic; }

/* ─── Body copy (section 01) ─────────────────────────── */
.body-copy {
  font-size: 18px;
  line-height: 1.65;
  color: var(--rev-text);
  max-width: 700px;
}

.body-copy + .body-copy { margin-top: 28px; }
.body-copy strong { font-weight: 600; }

/* ─── Video modal ───────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-modal.is-open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.video-modal-content {
  position: relative;
  width: min(900px, 92vw);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.video-modal-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.video-modal-close:hover { background: rgba(255, 255, 255, 0.30); }

/* ─── CTA section ───────────────────────────────────── */
.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-box {
  background: var(--rev-cta-gradient);
  color: #fff;
  border-radius: 20px;
  padding: 35px 35px 30px;
  box-shadow: 0 20px 50px rgba(0, 86, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(75, 133, 234, 0.4);
  filter: blur(40px);
  pointer-events: none;
}

.cta-box .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  position: relative;
}

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b85ea;
  box-shadow: 0 0 0 4px rgba(75, 133, 234, 0.3);
  animation: cta-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(75, 133, 234, 0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(75, 133, 234, 0); }
}

.cta-box h3 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-box p {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  position: relative;
}

.cta-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: var(--rev-navy-900);
  font-size: 17px;
  font-weight: 500;
  padding: 16px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  position: relative;
}

.cta-button:hover { background: var(--rev-blue-25); }

.cta-fine {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin: 14px 0 0;
  position: relative;
  letter-spacing: 0;
}

/* ─── Shift rule (section 01 callout) ───────────────── */
.shift-rule {
  border-left: 1.5px solid var(--rev-border);
  padding-left: 28px;
  margin-top: 40px;
}

.shift-rule-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-blue);
  margin: 0 0 12px;
}

.shift-rule-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--rev-text);
  letter-spacing: -0.01em;
  max-width: 560px;
}

.shift-rule-text em {
  color: var(--rev-blue);
  font-style: italic;
}

/* ─── Trap section (section 02) ─────────────────────── */
.trap-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.trap-body-text {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}

.trap-body-text + .trap-body-text { margin-top: 28px; }

.trap-body-text em {
  color: var(--rev-blue-300);
  font-style: italic;
}

.trap-way-out {
  border-left: 2px solid var(--rev-blue);
  padding-left: 28px;
}

.trap-way-out-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rev-blue);
  margin-bottom: 16px;
}

.trap-way-out-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.trap-way-out-text em {
  color: var(--rev-blue-300);
  font-style: italic;
}

/* ─── Blindspots (section 03) ───────────────────────── */
.blindspots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #d9d9d9;
  border-radius: var(--rev-radius-md);
  overflow: hidden;
}

.blindspot-tile {
  background: #fff;
  padding: 32px 36px;
  transition: background 0.3s ease;
}

.blindspot-tile:hover { background: var(--rev-blue-25); }

.blindspot-cat {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text);
  margin-bottom: 12px;
}

.blindspot-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--rev-text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.blindspot-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--rev-text);
}

.blindspots-footnote {
  font-size: 16px;
  color: var(--rev-text);
  line-height: 1.55;
  margin-top: 36px;
  max-width: 900px;
}

/* ─── Principle cards (section 04) ──────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle-card {
  border-radius: var(--rev-radius-md);
  padding: 36px 32px;
  border: 1.5px solid #d9d9d9;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 0 0 var(--rev-blue);
  border-color: var(--rev-blue);
}

.principle-card.dark {
  background: var(--rev-navy-900);
  border-color: var(--rev-navy-900);
}

.principle-card.dark:hover {
  box-shadow: 6px 6px 0 0 var(--rev-blue);
  border-color: var(--rev-blue);
}

.principle-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.principle-num {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--rev-blue);
}

.principle-card.dark .principle-num { color: var(--rev-blue-300); }

.principle-tag {
  font-family: var(--rev-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rev-text);
  margin-top: 8px;
  text-align: right;
}

.principle-card.dark .principle-tag { color: rgba(255, 255, 255, 0.45); }

.principle-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--rev-text);
  margin-bottom: 14px;
  min-height: 2.3em;
}

.principle-card.dark .principle-title { color: #fff; }

.principle-title em { font-style: italic; color: var(--rev-blue); }

.principle-card.dark .principle-title em { color: var(--rev-blue-300); }

.principle-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--rev-text);
  margin-bottom: 24px;
  flex: 1;
}

.principle-card.dark .principle-body { color: rgba(255, 255, 255, 0.65); }

.principle-link {
  font-family: var(--rev-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rev-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
  text-decoration: none;
}

.principle-card:hover .principle-link { gap: 10px; }

.principle-card.dark .principle-link { color: var(--rev-blue-300); }

.principle-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.principle-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rev-font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rev-blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.3s ease, opacity 0.2s;
}

.principle-watch-btn:hover { opacity: 0.75; gap: 9px; }

.principle-card.dark .principle-watch-btn { color: var(--rev-blue-300); }

.principles-footnote {
  font-size: 16px;
  color: var(--rev-text);
  line-height: 1.55;
  margin-top: 36px;
  max-width: 560px;
}

/* ─── Final CTA section ─────────────────────────────── */
.phil-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--rev-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.phil-cta-h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--rev-text);
  margin: 0 0 28px;
}

.phil-cta-h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--rev-blue);
}

.phil-cta-body {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--rev-text);
  margin: 0 0 24px;
  max-width: 630px;
}

.phil-back-link {
  display: inline-block;
  color: var(--rev-blue);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.phil-back-link:hover { opacity: 0.7; }

/* ─── Responsive ─────────────────────────────────────── */

/* Tablet: s-header collapses to single column            */
/* h2 gets margin-bottom so it gaps 28px to s-sub below  */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }

  .s-header {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 28px;
  }

  .s-h2 { margin-bottom: 28px; }

  .s-header > div:last-child {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    display: block;
  }

  #blindspots .s-header > div:last-child {
    background: var(--rev-blue-25);
    border: 1px solid var(--rev-border);
    border-radius: 20px;
    padding: 24px 28px;
  }

  #principles .s-header > div:last-child {
    background: var(--rev-blue-25);
    border: 1px solid var(--rev-border);
    border-radius: 20px;
    padding: 24px 28px;
  }
}

@media (max-width: 900px) {
  .trap-body { grid-template-columns: 1fr; gap: 40px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: hero card and section cards get side margins   */
@media (max-width: 908px) {
  .hero-wrap { padding: 82px 0 0; }
  .hero-card { margin: 0 12px; border-radius: 20px; }
  .hero-inner { padding: 40px 24px 48px; gap: 28px; }
  .hero-h1 { font-size: 36px; line-height: 1.1; margin-bottom: 20px; }

  .s-wrap { margin: 0; padding: 0; width: 100%; }
  .s-light,
  .s-dark { margin: 20px 12px 0; border-radius: 20px; }
}

@media (max-width: 640px) {
  .hero-wrap { padding: 82px 0 0; }
  .hero-card { margin: 0 12px !important; border-radius: 0 !important; }
  .hero-inner {
    padding: 40px 20px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 40px !important;
  }
  .hero-label { display: block !important; text-align: center !important; width: 100% !important; }
  .hero-label .live-dot { display: inline-block; vertical-align: middle; margin-right: 8px; }
  .hero-h1 { font-size: 36px !important; line-height: 1.1 !important; margin-top: 16px !important; text-align: center !important; }
  .hero-h1 br { display: none; }
  .hero-support { font-size: 16px !important; margin-top: 20px !important; }
  .hero-actions { justify-content: center !important; gap: 12px !important; }
  .hero-shift { width: 100%; max-width: 360px; margin: 0 auto; text-align: left; border-radius: 20px !important; }

  .blindspots-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .trap-body { gap: 28px; }
  .video-modal-content { width: 96vw; border-radius: 8px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
}