/* XEEIN sites: the flat dark look of XeeCast TV Suite. No gradients. */
:root {
  --bg: #121316;
  --panel: #1b1d21;
  --panel-2: #22252a;
  --line: #2c2f35;
  --text: #e8e9eb;
  --muted: #9a9ea6;
  --dim: #6c7079;
  --accent: #ff8a1f;
  --accent-ink: #141414;
  --green: #3ecf6e;
  --red: #ff4d4d;
  --radius: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; }
.brand small { color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .top .wrap { gap: 12px; } .nav { gap: 14px; } }

/* sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 96px 0 80px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero-logo { width: 100%; max-width: 280px; margin-left: auto; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { max-width: 120px; margin: 0; order: -1; } }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn:hover { text-decoration: none; background: var(--panel-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #ff9a3d; }
.btn svg { width: 18px; height: 18px; }
.btn.soon, .btn.soon:hover { background: var(--panel-2); border-color: var(--line); color: var(--dim); cursor: not-allowed; user-select: none; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); }
a.card:hover { text-decoration: none; border-color: var(--accent); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card .head img { width: 44px; height: 44px; flex: none; }
.card .head h3 { margin: 0; }
.card .tag { font-size: .75rem; color: var(--dim); font-weight: 500; }
.card.big { padding: 32px; display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; }
.card.big img { width: 96px; height: 96px; }
@media (max-width: 560px) { .card.big { grid-template-columns: 1fr; } .card.big img { width: 64px; height: 64px; } }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.pill.accent { color: var(--accent); border-color: rgba(255,138,31,.4); }
.pill.green { color: var(--green); border-color: rgba(62,207,110,.4); }

/* lists */
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
ul.ticks li b { color: var(--text); font-weight: 600; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; gap: 32px; } }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 1.6rem; color: var(--accent); font-weight: 800; }
.stat span { color: var(--muted); font-size: .875rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* table */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table td, .table th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; width: 36%; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }

/* steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 60px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
ol.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
ol.steps li b { color: var(--text); }

code { font-family: "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; color: var(--text); }

/* screenshots: a flat window frame */
.shot { margin: 0; background: #0d0e10; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.shot img { width: 100%; height: auto; display: block; }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar span:first-child { background: var(--accent); }
.shot-bar b { margin-left: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.hero-shot { margin-top: 56px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; }
.tabs button { font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.gallery a:hover { text-decoration: none; }
.gallery a img { cursor: zoom-in; }
.shot-text img { width: 48px; height: 48px; margin-bottom: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; gap: 20px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--dim); font-size: .875rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* placeholders: dashed orange only on this PC (localhost), never online */
html.draft .todo { outline: 1px dashed rgba(255,138,31,.55); outline-offset: 2px; }
