:root {
  --bg: #1b1f1d;
  --bg2: #222826;
  --card: #1f2523;
  --line: rgba(255, 255, 255, .09);
  --text: #eef3f0;
  --muted: #98a59f;
  --green: #38b28e;
  --green-d: #2c9777;
  --red: #ff6464;
  --amber: #f0b64a;
  --radius: 18px;
}
* { 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;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px 20px; background: rgba(27, 31, 29, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; border-radius: 7px; background: var(--green); position: relative; }
.mark::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid var(--bg); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px;
  transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap;
}
.btn.primary { background: var(--green); color: #0f1a15; }
.btn.primary:hover { background: #46c39f; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .22); }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }
.btn.danger { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.danger:hover { border-color: var(--red); color: var(--red); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.wide { width: 100%; margin-top: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero {
  text-align: center; padding: 84px 20px 72px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(56, 178, 142, .2), transparent 70%);
}
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 7vw, 64px); line-height: 1.05; letter-spacing: -.03em; max-width: 14em; margin: 0 auto 20px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 auto; font-size: 17px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* sections */
.block { max-width: 980px; margin: 0 auto; padding: 56px 20px; }
.block > h2, .final h2 { font-size: clamp(26px, 4.5vw, 40px); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 26px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); margin-bottom: 22px; }
.tab { background: none; border: 0; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tab.active { background: var(--green); color: #0f1a15; }
.count { margin-left: 6px; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.usecase { font-size: 11px; letter-spacing: .14em; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.card h3 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; margin-top: 18px; }
.row input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); font-size: 15px;
}
.row input::placeholder { color: #6b7873; }
.err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 0; }
.err:empty { display: none; }

.media { display: flex; gap: 16px; margin: 22px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.media img { width: 160px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--bg); flex: none; }
.media h4 { font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.label { font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 14px; font-weight: 600; }
.chip.on { border-color: var(--green); color: var(--green); background: rgba(56, 178, 142, .12); }
.job { margin-top: 20px; }
.bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s; }

.head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.head h3 { font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.list { display: grid; gap: 12px; }
.empty { color: var(--muted); font-size: 14px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); }

.ch { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ch.live { border-color: var(--green); box-shadow: 0 0 0 1px rgba(56, 178, 142, .25), 0 0 30px rgba(56, 178, 142, .12); }
.av { width: 46px; height: 46px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.grow { flex: 1; min-width: 0; }
.grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.pill.live, .pill.recording { background: rgba(255, 100, 100, .15); color: var(--red); }
.pill.ready { background: rgba(56, 178, 142, .16); color: var(--green); }
.pill.failed, .pill.interrupted { background: rgba(240, 182, 74, .15); color: var(--amber); }
.pill.live::before, .pill.recording::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill::before { animation: none !important; } html { scroll-behavior: auto; } }
.x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px 8px; }
.x:hover { color: var(--red); }

.q { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.q img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--bg); flex: none; }
.q .grow b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.q .acts { display: flex; gap: 8px; flex: none; }

/* numbered + standard */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.numbers article, .standard article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.num { display: block; font-size: 34px; font-weight: 700; color: var(--green); letter-spacing: -.02em; margin-bottom: 12px; }
.numbers h4 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.numbers p, .standard p { color: var(--muted); font-size: 15px; }
.standard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.standard h4 { font-size: 13px; color: var(--green); margin-bottom: 8px; }
.standard h5 { font-size: 18px; margin-bottom: 8px; line-height: 1.25; }

.final { text-align: center; padding: 72px 20px; background: radial-gradient(50% 90% at 50% 100%, rgba(56, 178, 142, .22), transparent 70%); }
.final .sub { margin-bottom: 26px; }
footer { border-top: 1px solid var(--line); padding: 32px 20px; max-width: 980px; margin: 0 auto; display: grid; gap: 12px; }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 56px 18px 48px; }
  .numbers { grid-template-columns: 1fr; }
  .standard { grid-template-columns: 1fr 1fr; }
  .row { flex-direction: column; }
  .media { flex-direction: column; }
  .media img { width: 100%; }
  .q { flex-wrap: wrap; }
  .q img { width: 100%; }
  .q .acts { width: 100%; }
  .q .acts .btn { flex: 1; }
  .card { padding: 20px; }
}
@media (max-width: 460px) { .standard { grid-template-columns: 1fr; } }

/* drive + quality select */
.card.drive { margin-bottom: 22px; padding: 20px; }
.drive-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drive-top b { font-size: 18px; }
.drive-top .acts { display: flex; gap: 8px; }
.card.drive .muted { margin-top: 8px; }
.drivecode { margin-top: 10px; font-size: 15px; }
.drivecode:empty { display: none; }
.drivecode a { color: var(--green); text-decoration: underline; }
.drivecode b { font-size: 20px; letter-spacing: .12em; color: var(--green); }
.switch { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--green); }
.qsel { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.qsel:hover { border-color: var(--green); }

.cookies { margin-bottom: 22px; padding: 18px 20px; }
.cookies summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cookies .muted { margin: 12px 0; }
.cookies textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; resize: vertical; margin-bottom: 10px; }
.cookies input[type=file] { font-size: 13px; color: var(--muted); }
.cookies .row { margin-top: 12px; }
.cookies .pill.on { background: rgba(56, 178, 142, .16); color: var(--green); }
