/* NF Audios — the MIDI pages (hub + Midi Gate, Midi Stone, Midi Tower). Light store look (shop.css + store.css underneath).
   Every rule sits under .nfs .mx so it works in the preview (body.nfs > main.mx) and on the site (div.nfs > div.mx). */
.nfs .mx { --mint: #e6efe9; --ease: cubic-bezier(.2, .8, .2, 1); }
.nfs .mx section { position: relative; }

/* hero: picture behind, words in front, two buttons */
.nfs .mxh { position: relative; overflow: hidden; isolation: isolate; min-height: min(88vh, 820px); display: flex; align-items: center; background: #f6f8f6; }
.nfs .mxh-bg { position: absolute; inset: 0; z-index: -2; perspective: 1800px; }
.nfs .mxh-bg img { position: absolute; max-width: none; height: auto; }
.nfs .mxh-bg .tilt { top: 50%; left: 52%; width: min(1120px, 66vw); border-radius: 18px; transform: translateY(-50%) rotateY(-16deg) rotateX(5deg) rotateZ(.6deg); transform-origin: left center;
  box-shadow: 0 70px 130px -50px rgba(22,36,28,.6), 0 0 0 1px rgba(22,36,28,.08); animation: mxDrift 26s ease-in-out infinite alternate; }
.nfs .mxh-bg .tilt.b { top: 66%; left: 68%; width: min(720px, 44vw); transform: translateY(-50%) rotateY(-18deg) rotateX(6deg) rotateZ(1.2deg); animation-duration: 31s; animation-delay: -8s; }
.nfs .mxh-bg .side { top: 50%; right: 0; width: min(1040px, 62vw); transform: translateY(-48%); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 97%); mask-image: linear-gradient(180deg, #000 72%, transparent 97%); }
.nfs .mxh-bg .full { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
@keyframes mxDrift { to { transform: translateY(-51.5%) rotateY(-12deg) rotateX(3deg) rotateZ(.2deg) scale(1.03); } }
.nfs .mxh::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, #fff 38%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 64%); }
.nfs .mxh.wide::before { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 36%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 62%); }
.nfs .mxh .wrap { padding: clamp(70px, 9vw, 120px) 0; }
.nfs .mxh-copy { max-width: 560px; }
.nfs .mxh .lead { max-width: 520px; }
.nfs .mxh h1 { margin-top: 20px; }
.nfs .mxh h1 em { font-style: italic; color: var(--green); }
.nfs .mxh .lead { margin-top: 22px; }
.nfs .mxh .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.nfs .mxh .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.nfs .chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.85); border: 1px solid var(--line); font: 500 13.5px/1 var(--sans); color: var(--soft); }
.nfs .chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.nfs .chip.soon i { background: #b98a2e; }
.nfs .mx .status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 99px; font: 600 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--mint); color: var(--green); }
.nfs .mx .status.soon { background: #f5ecda; color: #8a6420; }

/* buttons: a little more life on these pages (lift, ring, the arrow runs) */
.nfs .mx .btn { gap: 10px; }
.nfs .mx .btn .ico { width: 18px; height: 18px; }
.nfs .mx .btn.sec:hover { box-shadow: 0 14px 30px -18px rgba(22,36,28,.55); }
.nfs .mx .btn.ghost { background: transparent; border-color: transparent; color: var(--ink); padding: 0 6px; }
.nfs .mx .btn.ghost:hover { color: var(--green); transform: none; }
.nfs .mx .sw-buyform .bcos-btn, .nfs .mx a.bcos-btn { height: 50px; }

/* a strip of four facts under the hero */
.nfs .mx .facts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 max(16px, calc((100% - var(--wrap)) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.nfs .mx .facts > div { padding: 30px 26px; border-left: 1px solid var(--line); }
.nfs .mx .facts > div:first-child { border-left: 0; padding-left: 0; }
.nfs .mx .facts b { display: block; font: 600 clamp(24px, 2.4vw, 32px)/1.1 var(--serif); color: var(--ink); }
.nfs .mx .facts span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--soft); line-height: 1.45; }

/* the hub: one big card per tool */
.nfs .mx .tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.nfs .mx .tool { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.nfs .mx .tool:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.nfs .mx .tool .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef3ef; }
.nfs .mx .tool .pic img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .9s var(--ease); }
.nfs .mx .tool .pic img.contain { object-fit: cover; object-position: 50% 62%; }
.nfs .mx .tool:hover .pic img { transform: scale(1.05); }
.nfs .mx .tool .pic .status { position: absolute; left: 16px; top: 16px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.nfs .mx .tool .tx { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.nfs .mx .tool .tx small { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.nfs .mx .tool h3 { margin-top: 12px; font-size: clamp(24px, 2.2vw, 28px); }
.nfs .mx .tool p { margin-top: 10px; color: var(--soft); font-size: 15.5px; }
.nfs .mx .tool .go { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); color: var(--ink); }
.nfs .mx .tool .go .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.nfs .mx .tool:hover .go .ico { transform: translateX(5px); }

/* how the three fit: a path from gear to another studio */
.nfs .mx .flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 56px; position: relative; }
.nfs .mx .flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 14px); opacity: .45; }
.nfs .mx .flow > div { position: relative; text-align: center; padding: 0 12px; }
.nfs .mx .flow .n { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 14px 30px -20px rgba(22,36,28,.5); color: var(--green); transition: transform .3s var(--ease), background .3s; }
.nfs .mx .flow > div:hover .n { transform: translateY(-4px) scale(1.04); background: var(--mint); }
.nfs .mx .flow .n svg { width: 32px; height: 32px; }
.nfs .mx .flow .n.ours { background: var(--ink); color: #fff; border-color: var(--ink); }
.nfs .mx .flow b { display: block; margin-top: 18px; font: 600 17px/1.3 var(--sans); }
.nfs .mx .flow span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--soft); line-height: 1.5; }

/* features, steps, use cases */
.nfs .mx .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.nfs .mx .grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.nfs .mx .card { padding: 30px 30px 32px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.nfs .mx .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.nfs .mx .card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.nfs .mx .card .ic svg { width: 24px; height: 24px; }
.nfs .mx .card h3 { margin-top: 18px; }
.nfs .mx .card p { margin-top: 10px; color: var(--soft); font-size: 15.5px; }
.nfs .mx .card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.nfs .mx .card li { position: relative; padding: 6px 0 6px 22px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.nfs .mx .card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--green); }
.nfs .mx .steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.nfs .mx .step { position: relative; padding: 30px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.nfs .mx .step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 600 14px/1 var(--sans); letter-spacing: .12em; color: var(--green); }
.nfs .mx .step h3 { margin-top: 14px; }
.nfs .mx .step p { margin-top: 10px; color: var(--soft); font-size: 15.5px; }
.nfs .mx .uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.nfs .mx .use { position: relative; overflow: hidden; padding: 28px 24px 30px; border-radius: var(--r); background: linear-gradient(180deg, #fff, var(--bg2)); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.nfs .mx .use:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nfs .mx .use .ic { color: var(--green); }
.nfs .mx .use .ic svg { width: 30px; height: 30px; }
.nfs .mx .use h3 { margin-top: 16px; font-size: 20px; }
.nfs .mx .use p { margin-top: 8px; color: var(--soft); font-size: 15px; }

/* a picture with words beside it */
.nfs .mx .split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.nfs .mx .split.flip { grid-template-columns: 1.25fr 1fr; }
.nfs .mx .split.flip .media { order: -1; }
.nfs .mx .split .media { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(22,36,28,.08); background: #fff; }
.nfs .mx .split .media img { width: 100%; }
.nfs .mx .split h2 { margin-top: 14px; }
.nfs .mx .split .lead { margin-top: 16px; }
.nfs .mx .split ul { margin: 22px 0 0; padding: 0; list-style: none; }
.nfs .mx .split li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line); font-size: 16px; }
.nfs .mx .split li:last-child { border-bottom: 0; }
.nfs .mx .split li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Tower: the three reaches */
.nfs .mx .reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.nfs .mx .reach .card { position: relative; padding-top: 34px; }
.nfs .mx .reach .card .tag { position: absolute; right: 24px; top: 26px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.nfs .mx .reach .card .rings { height: 6px; margin: 22px 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--w), var(--line) var(--w)); }
.nfs .mx .eds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.nfs .mx .ed { padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.nfs .mx .ed.mid { border-color: var(--ink); box-shadow: var(--shadow); }
.nfs .mx .ed b { font: 600 22px/1.2 var(--serif); }
.nfs .mx .ed em { display: block; margin-top: 6px; font-style: normal; color: var(--green); font-weight: 600; font-size: 14px; }
.nfs .mx .ed p { margin-top: 12px; color: var(--soft); font-size: 15px; }

/* specs: a calm table of facts */
.nfs .mx .spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
.nfs .mx .spec div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.nfs .mx .spec dt { color: var(--mute); font-weight: 500; }
.nfs .mx .spec dd { margin: 0; color: var(--ink); }

/* close band */
.nfs .mx .close .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; justify-content: center; }
.nfs .mx .close .lead { margin: 16px auto 0; }

@media (max-width: 1000px) {
  .nfs .mx .tools, .nfs .mx .reach, .nfs .mx .eds, .nfs .mx .grid3, .nfs .mx .steps { grid-template-columns: 1fr; }
  .nfs .mx .uses, .nfs .mx .facts { grid-template-columns: 1fr 1fr; }
  .nfs .mx .facts > div:nth-child(3) { border-left: 0; }
  .nfs .mx .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .nfs .mx .flow { grid-template-columns: 1fr; gap: 26px; }
  .nfs .mx .flow::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--green) 0 6px, transparent 6px 14px); }
  .nfs .mx .flow > div { background: #fff; padding: 18px; border-radius: 18px; border: 1px solid var(--line); }
  .nfs .mx .split, .nfs .mx .split.flip { grid-template-columns: 1fr; }
  .nfs .mx .split.flip .media { order: 0; }
  .nfs .mx .spec, .nfs .mx .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nfs .mxh { min-height: 0; align-items: flex-end; }
  .nfs .mxh .wrap { padding: 300px 0 46px; }
  .nfs .mxh-bg .tilt { left: 5%; top: 18px; width: 118vw; transform: rotateY(-14deg) rotateX(4deg); animation: none; }
  .nfs .mxh-bg .tilt.b { display: none; }
  .nfs .mxh-bg .full { height: 360px; object-position: 50% 70%; }
  .nfs .mxh-bg .side { right: auto; left: -3vw; top: 10px; width: 106vw; transform: none; }
  .nfs .mxh.wide .wrap { padding-top: 270px; }
  .nfs .mxh::before, .nfs .mxh.wide::before { background: linear-gradient(0deg, #fff 0%, #fff 52%, rgba(255,255,255,.6) 70%, rgba(255,255,255,0) 92%); }
  .nfs .mx .uses, .nfs .mx .facts { grid-template-columns: 1fr; }
  .nfs .mx .facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 22px 4px; }
  .nfs .mx .facts > div:first-child { border-top: 0; }
  .nfs .mx .spec div { grid-template-columns: 1fr; gap: 4px; }
  .nfs .mxh .ctas .btn, .nfs .mxh .ctas .sw-buyform, .nfs .mxh .ctas .sw-buyform .bcos-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nfs .mxh-bg .tilt { animation: none; } .nfs .mx .tool:hover, .nfs .mx .card:hover, .nfs .mx .use:hover { transform: none; } }

/* two-tool layouts (the hub while Midi Tower is hidden, 15 Nov 2026) */
.nfs .mx .tools.two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
.nfs .mx .flow.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .nfs .mx .tools.two, .nfs .mx .flow.four { grid-template-columns: 1fr; } }
