:root {
  --bg: #070b14;
  --surface: #0f172a;
  --elevated: #162036;
  --border: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --grad: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #4f46e5 100%);
  --success: #34d399;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 45%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
code, .mono { font-family: "Cascadia Code", Consolas, monospace; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-title {
  display: block;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 14.5px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--elevated);
  border-color: var(--border);
  color: var(--text);
}

/* Hero */
.hero {
  padding: 58px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-link { color: var(--accent); font-weight: 600; }
.meta-link:hover { text-decoration: underline; }

.asset-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #fbbf24;
  min-height: 18px;
}

/* Video Overlay Interactive Preview */
.video-player-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.video-screen {
  position: relative;
  height: 335px;
  background: linear-gradient(145deg, #0b132b, #172554);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.25), transparent 60%);
}

.video-center-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 20px;
  padding-left: 4px;
}

.rdm-float-demo {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rdm-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.rdm-pill-btn svg { width: 13px; height: 13px; }

.rdm-format-menu {
  margin-top: 6px;
  width: 224px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.rdm-format-menu.open { display: flex; }

.menu-cap {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  padding: 3px 7px 5px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
}

.rdm-format-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
}

.rdm-format-menu button:hover { background: rgba(56, 189, 248, 0.18); }

.rdm-format-menu .tag {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.35);
  color: #7dd3fc;
  margin-right: 4px;
}

.rdm-format-menu .tag.audio {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.rdm-format-menu small { color: var(--muted); font-size: 10px; }

.video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--elevated);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.demo-msg { color: var(--success); font-weight: 600; }

/* Sections */
.section { padding: 54px 0; }
.section-alt { background: rgba(15, 23, 42, 0.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { margin: 0 0 8px; font-size: 28px; }
.section-head p { margin: 0; color: var(--muted); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card-icon { font-size: 24px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }

.format-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fmt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fmt-box strong { font-size: 20px; color: var(--accent); }
.fmt-box.audio strong { color: var(--success); }
.fmt-box.highlight { border-color: rgba(56, 189, 248, 0.5); background: rgba(37, 99, 235, 0.12); }
.fmt-box span { font-size: 12px; color: var(--muted); }

/* Guide Page */
.page-pad { padding: 48px 20px; }
.guide-hero { margin-bottom: 34px; }
.guide-hero h1 { margin: 0 0 10px; font-size: 34px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card h3 { margin: 0 0 6px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.step-card code { background: var(--elevated); padding: 1px 5px; border-radius: 4px; color: var(--accent); }

.tip-box { margin-top: 10px; }
.code-block {
  background: #050811;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--accent);
  overflow-x: auto;
}

/* Footer */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid, .cards-grid, .steps-grid { grid-template-columns: 1fr; }
  .format-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}