/* =========================================================
   THE MONEY PROPHETS — styles.css
   Palette, type, and layout tokens live at the top.
   ========================================================= */

:root {
  /* ---- Brand colors ---- */
  --bg: #07070b;            /* near-black ink, base canvas */
  --bg-elevated: #0e0e16;   /* header / footer / sections */
  --bg-card: #14141e;       /* cards */
  --bg-card-hover: #191924;
  --gold: #d4a949;
  --gold-bright: #f2cf6e;
  --gold-dim: #8a6d2a;
  --gold-soft: rgba(212, 169, 73, 0.12);
  --white: #f3f1e8;
  --muted: #9b98a8;
  --muted-dim: #6f6d7c;
  --border: rgba(212, 169, 73, 0.18);
  --border-strong: rgba(212, 169, 73, 0.4);
  --danger: #c96a4f;

  /* ---- Type ---- */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Layout ---- */
  --max-width: 1180px;
  --radius: 3px;
  --gap: 24px;
  --transition: 220ms ease;
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

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

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #07070b;
  padding: 10px 16px;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--white);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-elevated); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim));
  color: #100b02;
  box-shadow: 0 8px 24px -8px rgba(212, 169, 73, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(212, 169, 73, 0.7); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); background: var(--gold-soft); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 13px 4px;
}
.btn-ghost:hover { color: var(--gold-bright); }

.btn[disabled], .btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.brand strong { color: var(--gold-bright); font-weight: 700; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-bright); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  position: relative;
}
.menu-toggle::before { margin-bottom: 5px; }
.menu-toggle::after { margin-top: 5px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .header-actions .btn-primary.header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 .gold { color: var(--gold-bright); }

.hero p.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Decorative CSS-only market visual (no stock imagery) */
.market-visual {
  position: relative;
  height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 20%,
    var(--bg-card);
  overflow: hidden;
}
.market-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212,169,73,0.16), transparent 55%);
  pointer-events: none;
}
.candles {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100%;
  padding: 24px 20px;
}
.candle {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  border-radius: 1px;
  opacity: 0.85;
  animation: rise 3.2s ease-in-out infinite alternate;
}
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  bottom: -10px;
  width: 1px;
  background: var(--gold-dim);
  transform: translateX(-50%);
}
.candle:nth-child(odd) { background: linear-gradient(180deg, var(--muted), var(--muted-dim)); opacity: 0.55; }
.candle:nth-child(1){height:38%;animation-delay:0s}
.candle:nth-child(2){height:58%;animation-delay:.2s}
.candle:nth-child(3){height:44%;animation-delay:.4s}
.candle:nth-child(4){height:70%;animation-delay:.1s}
.candle:nth-child(5){height:52%;animation-delay:.3s}
.candle:nth-child(6){height:82%;animation-delay:.5s}
.candle:nth-child(7){height:64%;animation-delay:.15s}
.candle:nth-child(8){height:90%;animation-delay:.35s}
.candle:nth-child(9){height:70%;animation-delay:.25s}
.candle:nth-child(10){height:96%;animation-delay:.45s}

@keyframes rise {
  from { transform: scaleY(0.94); }
  to { transform: scaleY(1); }
}

.market-visual .readout {
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* =========================================================
   TICKER (signature scrolling divider)
   ========================================================= */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll-left 38s linear infinite;
  will-change: transform;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.ticker span strong { color: var(--gold); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   CARDS — videos / tools
   ========================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1b1b26, #0e0e16);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2rem;
  opacity: 0.85;
}

.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.05rem; color: var(--white); }
.card-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  align-self: flex-start;
  margin-top: 4px;
  transition: color var(--transition), transform var(--transition);
}
.card:hover .card-link { color: var(--gold-bright); transform: translateX(3px); }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  align-self: flex-start;
}

/* =========================================================
   VALUE PROPS
   ========================================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  padding: 32px 26px;
  border-top: 1px solid var(--border-strong);
}
.value-card .mark {
  font-family: var(--font-mono);
  color: var(--gold-dim);
  font-size: 0.8rem;
  margin-bottom: 16px;
  display: block;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--white); }
.value-card p { color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   SOCIAL
   ========================================================= */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color var(--transition), transform var(--transition);
}
.social-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.social-card .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.social-card .label { font-family: var(--font-mono); font-size: 0.85rem; }
.social-card .handle { color: var(--muted-dim); font-size: 0.76rem; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter {
  background:
    radial-gradient(circle at 15% 20%, rgba(212,169,73,0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(212,169,73,0.08), transparent 45%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.newsletter .container { max-width: 620px; }
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { color: var(--muted); margin-bottom: 30px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted-dim); }
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.newsletter-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  min-height: 1.2em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted-dim); font-size: 0.85rem; max-width: 320px; }

.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* =========================================================
   INNER / UTILITY PAGES
   ========================================================= */
.page-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; }
.page-hero p { color: var(--muted); max-width: 620px; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--gold); }

.placeholder-panel {
  max-width: 640px;
  margin: 56px auto 0;
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
}
.placeholder-panel h2 { margin-bottom: 14px; }
.placeholder-panel p { color: var(--muted); margin-bottom: 28px; }
.placeholder-panel .note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted-dim);
}

.tools-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 700px) { .tools-list { grid-template-columns: 1fr; } }

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
}
.error-page .code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.error-page h1 { font-size: 1.6rem; margin-bottom: 12px; }
.error-page p { color: var(--muted); margin-bottom: 32px; }
.error-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.about-body {
  max-width: 700px;
  margin: 0 auto;
}
.about-body p { color: var(--muted); margin-bottom: 20px; font-size: 1.02rem; }
.about-body h2 { margin: 40px 0 16px; font-size: 1.4rem; color: var(--white); }
.disclaimer-box {
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.9rem;
}
