:root {
  --bg: #0b0f14;
  --bg-2: #111821;
  --card: #141c27;
  --line: #223042;
  --text: #e8eef5;
  --muted: #8ea0b4;
  --accent: #2ee6c5;
  --accent-ink: #04211c;
  --warm: #ffb547;
  --radius: 16px;
  --max: 1120px;
  font-family: "Readex Pro", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  line-height: 1.75; font-size: 16px;
  background-image: radial-gradient(900px 400px at 85% -100px, rgba(46,230,197,.12), transparent 70%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,15,20,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 18px;
}
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); white-space: nowrap; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a.active { color: var(--accent); background: rgba(46,230,197,.08); }

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 6px; }
  .nav { width: 100%; padding-bottom: 8px; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.25; margin: 10px 0 14px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 26px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--bg-2);
  cursor: pointer; color: var(--text); font-family: inherit; transition: border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
section { padding: 28px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: 24px; }
.sec-head a { color: var(--accent); font-size: 15px; white-space: nowrap; }
.page-title { padding: 44px 0 10px; }
.page-title h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 40px); }
.page-title p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #12303a, #0f1a26 60%, #2a2010);
  position: relative; display: grid; place-items: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .num { font-size: 46px; font-weight: 800; color: rgba(46,230,197,.35); }
.badge {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff;
  font-size: 12px; padding: 3px 9px; border-radius: 99px;
}

.chip {
  display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 99px;
  background: rgba(46,230,197,.1); color: var(--accent); width: fit-content;
}
.chip.warm { background: rgba(255,181,71,.12); color: var(--warm); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.filters button {
  font-family: inherit; font-size: 14.5px; padding: 7px 14px; border-radius: 99px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.filters button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.search {
  width: 100%; max-width: 420px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-family: inherit; font-size: 15px; margin-top: 18px;
}
.search:focus { outline: none; border-color: var(--accent); }

/* section tiles on home */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { padding: 20px; }
.tile .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46,230,197,.1); color: var(--accent); margin-bottom: 6px;
}
.tile .ico svg { width: 22px; height: 22px; }

/* ---------- prompts ---------- */
.prompt { padding: 18px; gap: 10px; }
.prompt pre {
  margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 14.5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: #cfdae6;
}
.prompt pre[dir="ltr"] { text-align: left; }
.copy.done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- video page ---------- */
.video-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; padding: 36px 0; }
@media (max-width: 900px) { .video-layout { grid-template-columns: 1fr; } }
.player { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player.long { aspect-ratio: 16/9; }
.player.short { aspect-ratio: 9/16; max-width: 360px; margin: 0 auto; }
.player .empty { display: grid; place-items: center; height: 100%; color: var(--muted); padding: 20px; text-align: center; }
.video-layout h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.4; margin: 18px 0 8px; }
.points { padding: 0; list-style: none; margin: 16px 0; display: grid; gap: 8px; }
.points li { padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.points li::before { content: "✓"; color: var(--accent); margin-left: 8px; font-weight: 700; }

.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-box h3 { margin: 0 0 12px; font-size: 17px; }
.side-box + .side-box { margin-top: 16px; }
.product {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px;
}
.product:hover { border-color: var(--warm); }
.product strong { display: block; font-size: 15px; }
.product small { color: var(--warm); }
.product .go { color: var(--warm); font-weight: 600; font-size: 14px; white-space: nowrap; }
.disclosure { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

/* ---------- guide ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: s; position: relative; padding: 16px 64px 16px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; right: 16px; top: 16px; width: 34px; height: 34px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); }

.prose { max-width: 760px; padding-bottom: 40px; }
.prose h2 { font-size: 20px; margin-top: 30px; }
.prose p, .prose li { color: #c6d2de; }

/* ---------- ads ---------- */
.ad-slot { margin: 24px 0; min-height: 0; }
.ad-slot:empty { display: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 30px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.foot-note { width: 100%; font-size: 12.5px; }

.empty-state { color: var(--muted); padding: 40px 0; text-align: center; }
