/* vcam documentation site */

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #22263a;
  --text: #e4e6ed;
  --text-muted: #9299b0;
  --accent: #6c8cff;
  --accent-hover: #8ba3ff;
  --accent-glow: rgba(108, 140, 255, 0.15);
  --border: #2a2e3e;
  --success: #4ade80;
  --warning: #fbbf24;
  --premium: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --max-width: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow: visible;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-brand img { width: 32px; height: 32px; border-radius: 6px; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(108, 140, 255, 0.2);
  display: block;
}

/* Dark circle — sits behind the blade layer, revealed when blades close */
.hero-iris-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68%;
  height: 68%;
  transform: translate(-50%, -50%);
  background: #1a2744;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Blade layer — same PNG clipped to just the circular aperture area */
.hero-blades {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  clip-path: circle(34% at 50% 50%);
  pointer-events: none;
  z-index: 2;
}

.hero-blades.blade-close {
  animation: blade-close 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes blade-close {
  0%   { transform: rotate(0deg) scale(1); }
  42%  { transform: rotate(40deg) scale(0.1); }
  58%  { transform: rotate(40deg) scale(0.1); }
  100% { transform: rotate(0deg) scale(1); }
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 640px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.card .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.badge-free { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.badge-premium { background: rgba(245, 158, 11, 0.15); color: var(--premium); }

/* Feature highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.highlight {
  text-align: center;
  padding: 32px 20px;
}

.highlight-icon {
  margin-bottom: 16px;
  display: block;
  color: var(--accent);
  margin-left: auto;
  margin-right: auto;
}

.highlight h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.highlight p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Install steps */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.install-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.install-step p { font-size: 14px; color: var(--text-muted); }

code, .code-block {
  font-family: var(--font-mono);
  font-size: 14px;
}

.code-block {
  background: #12141c;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 10px;
  overflow-x: auto;
  color: var(--accent);
}

code {
  background: rgba(108, 140, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer { display: block; }

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }

/* Screenshots placeholder */
.screenshot-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 80px 40px;
  text-align: center;
  color: var(--text-muted);
}

/* Kebab menu button — hidden on desktop */
.nav-kebab {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-kebab svg { pointer-events: none; }

/* Responsive — mobile/tablet */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero .tagline { font-size: 17px; }
  .hero { padding: 60px 20px 50px; }
  .section { padding: 50px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .install-step { flex-direction: column; }

  /* Hide inline nav links, show menu button */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    min-width: 180px;
    box-shadow: var(--shadow);
    z-index: 200;
    overflow: visible;
    max-height: none;
    list-style: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { list-style: none; }

  .nav-links a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
  }

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

  .nav-kebab { display: flex; }
  .nav-inner { position: relative; }
}

@media (max-width: 480px) {
  .highlights { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
