:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff2e6;
  background: #100806;
  --surface: #1b0f0c;
  --card: #241410;
  --muted: #d6beb0;
  --accent: #ff9572;
  --amber: #f6c999;
  --mint: #a9dac0;
  --line: #654035;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 50% at 65% -5%, #5c1f145c, transparent 70%),
    radial-gradient(ellipse 60% 45% at 15% 45%, #3d181042, transparent 70%),
    #100806;
  overflow-x: clip;
}
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible, audio:focus-visible { outline: 2px solid #ffc5a9; outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }

.header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid #65403599;
  background: #120907d9;
  backdrop-filter: blur(12px);
}
.header-row, .footer, .site-nav, .footer-nav, .brand, .header-right { display: flex; align-items: center; }
.header-row, .footer { justify-content: space-between; gap: 16px; }
.header-row { min-height: 70px; }
.brand { gap: 10px; font-weight: 850; letter-spacing: .09em; white-space: nowrap; text-decoration: none; }
.brand img { border-radius: 50%; border: 1px solid #8a5e50; box-shadow: 0 2px 12px #fb493533; }
.header-right { gap: clamp(10px, 2vw, 24px); min-width: 0; }
.site-nav { gap: clamp(10px, 2vw, 24px); font-size: .92rem; color: var(--muted); }
.site-nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav a:hover, .footer a:hover { color: #fff2e6; }
.site-nav span, .footer span[aria-hidden] { margin-inline-start: 4px; color: var(--accent); }

.lang-switch {
  display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line);
  border-radius: 999px; background: #1d100d; font: 700 .78rem/1 ui-monospace, monospace;
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 30px; min-width: 34px;
  padding: 0 9px; border-radius: 999px; text-decoration: none; color: var(--muted);
  transition: background-color .18s ease, color .18s ease;
}
.lang-switch a[aria-current="page"] { background: var(--accent); color: #1f0e08; }
.lang-switch a:not([aria-current="page"]):hover { color: #fff2e6; }

/* Hero + 3D perspective stage */
.hero-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .48;
  mask-image: radial-gradient(ellipse 85% 75% at 62% 45%, #000 20%, transparent 80%);
}
.grid-plane {
  position: absolute; left: -15%; right: -15%; top: 15%; height: 120%;
  background:
    repeating-linear-gradient(90deg, transparent 0 88px, #ff95721f 89px 90px),
    repeating-linear-gradient(180deg, transparent 0 46px, #f6c99924 47px 49px);
  transform-origin: 50% 25%;
  transform: perspective(680px) rotateX(64deg);
}
body.is-playing .grid-plane {
  background:
    repeating-linear-gradient(90deg, transparent 0 88px, #ff957238 89px 90px),
    repeating-linear-gradient(180deg, transparent 0 46px, #ff957242 47px 49px);
}
.hero {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
  padding-block: clamp(44px, 6.5vw, 92px);
}
.eyebrow, figcaption, .demo-meta, .float-chip, .step-num, .eyebrow-small, .download-meta {
  font: 650 .74rem/1.4 ui-monospace, monospace;
  letter-spacing: .09em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); text-transform: uppercase; margin: 0 0 18px; }
.signal { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 18px #ff6f3eaa; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.65rem, 5.1vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--accent); font-style: normal; }
.intro-copy { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.14rem); line-height: 1.62; max-width: 46ch; margin-block: 20px 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; }
.hero-badges li {
  padding: 5px 11px; border: 1px solid #754a3d; border-radius: 999px;
  background: #23120e; color: #f4dccb; font-size: .82rem;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.secondary-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.button, .button-secondary {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px;
  border-radius: 7px; font-weight: 750; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease, background-color .18s ease;
}
.button {
  border: 0;
  background: linear-gradient(135deg, #ffa483, #f06e48);
  color: #1f0d06;
  box-shadow: 0 8px 24px #fb49353b, inset 0 1px 0 #ffe4d980;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px #fb493554, inset 0 1px 0 #ffe4d980; }
.button-secondary {
  border: 1px solid #8a5646;
  background: linear-gradient(180deg, #2a1813, #1c0f0c);
  color: #fff2e6;
}
.button-secondary:hover { transform: translateY(-2px); border-color: var(--accent); background: #37201a; }

/* 3D Studio Stage */
.studio-stage { position: relative; min-width: 0; perspective: 1400px; transform-style: preserve-3d; }
.studio {
  position: relative;
  min-width: 0;
  background: linear-gradient(150deg, #2a1712, #180d0a);
  border: 1px solid #966152;
  border-radius: 13px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, -4deg));
  box-shadow:
    0 32px 70px #060200cc,
    0 0 85px #c4432a36,
    inset 0 1px 0 #ffe3d324;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease;
}
.studio::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx, 55%) var(--my, 25%), #ffc8b322, transparent 70%);
}
.float-chip {
  position: absolute; z-index: 4; padding: 7px 12px; border-radius: 999px;
  border: 1px solid #9c6a58; background: #1e100cf0; color: var(--amber);
  box-shadow: 0 14px 28px #000000b5, inset 0 1px 0 #ffece026;
  pointer-events: none; white-space: nowrap;
  transform: translateZ(38px);
}
.float-chip.chip-top { top: -14px; right: 18px; }
.float-chip.chip-mid { bottom: 92px; left: -14px; color: #b6eed2; border-color: #4f7b65; background: #111c17f0; }

figcaption, .demo { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
figcaption { padding: 13px 18px; color: var(--muted); text-transform: uppercase; }
figcaption span:first-child { color: var(--accent); }
.preview { display: block; width: 100%; height: auto; background: #150d09; }
.demo {
  padding: 14px 18px; border-top: 1px solid var(--line); scroll-margin-top: 86px;
  flex-wrap: wrap;
}
.demo:target { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0 0 12px 12px; }
.demo-left { min-width: 140px; }
.demo-title { font-weight: 750; margin-bottom: 3px; }
.demo-meta { color: var(--muted); }
.eq-bars { display: flex; align-items: end; gap: 3px; height: 28px; flex: 0 1 110px; }
.eq-bars i {
  flex: 1 1 0; height: calc(var(--lvl, .18) * 100%); min-height: 4px; border-radius: 2px;
  background: linear-gradient(180deg, #ffcab8, #f25f3f);
  transition: height 75ms ease-out;
}
audio { min-width: 0; flex: 1 1 220px; max-width: 295px; height: 42px; }

/* Sections & Story */
.section-block { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section-head { max-width: 68ch; margin-bottom: 28px; }
.eyebrow-small { color: var(--amber); text-transform: uppercase; margin-bottom: 8px; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.95rem); letter-spacing: -.042em; line-height: 1.07; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.04rem; line-height: 1.65; }

.story-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 36px; align-items: start;
}
.story-copy { display: grid; gap: 15px; color: #f0dfd4; font-size: 1.05rem; line-height: 1.68; }
.story-copy p { margin: 0; }
.story-punch {
  padding: 24px; border: 1px solid #8a5646; border-left: 4px solid var(--accent); border-radius: 10px;
  background: linear-gradient(155deg, #2a1712, #180d0a); box-shadow: 0 18px 38px #0000007a;
}
.story-punch-title { font-size: 1.32rem; font-weight: 800; line-height: 1.3; color: #fff2e6; margin-bottom: 10px; }
.story-punch p:last-child { color: var(--muted); line-height: 1.58; font-size: .96rem; }

/* Guided Walkthroughs with Real App Screenshots */
.walkthrough-row {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px 40px; align-items: center;
  margin-bottom: 34px;
}
.walkthrough-row.is-reverse .walkthrough-text { order: 2; }
.walkthrough-text { display: grid; gap: 14px; color: var(--muted); font-size: 1.02rem; line-height: 1.66; }
.walkthrough-text strong { color: #fff2e6; }
.mantra {
  font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; color: var(--accent);
}
.midi-tip {
  padding: 13px 15px; border: 1px solid #597268; border-radius: 8px;
  background: #131f1bf0; color: #d9f3e4; font-size: .94rem; line-height: 1.55;
}
.midi-tip strong { color: #ffffff; }
.hardware-callout {
  margin: 4px 0 0; padding: 16px 18px;
  border: 1px solid #96643d; border-left: 4px solid var(--amber); border-radius: 9px;
  background: linear-gradient(145deg, #2b180e, #1a0f0a);
  color: #f4e2d3; font-size: .97rem; line-height: 1.62;
}
.hardware-callout strong { color: var(--amber); }
.closing-note {
  margin-top: 22px; padding: 18px 22px; border: 1px solid #6a3f34; border-radius: 10px;
  background: #20110df2; color: #fff2e6; font-size: 1.06rem; font-weight: 600; line-height: 1.58;
}

.shot-frame {
  background: linear-gradient(155deg, #281611, #160c0a);
  border: 1px solid #8c594b; border-radius: 11px; overflow: hidden;
  box-shadow: 0 24px 52px #00000099, 0 0 40px #fb49351a;
}
.shot-img { display: block; width: 100%; height: auto; background: #0e0706; }
.shot-mini { margin-top: 16px; border: 1px solid #6b4539; border-radius: 8px; overflow: hidden; }

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

.tilt-card {
  position: relative; padding: 22px; background: linear-gradient(160deg, #251511, #190e0b);
  border: 1px solid var(--line); border-radius: 10px;
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 28px #00000059, inset 0 1px 0 #ffe9dc14;
}
.tilt-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), #ff957221, transparent 70%);
  transition: opacity .2s ease;
}
.tilt-card:hover {
  border-color: #9e6554;
  transform: perspective(900px) rotateX(var(--crx, 2deg)) rotateY(var(--cry, -2deg)) translateZ(8px);
  box-shadow: 0 20px 38px #00000080, 0 0 28px #ff7b521f;
}
.tilt-card:hover::before { opacity: 1; }
.card-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 8px; border-radius: 4px;
  border: 1px solid #6b4337; background: #180d0a; color: var(--accent);
  font: 700 .72rem/1.3 ui-monospace, monospace; text-transform: uppercase;
}
.step-num { display: block; color: var(--accent); margin-bottom: 8px; font-size: .85rem; }
h3 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 9px; }
.tilt-card p, .offer-copy { color: var(--muted); line-height: 1.6; }

/* Interactive 3D Fretboard Customizer */
.config-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.config-list { margin: 16px 0 0; padding-inline-start: 20px; color: var(--muted); line-height: 1.65; }
.config-list li + li { margin-top: 6px; }
.config-list strong { color: #fff2e6; }

.neck-lab {
  padding: 20px; border: 1px solid #7d5142; border-radius: 12px;
  background: linear-gradient(155deg, #241410, #160c09);
  box-shadow: 0 18px 44px #0000008c;
  perspective: 900px;
}
.neck-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.neck-toggle {
  min-height: 34px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: #170d0a; color: var(--muted); font: 600 .8rem/1.2 system-ui, sans-serif; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.neck-toggle[aria-pressed="true"] { background: #4a2319; border-color: var(--accent); color: #fff2e6; }

.neck-3d-stage { perspective: 820px; padding-block: 10px 6px; }
.neck-preview {
  position: relative; height: 146px; padding: 14px 16px 14px 54px;
  border: 1.5px solid #c99b84; border-radius: 8px;
  background:
    repeating-linear-gradient(179deg, transparent 0 4px, #b8704e1e 5px 6px, transparent 7px 11px),
    linear-gradient(180deg, #1b0f0c 0%, #342019 50%, #170c09 100%);
  box-shadow: 0 22px 34px #000000ad, inset 0 1px 0 #ffede326;
  display: grid; grid-template-rows: repeat(4, 1fr); align-items: center;
  transform: rotateX(15deg) rotateY(0deg);
  transition: transform .42s cubic-bezier(.22,.61,.36,1), background .25s ease, border-color .25s ease;
}
.neck-preview[data-left="true"] { padding: 14px 54px 14px 16px; transform: rotateX(15deg) scaleX(-1); }
.neck-preview[data-left="true"] .str-name,
.neck-preview[data-left="true"] .finger-dot { transform: scaleX(-1); }
.neck-preview[data-contrast="true"] { background: #11151b; border-color: #93a1b4; }
.neck-nut {
  position: absolute; left: 46px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #b8a59b, #fff7f2, #8a776e);
}
.neck-frets {
  position: absolute; inset: 8px 14px 8px 50px; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 48px, #cbb9ae59 49px 51px);
}
.neck-row { position: relative; display: flex; align-items: center; height: 100%; }
.neck-preview[data-reverse="true"] .neck-row[data-str="G"] { order: 4; }
.neck-preview[data-reverse="true"] .neck-row[data-str="D"] { order: 3; }
.neck-preview[data-reverse="true"] .neck-row[data-str="A"] { order: 2; }
.neck-preview[data-reverse="true"] .neck-row[data-str="E"] { order: 1; }
.str-name {
  position: absolute; left: -36px; width: 22px; text-align: center;
  font: 700 .86rem ui-monospace, monospace; color: #f6ede8;
}
.str-wire {
  width: 100%; height: var(--thick, 2.5px); border-radius: 2px;
  background: linear-gradient(180deg, #8e7a70, #f1e6df 50%, #6f5b52);
}
.neck-row.is-active .str-wire { background: linear-gradient(180deg, #ff9d89, #fff5ef 50%, #f04834); box-shadow: 0 0 8px #fb4935; }
.neck-preview[data-contrast="true"] .neck-row.is-active .str-wire { background: #ffe081; box-shadow: none; }
.finger-dot {
  position: absolute; left: var(--pos, 25%); top: 50%; transform: translate(-50%, -50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 800 .78rem ui-monospace, monospace; z-index: 3;
}
.neck-preview[data-left="true"] .finger-dot { transform: translate(-50%, -50%) scaleX(-1); }
.dot-current {
  background: radial-gradient(circle at 35% 30%, #ffd0c4, #f05a42); color: #240703;
  border: 1px solid #ffe6df; box-shadow: 0 0 14px #fb4935c7;
}
.dot-next { border: 2px solid #efc085; color: #fff0d7; background: #36221ee8; }
.neck-preview[data-forecast="false"] .dot-next { opacity: 0; transform: scale(.6); }
.neck-preview[data-contrast="true"] .dot-current { background: #ffe081; color: #10151b; border-color: #fff; box-shadow: none; }
.neck-preview[data-contrast="true"] .dot-next { background: #0d1117; border-color: #7aeaff; color: #7aeaff; }
.neck-caption { margin-top: 10px; font-size: .84rem; color: var(--muted); }

/* Pricing & Demo Download */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.offer-card { display: grid; align-content: start; gap: 10px; }
.offer-card.is-full { border-color: #9e6250; }
.offer-card .price { color: var(--accent); font-size: 2.35rem; font-weight: 850; line-height: 1.1; letter-spacing: -.035em; margin: 2px 0; }
.offer-card.is-demo .price { color: var(--amber); }
.offer-card ul { margin: 4px 0; padding-inline-start: 21px; line-height: 1.6; color: #f1dfd3; }
.offer-card li + li { margin-top: 6px; }
.offer-cta { display: grid; gap: 10px; margin-top: 8px; }
.offer-cta p { font-size: .9rem; color: var(--muted); }
.download-meta { color: var(--muted); font-size: .74rem; line-height: 1.5; word-break: break-all; }
.purchase-note { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.purchase-note a { color: #ffc2ad; }

/* Footer & Legal */
.footer { border-top: 1px solid var(--line); min-height: 78px; flex-wrap: wrap; gap: 8px 18px; padding-block: 14px; color: var(--muted); font-size: .9rem; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer-brand { letter-spacing: .09em; font-weight: 800; text-decoration: none; color: #fff2e6; }
.footer-contact { font-size: .85rem; }
.footer-contact a { color: #ffc2ad; display: inline; min-height: 0; text-decoration: underline; }
.footer-nav { flex-wrap: wrap; gap: 0 22px; }

.legal { max-width: 780px; padding-block: clamp(40px, 7vw, 86px); }
.legal h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 22px; }
.legal h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); line-height: 1.2; letter-spacing: -.025em; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal p a, .legal li a { color: #ffc2ad; }
.legal strong { color: #fff2e6; }
.legal ul, .legal ol { padding-inline-start: 24px; }
.legal li + li { margin-top: 6px; }
.legal .legal-lead { padding: 16px 18px; border-inline-start: 3px solid var(--accent); background: #251511; border-radius: 0 8px 8px 0; }
.footer-nav a[aria-current="page"] { color: #fff2e6; }

html.has-motion .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
html.has-motion .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .shell { width: min(740px, calc(100% - 44px)); }
  .hero, .story-grid, .walkthrough-row, .config-layout, .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  .walkthrough-row.is-reverse .walkthrough-text { order: 0; }
  .float-chip.chip-mid { left: 10px; bottom: 82px; }
  .feature-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .header-row { min-height: 60px; gap: 8px; }
  .brand { gap: 7px; font-size: .86rem; }
  .brand img { width: 32px; height: 32px; }
  .site-nav { display: none; }
  .hero { padding-block: 36px; gap: 28px; }
  h1 { font-size: clamp(2.15rem, 9.4vw, 3.3rem); }
  .float-chip { display: none; }
  .studio { transform: none; }
  figcaption, .demo { gap: 9px; padding: 12px; }
  figcaption { font-size: .64rem; }
  .eq-bars { flex-basis: 100%; max-width: 100%; height: 22px; }
  audio { max-width: 100%; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .section-block { padding: 38px 0; }
  .neck-lab { padding: 14px; }
  .neck-preview { height: 132px; padding-left: 44px; transform: rotateX(10deg); }
  .neck-preview[data-left="true"] { padding-left: 12px; padding-right: 44px; transform: rotateX(10deg) scaleX(-1); }
  .neck-nut { left: 38px; }
  .neck-frets { left: 42px; }
  .str-name { left: -30px; }
  .footer-nav { gap: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .studio, .tilt-card, .neck-preview, .button, .button-secondary { transition: none; transform: none; }
  .studio:hover, .tilt-card:hover { transform: none; }
  .neck-preview[data-left="true"] { transform: scaleX(-1); }
  html.has-motion .reveal { opacity: 1; transform: none; }
}
