:root {
  --bg-deep: #0a1024;
  --bg-deeper: #060a18;
  --bg-cream: #faf3e1;
  --bg-cream-2: #f3eada;
  --gold: #d4a574;
  --gold-bright: #f5c66f;
  --gold-glow: rgba(212, 165, 116, 0.45);
  --maroon: #5b1d2e;
  --text-dark: #1a1f3a;
  --text-light: #f5e9c9;
  --maestro-grad: linear-gradient(135deg, #0a1024 0%, #1a1240 50%, #2b1230 100%);
  --gold-grad: linear-gradient(135deg, #f5c66f 0%, #d4a574 50%, #a87742 100%);
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
}

h1, h2, h3, h4, h5, .display-3, .display-4, .display-6, .hero-title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
}

.text-gold {
  color: var(--gold-bright) !important;
}

.bg-cream {
  background: var(--bg-cream);
}

.py-md-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 767.98px) {
  .py-md-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ---------- Navbar ---------- */

.maestro-nav {
  background: var(--bg-deeper);
  border-bottom: 1px solid rgba(212, 165, 116, 0.18);
}

.brand-mark {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--gold-bright);
  font-size: 1.6rem;
  margin-right: 0.4rem;
  text-shadow: 0 0 12px var(--gold-glow);
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fdf4dc;
}

.maestro-nav .nav-link {
  color: rgba(245, 233, 201, 0.7);
  font-weight: 500;
}

.maestro-nav .nav-link:hover {
  color: #fff;
}

.maestro-nav .nav-link.active {
  color: var(--gold-bright) !important;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--maestro-grad);
  color: var(--text-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(91, 29, 46, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

.staves {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(245, 233, 201, 0.05) 0,
    rgba(245, 233, 201, 0.05) 1px,
    transparent 1px,
    transparent 16px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: #fdf4dc;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
}

.hero-sub-text,
.hero-sub {
  color: rgba(245, 233, 201, 0.85);
}

.hero-pill {
  display: inline-block;
  background: rgba(212, 165, 116, 0.16);
  border: 1px solid rgba(212, 165, 116, 0.4);
  color: var(--gold-bright);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-sub.hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ---------- Buttons ---------- */

.btn-gold {
  background: var(--gold-grad);
  border: none;
  color: #1a1024;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-grad);
  color: #1a1024;
  filter: brightness(1.08);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-outline-light:hover {
  color: #1a1024;
}

/* ---------- Orchestra SVG ---------- */

.orchestra-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orchestra {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.orchestra .bi-glyph {
  font-family: "bootstrap-icons";
  font-size: 26px;
  fill: var(--gold-bright);
  text-anchor: middle;
  dominant-baseline: middle;
}

.orch-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.4rem;
  line-height: 1;
}

.orchestra .node-label {
  fill: #fdf4dc;
  font-size: 13px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  text-anchor: middle;
  letter-spacing: 0.04em;
}

.orchestra .center-label {
  fill: var(--gold-bright);
  font-size: 14px;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  text-anchor: middle;
  letter-spacing: 0.08em;
}

.orchestra .node circle {
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.orchestra .node:hover circle {
  filter: brightness(1.3) drop-shadow(0 0 8px var(--gold-glow));
}

.orchestra .center-node {
  transform-origin: 300px 200px;
  animation: maestroPulse 3.6s ease-in-out infinite;
}

.orchestra .connections line {
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  animation: dashFlow 4s linear infinite;
}

@keyframes maestroPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -40; }
}

@media (prefers-reduced-motion: reduce) {
  .orchestra .center-node,
  .orchestra .connections line {
    animation: none;
  }
}

/* ---------- Value cards ---------- */

.value-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1024;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px var(--gold-glow);
}

/* ---------- Stats ---------- */

.stats-band {
  background: var(--bg-deep);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(245, 233, 201, 0.05) 0,
    rgba(245, 233, 201, 0.05) 1px,
    transparent 1px,
    transparent 16px
  );
  pointer-events: none;
}

.stats-band > .container {
  position: relative;
}

.stat-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  color: rgba(245, 233, 201, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

/* ---------- How it works ---------- */

.step-num {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1a1024;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px var(--gold-glow);
}

/* ---------- Stack badges ---------- */

.stack-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--text-dark);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.stack-badge .bi {
  color: var(--maroon);
}

/* ---------- Functionality page ---------- */

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.section-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--maestro-grad);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(10, 16, 36, 0.25);
  border: 1px solid rgba(212, 165, 116, 0.3);
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.feature-card .bi {
  color: var(--maroon);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--maestro-grad);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(212, 165, 116, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band > .container {
  position: relative;
}

/* ---------- Footer ---------- */

.maestro-footer {
  background: var(--bg-deeper);
  color: rgba(245, 233, 201, 0.55);
  border-top: 1px solid rgba(212, 165, 116, 0.18);
}
