/* miscosas landing — tokens sunset portados de src/theme.ts:
   BG/SURFACE/ELEVATED (fondos), TEXT/TEXT_DIM/MUT (escala de texto),
   ACCENT/ACCENT2/GOLD (acentos sunset), BORDER (bordes). */
:root {
  --bg: #160f1c;        /* theme.ts BG */
  --surface: #1e1526;   /* theme.ts SURFACE */
  --elevated: #281b31;  /* theme.ts ELEVATED */
  --text: #f7e9ee;      /* theme.ts TEXT */
  --text-dim: #d8c2cc;  /* theme.ts TEXT_DIM */
  --mut: #9c8a96;       /* theme.ts MUT */
  --accent: #ff8a5c;    /* theme.ts ACCENT */
  --accent2: #ff5c7c;   /* theme.ts ACCENT2 */
  --gold: #ffce8a;      /* theme.ts GOLD */
  --border: #7a5880;    /* theme.ts BORDER */
  --sunset: linear-gradient(90deg, var(--accent), var(--accent2), var(--gold));
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-dim);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* i18n: EN default; body.lang-es muestra .es y esconde .en
   (la clase del body es distinta de .es: si no, el propio body matchea
   .es{display:none} y desaparece la página entera) */
.es { display: none; }
body.lang-es .es { display: inline; }
body.lang-es .en { display: none; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ── header ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.brand {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }

/* ── hero ── */
.hero { text-align: center; padding: 64px 0 40px; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--mut);
}

.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.oneliner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  max-width: 100%;
}
.oneliner code {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold);
  overflow-x: auto;
  white-space: nowrap;
}
.copy-btn {
  flex-shrink: 0;
  background: var(--sunset);
  border: none;
  border-radius: 8px;
  color: #1a0f14; /* theme.ts SEL_FG */
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}
.copy-btn:hover { filter: brightness(1.1); }
.gh-link { color: var(--mut); font-size: 0.95rem; text-decoration: none; }
.gh-link:hover { color: var(--accent); }

/* ── demo ── */
.demo { padding: 40px 0; }
.demo .frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 24px 80px rgba(255, 92, 124, 0.12);
}
.demo .titlebar {
  display: flex;
  gap: 6px;
  padding: 4px 6px 10px;
}
.demo .titlebar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--elevated);
  border: 1px solid var(--border);
}
.demo video { display: block; width: 100%; border-radius: 6px; }

/* ── features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 0 8px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.feature .icon { font-size: 1.4rem; }
.feature h3 { color: var(--text); font-size: 1.02rem; margin: 10px 0 6px; }
.feature p { color: var(--mut); font-size: 0.92rem; }
.feature code { font-family: var(--mono); color: var(--gold); font-size: 0.85em; }

.local-note {
  text-align: center;
  color: var(--mut);
  font-size: 0.95rem;
  padding: 26px 0 8px;
}
.local-note strong { color: var(--gold); font-weight: 600; }

/* ── footer ── */
footer {
  border-top: 1px solid var(--surface);
  margin-top: 56px;
  padding: 28px 0 40px;
  text-align: center;
  color: var(--mut);
  font-size: 0.9rem;
}
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ── mobile ── */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .oneliner { flex-direction: column; align-items: stretch; text-align: left; }
  .copy-btn { align-self: flex-end; }
}
