/* ============ HERO ============ */
.hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 148, 10, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #A78BFA;
  background: rgba(167, 139, 250, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(167, 139, 250, 0.2);
  animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A78BFA;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ensemble-wordmark {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
  animation: fadeUp 0.8s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ensemble-wordmark::before {
  content: 'ENSEMBLE';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #A78BFA, #EEEDF5 35%, #EEEDF5 65%, #D9AE83);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ensemble-wordmark span { visibility: hidden; }

.hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  animation: fadeUp 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 0.75rem;
  line-height: 1.8;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============ HERO MOCKUP ============ */
.hero-mockup {
  margin-top: 3rem;
  animation: fadeUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.browser-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  transform: perspective(1000px) rotateX(2deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #0A0820;
  border-bottom: 1px solid var(--border-subtle);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  margin-left: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: rgba(167, 139, 250, 0.08);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
}

.browser-content {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem;
  width: 100%;
}

.mockup-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.3s;
}
.mockup-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.mockup-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mockup-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-card-icon svg { width: 18px; height: 18px; }

.mockup-card h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.mockup-swatches {
  display: flex;
  gap: 0.35rem;
}
.mockup-swatch {
  width: 100%;
  height: 28px;
  border-radius: 4px;
}

.mockup-fonts {
  color: rgba(255, 255, 255, 0.7);
}
.mockup-fonts .font-preview {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.25rem;
}
.mockup-fonts .font-name {
  font-size: 0.7rem;
  opacity: 0.6;
}

.mockup-contrast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mockup-contrast-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.mockup-contrast-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}
.mockup-contrast-ratio {
  color: white;
  font-weight: 600;
}

/* ============ SYNC STRIP ============ */
.sync-preview {
  margin-top: 3rem;
  animation: fadeUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sync-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.sync-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #A78BFA, #D9AE83, #A78BFA);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

.sync-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.sync-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.sync-dot {
  color: var(--border-medium);
  font-size: 0.4rem;
}

.sync-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 0.75rem;
}

/* ============ INSTRUMENTS ============ */
.instruments { padding: 5rem 0 4rem; }

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.instrument-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.instrument-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.instrument-card:hover::before { transform: scaleX(1); }
.instrument-card:hover {
  border-color: rgba(196, 133, 10, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.instrument-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: 10px;
  transition: all 0.3s;
  color: var(--text-secondary);
}
.instrument-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.instrument-card:hover .instrument-icon {
  background: var(--brand-glow);
  color: var(--brand-secondary);
}

.instrument-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.instrument-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ============ FLOW SECTION ============ */
.flow-section {
  padding: 4rem 0;
  background: var(--bg-elevated);
  position: relative;
}

.flow-section::before,
.flow-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}
.flow-section::before { top: 0; }
.flow-section::after { bottom: 0; }

.flow-steps {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 1.25rem 0.75rem;
}

.flow-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 12px;
  color: #A78BFA;
  box-shadow: var(--shadow-sm);
}
.flow-step-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.flow-step h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.flow-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

.flow-connector {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-connector svg {
  width: 40px;
  height: 12px;
  overflow: visible;
}
.flow-connector line {
  stroke: #A78BFA;
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
  animation: dashFlow 1.5s linear infinite;
  opacity: 0.5;
}
.flow-connector polygon { fill: #A78BFA; opacity: 0.5; }

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

/* ============ BRAND CTA ============ */
.brand-cta {
  padding: 4rem 0;
  text-align: center;
}

.brand-card {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary), var(--brand-secondary));
  border-radius: 16px 16px 0 0;
}

.brand-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.brand-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.brand-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.brand-price strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============ DOGFOOD ============ */
.dogfood {
  padding: 2rem 0 4rem;
  text-align: center;
}

.dogfood-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.dogfood-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a7c59;
  animation: pulse 2s ease infinite;
}

.instrument-card.visible { opacity: 1; transform: translateY(0); }
.instrument-card:nth-child(1) { transition-delay: 0s; }
.instrument-card:nth-child(2) { transition-delay: 0.05s; }
.instrument-card:nth-child(3) { transition-delay: 0.1s; }
.instrument-card:nth-child(4) { transition-delay: 0.15s; }
.instrument-card:nth-child(5) { transition-delay: 0.2s; }
.instrument-card:nth-child(6) { transition-delay: 0.25s; }
.instrument-card:nth-child(7) { transition-delay: 0.3s; }
.instrument-card:nth-child(8) { transition-delay: 0.35s; }
.instrument-card:nth-child(9) { transition-delay: 0.4s; }

/* ============ NEWSLETTER ============ */
.newsletter-section {
  padding: 4rem 0;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.newsletter-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.newsletter-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.newsletter-form {
  flex-shrink: 0;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.input-group input {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  width: 260px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.newsletter-form .btn {
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-form .spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

.newsletter-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

.newsletter-status.success {
  color: #4a7c59;
}

.newsletter-status.error {
  color: #c0392b;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .instrument-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 0 2rem; }
  .mockup-grid { grid-template-columns: 1fr; padding: 1.5rem; }
  .browser-frame { transform: none; }
  .sync-strip { flex-direction: column; align-items: stretch; }
  .sync-dot { display: none; }
  .flow-steps { flex-direction: column; gap: 0.5rem; }
  .flow-connector { transform: rotate(90deg); }
  .brand-card { padding: 2rem 1.5rem; }
  .newsletter-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .input-group { flex-direction: column; }
  .input-group input { width: 100%; }
}

@media (max-width: 480px) {
  .instrument-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
}

/* ---- Inline style replacements ---- */
.initially-hidden { display: none; }
.nav-badge-inline { margin: 0; animation: none; }
.ml-sm { margin-left: 0.5rem; }

/* Nav restructure support (bare nav-links was on <nav>, now on <ul>) */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mockup swatches */
.mockup-icon-harmony { background: rgba(212, 148, 10, 0.2); }
.mockup-icon-duet { background: rgba(91, 138, 160, 0.2); }
.mockup-icon-pitch { background: rgba(74, 124, 89, 0.2); }

.mockup-swatch-amber { background: #d4940a; }
.mockup-swatch-navy { background: #1a5276; }
.mockup-swatch-green { background: #4a7c59; }
.mockup-swatch-purple { background: #8b6bb5; }
.mockup-swatch-red { background: #c0392b; }

.font-preview-serif { font-family: Georgia, serif; }
.font-preview-sans { font-family: system-ui; font-weight: 300; margin-top: 0.5rem; }

.mockup-contrast-sample { background: #1a1408; color: #fdfbf7; }
.mockup-wcag-label { color: #4a7c59; font-size: 0.7rem; }

.sync-swatch-primary { background: #d4940a; }
.sync-swatch-secondary { background: #1a5276; }
.sync-icon-sm { font-size: 0.65rem; opacity: 0.6; }
.sync-icon-md { font-size: 0.7rem; }

/* === webMCP Section === */
.webmcp-section {
    padding: 80px 0;
    text-align: center;
}

.webmcp-section .section-header p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.webmcp-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
