/* Vic's Trading Tools — shared design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0a0a0f; --surface: #12121a; --surface2: #1a1a26;
  --border: #2a2a3d; --accent: #6c63ff; --accent-light: #8b83ff;
  --accent-dim: rgba(108,99,255,0.12);
  --text: #e8e8f0; --muted: #888899; --muted2: #6a6a7a;
  --green: #34d399; --amber: #fbbf24; --red: #f87171;
  --radius: 12px; --maxw: 760px; --maxw-wide: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

/* Nav */
nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 1.25rem; display: flex; align-items: center; gap: 1.5rem; height: 56px; }
.nav-brand { font-weight: 800; color: var(--text); font-size: 1rem; white-space: nowrap; }
.nav-links { display: flex; gap: 1.25rem; flex: 1; }
.nav-links a { color: var(--muted); font-size: 0.875rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { margin-left: auto; background: var(--accent); border: none; color: #fff; padding: 0.45rem 1rem; border-radius: 7px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-light); text-decoration: none; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }

/* Hero */
#hero { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.25rem 2.5rem; text-align: center; }
.hero-badge { display: inline-block; background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
#hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.1rem; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #fff; padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 0.92rem; font-weight: 600; border: none; display: inline-block; }
.btn-primary:hover { background: var(--accent-light); text-decoration: none; }
.btn-secondary { background: var(--surface2); color: var(--text); padding: 0.7rem 1.5rem; border-radius: 8px; font-size: 0.92rem; font-weight: 600; border: 1px solid var(--border); display: inline-block; }
.btn-secondary:hover { background: var(--border); text-decoration: none; }

/* Cards / homepage */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 2rem; }
.start-card h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.start-card .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.step-body h3 { font-size: 0.98rem; margin-bottom: 0.2rem; }
.step-body p { font-size: 0.86rem; color: var(--muted); }
.step-link { display: inline-block; margin-top: 0.45rem; font-size: 0.85rem; color: var(--accent-light); border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.7rem; background: var(--surface2); }
.step-link:hover { text-decoration: none; background: var(--border); }

/* Category + tool cards */
.cat-header { max-width: var(--maxw); margin: 3rem auto 1rem; padding: 0 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.cat-header h2 { font-size: 1.2rem; }
.cat-count { font-size: 0.78rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.6rem; }
.tool-card { max-width: var(--maxw); margin: 0 auto 1.25rem; padding: 0 1.25rem; }
.tool-card-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.85rem; transition: border-color 0.15s; }
.tool-card-inner:hover { border-color: #3a3a52; }
.tool-meta { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.7rem; flex-wrap: wrap; }
.tag { font-size: 0.74rem; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.6rem; }
.tag.best { color: var(--green); border-color: rgba(52,211,153,0.3); }
.tool-card-inner h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.best-for { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.best-for strong { color: var(--text); }
.why-i-use { font-size: 0.9rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 0.85rem; margin-bottom: 1rem; }
ul.bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.1rem; }
ul.bullets li { font-size: 0.9rem; display: flex; gap: 0.55rem; align-items: flex-start; color: var(--text); }
ul.bullets li::before { content: "\2713"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.tool-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.tool-cta { display: inline-block; background: var(--accent); color: #fff; padding: 0.55rem 1.2rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600; }
.tool-cta:hover { background: var(--accent-light); text-decoration: none; }
.tool-alt { font-size: 0.8rem; color: var(--muted); }
.tool-alt a { color: var(--muted); }
.tool-alt a:hover { color: var(--text); }
.read-review { font-size: 0.82rem; color: var(--accent-light); margin-left: auto; }

/* Article pages */
.article { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin: 1.25rem 0 1.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.byline { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.25rem; flex-wrap: wrap; }
.byline .dot { color: var(--border); }
.byline a { color: var(--accent-light); }
.disclosure-inline { font-size: 0.78rem; color: var(--muted2); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.85rem; margin-bottom: 1.75rem; }
.disclosure-inline a { color: var(--muted); text-decoration: underline; }

.takeaways { background: var(--accent-dim); border: 1px solid rgba(108,99,255,0.25); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.takeaways h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-light); margin-bottom: 0.7rem; }
.takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.takeaways li { font-size: 0.92rem; display: flex; gap: 0.55rem; align-items: flex-start; }
.takeaways li::before { content: "\2192"; color: var(--accent-light); flex-shrink: 0; font-weight: 700; }

.article-body { font-size: 1.02rem; }
.article-body h2 { font-size: 1.5rem; margin: 2.25rem 0 0.9rem; scroll-margin-top: 70px; }
.article-body h3 { font-size: 1.18rem; margin: 1.6rem 0 0.6rem; }
.article-body p { margin-bottom: 1.1rem; color: #d6d6e2; }
.article-body a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul.bullets { margin: 0 0 1.3rem; }
.article-body ul.bullets li { font-size: 1rem; color: #d6d6e2; }
.article-body strong { color: var(--text); }

/* Comparison tables */
.table-wrap { overflow-x: auto; margin: 1.3rem 0 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
thead th { background: var(--surface2); text-align: left; padding: 0.7rem 0.9rem; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
tbody td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); color: #cfcfdd; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* Callouts */
.callout { border-radius: 10px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 0.93rem; border: 1px solid var(--border); background: var(--surface); }
.callout p { margin: 0; color: #d6d6e2; }
.callout strong { color: var(--text); }
.callout-info { border-left: 3px solid var(--accent); }
.callout-tip { border-left: 3px solid var(--green); }
.callout-warn { border-left: 3px solid var(--amber); background: rgba(251,191,36,0.04); }

/* Inline CTA blocks in articles */
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 1.6rem 0; padding: 1.1rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cta-row .cta-btn { background: var(--accent); color: #fff; padding: 0.6rem 1.3rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; display: inline-block; }
.cta-row .cta-btn:hover { background: var(--accent-light); }
.cta-row .cta-btn.alt { background: var(--surface2); border: 1px solid var(--border); color: var(--text); }

/* FAQ */
.faq { margin-top: 2.5rem; }
.faq h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.faq-item { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.4rem; }
.faq-a { font-size: 0.92rem; color: var(--muted); }
.faq-a a { color: var(--accent-light); }

/* Author / E-E-A-T box */
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-top: 2.5rem; }
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.author-box .name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.2rem; }
.author-box p { font-size: 0.85rem; color: var(--muted); }
.author-box a { color: var(--accent-light); }

/* Related */
.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.95rem 1.1rem; display: block; }
.related-card:hover { border-color: #3a3a52; text-decoration: none; }
.related-card .rc-kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-light); margin-bottom: 0.3rem; }
.related-card .rc-title { font-size: 0.92rem; color: var(--text); font-weight: 600; }

/* Generic prose page (about/legal) */
.prose { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.prose h1 { font-size: 2rem; margin: 1.5rem 0 1rem; }
.prose h2 { font-size: 1.3rem; margin: 1.8rem 0 0.7rem; }
.prose p { margin-bottom: 1rem; color: #d6d6e2; }
.prose ul { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: 0.4rem; color: #d6d6e2; }
.prose a { color: var(--accent-light); text-decoration: underline; }
.prose .updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }

/* FAQ (homepage) */
#faq { max-width: var(--maxw); margin: 4rem auto 0; padding: 0 1.25rem 1rem; }
#faq h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 1.25rem; margin-top: 4rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.footer-tagline { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-disclosures { display: flex; flex-direction: column; gap: 0.75rem; }
.disclosure { font-size: 0.74rem; color: var(--muted); }
.disclosure strong { color: var(--text); }
.footer-copy { margin-top: 1.5rem; font-size: 0.74rem; color: var(--muted2); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .card, .tool-card-inner { padding: 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 1rem; }
}
