/* Landing site styles. Shares the console's design tokens (see frontend/styles.css)
   so www.tersets.com and console.tersets.com feel like one product. */
:root {
  --bg: #0f1117;
  --panel: #1a1d27;
  --ink: #e7e9ee;
  --muted: #9aa0ad;
  --accent: #5b8cff;
  --accent-2: #ff8c5b;
  --border: #2a2f3d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Top navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav .brand { display: flex; align-items: center; font-weight: 700; font-size: 1.1rem; letter-spacing: 0; color: var(--ink); }
.nav .brand:hover { text-decoration: none; }
/* The logo art is solid black; invert it to white so it reads on the dark theme. */
.brand-logo { height: 22px; width: auto; display: block; filter: invert(1); }
.nav .links { display: flex; gap: 1.25rem; align-items: center; }
.nav .links a { color: var(--muted); font-size: 0.95rem; }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.nav .links .btn-primary,
.nav .links .btn-primary:hover { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }

/* ---- Hero ---- */
.hero { padding: 4rem 0 2.5rem; text-align: center; }
/* Wordmark logo: black art inverted to white, capped so it scales down on phones. */
.hero .logo { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto 1.5rem; filter: invert(1); }
.hero h1 { font-size: 2.6rem; margin: 0 0 0.6rem; letter-spacing: 0; }
.hero .tagline { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 1.5rem; }
.hero .cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
  margin-bottom: 1rem;
}

/* ---- Sections ---- */
section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: 0; }
section p { color: var(--ink); }
.muted { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .card-action { margin-top: 0.8rem; }

/* ---- Documentation workflows and reference tables ---- */
.workflow-list { border-top: 1px solid var(--border); }
.workflow-list article {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.workflow-list h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.workflow-list p { margin: 0; color: var(--muted); }
.workflow-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  color: var(--accent-2);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-weight: 600;
}
.table-scroll { width: 100%; overflow-x: auto; }
.docs-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.docs-table th,
.docs-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.docs-table th { background: var(--panel); color: var(--ink); font-weight: 600; }
.docs-table td { color: var(--muted); }
.docs-table td:first-child { color: var(--ink); font-weight: 500; }
.callout { margin: 1.25rem 0 0; padding: 0.9rem 1rem; border-left: 3px solid var(--accent-2); background: var(--panel); }

/* ---- Figure (compression method hierarchy) ---- */
/* The landing copy of the diagram is recolored white (see landing/assets/hierarchy.svg),
   so it sits directly on the dark theme with no background card. */
.figure { margin: 1.5rem 0 0; }
.figure img { display: block; width: 100%; max-width: 600px; margin: 0 auto; }
.figure figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.pill { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.85rem; padding: 0.35rem 0.7rem; background: var(--panel); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; }
.pill:hover { border-color: var(--accent); color: #fff; text-decoration: none; }

/* ---- Code / citation ---- */
pre {
  background: #0d0f16;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ---- Footer ---- */
footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
footer .links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ---- Legal pages (Impressum / Datenschutz) ---- */
.legal { max-width: 760px; padding-top: 2rem; }
.legal h1 { font-size: 2rem; letter-spacing: 0; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal address { font-style: normal; color: var(--ink); }
.todo { color: var(--accent-2); }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .nav .links a:not(.btn) { display: none; }
  .docs-table { font-size: 0.95rem; }
}
