/* SpaceX IR aesthetic — professional, crisp, eye-comfortable */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  --void-black: #000000;
  --canvas-soft: #0c0c0e;
  --canvas-elevated: #141418;
  --text-bright: #ffffff;
  --text-primary: #f4f4f8;
  --text-body: #d8d8e0;
  --text-muted: #b4b4be;
  --text-subtle: #9494a0;
  --hairline: #3d3d44;
  --hairline-bright: rgba(255, 255, 255, 0.22);
  --ghost-bg: rgba(255, 255, 255, 0.08);
  --ghost-bg-hover: rgba(255, 255, 255, 0.14);
  --ghost-border: rgba(255, 255, 255, 0.42);
  --live-green: #6ee7a0;
  --live-red: #f0a0a0;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, Verdana, sans-serif;
  --ticker-h: 40px;
  --nav-h: 54px;
  --site-header-h: calc(var(--ticker-h) + var(--nav-h));
  --type-scale: 1.08;
}

html {
  scroll-padding-top: var(--site-header-h);
  font-size: calc(16px * var(--type-scale));
}

@media (min-width: 768px) {
  html {
    font-size: calc(17px * var(--type-scale));
  }
}

@media (min-width: 1100px) {
  html {
    font-size: calc(18px * var(--type-scale));
  }
}

html, body, .ir-body {
  background: var(--void-black) !important;
  color: var(--text-body) !important;
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root, #root .min-h-screen {
  background: var(--void-black) !important;
  color: var(--text-body) !important;
}

/* ── Fixed header stack: ticker + nav ── */
body.mandate-active {
  padding-top: 0 !important;
}

#spcx-ticker-bar {
  z-index: 10000 !important;
}

body.mandate-active nav.fixed,
body.mandate-active .header {
  top: var(--ticker-h) !important;
  z-index: 9990 !important;
  background: #000000 !important;
  border-bottom: 1px solid var(--hairline) !important;
  backdrop-filter: none !important;
}

/* Page content must clear BOTH bars — fixes scroll-to-top overlap */
body.mandate-active #root .pt-16 {
  padding-top: calc(var(--site-header-h) + 2rem) !important;
}

body.mandate-active #root section.min-h-screen {
  padding-top: calc(var(--site-header-h) + 2.5rem) !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

body.mandate-active #root section,
body.mandate-active #root .mandate-section {
  scroll-margin-top: calc(var(--site-header-h) + 1rem);
}

body.mandate-active #root #signup-form {
  scroll-margin-top: calc(var(--site-header-h) + 1.5rem);
  top: calc(var(--site-header-h) + 1rem) !important;
}

#root #signup-form form,
#root #signup-form input,
#root #signup-form select,
#root #signup-form button[type="submit"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Nav */
#root nav a,
#root nav button {
  font-family: var(--font-body) !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
}

#root nav a:hover,
#root nav button:hover {
  color: var(--text-bright) !important;
}

#root nav .text-cyan-400,
#root nav a.bg-blue-600\/20 {
  color: var(--text-bright) !important;
}

#root nav .bg-blue-600\/20 {
  background: var(--ghost-bg) !important;
  border: 1px solid var(--ghost-border) !important;
}

#root nav .font-bold.text-lg {
  color: var(--text-bright) !important;
}

#root nav .text-gray-300 {
  color: var(--text-muted) !important;
}

/* Ghost CTA buttons — exclude hero headline gradient text */
#root a.bg-gradient-to-r,
#root a[class*="from-blue"],
#root a[class*="from-purple"],
#root a[class*="to-cyan"],
#root a[class*="to-pink"],
#root button.bg-gradient-to-r,
#root button[class*="from-blue"] {
  background: var(--ghost-bg) !important;
  background-image: none !important;
  border: 1px solid var(--ghost-border) !important;
  color: var(--text-bright) !important;
  border-radius: 32px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  box-shadow: none !important;
}

/* Hero gradient headlines — IR theme must not strip bg-clip-text fills */
#root h1 .bg-clip-text,
#root h1 span.bg-clip-text {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  box-shadow: none !important;
  display: inline !important;
  line-height: inherit !important;
  white-space: normal !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

#root h1 span.from-white,
#root h1 span[class*="from-white"] {
  background-image: linear-gradient(to right, #ffffff, #d1d5db) !important;
}

#root h1 span.from-blue-400,
#root h1 span[class*="from-blue-400"] {
  background-image: linear-gradient(to right, #60a5fa, #a5f3fc) !important;
}

#root a.bg-gradient-to-r:hover,
#root a[class*="from-blue"]:hover,
#root button.bg-gradient-to-r:hover,
#root button[class*="from-blue"]:hover {
  background: var(--ghost-bg-hover) !important;
  color: var(--text-bright) !important;
}

/* Sections */
#root section,
#root .bg-\[\#0a0a0a\],
#root .bg-\[\#0f172a\] {
  background: var(--void-black) !important;
}

#root .bg-gray-900\/50,
#root .bg-gray-900\/70,
#root [class*="bg-gray-900"] {
  background: var(--canvas-soft) !important;
  border-color: var(--hairline) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

#root .border-gray-800,
#root .border-gray-700 {
  border-color: var(--hairline) !important;
}

/* Brighter readable body copy */
#root .text-gray-300 {
  color: var(--text-body) !important;
  font-size: 1.02em !important;
  line-height: 1.65 !important;
}

#root .text-gray-400 {
  color: var(--text-muted) !important;
  font-size: 0.98em !important;
  line-height: 1.6 !important;
}

#root .text-sm {
  font-size: 0.92rem !important;
}

#root .text-xs {
  font-size: 0.82rem !important;
}

#root p {
  line-height: 1.65 !important;
}

#root .text-gray-500 {
  color: var(--text-subtle) !important;
}

#root .text-white {
  color: var(--text-bright) !important;
}

#root h1 {
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-bright) !important;
  font-weight: 700 !important;
}

#root h2, #root h3 {
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

#root .text-cyan-400 {
  color: var(--text-primary) !important;
}

#root .text-yellow-400,
#root .text-yellow-500 {
  color: var(--text-primary) !important;
  font-style: normal !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}

#root blockquote,
#root .italic {
  color: var(--text-body) !important;
}

#root footer {
  background: linear-gradient(180deg, #08080a 0%, #000000 100%) !important;
  border-top: 1px solid var(--hairline) !important;
  position: relative;
  padding-top: 3rem !important;
  padding-bottom: 2.5rem !important;
}

#root footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}

#root footer .max-w-7xl,
#root footer > div {
  max-width: 72rem;
  margin: 0 auto;
}

#root footer .grid {
  gap: 2.5rem !important;
}

#root footer h3,
#root footer .font-semibold {
  font-family: var(--font-display) !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 1rem !important;
}

#root footer blockquote,
#root footer > div > div:first-child p {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: var(--text-body) !important;
  max-width: 28rem;
}

#root footer ul li a {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem !important;
  font-weight: 600;
}

#root footer .border-t {
  border-color: var(--hairline) !important;
  margin-top: 2.5rem !important;
  padding-top: 1.5rem !important;
}

/* Hide any legacy SX / MANDATE text in nav */
#root nav.fixed a[href="/"] .tracking-widest,
#root nav.fixed a[href="/"] .text-gray-300,
#root nav.fixed a[href="/"] .rounded-full {
  display: none !important;
}

#root nav.fixed a.spcx-nav-brand,
#root nav.fixed a[href="/"].spcx-nav-brand {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  visibility: visible !important;
}

#root footer .text-gray-400,
#root footer .text-gray-500 {
  color: var(--text-subtle) !important;
}

#root footer a:hover {
  color: var(--text-bright) !important;
}

/* Ticker */
#spcx-ticker-bar {
  background: #000000 !important;
  border-bottom: 1px solid var(--hairline) !important;
  font-family: var(--font-body) !important;
  color: var(--text-body) !important;
}

#spcx-ticker-bar .ticker-symbol {
  color: var(--text-bright) !important;
  font-weight: 700 !important;
}

#spcx-ticker-bar .ticker-price {
  color: var(--text-bright) !important;
  font-weight: 700 !important;
}

#spcx-ticker-bar .ticker-time,
#spcx-ticker-bar .ticker-live {
  color: var(--text-muted) !important;
}

#spcx-ticker-bar .ticker-badge {
  background: var(--ghost-bg) !important;
  border: 1px solid var(--ghost-border) !important;
  color: var(--text-primary) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

#spcx-ticker-bar .ticker-change.up { color: var(--live-green) !important; }
#spcx-ticker-bar .ticker-change.down { color: var(--live-red) !important; }
#spcx-ticker-bar .live-dot { background: var(--live-green) !important; }

.btn-buy-spcx,
#spcx-ticker-bar .btn-buy-spcx {
  background: var(--ghost-bg) !important;
  background-image: none !important;
  border: 1px solid var(--ghost-border) !important;
  color: var(--text-bright) !important;
  border-radius: 32px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  padding: 0.4rem 1rem !important;
  box-shadow: none !important;
}

.btn-buy-spcx:hover {
  background: var(--ghost-bg-hover) !important;
  transform: none !important;
}

/* Mandate injected sections */
.mandate-section h2 {
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-bright) !important;
}

.mandate-section .mandate-sub {
  color: var(--text-muted) !important;
}

.mandate-section,
.mandate-elon-box,
#spcx-chart-wrap,
.tweet-card,
.doge-ai-step,
.spcx-stat-card {
  background: var(--canvas-soft) !important;
  border-color: var(--hairline) !important;
  border-radius: 4px !important;
}

.mandate-elon-box {
  background: var(--canvas-elevated) !important;
  border: 1px solid var(--hairline-bright) !important;
}

.mandate-elon-box blockquote {
  border-left-color: var(--text-bright) !important;
  color: var(--text-body) !important;
}

.mandate-elon-box .attribution {
  color: var(--text-primary) !important;
}

.tweet-card .tweet-name,
.tweet-card .tweet-body {
  color: var(--text-body) !important;
}

.tweet-card .tweet-handle {
  color: var(--text-subtle) !important;
}

.tweet-card .tweet-body .highlight {
  color: var(--text-bright) !important;
  font-weight: 600;
}

.spcx-stat-card .label {
  color: var(--text-subtle) !important;
}

.spcx-stat-card .value {
  color: var(--text-bright) !important;
}

.doge-ai-step h4 {
  color: var(--text-bright) !important;
}

.doge-ai-step p {
  color: var(--text-muted) !important;
}

.doge-ai-step .step-num {
  color: var(--text-primary) !important;
}

/* Static IR pages */
.ir-header {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  right: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--nav-h);
  background: #000000;
  border-bottom: 1px solid var(--hairline);
  box-sizing: border-box;
}

.ir-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--text-bright);
  text-decoration: none;
}

/* SpaceX wordmark + mandate title */
.spcx-nav-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none !important;
  max-width: min(52vw, 520px);
}

.spcx-nav-brand .spacex-wordmark {
  height: 18px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.spcx-nav-title {
  font-family: var(--font-body) !important;
  font-size: 0.62rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  color: var(--text-muted) !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#root nav.fixed .spcx-nav-brand {
  max-width: min(42vw, 480px);
}

#root nav.fixed .spcx-nav-brand .spacex-wordmark {
  height: 16px;
}

@media (max-width: 900px) {
  .spcx-nav-title {
    display: none;
  }

  .spcx-nav-brand {
    max-width: none;
  }
}

.ir-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ir-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.ir-nav a:hover,
.ir-nav a.active {
  color: var(--text-bright);
}

.ir-hero {
  padding: calc(var(--site-header-h) + 3rem) 1.5rem 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

.ir-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.ir-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-bright);
}

.ir-lead {
  max-width: 40rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.ir-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 32px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.ir-btn-primary {
  border: 1px solid var(--ghost-border);
  color: var(--text-bright);
  background: var(--ghost-bg);
}

.ir-btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  background: transparent;
}

.ir-btn:hover {
  background: var(--ghost-bg-hover);
  color: var(--text-bright);
  border-color: var(--ghost-border);
}

.ir-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.ir-footer-links {
  display: flex;
  gap: 1.5rem;
}

.ir-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.ir-footer-links a:hover {
  color: var(--text-bright);
}

.legal-page,
.mandate-legal-page {
  color: var(--text-body) !important;
  padding-top: calc(var(--site-header-h) + 2rem) !important;
}

.legal-page h1,
.mandate-legal-page h1 {
  color: var(--text-bright) !important;
}

.legal-page h2,
.mandate-legal-page h2 {
  color: var(--text-primary) !important;
}

.legal-page p,
.legal-page li,
.mandate-legal-page p,
.mandate-legal-page li {
  color: var(--text-body) !important;
}

.legal-back,
.mandate-legal-back {
  color: var(--text-muted) !important;
}

.legal-back:hover,
.mandate-legal-back:hover {
  color: var(--text-bright) !important;
}

.buy-page .buy-hero {
  padding-top: calc(var(--site-header-h) + 3rem);
}

.buy-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.buy-page-main {
  flex: 1 0 auto;
}

.buy-page .ir-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.buy-quote-band {
  padding-top: 0;
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
  }

  .ir-nav { display: none; }

  body.mandate-active #root .pt-16 {
    padding-top: calc(var(--site-header-h) + 1.25rem) !important;
  }
}

/* ── IR icon treatment: replace Kimi-era gradient boxes ── */
#root .bg-gradient-to-br.from-blue-600,
#root .bg-gradient-to-br[class*="from-blue"],
#root [class*="from-blue-600"][class*="to-cyan"],
#root span.inline-block.bg-gradient-to-r.from-blue-600 {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--hairline-bright) !important;
  border-radius: 4px !important;
  color: var(--text-bright) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.68rem !important;
  padding: 0.35rem 0.85rem !important;
  box-shadow: none !important;
}

#root .w-12.h-12.bg-gradient-to-br,
#root .w-10.h-10.bg-gradient-to-br {
  background: var(--canvas-elevated) !important;
  background-image: none !important;
  border: 1px solid var(--hairline-bright) !important;
  border-radius: 4px !important;
  color: var(--text-bright) !important;
}

#root .w-12.h-12.bg-gradient-to-br svg,
#root .w-10.h-10.bg-gradient-to-br svg,
#root [class*="from-blue-600"] svg {
  color: var(--text-bright) !important;
  stroke: var(--text-bright) !important;
}

#root .w-10.h-10.rounded-full[class*="bg-"],
#root .tweet-avatar,
.tweet-card .tweet-avatar {
  background: var(--canvas-elevated) !important;
  background-image: none !important;
  border: 1px solid var(--hairline) !important;
  border-radius: 4px !important;
  color: var(--text-muted) !important;
  font-family: var(--font-display) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.06em !important;
}

#root .text-green-400,
#root .text-blue-400,
#root .text-red-400,
#root .text-cyan-400[class*="w-8"] {
  color: var(--text-bright) !important;
}

.spacex-footer-logo {
  height: 15px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

#root footer .flex.items-center.gap-2 {
  gap: 0.85rem !important;
  align-items: center !important;
}

.btn-buy-spcx {
  background: var(--ghost-bg) !important;
  background-image: none !important;
  border: 1px solid var(--ghost-border) !important;
  border-radius: 32px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.btn-buy-spcx:hover {
  background: var(--ghost-bg-hover) !important;
  transform: none !important;
  box-shadow: none !important;
}
