@import url("/fonts.css");

/* ─────────────────────────────────────────────────────────────────────────────
   Veskio — veskio.app

   Palette is the app's own (src/theme/colors.ts): navy ground, crimson mark,
   lavender ink. Dark only, because the app is dark only.

   Typography follows the subject rather than fashion: everything a user of this
   product handles is a string — an Xtream host, a username, an M3U+ URL — so
   IBM Plex Mono carries the headlines, labels and data, and Inter carries the
   prose that explains them. Mono is the native typeface of this world.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0D1024;
  --deep: #080A16;
  --surface: #151A35;
  --line: #1D2342;
  --line-soft: #161B38;
  --ink: #D9DCEF;
  --mist: #8F95C2;
  --accent: #E31924;
  --accent-deep: #C4000B;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 24px;
  --col: 920px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent-deep); color: #fff; }

.container {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* A single measure for prose, so paragraphs never run to the full grid width. */
.measure { max-width: 60ch; }

/* ── Eyebrows and section headings ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 20px;
}

.eyebrow.cased { text-transform: none; letter-spacing: 0.12em; }

.section { padding: 60px 0; border-top: 1px solid var(--line-soft); }
.section > .container > .eyebrow { margin-bottom: 28px; }

.section-title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; display: block; }
.brand b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  /* Set uppercase in the markup, not here: under lang="tr" a CSS transform would uppercase the
     i in Veskio to İ and misspell the brand. */
}
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  border: 0;
}
.site-nav a:hover { color: var(--ink); }
/* The language switch is a choice, not another page: the border marks it as a control. */
.site-nav a.lang {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 11px;
  text-transform: none;
  letter-spacing: 0.06em;
}
.site-nav a.lang:hover { border-color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; }

.hero h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
/* Before and after, one per line: the colour split and the line break carry the same idea. */
.hero h1 span { display: block; }
.hero h1 .before { color: var(--mist); }

.hero .lede {
  font-size: 18px;
  color: var(--mist);
  margin: 0;
  max-width: 48ch;
}
.hero .lede strong { color: var(--ink); font-weight: 500; }

/* ── Parser card: the page's one interactive claim ───────────────────────── */
.parser {
  margin-top: 36px;
  background: linear-gradient(180deg, var(--surface), var(--deep));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.parser-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.parser-head label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.parser input {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 15px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.parser input::placeholder { color: #5C6392; }
.parser input:focus { border-color: var(--accent-deep); outline: none; }

.example {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  cursor: pointer;
}
.example:hover { color: var(--ink); border-bottom-color: var(--accent); }

.fields { margin: 18px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.field {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--deep);
  padding: 11px 15px;
  font-family: var(--mono);
  font-size: 13px;
}
.field dt { color: var(--mist); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.field dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.field dd.empty { color: #4E5480; }

.verdict {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-height: 22px;
}
.verdict .sign { flex: none; width: 1.1em; }
.verdict.ok { color: var(--ink); }
.verdict.ok .sign { color: #4FB286; }
.verdict.bad { color: var(--ink); }
.verdict.bad .sign { color: var(--accent); }
.verdict.idle { color: var(--mist); }

.parser-note { margin: 14px 0 0; font-size: 13px; color: var(--mist); }

/* ── Glossary rows: what the app does, named the way the app names it ────── */
.rows { margin: 0; }
.rows > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}
.rows > div:first-child { border-top: 0; padding-top: 0; }
.rows dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 4px;
}
.rows dd { margin: 0; color: var(--mist); max-width: 60ch; }
.rows dd strong { color: var(--ink); font-weight: 500; }

/* ── Recommendation demo ─────────────────────────────────────────────────── */
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 28px;
}
.demo-query {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--deep);
  font-family: var(--mono);
  font-size: 14px;
}
.demo-query .caret { color: var(--accent); }
.demo-pick { padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.demo-pick:first-of-type { border-top: 0; }
.demo-pick .title {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
}
.demo-pick .why { margin: 0; color: var(--mist); font-size: 14px; }
.demo-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--deep);
  color: var(--mist);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ── Platforms ───────────────────────────────────────────────────────────── */
.platforms { display: grid; gap: 14px; margin-top: 26px; }
.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px 20px;
}
.platform .name { font-family: var(--mono); font-weight: 500; font-size: 15px; }
.platform .state {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 11px;
  flex: none;
}

/* ── Notice ──────────────────────────────────────────────────────────────── */
.notice {
  border-left: 2px solid var(--accent-deep);
  background: var(--surface);
  border-radius: 0 11px 11px 0;
  padding: 20px 22px;
  color: var(--mist);
}
.notice strong { color: var(--ink); font-weight: 500; }
.notice p { margin: 0; }
.notice p + p { margin-top: 10px; }

/* ── Document pages (privacy, support) ───────────────────────────────────── */
.doc { padding: 56px 0 96px; }
.doc h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.doc .date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 40px;
}
.doc h2 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 42px 0 10px;
}
.doc h3 { font-size: 16px; font-weight: 600; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--mist); max-width: 68ch; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 9px; }
.doc a { color: var(--ink); border-bottom-color: var(--accent-deep); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 60px;
}
.site-footer .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.site-footer a { color: var(--mist); border: 0; }
.site-footer a:hover { color: var(--ink); }

/* ── Narrow screens ─────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .rows > div { grid-template-columns: 1fr; gap: 8px; }
  .field { grid-template-columns: 92px 1fr; gap: 10px; font-size: 12px; }
  .parser { padding: 18px; }
  /* Label and action both wrap at this width if they share a line, so they stack — and once
     stacked the action needs a button's outline or it reads as a caption. */
  .parser-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .example { border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; }
  .example:hover { border-color: var(--accent); }
  .platform { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
