/* =========================================================
   Trading Replica — styles.css
   Color palette from logo:
     --navy:       #0d1b2a  (background)
     --navy-card:  #112233  (card background)
     --navy-light: #1a2e45  (border / hover)
     --blue:       #2e7fc1  (primary action)
     --blue-light: #7ec8e3  (accent / highlight)
     --blue-dark:  #1a5c96  (primary hover)
     --white:      #ffffff
     --text:       #cdd9e5  (body text)
     --text-muted: #7a90a4  (secondary text)
     --discord:    #5865f2
   ========================================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0d1b2a;
  --navy-card:   #112233;
  --navy-light:  #1a2e45;
  --navy-border: #1e3550;
  --blue:        #2e7fc1;
  --blue-light:  #7ec8e3;
  --blue-dark:   #1a5c96;
  --white:       #ffffff;
  --text:        #cdd9e5;
  --text-muted:  #7a90a4;
  --discord:     #5865f2;
  --discord-dark:#4752c4;
  --green:       #2ecc71;
  --orange:      #e67e22;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.28);
  --transition:  0.22s ease;
  --header-h:    70px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* space for sticky mobile CTA */
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

ul { list-style: none; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,127,193,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue-light);
  border-color: var(--blue-light);
}
.btn-outline:hover {
  background: rgba(126,200,227,0.1);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--discord);
  color: var(--white);
  border-color: var(--discord);
}
.btn-discord:hover {
  background: var(--discord-dark);
  border-color: var(--discord-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88,101,242,0.4);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-sticky { flex: 1; justify-content: center; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}
.logo-link:hover { color: var(--blue-light); }

.logo-img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
}
.logo-text strong {
  color: var(--white);
  font-weight: 700;
}

nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--white);
  background: var(--navy-light);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav dropdown */
.mobile-nav {
  background: var(--navy-card);
  border-bottom: 1px solid var(--navy-border);
  padding: 16px 20px 20px;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav-list .nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .nav-list,
  header > .container > .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* ===== SECTION SHARED ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== HERO ===== */
#hero {
  padding: 100px 0 90px;
  background: radial-gradient(ellipse at 60% 0%, rgba(46,127,193,0.14) 0%, transparent 65%),
              var(--navy);
  border-bottom: 1px solid var(--navy-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--blue-light);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Hero badge grid */
.hero-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-badge {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.hero-badge:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.badge-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 6px;
}

.badge-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

/* ===== TRUST STRIP ===== */
#trust {
  padding: 48px 0;
  background: var(--navy-card);
  border-bottom: 1px solid var(--navy-border);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-item-icon {
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 767px) {
  .trust-strip { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== STRATEGIES ===== */
#strategies {
  background: var(--navy);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.strategy-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.strategy-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(46,127,193,0.2);
}

.strategy-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strategy-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-icon  { background: rgba(46,127,193,0.15); color: var(--blue-light); }
.ts-icon  { background: rgba(46,193,126,0.12); color: #2ec97e; }
.asb-icon { background: rgba(126,200,227,0.12); color: #7ec8e3; }

.risk-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.risk-balanced   { background: rgba(46,204,113,0.15);  color: var(--green); }
.risk-aggressive { background: rgba(230,126,34,0.15);  color: var(--orange); }

.strategy-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.strategy-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.strategy-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--navy-border);
  padding-top: 14px;
}

.strategy-details li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  gap: 8px;
}

.detail-label { color: var(--text-muted); }
.detail-value { color: var(--text); font-weight: 500; text-align: right; }

.mid-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
}

.mid-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* ===== LIVE STATS ===== */
#live-stats {
  background: var(--navy-card);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.widget-wrap {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: border-color var(--transition);
}

.widget-wrap:hover { border-color: var(--blue); }

.widget-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}

.widget-wrap img {
  margin: 0 auto;
  border-radius: 6px;
  max-width: 100%;
}

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

/* ===== HOW IT WORKS ===== */
#how-it-works {
  background: var(--navy);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
}

.step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.step:last-child { padding-bottom: 0; }

/* Connecting line */
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--navy-border);
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-content {
  padding-top: 8px;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* ===== COMMISSION ===== */
#commission {
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(46,127,193,0.08) 100%);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

.commission-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.commission-text h2 { margin-bottom: 14px; }

.commission-text p {
  color: var(--text);
  margin-bottom: 20px;
  max-width: 520px;
  line-height: 1.7;
}

.commission-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.commission-list li {
  font-size: 0.95rem;
  color: var(--text);
}

.commission-list li strong {
  color: var(--white);
  margin-right: 4px;
}

.commission-example {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.commission-example strong { color: var(--blue-light); }

.fee-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(46,127,193,0.08);
  flex-shrink: 0;
}

.fee-pct {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}

.fee-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .commission-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .fee-circle { margin: 0 auto; }
}

/* ===== COMMUNITY ===== */
#community {
  background: var(--navy);
}

.community-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.community-icon {
  color: var(--blue-light);
  opacity: 0.8;
}

.community-inner h2 { margin-bottom: 0; }
.community-inner p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== FAQ ===== */
#faq {
  background: var(--navy-card);
  border-top: 1px solid var(--navy-border);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--navy-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--navy-border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-q:hover { color: var(--blue-light); }
.faq-q:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 4px 20px;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-a p + p { margin-top: 10px; }

.faq-a a {
  color: var(--blue-light);
  text-decoration: underline;
}

/* FAQ slide animation */
.faq-a.is-open {
  animation: faqSlideIn 0.22s ease forwards;
}

@keyframes faqSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== FINAL CTA ===== */
#final-cta {
  background: radial-gradient(ellipse at 50% 50%, rgba(46,127,193,0.16) 0%, transparent 70%),
              var(--navy);
  border-top: 1px solid var(--navy-border);
}

.final-cta-inner {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.final-cta-inner h2 { margin-bottom: 12px; }

.final-cta-inner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.final-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===== DISCLAIMER ===== */
#risk-disclaimer {
  padding: 32px 0;
  background: var(--navy-card);
  border-top: 1px solid var(--navy-border);
}

.disclaimer-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--navy-card);
  border-top: 1px solid var(--navy-border);
  padding: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 20px;
  flex-wrap: wrap;
}

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

.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  background: var(--navy-light);
}

.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding: 14px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { margin-left: 0; }
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 10px 16px;
  gap: 10px;
  background: rgba(17,34,51,0.98);
  border-top: 1px solid var(--navy-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
  .mobile-sticky-cta { display: flex; }
}

/* ===== ANIMATIONS ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
