/* Páginas públicas de Harpy Trade (landing y legales, D67): HTML estático, mismos colores que la app. */
:root {
  --bg: #0a0e15; --side: #0d121b; --panel: #111723; --panel-2: #18233a; --line: #1e2736; --line-2: #2a3547;
  --muted: #8b97a8; --soft: #b6c0ce; --text: #e6eaf0; --up: #3cc97c; --down: #f05d5e; --accent: #4c8dff;
  --warn: #e3b341; --teal: #2fc7a4;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* idioma: html[data-lang] muestra solo los bloques de ese idioma */
html[data-lang="es"] [lang="en"], html[data-lang="en"] [lang="es"] { display: none !important; }

/* barra superior */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 14, 21, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 20px; margin-left: 24px; font-size: 14px; }
.nav a { color: var(--soft); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; font-size: 12px; }
.lang button { background: none; border: 0; color: var(--muted); padding: 5px 9px; cursor: pointer; font: inherit; }
.lang button.on { background: var(--panel-2); color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { border-color: var(--line-2); color: var(--text); }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }

/* portada */
.hero { padding: 88px 0 56px; text-align: center; background:
  radial-gradient(800px 360px at 50% -40px, rgba(76, 141, 255, .18), transparent 70%); }
.badge { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 13px;
  color: var(--soft); margin-bottom: 22px; }
.badge b { color: var(--teal); }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--accent); }
.hook { font-size: clamp(16px, 2vw, 19px); font-weight: 600; color: var(--accent); max-width: 720px; margin: 0 auto 8px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--soft); max-width: 720px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* mini semáforo de la portada */
.pulse { display: inline-flex; gap: 18px; align-items: center; margin-top: 42px; padding: 12px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--panel); font-size: 13px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.g { background: var(--up); } .y { background: var(--warn); } .r { background: var(--down); }
.tg { color: var(--up); } .tr { color: var(--down); }

/* secciones */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.01em; margin: 0 0 10px; }
.sub { color: var(--soft); margin: 0 0 32px; max-width: 720px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--soft); font-size: 14.5px; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; color: var(--accent); }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.steps.three { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }   /* 3 tarjetas a lo ancho */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--soft); }

/* preguntas */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--soft); margin: 10px 0 0; font-size: 15px; }

/* llamado final */
.final { text-align: center; }

/* pie */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 13px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin: 12px 0; }
footer .links a { color: var(--soft); }
.risk { background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; line-height: 1.55; }

/* páginas legales */
.doc { max-width: 820px; padding: 48px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); }
.doc h2 { font-size: 21px; margin-top: 34px; }
.doc p, .doc li { color: var(--soft); }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .note { border-left: 3px solid var(--warn); background: var(--side); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--soft); }

@media (max-width: 720px) {
  .nav { display: none; }
  .top .right .btn.ghost { display: none; }
  .hero { padding-top: 56px; }
}
