/* ============================================================
   DRUMKIT — by NIGHTSHAPE
   Pro-audio landing page
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Nightshape";
  src: url("../fonts/Nightshape-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Adam";
  src: url("../fonts/Adam-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Adam";
  src: url("../fonts/Adam-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Canonical NIGHTSHAPE palette (from NightshapeTheme.swift) */
  --bg:            #0C0C0E;
  --bg-deep:       #09090C;
  --panel:         #0F0F13;
  --graphite:      #141418;
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #EEEEFF;
  --text-2:        #B6B8C6;
  --text-dim:      #888899;

  --teal:          #33CCCC;
  --indigo:        #6666FF;
  --purple:        #9933FF;
  --hot-teal:      #00E5D4;
  --hot-purple:    #A855F7;
  --lavender:      #BBA6FD;

  --grad: linear-gradient(100deg, var(--teal) 0%, var(--indigo) 48%, var(--purple) 100%);
  --grad-soft: linear-gradient(100deg, rgba(51,204,204,.16), rgba(102,102,255,.16) 50%, rgba(153,51,255,.16));

  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Adam", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed ambient background layers */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.glow.g1 { width: 46vw; height: 46vw; top: -12vh; left: -8vw;  background: radial-gradient(circle, rgba(51,204,204,.55), transparent 65%); }
.glow.g2 { width: 52vw; height: 52vw; top: 22vh;  right: -14vw; background: radial-gradient(circle, rgba(153,51,255,.50), transparent 65%); }
.glow.g3 { width: 40vw; height: 40vw; bottom: -10vh; left: 24vw; background: radial-gradient(circle, rgba(102,102,255,.42), transparent 65%); }

/* Fine grid + noise overlay for pro-audio texture */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { position: relative; padding: 120px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 18px 0 20px;
}
.section-head p { color: var(--text-2); font-size: clamp(16px, 2vw, 19px); max-width: 620px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 9, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { height: 22px; width: auto; display: block; }
.nav-brand .by {
  font-family: "Nightshape", var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--text);
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--grad-soft);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.nav-links .nav-cta:hover { border-color: var(--teal); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s var(--ease); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero canvas.wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 42vh;
  opacity: .55;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 40px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot-teal); box-shadow: 0 0 12px var(--hot-teal); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-logo {
  width: min(760px, 88vw);
  height: auto;
  display: block;
  margin-bottom: 30px;
  filter: drop-shadow(0 12px 60px rgba(102,102,255,.28));
  will-change: transform;
}
.hero h1 {
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 16ch;
  margin-bottom: 22px;
}
.hero p.sub {
  color: var(--text-2);
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 56ch;
  margin-bottom: 42px;
}

/* CTA row */
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* App Store badge */
.appstore-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform .3s var(--ease), filter .3s var(--ease);
  outline: none;
}
.appstore-badge svg { display: block; height: 56px; width: auto; }
.appstore-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.appstore-badge.pending { position: relative; cursor: default; }
.appstore-badge.pending::after {
  content: "Coming soon";
  position: absolute;
  top: -10px; right: -10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(180deg, var(--teal), var(--indigo));
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.ghost-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.ghost-link:hover { color: var(--text); gap: 12px; }
.ghost-link svg { width: 16px; height: 16px; }

/* Trust strip */
.trust {
  margin-top: 64px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--indigo); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .line { width: 1px; height: 34px; background: linear-gradient(var(--teal), transparent); animation: drop 1.8s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Logo marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: rgba(255,255,255,.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee-track span::after { content: "◆"; color: var(--indigo); font-size: 8px; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  padding: 34px 32px;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.card::before {
  /* animated top hairline */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--teal); }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card .tag {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
}
.card.span-6 { grid-column: span 6; }
.card.span-4 { grid-column: span 4; }
.card.span-8 { grid-column: span 8; }

/* Feature card wide: the "engine" highlight */
.card.feature-lg { grid-column: span 8; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px; }
.card.feature-lg .fx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fx-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: rgba(255,255,255,.02);
}
.fx-chip.hot { color: var(--bg); background: var(--grad); border-color: transparent; font-weight: 600; }

/* ---------- Showcase / parallax split ---------- */
.showcase { position: relative; overflow: hidden; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .copy h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; margin: 16px 0 18px; }
.split .copy p { color: var(--text-2); font-size: 17px; margin-bottom: 16px; }
.split .copy ul { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.split .copy li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.split .copy li svg { width: 18px; height: 18px; stroke: var(--teal); flex: none; margin-top: 3px; }

/* Device / visual panel */
.panel-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--panel), var(--bg-deep));
  padding: 30px;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
}
.panel-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(102,102,255,.18), transparent 70%);
  pointer-events: none;
}

/* Sequencer mock */
.seq { display: grid; gap: 10px; position: relative; z-index: 1; }
.seq-row { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: center; }
.seq-row .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.seq-steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.step { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--border); background: rgba(255,255,255,.03); transition: background .2s, box-shadow .2s; }
.step.on { border-color: transparent; }
.step.on.teal   { background: var(--teal);   box-shadow: 0 0 14px rgba(51,204,204,.6); }
.step.on.indigo { background: var(--indigo); box-shadow: 0 0 14px rgba(102,102,255,.6); }
.step.on.purple { background: var(--purple); box-shadow: 0 0 14px rgba(153,51,255,.6); }
.step.play { outline: 2px solid rgba(255,255,255,.8); outline-offset: 1px; }

/* EQ mock */
.eq-visual { position: relative; z-index: 1; height: 220px; display: flex; align-items: flex-end; gap: 8px; }
.eq-bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--grad); opacity: .85; transition: height .3s var(--ease); will-change: height; }

/* Waveform strip mock */
.wf-strip { position: relative; z-index: 1; height: 120px; display: flex; align-items: center; gap: 3px; }
.wf-strip i { flex: 1; background: var(--grad); border-radius: 2px; opacity: .8; will-change: transform; display: block; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.006));
  text-align: center;
}
.stat .num { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-top: 12px; }

/* ---------- Big CTA ---------- */
.cta-final {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 84px 40px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--bg-deep));
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 10%, rgba(51,204,204,.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 85% 90%, rgba(153,51,255,.22), transparent 60%);
  pointer-events: none;
}
.cta-final img.icon-float {
  width: 108px; height: 108px; border-radius: 24px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  position: relative; z-index: 1;
  will-change: transform;
}
.cta-final h2 { position: relative; z-index: 1; font-size: clamp(32px, 5.5vw, 60px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 18px; }
.cta-final p { position: relative; z-index: 1; color: var(--text-2); font-size: 18px; max-width: 52ch; margin: 0 auto 40px; }
.cta-final .cta-row { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand .by { font-family: "Nightshape", var(--sans); font-size: 13px; letter-spacing: 0.16em; color: var(--text-2); }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-2); text-decoration: none; font-size: 14.5px; margin-bottom: 11px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 13px;
}
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   DEVICE SHOWCASE — life-size iPhone 17 Pro Max running the app
   Recreated faithfully from the SwiftUI workstation layout.
   ============================================================ */
@font-face {
  font-family: "NightshapeOutline";
  src: url("../fonts/NIGHTSHAPE-Outline.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, var(--sans);
  --nsbg: #0C0C0E;
  --dk-teal: #33CCCC;   --dk-hotteal: #00E5D4;
  --dk-indigo: #6666FF; --dk-purple: #9933FF; --dk-hotpurple: #A855F7;
  --dk-lav: #BBA6FD;    --dk-cool: #E6ECF5;
}

.device-section { position: relative; }
.device-section .intro { text-align: center; max-width: 720px; margin: 0 auto; padding: 110px 24px 0; }
.device-section .intro h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; margin: 18px 0 18px; }
.device-section .intro p { color: var(--text-2); font-size: clamp(16px, 2vw, 19px); }

/* Tall wrapper provides the scroll distance; the phone stays pinned inside it */
.device-scroll { position: relative; height: 300vh; }
.device-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.device-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.device-stage .callouts { justify-self: end; max-width: 340px; }
.device-stage .stage-spacer { }

/* Scroll-synced callouts */
.callout { opacity: .35; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); margin-bottom: 30px; padding-left: 18px; border-left: 2px solid var(--border); }
.callout.active { opacity: 1; transform: none; border-left-color: var(--dk-teal); }
.callout .k { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.callout h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 8px; }
.callout p { color: var(--text-2); font-size: 15px; }

/* --- Device frame (titanium) --- */
.dk-device { --scale: 1; transform: scale(var(--scale)); transform-origin: center center; justify-self: center; }
.dk-frame {
  position: relative;
  width: 456px; height: 972px;
  border-radius: 68px;
  padding: 14px;
  background: linear-gradient(150deg, #3a3d44 0%, #17181c 22%, #232529 50%, #101114 78%, #34363c 100%);
  box-shadow:
    0 2px 2px rgba(255,255,255,.18) inset,
    0 -2px 3px rgba(0,0,0,.6) inset,
    0 60px 120px -30px rgba(0,0,0,.85),
    0 0 0 1px rgba(0,0,0,.6),
    0 0 70px -10px rgba(102,102,255,.22);
}
/* side buttons */
.dk-frame::before, .dk-frame::after {
  content: ""; position: absolute; background: linear-gradient(90deg,#2a2c31,#3d4046); border-radius: 3px;
}
.dk-frame::before { left: -3px; top: 190px; width: 3px; height: 62px; box-shadow: 0 92px 0 #2a2c31, 0 176px 0 0 #2a2c31; }
.dk-frame::after  { right: -3px; top: 240px; width: 3px; height: 104px; }
.dk-screen {
  position: relative;
  width: 428px; height: 944px;
  border-radius: 55px;
  overflow: hidden;
  background: var(--nsbg);
  color: var(--text);
  font-family: var(--sans);
}
.dk-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 126px; height: 36px; border-radius: 20px; background: #000;
  z-index: 40;
}

/* status bar */
.dk-statusbar {
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 34px 0; font-family: var(--rounded); font-weight: 600; font-size: 16px; color: var(--text);
}
.dk-statusbar .r { display: flex; align-items: center; gap: 7px; }
.dk-statusbar svg { display: block; }

/* content column padding (contentLeft = 8pt scaled to this 428 screen) */
.dk-body { padding: 0 9px 6px; height: calc(100% - 54px); display: flex; flex-direction: column; }

/* Brand header: full-width DRUMKIT lockup (fixed 78px height) + byline */
.dk-brand { display: block; padding: 6px 4px 4px; position: relative; }
.dk-nav { position: absolute; top: 6px; right: 8px; display: flex; flex-direction: column; align-items: center; gap: 18px; color: #6a6a78; }
.dk-nav .q { font-size: 22px; font-weight: 400; line-height: 1; font-family: var(--rounded); }
.dk-nav svg { width: 21px; height: 21px; display: block; }
.dk-brand img {
  display: block; height: 78px; width: calc(100% - 10px);
  object-fit: contain; object-position: left center;
  filter: drop-shadow(0 0 5px rgba(51,204,204,.08));
}
.dk-byline {
  font-family: "Adam", var(--mono); font-size: 11px; letter-spacing: 0.7em;
  color: #4C4C5A; padding-left: 6px; margin-top: 3px; white-space: nowrap;
}

/* display / visualizer panel */
.dk-display {
  position: relative; height: 160px; background: #08090B;
  border: 1.5px solid var(--dk-teal); overflow: hidden; flex: none;
}
.dk-matrix { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dk-numeral {
  position: absolute; top: 50%; left: 25%; transform: translate(-50%, -46%);
  font-family: "NightshapeOutline", var(--sans); font-size: 116px; line-height: 1;
  background: linear-gradient(var(--dk-hotteal), var(--dk-hotpurple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .22; pointer-events: none; z-index: 3;
  filter: drop-shadow(0 0 12px rgba(51,204,204,.3));
  transition: left .3s var(--ease);
}

/* header row: title/mode + bpm, floating transport (meter moved to controls) */
.dk-head { position: relative; padding: 10px 4px 0; min-height: 84px; }
.dk-title { background: none; border: 0; padding: 0; cursor: default; display: inline-flex; align-items: center; gap: 6px;
  font-family: "Nightshape", var(--sans); font-size: 15px; letter-spacing: .14em; color: var(--dk-hotteal);
  text-shadow: 0 0 8px rgba(0,229,212,.45); }
.dk-title svg { width: 9px; height: 9px; }
.dk-mode { display: flex; align-items: flex-end; gap: 0; margin-top: 4px; line-height: .9; }
.dk-word { font-family: "Nightshape", var(--sans); letter-spacing: .04em; }
.dk-word.pattern { font-size: 36px; color: var(--dk-hotpurple); z-index: 2; background: var(--nsbg); position: relative; }
.dk-word.song { font-size: 27px; color: #3A3A48; margin-left: -6px; }

.dk-bpm { position: absolute; top: 6px; right: 6px; text-align: right; }
.dk-bpm .lbl { font-family: var(--rounded); font-weight: 800; font-size: 17px; letter-spacing: .34em; color: var(--dk-hotpurple); padding-right: 0; }
.dk-bpm .val { font-family: var(--rounded); font-weight: 200; font-size: 70px; line-height: .82; color: var(--dk-lav); margin-top: -6px; }
.dk-out { display: flex; align-items: center; gap: 6px; flex: none;
  font-family: "Adam", var(--mono); font-size: 10px; letter-spacing: .09em; white-space: nowrap; }
.dk-out .o { color: var(--text-dim); }
.dk-out .db { color: rgba(230,236,245,.78); text-align: right; font-variant-numeric: tabular-nums; }
.dk-out .unit { color: var(--text-dim); margin-left: -3px; }
.dk-out .clip { display: inline-flex; align-items: center; gap: 4px; color: var(--dk-hotpurple); }
.dk-out .clip i { width: 6px; height: 6px; border-radius: 50%; background: #3A3A48; }
.dk-out .clip.on i { background: var(--dk-hotpurple); box-shadow: 0 0 6px var(--dk-hotpurple); }
.dk-out .clip.on { color: var(--dk-hotpurple); }
.dk-out .clip.off { color: #3A3A48; }
.dk-out .clip.off i { background: #3A3A48; box-shadow: none; }

.dk-transport { position: absolute; top: 33px; left: 60%; background: none; border: 0; cursor: default; color: var(--dk-teal); }
.dk-transport svg { width: 36px; height: 36px; display: block; filter: drop-shadow(0 0 8px rgba(51,204,204,.4)); }

/* Control band line 1 — pattern identity */
.dk-identity { display: flex; align-items: center; gap: 7px; padding: 12px 4px 6px; }
.dk-pat { background: none; border: 0; padding: 0; cursor: default; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: "Nightshape", var(--sans); font-size: 16px; letter-spacing: .05em; color: var(--dk-lav); flex: none; }
.dk-pat svg { width: 10px; height: 10px; }
.dk-save { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid rgba(51,204,204,.42); border-radius: 4px; }
.dk-save svg { width: 13px; height: 13px; stroke: var(--dk-teal); }

/* Control band line 2 — action buttons (left) + output meter (right) */
.dk-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; overflow: hidden; }
.dk-ctl-buttons { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; min-width: 0; }
.dk-chip { display: inline-flex; align-items: center; gap: 4px; height: 27px; padding: 0 7px; flex: none; white-space: nowrap; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.6);
  font-family: "Adam", var(--mono); font-size: 9px; letter-spacing: .1em; }
.dk-chip svg { width: 11px; height: 11px; }
.dk-chip.fx { border-color: rgba(138,138,152,.85); color: #8A8A98; font-family: "Nightshape", var(--sans); letter-spacing: .14em; font-size: 11px; }

/* sequencer grid */
.dk-grid { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px 0; min-height: 0; }
.dk-row { display: grid; grid-template-columns: 60px 1fr; gap: 8px; flex: 1; min-height: 0; }
.dk-thead { display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #101113; position: relative; border-radius: 6px; overflow: hidden; }
.dk-thead .nm { font-family: var(--rounded); font-weight: 700; font-size: 11.5px; letter-spacing: .03em; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dk-steps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.dk-cell { position: relative; background: #101113; border: 1.5px solid #2A2A30; border-radius: 6px; transition: background .1s, border-color .1s; }
.dk-cell.on { }
.dk-cell.play { border-color: rgba(255,255,255,.85) !important; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }

/* footer chrome */
.dk-footer { display: flex; align-items: center; justify-content: space-between; height: 34px; margin: 6px 4px 0;
  border-top: 1px solid rgba(255,255,255,.06); font-family: "Adam", var(--mono);
  font-size: 10px; letter-spacing: .2em; color: var(--text-2); }

@media (max-width: 1080px) {
  .device-scroll { height: auto; }
  .device-sticky { position: static; height: auto; padding: 24px 0 56px; }
  .device-stage { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
  .device-stage .callouts { display: none; }
  .device-stage .stage-spacer { display: none; }
  .device-section .intro { padding-bottom: 8px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(9,9,12,.96); backdrop-filter: blur(20px);
    padding: 18px 28px 26px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open .nav-cta { text-align: center; border-bottom: 0; margin-top: 6px; }
  .nav-toggle { display: block; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .scroll-hint { display: none; }
  .section { padding: 84px 0; }
  .split { grid-template-columns: 1fr; gap: 42px; }
  .split.reverse { direction: ltr; }
  .features { gap: 16px; }
  .card.span-4, .card.span-6, .card.span-8, .card.feature-lg { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { padding: 14px 18px; }
  .hero { padding: 120px 18px 70px; }
  .hero-logo { margin-bottom: 24px; }
  .hero .trust { gap: 10px 18px; }
  .cta-row { flex-direction: column; gap: 16px; width: 100%; }
  .appstore-badge { width: 100%; display: flex; justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-final { padding: 56px 24px; border-radius: 24px; }
  .seq-row { grid-template-columns: 44px 1fr; }
  .seq-steps { gap: 5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
