/*
 * LEON website — shared base for the static pages (/invest, /connect, /academy; /crimemap and /report may adopt it).
 * Same palette and type as /crimemap and /report. Page-specific sections stay in each page's own <style>.
 * Fonts: Poppins from Google Fonts, linked by each page.
 */
:root {
  --bg: #0E1116;
  --bg2: #151920;
  --surface: #252931;
  --card: #20242D;
  --field: #1C2028;
  --border: #2F3543;
  --text: #FFFFFF;
  --soft: #D4D5D8;
  --muted: #96989E;
  --accent: #1A9AE6;
  --blue: #0A76BA;
  --red: #E5484D;
  --amber: #F5A524;
  --gold: #D9B26A;
  --green: #30A46C;
  --wrap: 1160px;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Poppins, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ───── Nav ───── */
nav.top { position: sticky; top: 0; z-index: 20; background: rgba(14,17,22,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(47,53,67,.6); }
nav.top .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: .22em; }
.wordmark small { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
nav.top .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--soft); }
nav.top .links a { text-decoration: none; }
nav.top .links a:hover { color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 12px/1 Poppins, sans-serif; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--surface); color: #fff; }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 600 15px/1.2 Poppins, sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn.red { background: var(--red); box-shadow: 0 10px 26px rgba(229,72,77,.35); }
.btn.red:hover { background: #C9363B; }
.btn.blue { background: var(--accent); box-shadow: 0 10px 26px rgba(26,154,230,.3); }
.btn.blue:hover { background: #1287CC; }
.btn.gold { background: linear-gradient(135deg, #E8C988, #B98E45); color: #1A1408; box-shadow: 0 10px 30px rgba(217,178,106,.28); }
.btn.ghost { border: 1px solid var(--border); background: transparent; }
.btn.ghost:hover { border-color: #4C515E; }
nav.top .btn { min-height: 40px; padding: 0 16px; font-size: 14px; white-space: nowrap; }

/* ───── Sections ───── */
section { padding: 100px 0; }
.center { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.center h2, .h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.center p { color: var(--soft); font-size: 17px; margin: 16px 0 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--soft); margin: 0; font-size: 15px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; }
.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick li { position: relative; padding-left: 30px; color: var(--soft); font-size: 15.5px; }
.tick li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(48,164,108,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330A46C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.no-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.no-list li { position: relative; padding-left: 28px; color: var(--soft); font-size: 15px; }
.no-list li::before { content: '×'; position: absolute; left: 2px; top: -3px; font-size: 21px; color: var(--red); }
.steps { counter-reset: step; }
.step { position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; right: 18px; top: 6px; font-size: 80px; font-weight: 800; color: rgba(255,255,255,.04); line-height: 1; }

/* ───── Live counters ───── */
.counters { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.counters .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.counter { padding: 30px 20px; text-align: center; border-right: 1px solid var(--border); }
.counter:last-child { border-right: 0; }
.counter b { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 11px; font-weight: 600; letter-spacing: .12em; margin-left: 6px; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ───── FAQ ───── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 17px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--soft); font-size: 15.5px; }

/* ───── Forms (POST /api/public/messages) ───── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--soft); margin-bottom: 7px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; background: var(--field); border: 1px solid var(--border); border-radius: 12px; color: #fff; font: 400 15px/1.4 Poppins, sans-serif; padding: 13px 14px; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396989E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,154,230,.18); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-size: 12.5px; color: var(--muted); margin: 0; }
.form .submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .status { font-size: 14px; margin: 0; }
.form .status.err { color: #FF8A8E; }
.form-done { display: none; text-align: center; padding: 30px 10px; }
.form-done .ok { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(48,164,108,.18); display: grid; place-items: center; }
.form-done h3 { font-size: 24px; margin-bottom: 10px; }
.form-done p { color: var(--soft); margin: 0; }
.sent .form { display: none; }
.sent .form-done { display: block; }

/* ───── Footer ───── */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal { width: 100%; font-size: 12.5px; border-top: 1px solid var(--border); padding-top: 20px; }

/* ───── Reveal on scroll ───── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ───── Mobile ───── */
@media (max-width: 960px) {
  .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); }
  nav.top .links { display: none; }
  nav.top .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 70px 0; }
  .center { margin-bottom: 40px; }
  .grid2, .grid3, .grid4, .form { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  nav.top .wrap { gap: 12px; }
  .wordmark small { display: none; }
  nav.top .btn { padding: 0 12px; font-size: 13px; }
  .counters .wrap { grid-template-columns: 1fr !important; }
  .counter { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 16px; }
  .counter:last-child { border-bottom: 0; }
  .btn { width: 100%; }
  nav.top .btn { width: auto; }
}
