/* ============================================================
   GlowDash Maestro – page styles
   Shell = GlowDash · recognition = Cockpit rail + panel frame
   ============================================================ */

:root {
  --maestro-accent: #38bdf8;
  --maestro-accent-2: #818cf8;
  --maestro-ok: #34d399;
  --maestro-rail: #121820;
  --maestro-rail-edge: rgba(255, 255, 255, 0.08);
  --maestro-panel-bg: #e7eef5;
  /* Override GlowDash zen-gold for the whole Maestro site (badges, nav CTA, links) */
  --accent: #38bdf8;
  --accent-2: #6ea68c;
  --gradient: linear-gradient(135deg, #38bdf8, #6ea68c);
}

/* Section chips (Cockpit / Setup / …) — blue, not zen-gold */
.section-badge {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.22);
  color: var(--maestro-accent);
}

/* ---- Nav tweaks ---- */
.nav__badge-maestro {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #041018;
  background: linear-gradient(135deg, #38bdf8, #6EA68C);
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 4px;
  white-space: nowrap;
}

.nav__links a.is-active {
  color: var(--text);
}

/* ---- Hero ---- */
.maestro-hero {
  position: relative;
  padding: 140px 0 72px;
  overflow: hidden;
}

.maestro-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(700px 420px at 90% 10%, rgba(129, 140, 248, 0.1), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(110, 166, 140, 0.08), transparent 55%);
}

.maestro-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.maestro-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--maestro-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.maestro-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--maestro-ok);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

.maestro-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.maestro-hero h1 .maestro-word {
  background: linear-gradient(135deg, #38bdf8, #6EA68C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.maestro-hero__kicker {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(56, 189, 248, 0.9);
  margin: -4px 0 14px;
}

.maestro-hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 28px;
}

.maestro-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.maestro-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--text-subtle);
}

.maestro-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.maestro-hero__trust svg {
  width: 14px;
  height: 14px;
  color: var(--maestro-accent);
  flex-shrink: 0;
}

/* ---- Cockpit stage (recognition) ---- */
.cockpit {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.08);
  background: var(--maestro-panel-bg);
  min-height: 420px;
}

.cockpit__rail {
  background: var(--maestro-rail);
  border-right: 1px solid var(--maestro-rail-edge);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 12px;
  gap: 4px;
}

.cockpit__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.cockpit__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  flex: 1;
}

.cockpit__nav-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cockpit__btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s, background 0.15s;
}

.cockpit__btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cockpit__btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.cockpit__btn.is-active {
  color: var(--maestro-ok);
  background: rgba(52, 211, 153, 0.1);
}

.cockpit__btn.is-active svg {
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.45));
}

.cockpit__stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #f3f6fa, #e7eef5);
}

.cockpit__chrome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(21, 32, 51, 0.08);
}

.cockpit__chrome-title {
  font-size: 20px;
  font-weight: 800;
  color: #152033;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cockpit__chrome-sub {
  font-size: 12px;
  color: #526277;
  margin-top: 2px;
}

.cockpit__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cockpit__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maestro-ok);
}

.cockpit__viewport {
  position: relative;
  flex: 1;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  background: #e7eef5;
  scrollbar-width: thin;
}

.cockpit__viewport img {
  width: 100%;
  height: auto;
  display: none;
}

.cockpit__viewport img.is-active {
  display: block;
}

.cockpit__hint {
  display: none;
  padding: 8px 16px 12px;
  font-size: 12px;
  color: #8493a6;
  text-align: center;
}

/* ---- Sections ---- */
.maestro-section {
  padding: 88px 0;
}

.maestro-section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

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

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--maestro-accent);
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
}

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

/* ---- Paths (Zwei Wege) ---- */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.path-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.path-card--app {
  border-color: rgba(56, 189, 248, 0.22);
}

.path-card--ha {
  border-color: rgba(56, 189, 248, 0.22);
}

.path-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.path-card--app .path-card__eyebrow { color: var(--accent); }
.path-card--ha .path-card__eyebrow { color: var(--maestro-accent); }

.path-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.path-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.path-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---- Install steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, #38bdf8, #6EA68C);
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
}

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

.step a {
  color: var(--maestro-accent);
}

.step a:hover {
  text-decoration: underline;
}

.step code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.install-note {
  margin-top: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.7;
}

.install-note a {
  color: var(--maestro-accent);
}

.install-note a:hover {
  text-decoration: underline;
}

/* ---- Credit / policy ---- */
.credit-box {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.16);
  text-align: center;
}

.credit-box p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.credit-box a {
  color: var(--maestro-accent);
}

.credit-box a:hover {
  text-decoration: underline;
}

.credit-box__policy {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-subtle);
}

.credit-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  text-align: left;
}

.credit-role {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.credit-role__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maestro-accent);
}

.credit-role strong {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
}

.credit-role span:last-child {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .credit-roles { grid-template-columns: 1fr; }
}

/* ---- Mobile showcase ---- */
.mobile-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.mobile-frame {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  background: #0a0a0a;
  padding: 12px;
}

.mobile-frame img {
  border-radius: 22px;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: #e7eef5;
}

.mobile-copy h3 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-copy p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 440px;
}

.mobile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-pills span {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---- CTA band ---- */
.maestro-cta {
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.maestro-cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(500px 300px at 30% 100%, rgba(56, 189, 248, 0.08), transparent 55%);
}

.maestro-cta .container {
  position: relative;
  z-index: 1;
}

.maestro-cta h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.maestro-cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.maestro-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn--maestro {
  background: linear-gradient(135deg, #38bdf8, #6EA68C);
  color: #041018;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn--maestro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35);
}

/* ---- Footer brand note ---- */
.footer__brand .maestro-footer-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .maestro-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .maestro-hero {
    padding-top: 120px;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .mobile-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .mobile-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .mobile-pills {
    justify-content: center;
  }

  .mobile-frame {
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .cockpit {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .cockpit__rail {
    flex-direction: row;
    padding: 8px 10px;
    gap: 0;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--maestro-rail-edge);
    -webkit-overflow-scrolling: touch;
  }

  .cockpit__logo {
    width: 32px;
    height: 32px;
    margin: 0 8px 0 0;
    flex-shrink: 0;
  }

  .cockpit__nav,
  .cockpit__nav-bottom {
    flex-direction: row;
    width: auto;
    flex: 0 0 auto;
    border: none;
    padding: 0;
    margin: 0;
  }

  .cockpit__nav-bottom {
    margin-left: 4px;
    padding-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cockpit__btn {
    padding: 8px 10px;
    min-width: 56px;
  }

  .cockpit__btn span {
    display: none;
  }

  .cockpit__chrome {
    flex-direction: column;
    align-items: flex-start;
  }

  .cockpit__viewport {
    min-height: 240px;
  }

  .cockpit__hint {
    display: block;
  }

  .maestro-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
