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

:root {
  /* COLORS */
  --bg-black: #000000;
  --bg-base: #0B0E11;
  --bg-card: #181A20;
  --bg-hover: #2B3139;
  
  --gold-main: #D4AF37;
  --gold-hover: #F2C94C;
  --gold-dark: #A6831C;
  
  --text-main: #EAECEF;
  --text-muted: #848E9C;
  --text-dark: #1E2329;
  
  --up-green: #0ECB81;
  --down-red: #F6465D;
  
  /* BORDERS & SHADOWS */
  --border-color: #2B3139;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* FONTS */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* CRITICAL: Prevents mobile layout shift */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* UTILITIES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.text-gold { color: var(--gold-main); }
.text-up { color: var(--up-green); }
.text-down { color: var(--down-red); }
.text-muted { color: var(--text-muted); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 44px; /* Mobile touch target */
}

.btn-primary {
  background-color: var(--gold-main);
  color: var(--text-dark);
}
.btn-primary:hover { background-color: var(--gold-hover); }

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--gold-main);
  color: var(--gold-main);
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-black);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* DESKTOP NAV */
.desktop-nav {
  display: flex;
  gap: 32px;
}
.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold-main);
}

/* MOBILE NAV */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background-color: var(--bg-black);
  display: none;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 999;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-overlay a {
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-overlay .btn { margin-top: 24px; }

@media (max-width: 768px) {
  .desktop-nav, .header-actions { display: none; }
  .mobile-menu-btn { display: block; }
}

/* HERO SECTION */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Subtle animated background glows to make it dynamic but serious */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 8s infinite alternate ease-in-out;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.06) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 10s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.1) translate(20px, 20px); opacity: 1; }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* FADE UP ANIMATIONS FOR PREMIUM FEEL */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-badge, .hero h1, .hero p, .hero-btn-group, .hero-stats {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.3s; }
.hero-btn-group { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }

.hero-badge {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--gold-main);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 140px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* TICKER BAR */
.ticker-wrap {
  width: 100%;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  padding-left: 100%;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.ticker-sym { color: var(--text-muted); font-family: var(--font-sans); font-weight: 600;}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ABOUT SECTION GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* SECTION GLOBAL */
.section {
  padding: 80px 0;
}
.section-header {
  margin-bottom: 40px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* SIGNALS & TRADES */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto; /* Allows scrolling tabs on mobile if needed */
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn.active {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-main);
  color: var(--gold-main);
}

/* MOBILE FIRST SIGNAL CARDS */
.signals-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 16px;
}

@media (min-width: 768px) {
  .signals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .signals-grid { grid-template-columns: repeat(3, 1fr); }
}

.signal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s;
}
.signal-card:hover {
  border-color: #3f4752;
}

.sc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.sc-pair {
  font-weight: 700;
  font-size: 1.1rem;
}
.sc-dir {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}
.sc-dir.buy { background-color: rgba(14, 203, 129, 0.15); color: var(--up-green); }
.sc-dir.sell { background-color: rgba(246, 70, 93, 0.15); color: var(--down-red); }

.sc-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.sc-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sc-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
}
.sc-profit {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
}

/* CALCULATOR */
.calc-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .calc-container { grid-template-columns: 1fr 1fr; align-items: center; }
}

.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.input-control {
  width: 100%;
  background-color: var(--bg-black);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
}
.input-control:focus { border-color: var(--gold-main); }

.calc-result {
  background-color: var(--bg-black);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
}
.result-val {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--up-green);
  margin: 8px 0 24px;
}

/* REVIEWS SECTION */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.1);
  font-family: var(--font-serif);
  line-height: 1;
}
.review-author {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gold-main);
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PRICING SECTION */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.pricing-card.vip {
  border: 2px solid var(--gold-main);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, var(--bg-card) 100%);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold-main);
  color: var(--bg-black);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}
.pricing-card.vip .pricing-price {
  color: var(--gold-main);
}

.pricing-features {
  margin-bottom: 32px;
  flex-grow: 1;
}
.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--up-green);
  font-weight: 700;
}

/* FOOTER */
.footer {
  background-color: var(--bg-black);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  text-align: center;
}
.footer-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
