/* ============================================
   TradePilot — Landing Page Styles
   Dark fintech theme with teal/green accents
   ============================================ */

:root {
  --bg-primary:    #0c1017;
  --bg-secondary:  #141b26;
  --bg-card:       #1a2332;
  --bg-card-hover: #1f2b3d;
  --border:        #253245;
  --text-primary:  #e8ecf2;
  --text-secondary:#8e9bb4;
  --text-muted:    #576479;
  --accent:        #26a69a;
  --accent-light:  #3cdbc0;
  --accent-glow:   rgba(38,166,154,0.15);
  --sell:          #ef5350;
  --sell-bg:       rgba(239,83,80,0.12);
  --buy:           #26a69a;
  --buy-bg:        rgba(38,166,154,0.12);
  --gold:          #ffc107;
  --gold-bg:       rgba(255,193,7,0.10);
  --radius:        10px;
  --radius-sm:     6px;
  --shadow:        0 4px 24px rgba(0,0,0,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: rgba(12,16,23,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 18px; font-weight: 800; letter-spacing: 1px; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo a { display: flex; align-items: center; gap: 10px; }
.nav-logo span { color: var(--accent-light); }
.nav-logo-img { width: 32px; height: 32px; border-radius: 6px; }

/* Hero logo */
.hero-logo {
  display: block;
  width: 100px; height: 100px; margin: 0 auto 28px;
  border-radius: 20px;
  filter: drop-shadow(0 0 30px rgba(38,166,154,0.3));
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 8px 20px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 13px;
  border: none; cursor: pointer; transition: background .2s;
}
.nav-cta:hover { background: #1e8c82; color: #fff; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(38,166,154,0.08) 0%, transparent 60%),
    var(--bg-primary);
}
.hero-inner { max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: var(--accent-glow); border: 1px solid rgba(38,166,154,0.25);
  color: var(--accent-light); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 em { font-style: normal; color: var(--accent-light); }
.hero p {
  font-size: 18px; color: var(--text-secondary); max-width: 540px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1e8c82; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(38,166,154,0.3); }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }

/* ---------- SECTIONS ---------- */
section { padding: 100px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-sub {
  font-size: 16px; color: var(--text-secondary); max-width: 600px;
  line-height: 1.7; margin-bottom: 48px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }

/* ---------- PAIN POINTS ---------- */
.pain {
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.pain-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.pain-card {
  padding: 32px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.pain-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.pain-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px;
}
.pain-icon.red   { background: var(--sell-bg); color: var(--sell); }
.pain-icon.green { background: var(--buy-bg); color: var(--buy); }
.pain-icon.gold  { background: var(--gold-bg); color: var(--gold); }
.pain-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.pain-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ---------- FEATURES ---------- */
.features { background: var(--bg-primary); }
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feat-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .25s, transform .25s;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat-card h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.feat-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.feat-tag {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.feat-tag.risk  { background: var(--sell-bg); color: var(--sell); }
.feat-tag.exec  { background: var(--buy-bg); color: var(--buy); }
.feat-tag.mgmt  { background: var(--gold-bg); color: var(--gold); }
.feat-tag.guard { background: rgba(100,120,220,0.12); color: #8090e0; }

/* ---------- PROP FIRM ---------- */
.propfirm {
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.prop-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}
.prop-list { list-style: none; }
.prop-list li {
  padding: 16px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 14px; align-items: flex-start;
}
.prop-list li:last-child { border-bottom: none; }
.prop-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--buy-bg); color: var(--buy);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 2px;
}
.prop-list h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.prop-list p  { font-size: 13px; color: var(--text-secondary); }
.prop-visual {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  text-align: center;
}
.prop-visual .stat { font-size: 48px; font-weight: 800; color: var(--accent-light); }
.prop-visual .stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.prop-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px;
}
.prop-stat-card {
  background: var(--bg-secondary); border-radius: var(--radius-sm);
  padding: 18px; text-align: center;
}
.prop-stat-card .num { font-size: 22px; font-weight: 700; }
.prop-stat-card .num.green { color: var(--accent-light); }
.prop-stat-card .num.red   { color: var(--sell); }
.prop-stat-card .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(38,166,154,0.06) 0%, transparent 60%),
    var(--bg-primary);
}
.cta-section .section-title { margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 16px; }
.cta-price { margin-bottom: 32px; }
.cta-price .amount { font-size: 48px; font-weight: 800; color: #fff; }
.cta-price .period { font-size: 15px; color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 40px 24px; text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer p { font-size: 13px; color: var(--text-muted); }
.footer a { color: var(--text-secondary); }

/* ---------- HOW IT WORKS PAGE ---------- */
.how-hero {
  padding: 120px 24px 60px; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(38,166,154,0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.steps { background: var(--bg-primary); }
.step {
  display: grid; grid-template-columns: 60px 1fr; gap: 28px;
  max-width: 780px; margin: 0 auto 48px; align-items: flex-start;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent-glow); border: 2px solid var(--accent);
  color: var(--accent-light); font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body { padding-top: 6px; }
.step-body h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-body p  { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.step-body code {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px; color: var(--accent-light);
}
.step-tip {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--gold-bg); border-left: 3px solid var(--gold);
  font-size: 13px; color: var(--text-secondary);
}
.step-tip strong { color: var(--gold); }

.step-divider {
  width: 2px; height: 32px;
  background: var(--border);
  margin: 0 auto 0 25px;
}

/* Panel section reference table */
.ref-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
  font-size: 14px;
}
.ref-table th {
  text-align: left; padding: 10px 14px;
  background: var(--bg-secondary); color: var(--text-secondary);
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
.ref-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.ref-table td:first-child { color: var(--text-primary); font-weight: 600; }
.ref-table tr:hover td { background: var(--bg-card); }

.kbd {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-family: monospace; font-size: 12px; color: var(--text-primary);
}

/* ---------- MOBILE ---------- */
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .prop-box { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  section { padding: 64px 20px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 17px; }
}
