/* =============================================
   JOIN TEAM BITCOIN — Main Stylesheet
   Color palette: #0a0f1e bg, #f7931a orange, #141b2d cards
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@700;800&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0f1e;
  --card: #141b2d;
  --card2: #1a2340;
  --border: #253050;
  --orange: #f7931a;
  --orange-dark: #d97e10;
  --white: #ffffff;
  --muted: #8895b3;
  --text: #e8eaf0;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --nav-height: 68px;
  --radius: 12px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.2;
  color: var(--white);
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--white); }

.muted { color: var(--muted); }
.orange { color: var(--orange); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
  min-height: 100vh;
}

section {
  margin-bottom: 4rem;
}

/* ---- Homepage Mission Blurb ---- */
.mission-blurb {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.founder-quote {
  margin: 0;
  padding: 1.25rem 1.25rem;
  background: rgba(20, 27, 45, 0.75);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.founder-quote p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.founder-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-logo .btc-icon { color: var(--orange); font-size: 1.4rem; }
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: var(--card);
}


.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Nav ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--orange); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  line-height: 1;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
  text-decoration: none;
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--orange); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card-sm { padding: 1.25rem; }

/* ---- Hero ---- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247,147,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 800px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(247,147,26,0.12);
  color: var(--orange);
  border: 1px solid rgba(247,147,26,0.3);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Section Headers ---- */
.section-header {
  margin-bottom: 2.5rem;
}
.section-header .eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

/* ---- Value Props ---- */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 5rem;
}
.value-prop {
  text-align: center;
  padding: 1.5rem;
}
.value-prop .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.value-prop h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.value-prop p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---- Preview Cards (home) ---- */
.preview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.preview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  display: block;
}
.preview-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-decoration: none;
  color: inherit;
}
.preview-card .card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.preview-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.4rem; }
.preview-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.preview-card .card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
}

/* ---- Product Cards ---- */
.product-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.product-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.product-ticker {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
.product-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-common { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-preferred { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge-etf { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }

.product-card-body { padding: 1.5rem; }
.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.stat { text-align: center; }
.stat-value { font-size: 1.2rem; font-weight: 700; color: var(--orange); }
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.product-card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---- Comparison Table ---- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
thead {
  background: var(--card2);
}
thead th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(37,48,80,0.5);
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--card2); }
.table-ticker { font-family: 'Space Grotesk', monospace; font-weight: 700; color: var(--white); }
.table-yield { color: var(--orange); font-weight: 700; }
table .footnote { font-size: 0.8rem; color: var(--muted); padding: 0.75rem 1rem; background: var(--card); border-top: 1px solid var(--border); }

/* ---- Tax Timeline Table ---- */
.tax-table { width: 100%; }
.tax-table .year-highlight-orange { background: rgba(247,147,26,0.12) !important; }
.tax-table .year-highlight-orange td { color: var(--orange) !important; font-weight: 600; }
.tax-table .year-highlight-green { background: rgba(34,197,94,0.08) !important; }
.tax-table .year-highlight-green td:first-child { color: #4ade80; font-weight: 600; }

/* ---- Yield Calculator ---- */
.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.calc-slider-wrapper { margin-bottom: 1.5rem; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.calc-label span { font-size: 0.9rem; color: var(--muted); }
.calc-label strong { font-size: 1.4rem; color: var(--orange); font-weight: 800; }
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(247,147,26,0.2);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.calc-result-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}
.calc-result-item .ticker { font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 0.25rem; }
.calc-result-item .price { font-size: 1.75rem; font-weight: 900; color: var(--orange); }
.calc-result-item .note { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

/* ---- Portfolio Viz ---- */
.portfolio-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bar-label {
  width: 60px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-align: right;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  background: var(--border);
  border-radius: 4px;
  height: 28px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  transition: width 1s ease;
}
.bar-pct {
  width: 48px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* ---- Glossary ---- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.glossary-term {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.glossary-term h3 {
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 0.4rem;
  text-transform: capitalize;
}
.glossary-term p { font-size: 0.9rem; color: var(--text); margin: 0; }

/* ---- Tooltip Term Highlight ---- */
.tooltip-term {
  color: var(--orange);
  border-bottom: 1px dashed rgba(247,147,26,0.5);
  cursor: help;
  transition: color 0.2s;
}
.tooltip-term:hover { color: #ffa940; }

/* ---- Tippy Theme ---- */
.tippy-box[data-theme~='btc'] {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 280px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.tippy-box[data-theme~='btc'] .tippy-arrow::before { color: var(--card2); }
.tippy-box[data-theme~='btc'] .tippy-content { padding: 0.75rem 1rem; }

/* ---- Alert / Callout ---- */
.callout {
  background: rgba(247,147,26,0.08);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout.info { background: rgba(59,130,246,0.08); border-left-color: var(--blue); }
.callout p { margin: 0; font-size: 0.95rem; }
.callout strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; }

/* ---- Disclaimer ---- */
.disclaimer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2rem;
}

/* ---- Footer ---- */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--orange); text-decoration: none; }
.footer-disclaimer { color: var(--muted); font-size: 0.8rem; max-width: 640px; }
.footer-email a { color: var(--orange); font-size: 0.9rem; }
.footer-sep { color: var(--muted); margin: 0 0.5rem; }
.footer-sep.x-logo { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); text-decoration: none; }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text); }

/* ---- About Page ---- */
.about-hero {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card2);
  border: 3px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

/* ---- Seniority Ladder ---- */
.seniority-ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
}
.seniority-rung {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
.seniority-rung:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.seniority-rung:last-child { border-radius: 0 0 var(--radius) var(--radius); border-top: none; }
.seniority-rung:not(:first-child):not(:last-child) { border-top: none; }
.seniority-rung.top { background: rgba(34,197,94,0.08); }
.seniority-rung.mid { background: rgba(247,147,26,0.06); }
.seniority-rung.bottom { background: rgba(59,130,246,0.06); }
.rung-label { font-weight: 700; }
.rung-rank {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rank-safest { background: rgba(34,197,94,0.15); color: #4ade80; }
.rank-mid { background: rgba(247,147,26,0.15); color: var(--orange); }
.rank-riskier { background: rgba(139,92,246,0.15); color: #a78bfa; }
.rank-most { background: rgba(239,68,68,0.15); color: #f87171; }

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 80vh; }
  .hero-buttons { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .about-hero { flex-direction: column; gap: 1.5rem; }
  .product-stats { grid-template-columns: repeat(2, 1fr); }
  .bar-label { width: 48px; font-size: 0.82rem; }
  .preview-cards { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .calc-results { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  :root { --nav-height: 60px; }
  body { font-size: 16px; }
  .page-content { padding-top: calc(var(--nav-height) + 2rem); }
  .calc-results { grid-template-columns: 1fr; }
}
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg, #fafbfc);
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 4px 0;
}

/* Center Finance Basics dropdown under its label (without changing the label size) */
.dropdown.finance-dropdown .dropdown-menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9em;
}

.dropdown-menu a:hover {
  background: var(--light-gray);
}

.arrow-down {
  display: inline-block;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
}