/* Dancy — editorial-terminal design.
   Black frame · white sheet · sky section with ascii clouds · glass cards.
   Fonts: Inter (sans) · Newsreader (serif accents) · JetBrains Mono (system voice). */

:root {
  --black: #0a0a0a;
  --ink: #16181c;
  --paper: #fbfaf7;
  --sky-1: #3d21ad;   /* deep grape — the skeleton's violet */
  --sky-2: #8b6bff;   /* light violet rim */
  --mint: #17c08d;
  --run: #ff7a45;
  --muted: rgba(10, 10, 10, 0.55);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 14px;
}

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

/* ---- Nav: floating black pill ---- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--black); color: #fff;
  border-radius: 999px; padding: 10px 12px 10px 22px;
  max-width: 680px; margin: 26px auto 0;
}
.brand {
  color: #fff; text-decoration: none;
  font-family: var(--serif); font-size: 24px; letter-spacing: 0.2px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background-image: radial-gradient(circle, #fff 1.6px, transparent 1.9px);
  background-size: 6px 6px; border-radius: 3px;
}
.brand span { color: var(--mint); }
.links { display: flex; align-items: center; gap: 6px; }
.links a {
  color: #fff; text-decoration: none; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; transition: background 0.15s;
}
.links a:hover { background: rgba(255, 255, 255, 0.12); }
.links a.cta {
  background: #fff; color: var(--black);
  font-family: var(--mono); font-size: 13px;
}

/* ---- The white sheet ---- */
.sheet {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  margin-top: 14px;
}

/* ---- Hero ---- */
.hero { text-align: center; padding: 96px 24px 110px; background: var(--paper); }
.sysline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--sans); font-weight: 500; font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15; letter-spacing: -0.5px; max-width: 720px; margin: 0 auto;
}
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero .cta-row {
  margin-top: 44px; display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
}
.btn-terminal {
  font-family: var(--mono); font-size: 13px; letter-spacing: 1px;
  background: var(--black); color: #fff; text-decoration: none;
  padding: 14px 26px; border-radius: 10px; text-transform: uppercase;
}
.btn-terminal:hover { background: #262626; }
.perms {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase;
}

/* ---- Sky section ---- */
.sky {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, #5a38e0 45%, var(--sky-2) 100%);
  padding: 72px 0 96px; color: #fff;
}
.ascii {
  position: absolute; inset: auto 0 0 0; height: 72%;
  font-family: var(--mono); font-size: 11px; line-height: 1.25;
  color: rgba(255, 255, 255, 0.8); white-space: pre; overflow: hidden;
  pointer-events: none; user-select: none;
  mask-image: linear-gradient(180deg, transparent, #000 35%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%);
}
.sky .wrap { position: relative; z-index: 1; }
.sky-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 64px; }
.sky-blurb { max-width: 300px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.95); }
.sky-logo {
  font-family: var(--serif); font-size: 26px; display: inline-flex; align-items: center; gap: 10px;
}
.sky-logo::before {
  content: ""; width: 18px; height: 18px;
  background-image: radial-gradient(circle, #fff 1.6px, transparent 1.9px);
  background-size: 6px 6px;
}

/* Beat equalizer */
.eq { display: grid; gap: 9px; justify-content: center; margin: 0 auto 80px; }
.eq-row { display: flex; gap: 9px; justify-content: center; }
.eq i {
  width: 9px; height: 30px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.18s ease;
}
.eq i.on { background: #eef7f1; }

/* Live feed card */
.feed {
  max-width: 560px; margin: 0 auto 84px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 22px; padding: 20px;
}
.feed-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px; padding: 2px 6px 16px;
}
.feed-head b::after { content: "●"; color: #dfffe9; font-size: 9px; }
.task {
  border-radius: 14px; padding: 16px 18px; margin-bottom: 12px;
  background: rgba(18, 8, 42, 0.45);
}
.task:last-child { margin-bottom: 0; opacity: 0.65; }
.task.hot { background: var(--black); }
.task-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.65); margin-bottom: 8px;
}
.task-title { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.task-status { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; }
.task-status.run { color: var(--run); }
.task-status.run::before { content: "● "; }
.task-status.done { color: #bfe9d4; }
.task-status.done::before { content: "● "; color: var(--mint); }
.task-status.done::after { content: "  ✓"; }

/* Three cards */
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: stretch; }
.panel { border-radius: 22px; padding: 28px; min-height: 420px; display: flex; flex-direction: column; }
.panel-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 26px; opacity: 0.7;
  display: flex; justify-content: space-between; align-items: center;
}
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.2; }
.panel p.body { font-size: 14px; line-height: 1.65; margin-top: auto; }

.panel.glass {
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
}
.big-stat { font-size: 76px; font-weight: 500; letter-spacing: -2px; }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; margin-top: 6px; }
.stat-rows { margin-top: auto; margin-bottom: 22px; }
.stat-row {
  display: flex; justify-content: space-between; font-size: 14px;
  padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}
.stat-row b { font-family: var(--mono); font-weight: 500; }
.pills { display: flex; gap: 8px; }
.pills span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
  padding: 5px 11px; color: rgba(255, 255, 255, 0.85);
}

.panel.dark { background: var(--black); color: #fff; }
.panel.dark .loglines { margin: 34px 0; }
.logline {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, 0.5);
  padding: 7px 0;
}
.logline .rail { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); position: relative; }
.logline .rail i { position: absolute; top: -1px; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.85); }
.panel.dark p.body { color: rgba(255, 255, 255, 0.7); }

.panel.light { background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(20, 0, 60, 0.25); }
.slider-art { display: flex; align-items: center; gap: 14px; margin: 60px 8px; }
.slider-art .dot { width: 12px; height: 12px; border: 1.5px solid #c9c9c4; border-radius: 50%; }
.slider-art .line { flex: 1; height: 1.5px; background: #dcdcd6; }
.slider-art .knob { width: 44px; height: 44px; border: 1.5px solid #b9b9b2; border-radius: 50%; flex: none; }
.panel.light p.body { color: rgba(10, 10, 10, 0.65); }

/* ---- Legal / support pages ---- */
main.legal {
  background: var(--paper); border-radius: 28px;
  max-width: 820px; margin: 14px auto 0; padding: 64px 56px 80px;
}
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 42px; margin-bottom: 8px; }
.legal .updated {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 34px;
}
.legal h2 {
  font-family: var(--serif); font-weight: 400; font-size: 24px;
  margin: 38px 0 12px;
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: rgba(10, 10, 10, 0.8); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); }
.legal .note {
  background: #f0edfb; border-radius: 14px; padding: 18px 20px; margin: 14px 0;
}
.legal h3 { font-size: 16px; margin: 22px 0 8px; }

/* ---- Footer ---- */
footer { padding: 40px 10px 26px; color: rgba(255, 255, 255, 0.6); }
footer .cols {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
}
footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; margin-left: 18px; }
footer a:hover { color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .panel p.body { margin-top: 26px; }
  .stat-rows { margin-top: 34px; }
  .sky-head { flex-direction: column; gap: 22px; }
  .hero { padding: 64px 20px 72px; }
  main.legal { padding: 44px 26px 56px; }
  nav { margin-top: 12px; }
  .links a:not(.cta) { display: none; }
  .lang-select { padding: 7px 26px 7px 10px; font-size: 12px; }
}

/* Language selector */
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #fff; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px;
  padding: 8px 30px 8px 14px; border-radius: 999px;
  transition: background-color 0.15s;
}
.lang-select:hover { background-color: rgba(255, 255, 255, 0.2); }
.lang-select option { color: #111; background: #fff; }

/* Index footer keeps its uppercase look in every language */
.sheet + footer a { text-transform: uppercase; }

/* Easter egg: ASCII dancers */
.ascii-dancers {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 1;
  margin: 0; text-align: center;
  font-family: var(--mono); font-size: 11px; line-height: 1.25;
  color: rgba(255, 255, 255, 0.45);
  user-select: none; pointer-events: none;
  white-space: pre;
}
