/* Analog Sound Synthesis Voyager Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
header {
  background: #1a1a2e;
  color: white;
  padding: 1rem 0;
  border-bottom: 3px solid #4a90e2;
}
header h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
nav a {
  color: #eaeaea;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}
nav a:hover { color: #4a90e2; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.hero {
  background: linear-gradient(120deg, #4a90e2 0%, #27ae60 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.95; }
.cta { background: #e67e22; color: white; border: none; padding: 0.8rem 2rem; font-size: 1rem; border-radius: 4px; cursor: pointer; transition: background 0.2s; }
.cta:hover { background: #d35400; }
.main-content { padding: 2rem 0; }
section { margin-bottom: 2.5rem; }
.builder-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: start; }
.controls {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.controls h3 { font-size: 1.1rem; margin-bottom: 1rem; color: #333; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }
.controls label { display: block; margin-bottom: 0.8rem; font-size: 0.9rem; }
.controls input[type="range"] { width: 100%; margin: 0.5rem 0; }
.controls select { width: 100%; padding: 0.4rem; border-radius: 4px; border: 1px solid #ddd; }
.small-btn { background: #f0f0f0; border: 1px solid #ddd; padding: 0.4rem 0.8rem; font-size: 0.85rem; border-radius: 4px; cursor: pointer; margin-top: 0.5rem; }
.small-btn:hover { background: #e0e0e0; }
.signal-flow { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.patch-canvas { padding: 1rem; }
.patch-diagram { width: 100%; height: 180px; }
.module { stroke: #333; stroke-width: 1; }
.module:hover { opacity: 0.9; cursor: pointer; }
.preset-selector { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #eee; }
preset-selector label { display: block; margin-bottom: 0.5rem; }
preset-selector select { width: calc(100% - 100px); display: inline-block; }
.preset-selector button { display: inline-block; padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.presets-gallery { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.preset-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.preset-card { border: 1px solid #ddd; border-radius: 6px; padding: 1rem; }
.preset-card h4 { font-size: 1rem; margin-bottom: 0.5rem; color: #333; }
.preset-card p { font-size: 0.85rem; color: #666; margin-bottom: 0.8rem; }
.play-preview { background: #4a90e2; color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
.play-preview:hover { background: #357abd; }
.export-save { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; padding: 1.5rem; }
.export-controls { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
.cta-secondary { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 0.6rem 1.2rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.cta-secondary:hover { background: rgba(255,255,255,0.3); }
#patchName { margin-top: 1rem; font-size: 0.95rem; }
.how-it-works { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.how-it-works h3 { font-size: 1.2rem; margin-bottom: 1rem; color: #333; }
.how-it-works p { margin-bottom: 1rem; font-size: 0.95rem; }
footer {
  background: #1a1a2e;
  color: #999;
  padding: 1.5rem 0;
  border-top: 1px solid #333;
  text-align: center;
}
footer a { color: #4a90e2; text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .hero h2 { font-size: 1.5rem; }
  .builder-layout { grid-template-columns: 1fr; }
  .export-controls { flex-direction: column; }
  nav a { margin: 0 0.5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0.5rem; }
  .hero { padding: 2rem 0; }
  header h1 { font-size: 1.2rem; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
