/* ================================================
   Stagehand MIDI Master – Custom Theme
   Dark Synth / Electronic Music Aesthetic
   ================================================ */

:root {
  --bg-primary:    #07071a;
  --bg-secondary:  #0d0d26;
  --bg-card:       rgba(16, 16, 40, 0.85);
  --bg-card-hover: rgba(24, 24, 56, 0.95);
  --color-cyan:    #00d4ff;
  --color-purple:  #9b2eff;
  --color-pink:    #ff2aaa;
  --color-text:    #cccce8;
  --color-muted:   #6668a0;
  --color-border:  rgba(0, 212, 255, 0.18);
  --color-border-strong: rgba(0, 212, 255, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --glow-cyan:  0 0 18px rgba(0, 212, 255, 0.45);
  --glow-soft:  0 0 40px rgba(0, 212, 255, 0.12);
  --transition: all 0.25s ease;
}

/* ── Reset & Base ─────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle grid overlay on the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container, .container-fluid, nav, section, footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: #fff; text-shadow: var(--glow-cyan); }

::selection {
  background: var(--color-purple);
  color: #fff;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 3px;
}

/* ── Navbar ───────────────────────────────────── */

.navbar {
  background: rgba(7, 7, 26, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-cyan) !important;
  letter-spacing: 0.05em;
  text-shadow: var(--glow-cyan);
}
.navbar-brand span { color: #fff; }

.navbar-nav .nav-link {
  color: var(--color-text) !important;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem !important;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover {
  color: var(--color-cyan) !important;
  background: rgba(0, 212, 255, 0.07);
}

.navbar-toggler {
  border-color: var(--color-border);
  padding: 4px 8px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 212, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language switcher */
.lang-btn {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-cyan);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-btn:hover {
  background: var(--color-cyan);
  color: var(--bg-primary);
  box-shadow: var(--glow-cyan);
}

/* ── Hero ─────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(155, 46, 255, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
    var(--bg-primary);
  padding: 7rem 0 4rem;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* App Store badge */
.appstore-wrap {
  display: inline-block;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  position: relative;
  min-width: 200px;
  transition: var(--transition);
}
.appstore-badge .badge-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.4;
}
.appstore-badge .badge-text-wrap {
  text-align: left;
}
.appstore-badge .badge-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.appstore-badge .badge-main {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}
.appstore-badge .coming-soon-tag {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--color-purple);
  color: #fff;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15), 0 30px 80px rgba(0,0,0,0.5);
  max-width: 100%;
}
.hero-img-frame img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Section Base ─────────────────────────────── */

section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* Divider line */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
  margin: 0;
}

/* ── Features ─────────────────────────────────── */

#features {
  background: var(--bg-secondary);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-cyan));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--color-border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--glow-soft);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}

/* SVG icons for features */
.feature-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-cyan);
  fill: none;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
  line-height: 1.65;
}

/* ── Screenshots ──────────────────────────────── */

#screenshots {
  background: var(--bg-primary);
}

.carousel-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 0 80px rgba(0, 212, 255, 0.1), 0 40px 100px rgba(0,0,0,0.6);
}

#screenshotCarousel .carousel-item img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  opacity: 1;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,212,255,0.15);
  border-radius: 50%;
  padding: 20px;
  background-size: 40%;
  border: 1px solid var(--color-border-strong);
  transition: var(--transition);
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0,212,255,0.3);
  box-shadow: var(--glow-cyan);
}

.carousel-indicators {
  bottom: -2.2rem;
}
.carousel-indicators [data-bs-target] {
  background-color: var(--color-border-strong);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  border: none;
  opacity: 0.5;
  transition: var(--transition);
}
.carousel-indicators .active {
  background-color: var(--color-cyan);
  opacity: 1;
  box-shadow: 0 0 8px var(--color-cyan);
}

/* Thumbnail strip below carousel */
.screenshot-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}
.screenshot-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}
.screenshot-thumb:hover,
.screenshot-thumb.active {
  opacity: 1;
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* ── About / Description ──────────────────────── */

#about {
  background: var(--bg-secondary);
}

.about-text p {
  color: var(--color-text);
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cyan);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.75;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spec-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before {
  content: '▸';
  color: var(--color-cyan);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── Contact Page ─────────────────────────────── */

#contact-section {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 70%),
    var(--bg-primary);
  padding: 7rem 0 4rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 560px;
  margin: 0 auto;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  color: var(--color-cyan);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  margin-top: 1rem;
  transition: var(--transition);
}
.contact-email-link:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
  box-shadow: var(--glow-cyan);
}
.contact-email-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── Footer ───────────────────────────────────── */

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-cyan);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.footer-links a {
  color: var(--color-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--color-cyan); }

.footer-copy {
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ── Utilities ────────────────────────────────── */

.text-cyan { color: var(--color-cyan) !important; }
.text-muted-custom { color: var(--color-muted) !important; }

.btn-primary-custom {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-cyan) 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.btn-primary-custom:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(155, 46, 255, 0.4);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-cyan);
  font-weight: 500;
  padding: 0.65rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn-outline-custom:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--color-cyan);
  color: #fff;
}

/* ── Language visibility ──────────────────────── */

.lang-en [data-lang="de"] { display: none !important; }
.lang-de [data-lang="en"] { display: none !important; }

/* ── Responsive ───────────────────────────────── */

@media (max-width: 767.98px) {
  section { padding: 3.5rem 0; }
  #hero { padding-top: 6rem; }
  .hero-title { font-size: 2rem; }
  .hero-lead { font-size: 1rem; }
  .hero-visual { margin-top: 2.5rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .footer-links { gap: 0.25rem 1rem; }
}

@media (max-width: 575.98px) {
  .screenshot-thumb { width: 60px; height: 42px; }
  .lang-btn { font-size: 0.72rem; padding: 3px 9px; }
}
