/* CMVideo landing site. Cool-shade palette mirrors the app's Theme. */

:root {
  --bg: #0d1018;
  --bg-deep: #090b12;
  --surface: #171a26;
  --surface-hi: #222637;
  --surface-deep: #0e1119;
  --border: #262a3b;
  --border-hi: #3a4159;
  --border-glow: #3b3a8a;

  --accent: #6366f1;       /* indigo-500 */
  --accent-hi: #818cf8;
  --accent-lo: #4f46e5;
  --accent-glow: #a78bfa;  /* violet-400 */
  --cool: #22d3ee;         /* cyan-400  */
  --cool-lo: #06b6d4;

  --text: #eef0f7;
  --text-muted: #9aa0b4;
  --text-dim: #5b6076;

  --success: #34d399;
  --danger: #f87171;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 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.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1100px 600px at 8% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(34, 211, 238, 0.12), transparent 65%),
    radial-gradient(1200px 700px at 50% 110%, rgba(167, 139, 250, 0.1), transparent 70%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: var(--accent-glow); }

code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--text);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- gradient accent strip ---------- */

.accent-strip {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-lo) 0%,
    var(--accent-glow) 50%,
    var(--cool) 100%
  );
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-glow);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.grad-text {
  background: linear-gradient(120deg, var(--accent-hi) 10%, var(--accent-glow) 50%, var(--cool) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-lo), var(--accent));
  color: white;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.35) inset,
    0 12px 32px -10px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hi));
  transform: translateY(-1px);
  color: white;
}
.btn-primary .btn-meta {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.78;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 10px;
  margin-left: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-ghost:hover {
  border-color: var(--accent-glow);
  background: rgba(167, 139, 250, 0.06);
  color: var(--text);
}

.sub-note {
  color: var(--text-dim);
  font-size: 13px;
  margin: 6px 0 0;
}

/* ---------- mock screenshot card ---------- */

.hero-shot {
  position: relative;
}

.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(167, 139, 250, 0.12);
  overflow: hidden;
  transform: rotate(-1deg);
}

.shot-titlebar {
  background: var(--surface-deep);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.shot-title {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.shot-body {
  padding: 22px 22px 24px;
}

.shot-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.shot-tag {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 14px;
}

.shot-strip {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent-glow), var(--cool));
  margin-bottom: 14px;
}

.shot-drop {
  border: 1px dashed var(--border-hi);
  border-radius: 12px;
  background: var(--surface-deep);
  text-align: center;
  padding: 22px 16px;
  margin-bottom: 14px;
}
.shot-arrow {
  font-size: 28px;
  color: var(--accent-glow);
}
.shot-drop-title { font-weight: 600; margin-top: 6px; }
.shot-drop-sub  { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

.shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-deep);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
}
.chip.checked {
  color: var(--text);
  border-color: var(--accent-lo);
  background: rgba(99, 102, 241, 0.13);
}
.chip.pill {
  border-radius: 999px;
  padding: 5px 12px;
}
.chip.pill.on {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}

.shot-btn {
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent-lo), var(--accent));
  color: white;
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: default;
}

/* ---------- features ---------- */

.features {
  padding: 24px 0 56px;
}
.features .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.card-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-glow);
  font-size: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ---------- downloads ---------- */

.downloads {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  background: rgba(13, 16, 24, 0.5);
}
.downloads h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.ver {
  font-size: 14px;
  color: var(--accent-glow);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.muted   { color: var(--text-muted); }
.muted.small { font-size: 13px; color: var(--text-dim); }

.download-grid {
  margin: 22px 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}
.dl-card:hover {
  border-color: var(--accent-glow);
  background: var(--surface-hi);
  transform: translateY(-1px);
  color: var(--text);
}
.dl-card.recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 0 28px -8px rgba(99, 102, 241, 0.5);
}
.dl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-deep);
  border: 1px solid var(--border-hi);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-glow);
  margin-bottom: 12px;
}
.dl-title { font-weight: 700; font-size: 16px; }
.dl-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ---------- how-it-works ---------- */

.how { padding: 36px 0 80px; }
.how h2 {
  margin: 0 0 24px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.how-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-lo), var(--accent-glow));
  color: white;
  font-weight: 700;
  font-size: 16px;
}
.how-list h4 { margin: 0 0 4px; font-size: 16px; }
.how-list p  { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.site-foot .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.dot-sep { color: var(--border-hi); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero { padding: 60px 0 36px; }
  .hero .container,
  .features .container,
  .download-grid,
  .how-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .shot-frame { transform: none; }
  h1 { font-size: clamp(32px, 8vw, 44px); }
}
