/* ==========================================================
   demoeightcap — main stylesheet
   ========================================================== */

:root {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --surface: #13213a;
  --surface-2: #182a48;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef9;
  --text-muted: #9aa8c1;
  --accent: #19d3a2;
  --accent-dark: #10b287;
  --accent-soft: rgba(25, 211, 162, 0.12);
  --blue: #3b82f6;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04221a; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-outline:hover { border-color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span.light { font-weight: 500; color: var(--text-muted); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links a.active { position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(59, 130, 246, 0.18), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(25, 211, 162, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 36px; list-style: none; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.92rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* Signal card mock */
.signal-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.signal-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.signal-card-head strong { font-size: 1rem; }
.badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.badge-buy { background: var(--accent-soft); color: var(--accent); }
.badge-sell { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.badge-live { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.chart { height: 120px; margin: 6px 0 18px; }
.chart svg { width: 100%; height: 100%; }
.signal-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.signal-rows div { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.signal-rows span { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.signal-rows b { font-size: 1rem; }
.signal-note { font-size: 0.75rem; margin: 14px 0 0; color: var(--text-muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(25, 211, 162, 0.35); transform: translateY(-3px); }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 24px; height: 24px; }
.card ul { padding-left: 18px; margin: 0; color: var(--text-muted); }
.card ul li { margin-bottom: 6px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 30px; left: 30px;
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
}

/* CTA band */
.cta {
  background: linear-gradient(135deg, rgba(25, 211, 162, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 80px 0 50px; text-align: center; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 50% 0%, rgba(25, 211, 162, 0.12), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 8px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.checkbox input { margin-top: 4px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent); }
.form-status.err { display: block; background: rgba(248, 113, 113, 0.12); color: var(--danger); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.info-list b { font-weight: 600; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 24px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; }

/* ---------- Risk / footer ---------- */
.risk-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 18px 0;
}
.risk-banner strong { color: var(--text); }

.site-footer { background: #070d18; padding: 64px 0 28px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom p { font-size: 0.8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 60px; }
  .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none; padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .signal-rows { grid-template-columns: 1fr 1fr 1fr; }
}
