/* ══════════════════════════════════════════════════════════════
   MidiPdfView — Marketing Site Styles
   Dark, indie aesthetic. Amber accent. Space Grotesk headings.
══════════════════════════════════════════════════════════════ */

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

:root {
  --dark:       #0a0a0a;
  --dark-2:     #0f0f0f;
  --dark-3:     #161616;
  --dark-4:     #202020;
  --border:     #272727;
  --text:       #f0f0f0;
  --text-dim:   #888;
  --text-muted: #444;
  --amber:      #f5a623;
  --amber-glow: rgba(245, 166, 35, .10);
  --green:      #3dd68c;
  --font-head:  'Space Grotesk', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --max-w:      1100px;
  --section-py: 96px;
  --radius:     3px;
  --radius-lg:  6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle film-grain overlay — gives that indie/analog feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
}

.amber { color: var(--amber); }

a { color: inherit; }


/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-amber {
  background: var(--amber);
  color: #000;
  border-color: var(--amber);
}
.btn-amber:hover {
  background: #fbb84a;
  border-color: #fbb84a;
  box-shadow: 0 4px 28px rgba(245, 166, 35, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: #484848;
  background: rgba(255,255,255,.04);
}

.btn-lg    { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }


/* ── Layout ──────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 740px; }

.section     { padding: var(--section-py) 0; }
.section-alt { background: var(--dark-2); }

.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.18;
}

.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}


/* ── Scroll reveal ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background .3s, border-color .3s, padding .3s;
}
#nav.scrolled {
  background: rgba(10, 10, 10, .92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
  margin-right: auto;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 36px;
  line-height: 1;
}
.logo-midi { color: var(--amber); }
.logo-pdf  { color: var(--text); }
.logo-view { color: var(--text-dim); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .18s;
}
.nav-links a:hover { color: var(--text); }

.nav-buy { padding: 8px 18px; font-size: 13px; }


/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid background */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, black 0%, transparent 100%);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--amber);
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.72;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-footnote {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .02em;
}


/* ── App Mockup ──────────────────────────────────────────────── */

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

.mockup-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(245,166,35,.14) 0%, transparent 70%);
  pointer-events: none;
}

.app-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: #131313;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 32px 80px rgba(0,0,0,.75);
}

.mockup-chrome {
  background: #1c1c1c;
  border-bottom: 1px solid #282828;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }
.mockup-titlebar {
  font-family: var(--font-head);
  font-size: 11px;
  color: #484848;
  margin-left: 6px;
}

.mockup-tabbar {
  background: #0e0e0e;
  border-bottom: 1px solid #202020;
  display: flex;
}
.mockup-tab {
  padding: 7px 14px;
  font-size: 11px;
  font-family: var(--font-head);
  color: #484848;
  border-right: 1px solid #1e1e1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.mockup-tab.active {
  background: #131313;
  color: #d0d0d0;
  border-bottom: 2px solid var(--amber);
}
.mockup-tab.dim { color: #2e2e2e; font-size: 10px; max-width: 32px; }

.mockup-viewer {
  display: flex;
  gap: 3px;
  background: #3a3a3a;
  padding: 10px;
  min-height: 230px;
}
.mockup-page {
  flex: 1;
  background: #f7f4ee;
  border-radius: 2px;
  padding: 12px 10px;
  overflow: hidden;
}

.fake-score {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.score-title-bar {
  width: 55%;
  height: 5px;
  background: #c8c4bc;
  border-radius: 2px;
  margin: 0 auto 6px;
}
.staff-system {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 3px 0;
}
.sl {
  height: 1px;
  background: #b8b4ac;
}

.mockup-toolbar {
  background: #1c1c1c;
  border-top: 1px solid #282828;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-head);
  color: #484848;
}
.tb-btn   { color: #707070; }
.tb-info  { color: #555; flex-shrink: 0; }
.tb-spacer { flex: 1; }
.tb-chip {
  padding: 2px 8px;
  border: 1px solid #303030;
  border-radius: 2px;
  font-size: 10px;
  color: #555;
}
.active-chip { border-color: var(--amber); color: var(--amber); }

/* MIDI connected badge */
.midi-badge {
  position: absolute;
  bottom: -18px;
  right: 12px;
  background: #141414;
  border: 1px solid #252525;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-head);
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  white-space: nowrap;
}
.midi-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

.scroll-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 48px;
  position: relative;
  z-index: 1;
  animation: fadedown 2.5s ease-in-out infinite;
}
@keyframes fadedown {
  0%, 100% { opacity: .4; transform: translateY(0); }
  50%       { opacity: .8; transform: translateY(4px); }
}


/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 52px;
}

.feature-card {
  background: var(--dark);
  padding: 36px 30px;
  transition: background .18s;
}
.feature-card:hover { background: var(--dark-3); }

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--amber);
  margin-bottom: 18px;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}


/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 52px;
}

.step {
  flex: 1;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--dark);
}
.step-arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: 20px;
  padding: 0 14px;
  flex-shrink: 0;
  margin-top: -16px;
}

.step-num {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--amber);
  opacity: .2;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}


/* ══════════════════════════════════════════
   HARDWARE
══════════════════════════════════════════ */

.hardware-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 0;
}
.hardware-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hardware-emoji { font-size: 40px; }
.hardware-info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.hardware-info span {
  font-size: 14px;
  color: var(--text-dim);
}


/* ══════════════════════════════════════════
   PRICING
══════════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 52px auto 0;
}

.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}

.pricing-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
}
.pricing-featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 20px 60px rgba(245,166,35,.1);
}

.pricing-best {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #000;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.price-amount {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--text-dim);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pricing-features li {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  position: absolute;
  left: 0;
}
.pricing-features li.ok {
  color: var(--text);
}
.pricing-features li.ok::before {
  content: '✓';
  color: var(--green);
}
.pricing-features li.no {
  color: var(--text-muted);
}
.pricing-features li.no::before {
  content: '✗';
  color: var(--text-muted);
}

.pricing-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}


/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.faq-item { background: var(--dark-2); }

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .15s, color .15s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary {
  color: var(--amber);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--dark-3); }

.faq-body {
  padding: 0 24px 20px;
}
.faq-body p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.72;
}
.faq-body p a {
  color: var(--amber);
  text-decoration: none;
}
.faq-body p a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */

#footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand { max-width: 220px; }
.footer-brand .nav-logo { display: inline-block; margin-bottom: 10px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .18s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p       { font-size: 12px; color: var(--text-muted); }
.footer-platforms      { font-family: var(--font-head); color: var(--text-dim) !important; }


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow {
    align-self: flex-start;
    margin-left: 44px;
    padding: 4px 0;
    transform: rotate(90deg);
  }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  :root { --section-py: 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-headline { font-size: 36px; }
  .hardware-banner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
