/* Landing de Textil — estática, sin dependencias. Paleta alineada con la app. */
:root {
  color-scheme: dark;
  --canvas: #171b24;
  --panel: #1f2430;
  --panel-2: #262c3a;
  --border: #39415a;
  --fg: #e6e9ef;
  --fg-muted: #9aa3b8;
  --accent: #3b66e0;
  --accent-hover: #4a75ef;
  --accent-soft: rgba(96, 140, 255, 0.12);
  --accent-border: rgba(96, 140, 255, 0.35);
  --success: #34c07f;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.container { width: min(1080px, 92vw); margin: 0 auto; }

/* ── Header ─────────────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
header.site .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: #7ea2ff;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 16px;
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
nav.main {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
nav.main a { color: var(--fg-muted); text-decoration: none; }
nav.main a:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--border); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--panel-2); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; }
.hero .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7ea2ff;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; max-width: 18ch; }
.hero p.lead {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 17px;
  color: var(--fg-muted);
}
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Features ───────────────────────────────────────────────────────────── */
.features {
  padding: 48px 0 72px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 22px;
}
.feature h3 { font-size: 15px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--fg-muted); }

/* ── Downloads ──────────────────────────────────────────────────────────── */
.downloads-head { padding: 72px 0 12px; }
.downloads-head h1 { font-size: clamp(26px, 4vw, 38px); }
.downloads-head p { margin-top: 10px; color: var(--fg-muted); max-width: 62ch; }
.release-meta { margin-top: 8px; font-size: 13px; color: var(--success); }

.platforms {
  padding: 28px 0 80px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.platform {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform h2 { font-size: 17px; }
.platform .assets { display: flex; flex-direction: column; gap: 8px; }
.platform .assets a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  text-decoration: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.platform .assets a:hover { border-color: var(--accent-border); }
.platform .assets .size { color: var(--fg-muted); white-space: nowrap; }
.platform .empty { font-size: 13px; color: var(--fg-muted); }
.note { font-size: 12.5px; color: var(--fg-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer.site {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--panel);
  font-size: 13px;
  color: var(--fg-muted);
}
footer.site .container {
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
footer.site a { color: var(--fg-muted); }
