/*
  Same real ShortFormVid.com brand tokens as Shorts Cutter's own stylesheet - this hub links out
  to tools that carry the identical palette, so it should look like the front door of the same
  building, not a different product with its own theme.
*/
:root {
  --ground: #0F0F0F;
  --surface: #1a1a1a;
  --surface-2: #232323;
  --surface-3: #2d2d2d;
  --border: #333333;
  --border-strong: #474747;
  --text: #f2f2f0;
  --text-muted: #9a9a97;
  --text-faint: #616160;
  --accent: #F88D50;
  --accent-strong: #ffa670;
  --accent-ink: #1E1E1E;
  --accent-soft: rgba(248, 141, 80, 0.14);
  --good: #4cae7d;
  --good-soft: rgba(76, 174, 125, 0.14);
  --critical: #e8635d;
  --critical-soft: rgba(232, 99, 93, 0.14);
  --radius: 8px;
  --font-display: "Josefin Sans", "Arial Narrow", sans-serif;
  --font-ui: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

html, body { height: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-ui);
  margin: 0;
  min-height: 100vh;
}
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }
a { color: var(--accent); }

/* ---------- shared buttons/inputs (also used by team-gate.html) ---------- */
.primary-btn { font-family: var(--font-ui); background: var(--accent); color: var(--accent-ink); border: none; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s ease, transform .1s ease; }
.primary-btn:hover:not(:disabled) { background: var(--accent-strong); }
.primary-btn:active:not(:disabled) { transform: translateY(1px); }

.ghost-btn { font-family: var(--font-ui); background: transparent; color: var(--text-muted); border: 1px solid var(--border-strong); padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; display: inline-block; }
.ghost-btn:hover { color: var(--text); border-color: var(--text-muted); }

.text-input { width: 100%; font-family: var(--font-mono); font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 12px; }
.text-input:focus { border-color: var(--accent); outline: none; }
.text-input::placeholder { color: var(--text-faint); }

/* ---------- landing page ---------- */
.hub-header { padding: 64px 28px 40px; text-align: center; }
.hub-tally { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 10px var(--accent); display: inline-block; margin-bottom: 18px; }
.hub-title { font-family: var(--font-display); font-weight: 700; font-size: 40px; margin: 0 0 12px; text-wrap: balance; }
.hub-lede { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

.tool-grid { max-width: 920px; margin: 0 auto; padding: 0 28px 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, transform .1s ease; position: relative; }
a.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card.soon { opacity: 0.6; cursor: default; }

.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tool-card-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.tool-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin: 0; flex-grow: 1; }
.tool-card-cta { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }

.badge { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.badge.soon { color: var(--text-faint); background: var(--surface-2); border: 1px solid var(--border); }

.hub-footer { text-align: center; padding: 0 28px 56px; }
.hub-footer a { color: var(--text-faint); font-size: 12.5px; text-decoration: none; }
.hub-footer a:hover { color: var(--text-muted); }

/* ---------- team gate ---------- */
.gate-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.gate-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.gate-lede { color: var(--text-muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 22px; }
.gate-error { font-size: 12.5px; color: var(--critical); margin: -6px 0 14px; display: none; }
.gate-error.visible { display: block; }
.gate-card form { display: flex; flex-direction: column; gap: 14px; }

/* ---------- logs page ---------- */
.logs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; position: sticky; top: 0; background: linear-gradient(180deg, var(--surface), var(--ground)); z-index: 10; }
.logs-toolbar-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.logs-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logs-controls select { font-family: var(--font-ui); font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.logs-status { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.logs-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-right: 6px; }

main.logs-main { max-width: 1080px; margin: 0 auto; padding: 24px 28px 80px; }
.logs-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.logs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.logs-table th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.logs-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.logs-table tr:last-child td { border-bottom: none; }
table.logs-table tr:hover td { background: var(--surface); }
.log-ts { font-family: var(--font-mono); color: var(--text-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-tool { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.log-level { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; padding: 2px 7px; border-radius: 100px; white-space: nowrap; }
.log-level.info { color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); }
.log-level.error { color: var(--critical); background: var(--critical-soft); border: 1px solid var(--critical); }
.log-message { color: var(--text); line-height: 1.5; word-break: break-word; }
.log-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); word-break: break-word; margin-top: 4px; }
.logs-empty { text-align: center; padding: 60px 20px; color: var(--text-faint); font-size: 13.5px; }
