/* CSS Custom Properties & Design System */
:root {
  --bg-dark: #07070a;
  --bg-card: #13131a;
  --bg-card-hover: #1c1c25;
  --text-main: #f0f0f0;
  --text-muted: #a0a0b0;
  
  --primary-color: #9D4EDD;    /* Vibrant Purple */
  --primary-glow: rgba(157, 78, 221, 0.4);
  --secondary-color: #5A189A;  /* Deep Purple */
  
  --gold: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.4);
  
  --accent-blue: #00F0FF;
  --accent-green: #00FF88;
  --accent-red: #FF3366;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.bg-purple { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); }
.bg-gold { background: linear-gradient(135deg, #FFB800, #FFD700); }
.bg-blue { background: linear-gradient(135deg, #0077FF, var(--accent-blue)); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--smooth);
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; border-radius: 8px;}
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem;}
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background: rgba(157, 78, 221, 0.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 7, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  color: var(--primary-color);
}

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.glow-bg {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(157, 78, 221, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(157, 78, 221, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 4rem;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.trust-indicators {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

.hero-visual {
  position: relative;
  perspective: 1000px;
}

/* TradingView UI Wrapper */
.tv-wrapper {
  background: #131722; /* Classic TV Dark background */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2e39;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.5),
              0 0 40px rgba(157, 78, 221, 0.2);
  display: flex;
  flex-direction: column;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s var(--smooth);
}

.tv-wrapper:hover {
  transform: rotateY(0) rotateX(0);
}

.tv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #1e222d;
  border-bottom: 1px solid #2a2e39;
  font-family: -apple-system, BlinkMacSystemFont, "Trebuchet MS", Roboto, Ubuntu, sans-serif;
  font-size: 13px;
  color: #d1d4dc;
}

.tv-toolbar-left, .tv-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-symbol {
  font-weight: 700;
  font-size: 14px;
}

.tv-tf {
  font-weight: 600;
}

.tv-divider {
  width: 1px;
  height: 20px;
  background: #2a2e39;
}

.tv-icon {
  width: 20px;
  height: 20px;
  color: #787b86;
  cursor: pointer;
  transition: color 0.2s;
}

.tv-icon:hover { color: #d1d4dc; }
.tv-icon.active { color: #2962ff; }

.tv-icon-sm {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: text-bottom;
}

.ml-1 { margin-left: 4px; }

.tv-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.tv-btn:hover { background: #2a2e39; }

.tv-main {
  display: flex;
  position: relative;
  height: 400px;
}

.tv-sidebar {
  width: 40px;
  background: #1e222d;
  border-right: 1px solid #2a2e39;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.tv-tool {
  width: 20px;
  height: 20px;
  color: #787b86;
  cursor: pointer;
  transition: color 0.2s;
}

.tv-tool:hover { color: #d1d4dc; }
.tv-tool.active { color: #2962ff; }

.tv-spacer {
  flex-grow: 1;
}

.tv-chart-area {
  flex-grow: 1;
  position: relative;
  background: #131722;
  overflow: hidden;
  display: flex;
}

.chart-img {
  width: 100%;
  height: calc(100% + 46px);
  margin-top: -46px; 
  object-fit: cover;
  object-position: right bottom;
}

.tv-right-sidebar {
  width: 50px;
  background: #1e222d;
  border-left: 1px solid #2a2e39;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 20px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s var(--smooth);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Pricing Section */
.pricing {
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, rgba(0,0,0,0) 60%);
  z-index: -1;
}

.pricing-card {
  max-width: 450px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  position: relative;
}

.pricing-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--gold), var(--primary-color));
  z-index: -1;
  opacity: 0.5;
}

.pricing-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.amount {
  font-size: 4.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.cents {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.period {
  font-size: 1rem;
  color: var(--text-muted);
  align-self: flex-end;
  margin-bottom: 0.75rem;
  margin-left: 0.25rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 3rem;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.pricing-features svg {
  width: 20px;
  height: 20px;
}

.guarantee {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  background: #050508;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--smooth);
}

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

/* Background Utility for alternating sections */
.bg-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* How It Works Section */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-box {
  flex: 1;
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.step-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(157, 78, 221, 0.5);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.step-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: white;
}

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

.step-divider {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin-top: 5rem;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: white;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  
  .hero-cta, .trust-indicators {
    justify-content: center;
  }
  
  .chart-wrapper {
    transform: none;
  }
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  color: white;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    align-items: flex-start;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
    pointer-events: none;
  }
  
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: auto;
  }

  .features-grid, .faq-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    flex-direction: column;
    align-items: stretch;
  }

  .step-divider {
    height: 40px;
    width: 2px;
    margin: 1rem auto;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
}
