/* Young Bull Investors: shared site styles */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --amber: #f5a623;
  --amber2: #e8940f;
  --green: #2dd469;
  --green2: #1db954;
  --white: #fafafa;
  --muted: rgba(250, 250, 250, 0.5);
  --muted2: rgba(250, 250, 250, 0.25);
  --font-display: 'Bebas Neue', sans-serif;
  --font-ui: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --section-pad-x: clamp(20px, 4vw, 48px);
  --section-pad-y: clamp(72px, 10vw, 100px);
}

html {
  scroll-behavior: smooth;
}

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

body.blog-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.blog-layout main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ─── Ticker ─── */
.ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg2), transparent);
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg2), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  flex-shrink: 0;
  gap: 0;
  white-space: nowrap;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.ticker-track.ticker-animate {
  animation: ticker var(--ticker-duration, 30s) linear infinite;
}

.ticker-set {
  display: flex;
  flex-shrink: 0;
}

.ticker-item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.03em;
  border-right: 1px solid var(--border);
}

.ticker-sym {
  color: var(--white);
  font-weight: 600;
}

.ticker-up {
  color: var(--green);
}

.ticker-down {
  color: #ef4444;
}

.ticker-unavailable {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 0 32px;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--ticker-shift, 50%)), 0, 0);
  }
}

/* ─── Nav ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-pad-x);
  height: 68px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(14px, 2.5vw, 17px);
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  z-index: 2;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  color: #fff !important;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 8px;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  transition: transform 0.15s, box-shadow 0.2s !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg3);
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green2) 100%);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 12px;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(45, 212, 105, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(45, 212, 105, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 17px 32px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(45, 212, 105, 0.5);
  background: rgba(45, 212, 105, 0.04);
}

/* ─── Sections ─── */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.section-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border2), transparent);
  margin: 0 var(--section-pad-x);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Footer ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: clamp(36px, 5vw, 48px) var(--section-pad-x);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-logo {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-legal {
  font-size: 12px;
  color: var(--muted2);
  max-width: 440px;
  line-height: 1.6;
  margin-top: 4px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-ui);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted2);
}

/* ─── Paper trading nav (current page) ─── */
.nav-links a.nav-paper-trading {
  color: var(--white) !important;
  font-weight: 600 !important;
}

/* ─── Responsive: nav & footer ─── */
@media (max-width: 900px) {
  nav {
    position: relative;
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
  }

  nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track.ticker-animate {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
