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

:root {
  --bg: #000000;
  --text: #ffffff;
  --gold: #c9a227;
  --gold-dim: #a68b20;
  --gray: #888;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header — bar fixed height; logo slightly larger and overflows bar for presence */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  min-height: 72px;
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  height: 72px;
  margin: 0 -0.5rem 0 0;
  overflow: visible;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo-fallback {
  display: none; /* when logo.png missing, we show only .logo-text (no yellow box) */
  width: 72px;
  height: 72px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.logo-text {
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s;
}
.nav-toggle:hover {
  border-color: var(--gold);
}
.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle-line {
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-mobile.is-open {
  display: flex;
}
.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
}
.nav-mobile a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--gold);
}
.nav-mobile .btn-cta {
  text-align: center;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }
  .logo-wrap {
    gap: 0.5rem;
    min-width: 0;
  }
  .logo-img {
    height: 48px;
  }
  .logo-text {
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.2;
    max-width: 110px;
  }
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }
}

.btn-cta {
  background: var(--gold);
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-cta:hover {
  background: var(--gold-dim);
}

/* Hero — fills first screen so cards only reveal on scroll */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero .hero-title,
.hero .hero-sub,
.hero .btn-hero {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 2rem;
}

.btn-hero {
  font-size: 1.05rem;
  padding: 0.75rem 1.75rem;
}

/* Features */
.features {
  padding: 4rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .features {
    padding: 3rem 1.25rem 4rem;
  }
}

.features-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 2.5rem;
  color: var(--text);
}
@media (max-width: 768px) {
  .features-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
  }
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  min-height: 220px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.card-hint {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--gold);
  text-align: center;
}
.card:hover {
  background: rgba(255,255,255,0.07);
}

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

.card-body .card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
}
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
}
.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
}

.card.card-2 h3 {
  font-size: 1rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
}

@media (max-width: 768px) {
  .card {
    padding: 1.5rem 1.25rem;
    min-height: auto;
  }
  .card h3 {
    font-size: 1.1rem;
  }
  .card p {
    font-size: 0.95rem;
  }
}

.card strong {
  color: var(--text);
}

/* Resources section */
.resources-section {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.resources-intro {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.btn-secondary {
  display: inline-block;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg);
}

/* Disclaimer section */
.disclaimer-section {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.disclaimer-teaser {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.link-gold {
  color: var(--gold);
  text-decoration: none;
}

.link-gold:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--gray);
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Inner pages */
.page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-inner h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.page-inner.disclaimer-content h1 {
  text-align: center;
}

.page-inner p, .page-inner ul {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.page-inner ul {
  padding-left: 1.5rem;
}

.page-inner a {
  color: var(--gold);
  text-decoration: none;
}

.page-inner a:hover {
  text-decoration: underline;
}

/* Contact form */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.submit-btn {
  background: var(--gold);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.submit-btn:hover {
  background: var(--gold-dim);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-group--error input {
  border-color: #c0392b;
}

.form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #c0392b;
}

.form-status {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.form-status--success {
  color: var(--gold);
}

.form-status--error {
  color: #c0392b;
}

/* Resources list */
.resources-list {
  list-style: none;
  padding: 0;
}

.resources-list li {
  margin-bottom: 0.75rem;
}

.resources-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, padding-left 0.2s;
}

.resources-list a:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

.resources-list .emoji {
  font-size: 1.2rem;
}

.resources-list .label {
  font-weight: 500;
}

.resources-list .arrow {
  margin-left: auto;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Resources page — top tab bar + sidebar + content */
.resources-page {
  min-height: calc(100vh - 140px);
  padding-bottom: 2rem;
}
.resources-tab-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
}
.resource-tab {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}
.resource-tab:hover {
  color: var(--text);
}
.resource-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.resources-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 0;
}
.resources-sidebar {
  display: flex;
  flex-direction: column;
  width: 220px;
  flex-shrink: 0;
  padding-top: 1rem;
}
.resources-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.resource-link-btn {
  text-align: left;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  color: var(--gray);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.resource-link-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.resource-link-btn.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
}
.resources-main {
  flex: 1;
  min-width: 0;
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.resources-content-inner {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}
.resource-panel {
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.resource-panel.leave {
  opacity: 0;
  transform: translateY(14px);
}
.resource-panel.enter {
  animation: resourceEnter 0.28s ease forwards;
}
@keyframes resourceEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.resource-placeholder {
  color: var(--gray);
  font-size: 0.95rem;
}
.resource-body {
  display: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.resource-body .resource-title {
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.resource-body p {
  margin-bottom: 0.85rem;
}
.resource-body ul {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
}
.resource-body li {
  margin-bottom: 0.35rem;
}
.resource-body a {
  color: var(--gold);
  text-decoration: none;
}
.resource-body a:hover {
  text-decoration: underline;
}
.resource-body code {
  font-size: 0.9em;
  color: var(--gray);
}
.disclaimer-loading {
  color: var(--gray);
}
.resources-back {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .resources-tab-bar {
    padding: 0 1rem;
  }
  .resource-tab {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }
  .resources-layout {
    flex-direction: column;
    padding: 1rem;
  }
  .resources-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 1rem;
  }
  .resource-link-btn {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 4px;
  }
  .resource-link-btn.active {
    border-left: none;
    border-bottom-color: var(--gold);
  }
  .resources-main {
    padding-left: 0;
    border-left: none;
  }
  .resources-content-inner {
    max-height: none;
  }
}

/* Disclaimer page */
.disclaimer-content h2,
.disclaimer-content .disclaimer-head {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--gold);
}

.disclaimer-content h2:first-of-type,
.disclaimer-content .disclaimer-head:first-of-type {
  margin-top: 0;
}

.disclaimer-content h3,
.disclaimer-content .disclaimer-sub {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-weight: 600;
}

.disclaimer-content .disclaimer-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.disclaimer-content .disclaimer-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.disclaimer-content .disclaimer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4em;
  height: 0.4em;
  background: var(--gold);
  border-radius: 1px;
}

.disclaimer-content .disclaimer-final {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(201, 162, 39, 0.08);
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-weight: 500;
}

/* Panels (click-through from home cards) */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
}
.panel-overlay.is-open { display: flex; }
.panel-close {
  position: fixed;
  top: 1rem;
  left: 1.5rem;
  z-index: 201;
  background: transparent;
  border: none;
  color: var(--gray);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0;
}
.panel-close:hover { color: var(--gold); }
.panel-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-top: 2.5rem;
}
.panel-inner h2 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Real-Time panel */
.rt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .rt-grid { grid-template-columns: repeat(2, 1fr); } }
.rt-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.rt-card .rt-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.rt-ticker {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.rt-gain {
  color: var(--gold);
  font-size: 1rem;
}

/* Real-Time panel: daily recap section */
.rt-recap-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rt-recap-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.rt-recap-date {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-align: center;
}
.rt-recap-title {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}
.rt-recap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .rt-recap-grid { grid-template-columns: repeat(2, 1fr); }
}
.rt-recap-col-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.rt-recap-line {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

/* Educating panel */
.edu-band { margin-bottom: 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.edu-band h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.75rem; }
.edu-band p { color: var(--gray); font-size: 0.95rem; max-width: 640px; }
.edu-band ul { margin: 0.5rem 0 0 1.25rem; color: var(--gray); font-size: 0.95rem; }

/* Active Traders panel: PFP left, name + role right */
.at-intro { color: var(--gray); font-size: 0.9rem; text-align: center; margin-bottom: 1.5rem; }
.at-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.at-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.at-pfp {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 1;
  object-fit: cover;
}
.at-info { flex: 1; min-width: 0; }
.at-name { font-weight: 600; color: var(--text); margin-bottom: 0.2rem; font-size: 1rem; }
.at-role { font-size: 0.85rem; color: var(--gold); }

/* Track Record panel: stats + auto-scroll carousel */
.tr-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
}
.tr-stat { text-align: center; }
.tr-stat .tr-value { font-size: 1.75rem; font-weight: 700; color: var(--gold); }
.tr-stat .tr-label { font-size: 0.85rem; color: var(--gray); margin-top: 0.25rem; }
.tr-carousel-wrap { overflow: hidden; padding: 0.5rem 0; }
.tr-carousel {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: tr-scroll 40s linear infinite;
}
@keyframes tr-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tr-trade {
  flex: 0 0 200px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1rem;
}
.tr-trade .tr-ticker { font-weight: 600; color: var(--text); }
.tr-trade .tr-meta { font-size: 0.8rem; color: var(--gray); margin: 0.25rem 0; }
.tr-trade .tr-result { color: var(--gold); font-size: 0.9rem; }
