/* SlicBeat - Dark Tracker Aesthetic */

:root {
  --bg-primary: #06060c;
  --bg-secondary: #0c0c16;
  --bg-card: #10101c;
  --bg-card-hover: #161626;
  --bg-sidebar: #0a0a14;
  --border: #1a1a2e;
  --border-glow: #1e1e3a;

  --text-primary: #e0e0f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;

  --accent-green: #00ff88;
  --accent-orange: #ff8800;
  --accent-cyan: #00ddff;
  --accent-purple: #aa66ff;
  --accent-pink: #ff4488;

  --glow-green: 0 0 20px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.1);
  --glow-orange: 0 0 20px rgba(255, 136, 0, 0.3), 0 0 60px rgba(255, 136, 0, 0.1);
  --glow-cyan: 0 0 20px rgba(0, 221, 255, 0.3), 0 0 60px rgba(0, 221, 255, 0.1);

  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ─── HEADER ─── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 6, 12, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.header-logo span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--accent-green);
}

/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 40%, rgba(0, 255, 136, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 30% 60%, rgba(0, 221, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 70% 50%, rgba(255, 136, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: var(--glow-green), 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(16px, 3vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--accent-orange);
  border-radius: 100px;
  color: var(--accent-orange);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: var(--glow-orange);
  box-shadow: 0 0 20px rgba(255, 136, 0, 0.15);
  position: relative;
  z-index: 1;
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 136, 0, 0.15); }
  50% { box-shadow: 0 0 30px rgba(255, 136, 0, 0.3); }
}

.hero-sub {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ─── SECTIONS ─── */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  text-align: center;
  margin-bottom: 48px;
}

/* ─── FEATURE GRID ─── */

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

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

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-family: var(--font-sans);
}

.feature-card .accent-green { color: var(--accent-green); }
.feature-card .accent-orange { color: var(--accent-orange); }
.feature-card .accent-cyan { color: var(--accent-cyan); }
.feature-card .accent-purple { color: var(--accent-purple); }
.feature-card .accent-pink { color: var(--accent-pink); }

/* ─── SPECS BAR ─── */

.specs-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.specs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.spec-item {
  text-align: center;
  min-width: 100px;
}

.spec-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  display: block;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ─── SYNTH ENGINES ─── */

.engines-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.engine-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.engine-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.engine-category h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.engine-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.engine-list li {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  padding-left: 16px;
  position: relative;
}

.engine-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── CTA ─── */

.cta-section {
  text-align: center;
  padding: 100px 24px;
}

.cta-title {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-green);
  border-radius: 12px;
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-appstore:hover {
  background: rgba(0, 255, 136, 0.08);
  box-shadow: var(--glow-green);
}

.cta-appstore svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ─── FOOTER ─── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-green);
}

/* ─── DOCS PAGE ─── */

.docs-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 60px;
}

.docs-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0;
  z-index: 100;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 4px;
}

.sidebar-section a {
  display: block;
  padding: 8px 24px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  border-left: 2px solid transparent;
}

.sidebar-section a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
  border-left-color: var(--accent-green);
}

.sidebar-section a.active {
  color: var(--accent-green);
  border-left-color: var(--accent-green);
  background: rgba(0, 255, 136, 0.04);
}

.sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 24px 6px;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1.5px solid var(--accent-green);
  border-radius: 50%;
  color: var(--accent-green);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-green);
}

.docs-content {
  flex: 1;
  margin-left: 260px;
  padding: 40px 48px 80px;
  max-width: 900px;
}

.docs-content h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.docs-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: 1px;
}

.docs-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.docs-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.docs-content p {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.8;
  margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 20px;
}

.docs-content li {
  margin-bottom: 4px;
}

.docs-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-green);
}

.docs-content .info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.7;
}

.docs-content .info-box strong {
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Effects reference table */
.fx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 12px;
}

.fx-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.fx-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.fx-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-orange);
}

.fx-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .docs-content {
    margin-left: 0;
    padding: 32px 20px 80px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .engine-categories {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    gap: 20px;
  }

  .spec-value {
    font-size: 24px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .specs-grid {
    gap: 16px;
  }

  .spec-item {
    min-width: 80px;
  }
}
