/* ============================================================================
   Trading Bot Marketing Site - Styles
   Dark theme, clean typography, responsive, no framework
   ============================================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2332;
  --bg-card-hover: #1f2b3d;
  --text-primary: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --red: #ef4444;
  --yellow: #f59e0b;
  --border: #1f2937;
  --border-light: #374151;
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, monospace;
  --max-width: 1100px;
  --nav-height: 64px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 14, 23, 0.95);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: transform 0.2s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Sections --- */
section {
  padding: 80px 0;
}
section:nth-child(even) {
  background: var(--bg-secondary);
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .disclaimer {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Problem/Solution --- */
.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.problem-card, .solution-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.problem-card {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}
.solution-card {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}
.problem-card h3, .solution-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.problem-card h3 { color: var(--red); }
.solution-card h3 { color: var(--green); }
.problem-card p, .solution-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Beginner Section --- */
.beginner-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.beginner-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.beginner-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.beginner-box code {
  display: inline-block;
  background: var(--bg-primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  border: 1px solid var(--border);
}

/* --- Pricing --- */
/* --- Currency Switcher --- */
.currency-switcher {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.currency-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}
.currency-btn:hover {
  color: var(--text-primary);
}
.currency-btn.active {
  background: var(--accent);
  color: #fff;
}
.pricing-approx {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
.pricing-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
  line-height: 1.5;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 16px 0 4px;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}
.pricing-card li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card li:last-child { border: none; }
.pricing-card li::before {
  content: "\2713 ";
  color: var(--green);
  font-weight: 700;
  margin-right: 8px;
}
.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.pricing-disclaimer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Activate License --- */
.activate-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.activate-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.activate-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.activate-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.activate-step code {
  display: inline-block;
  background: var(--bg-primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  border: 1px solid var(--border);
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  user-select: none;
}
.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: "\2212";
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Trust --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.trust-card {
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trust-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--green);
}
.trust-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.footer-brand h4 span { color: var(--accent); }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 300px;
}
.footer-links h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-email {
  display: flex;
  gap: 8px;
}
.footer-email input {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  width: 220px;
}
.footer-email input:focus {
  border-color: var(--accent);
}
.footer-email button {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.footer-email button:hover {
  background: var(--accent-hover);
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.footer-legal strong {
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 120px 0 60px; }
  .problem-solution { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid-2 { grid-template-columns: 1fr; max-width: 400px; }
  .activate-steps { grid-template-columns: 1fr; gap: 16px; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; }
  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .footer-email { flex-direction: column; }
  .footer-email input { width: 100%; }
}
