/* ============================================================
   trading-bm.de — RSI prompt lead-magnet landing page
   Standalone, dark-only theme matching bmtrading.de
   ============================================================ */
:root {
  --bg: #0d0f14;
  --surface: #141720;
  --surface-2: #1c2030;
  --border: #2a2f45;
  --border-strong: #363d58;
  --text: #e8eaf2;
  --text-muted: #8b91a8;
  --text-dim: #5a6178;
  --accent: #4f8ef7;
  --accent-hover: #3a7ae8;
  --accent-2: #7c5af7;
  --accent-soft: rgba(79, 142, 247, 0.13);
  --success: #2ecc71;
  --radius-card: 14px;
  --radius-btn: 10px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  line-height: 1.6;
}
img, iframe, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hidden until JS picks a language → prevents both-language flash */
body { visibility: hidden; }
body.lang-ready { visibility: visible; }

.wrap { max-width: 64rem; margin-inline: auto; padding-inline: 1.25rem; }
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
}
.accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13,15,20,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--text); border: 1px solid var(--border-strong);
  display: grid; place-items: center;
}
.brand .mark svg { width: 15px; height: 15px; }
.lang-toggle { display: flex; gap: 4px; }
.lang-toggle button {
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  padding: 0.3rem 0.6rem; border-radius: 8px;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
}
.lang-toggle button.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-btn);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: background .15s ease, transform .15s ease;
  box-shadow: 0 8px 24px rgba(79,142,247,0.32);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(60% 50% at 50% 0%, var(--accent-soft), transparent 70%); pointer-events:none; }
.hero .wrap { position: relative; padding: 3.5rem 1.25rem 3rem; }
.eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); font-weight: 700; }
.hero h1 { margin-top: 1rem; font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; }
.hero .sub { margin-top: 1.25rem; font-size: 1.125rem; color: var(--text-muted); max-width: 56ch; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.trust-row { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.85rem; color: var(--text-dim); }
.trust-row span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-row .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--success); }

/* ---------- Signup card ---------- */
.signup-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: 0 8px 28px rgba(0,0,0,0.4); }
.signup-card h2 { font-size: 1.15rem; font-weight: 700; }
.signup-card .hint { margin-top: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.ktform { margin-top: 1.1rem; }
.ktform[hidden] { display: none; }
.ktform form { display: flex; flex-direction: column; gap: 0.8rem; }
.ktv2-form-element { display: flex; flex-direction: column; gap: 0.35rem; }
.ktv2-form-element label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.ktv2-form-element br { display: none; }
.ktform input[type="text"], .ktform input[type="email"] {
  width: 100%; padding: 0.8rem 0.95rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-btn); font: inherit; font-size: 0.95rem;
}
.ktform input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ktform input::placeholder { color: var(--text-dim); }
.ktv2-form-dsgvocheckbox { display: flex; align-items: flex-start; gap: 0.55rem; }
.ktv2-dsgvo-checkbox { margin-top: 0.2rem; width: 1rem; height: 1rem; flex-shrink: 0; accent-color: var(--accent); }
.ktv2-form-dsgvocheckbox label { font-size: 0.78rem; line-height: 1.5; color: var(--text-muted); }
.ktform button[type="submit"] {
  width: 100%; padding: 0.9rem 1.6rem; border-radius: var(--radius-btn); border: none; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 1rem;
  box-shadow: 0 8px 24px rgba(79,142,247,0.32); transition: background .15s ease;
}
.ktform button[type="submit"]:hover { background: var(--accent-hover); }

/* ---------- Sections ---------- */
section.block { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }
.block h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; letter-spacing: -0.01em; }
.block .lead { margin-top: 0.75rem; color: var(--text-muted); max-width: 60ch; }
.feature-grid { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feature h3 { margin-top: 0.85rem; font-size: 1.05rem; font-weight: 700; }
.feature p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--text-muted); }

.steps { margin-top: 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem; }
.step .n { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.step h3 { margin-top: 0.5rem; font-size: 1.05rem; font-weight: 700; }
.step p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--text-muted); }

.video-wrap { margin-top: 2rem; aspect-ratio: 16/9; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-hint { margin-top: 0.85rem; }
.video-hint p { font-size: 0.85rem; color: var(--text-muted); }
.video-hint strong { color: var(--text); }

.author { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.author img { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; border: 2px solid var(--border-strong); }
.author .who { flex: 1; min-width: 240px; }

.cta-final { text-align: center; }
.cta-final .signup-card { max-width: 30rem; margin: 1.75rem auto 0; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0; color: var(--text-dim); font-size: 0.82rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer .links a { color: var(--text-muted); }
.site-footer .disclaimer { margin-top: 1.25rem; line-height: 1.6; max-width: 70ch; }
.site-footer .copy { margin-top: 1rem; }

/* ---------- Consent banner (dormant until a Pixel ID is set) ---------- */
#consent-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: rgba(20,23,32,0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--border); }
#consent-banner[hidden] { display: none; }
#consent-banner .wrap { display: flex; flex-direction: column; gap: 0.9rem; padding-block: 1rem; }
@media (min-width: 720px) { #consent-banner .wrap { flex-direction: row; align-items: center; } }
#consent-banner p { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
#consent-banner .btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
#consent-banner button { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.6rem 1.1rem; border-radius: 8px; cursor: pointer; border: 1px solid var(--border-strong); background: transparent; color: var(--text); }
#consent-banner button.accept { background: var(--accent); color: #fff; border-color: transparent; }

/* ---------- Legal pages ---------- */
.legal { padding: 3rem 0 4rem; }
.legal h1 { font-size: 2rem; font-weight: 800; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2.5rem; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.5rem; }
.legal p, .legal li { color: var(--text-muted); margin-top: 0.75rem; line-height: 1.7; font-size: 0.95rem; }
.legal ul { padding-left: 1.5rem; list-style: disc; }
.legal address { font-style: normal; font-family: var(--mono); font-size: 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1rem 1.25rem; margin-top: 1rem; line-height: 1.7; color: var(--text); }
.legal a { word-break: break-word; }
.lang-block[hidden] { display: none; }
