/* =====================================================================
   MusicBox public website — design tokens, primitives, layout
   ===================================================================== */

:root {
  --mb-bg-deep: #07090F;
  --mb-bg: #0B0E16;
  --mb-surface: #121726;
  --mb-surface-2: #1A2134;
  --mb-surface-3: #232B42;
  --mb-border: #232B42;
  --mb-border-soft: #1A2134;
  --mb-text: #F4F6FB;
  --mb-text-muted: #8089A1;
  --mb-text-dim: #545B72;

  --mb-accent: #5AE3FF;
  --mb-accent-hot: #7BEEFF;
  --mb-accent-glow: rgba(90, 227, 255, 0.32);
  --mb-accent-ink: #00131A;

  --mb-font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mb-font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mb-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --mb-nav-h: 76px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--mb-nav-h); }
body {
  margin: 0;
  background: var(--mb-bg-deep);
  color: var(--mb-text);
  font-family: var(--mb-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
::selection { background: var(--mb-accent); color: var(--mb-accent-ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Logo ---------- */
.mb-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--mb-text);
  user-select: none;
}
.mb-logo img { height: 34px; width: auto; }

/* ---------- Buttons ---------- */
.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.mb-btn:hover { transform: translateY(-1px); }
.mb-btn-primary {
  background: var(--mb-accent);
  color: var(--mb-accent-ink);
  box-shadow: 0 12px 40px -8px var(--mb-accent-glow);
}
.mb-btn-primary:hover { background: var(--mb-accent-hot); }
.mb-btn-ghost {
  background: transparent;
  color: var(--mb-text);
  border-color: rgba(255, 255, 255, 0.18);
}
.mb-btn-ghost:hover { border-color: var(--mb-accent); color: var(--mb-accent); }

/* ---------- Kicker / eyebrow / chips ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mb-font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mb-accent);
  margin-bottom: 18px;
}
.kicker .bar { width: 26px; height: 2px; background: var(--mb-accent); border-radius: 2px; }

.mb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--mb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mb-text-muted);
  white-space: nowrap;
}
.mb-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mb-accent); flex-shrink: 0; }

/* Small animated equalizer */
.mb-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.mb-eq span {
  display: block;
  width: 2.5px;
  background: var(--mb-accent);
  border-radius: 2px;
  animation: mb-eq-bounce 1.1s ease-in-out infinite;
}
.mb-eq span:nth-child(1) { height: 60%; animation-delay: -0.6s; }
.mb-eq span:nth-child(2) { height: 90%; animation-delay: -0.4s; }
.mb-eq span:nth-child(3) { height: 40%; animation-delay: -0.8s; }
.mb-eq span:nth-child(4) { height: 75%; animation-delay: -0.2s; }
@keyframes mb-eq-bounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding: 120px 0; }
.section-alt { background: var(--mb-bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-title {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-sub {
  color: var(--mb-text-muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 20px auto 0;
  max-width: 540px;
}
.section-head.left .section-sub { margin-left: 0; }

/* Pages without a hero start below the fixed nav */
main.no-hero { padding-top: var(--mb-nav-h); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled,
.nav.solid {
  background: rgba(7, 9, 15, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--mb-border-soft);
  padding: 14px 40px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mb-text-muted);
}
.nav-links a {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding: 4px 0;
  transition: color .18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--mb-accent);
  transition: width .22s ease;
}
.nav-links a:hover { color: var(--mb-text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--mb-text); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--mb-border);
  border-radius: 10px;
  background: transparent;
  color: var(--mb-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7, 9, 15, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--mb-font-display);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  color: var(--mb-text);
  letter-spacing: -0.01em;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--mb-accent); }
.nav-burger .ic-close { display: none; }
.nav-burger[aria-expanded="true"] .ic-open { display: none; }
.nav-burger[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 150px;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 50% 0%, #14213b 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, #0c1b28 0%, transparent 55%),
    var(--mb-bg-deep);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 50%;
  width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(90, 227, 255, 0.14) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 3; max-width: 1000px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--mb-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mb-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mb-text-muted);
  margin-bottom: 34px;
  white-space: nowrap;
}
.hero h1 {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--mb-accent); font-style: italic; font-weight: 500; }
.hero p.lead {
  margin: 30px auto 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--mb-text-muted);
}
.hero p.lead strong { color: var(--mb-text); font-weight: 600; }
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 40px;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-wave span {
  flex: 1;
  background: linear-gradient(to top, var(--mb-accent), rgba(90, 227, 255, 0.1));
  border-radius: 3px 3px 0 0;
  animation: heroWave 2.6s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes heroWave {
  0%, 100% { transform: scaleY(0.22); }
  50% { transform: scaleY(1); }
}
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mb-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mb-text-dim);
  text-decoration: none;
}
.scroll-cue .l {
  width: 1px; height: 30px;
  background: linear-gradient(180deg, var(--mb-text-dim), transparent);
  animation: cueLine 2s ease-in-out infinite;
}
@keyframes cueLine {
  0%, 100% { opacity: .3; transform: scaleY(.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Split rows (Premium / Basic / Zašto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse .split-text { order: 2; }
.split.reverse .split-media { order: 1; }
.split-text h2 {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.split-text h2 .accent { color: var(--mb-accent); }
.split-text p {
  color: var(--mb-text-muted);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 460px;
}
.split-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.forget-label {
  font-family: var(--mb-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mb-accent);
  margin: 34px 0 14px;
}
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--mb-text);
}
.check-list .ic {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(90, 227, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--mb-accent);
}

/* Media frame */
.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mb-border);
  background: linear-gradient(135deg, #0e1322, #161d31);
  aspect-ratio: 4 / 3;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}
.media-frame .badge { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; }
.media-frame.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Device mockup (devices.css frames on a fixed 1000x720 stage, scaled to the frame width by JS) */
.mockup-frame { aspect-ratio: 1000 / 720; }
.mockup-stage {
  position: absolute;
  top: 0; left: 0;
  width: 1000px; height: 720px;
  transform-origin: 0 0;
  transform: scale(var(--mockup-scale, 0.5));
}
.mockup-stage .device {
  position: absolute;
  transform-origin: 0 0;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}
.mockup-stage .device-screen { object-fit: cover; }
.mockup-stage .mk-laptop { left: 100px; top: 40px; transform: scale(1.15); z-index: 1; }
.mockup-stage .mk-laptop .device-screen { object-position: 0 0; }
/* iPad in landscape: devices.css only ships portrait, so the frame is rotated -90deg around its
   centre and the screenshot is rotated back +90deg inside the (portrait) screen box.
   Unrotated box 560x778 at scale .42 -> visual 327x235 centred at (left+280, top+389). */
.mockup-stage .mk-tablet {
  left: -102px; top: 169px;
  transform-origin: center center;
  transform: rotate(-90deg) scale(0.42);
  z-index: 2;
}
.mockup-stage .mk-tablet .device-frame { position: relative; }
.mockup-stage .mk-tablet .device-screen {
  position: absolute;
  top: 50%; left: 50%;
  width: 724px; height: 506px;
  max-width: none; /* the global img { max-width: 100% } would cap this at the portrait frame width */
  transform: translate(-50%, -50%) rotate(90deg);
  object-position: center;
}
.mockup-stage .mk-phone { left: 830px; top: 410px; transform: scale(0.33); z-index: 3; }
.mockup-stage .mk-phone .device-screen { object-position: center top; }

/* ---------- Prednosti ---------- */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.benefit-card {
  position: relative;
  background: var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-radius: 20px;
  padding: 38px 36px;
  overflow: hidden;
}
.benefit-card.featured,
.price-card.featured {
  background: linear-gradient(180deg, rgba(90, 227, 255, 0.07), rgba(90, 227, 255, 0.01));
  border-color: rgba(90, 227, 255, 0.28);
}
.benefit-card.featured::before,
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(90, 227, 255, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}
.benefit-name, .price-name {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.benefit-name .tier, .price-name .tier { color: var(--mb-accent); }
.tag {
  font-family: var(--mb-font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mb-accent);
  border: 1px solid rgba(90, 227, 255, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.tag.muted { color: var(--mb-text-muted); border-color: var(--mb-border); }

/* ---------- Isprobaj — demo player ---------- */
.demo {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--mb-surface), var(--mb-bg));
  border: 1px solid var(--mb-border);
  border-radius: 24px;
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  box-shadow: 0 50px 110px -50px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(90, 227, 255, 0.18);
}
.demo-art {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #5AE3FF, #1F4FFF 55%, #6B1FFF);
}
.demo-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.45), transparent 42%),
              radial-gradient(circle at 72% 74%, rgba(0, 0, 0, 0.4), transparent 55%);
}
.demo-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(7, 9, 15, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: transform .15s ease, background .2s ease;
}
.demo-play:hover { transform: scale(1.08); background: rgba(7, 9, 15, 0.7); }
.demo-play .ic-pause { display: none; }
.demo.playing .demo-play .ic-play { display: none; }
.demo.playing .demo-play .ic-pause { display: block; }
.demo-body { flex: 1; min-width: 0; }
.demo-now {
  font-family: var(--mb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mb-accent);
  display: flex; align-items: center; gap: 8px;
}
.demo-now .mb-eq span { animation-play-state: paused; transform: scaleY(0.35); }
.demo.playing .demo-now .mb-eq span { animation-play-state: running; }
.demo-track { font-family: var(--mb-font-display); font-weight: 600; font-size: 22px; margin: 8px 0 2px; letter-spacing: -0.01em; }
.demo-artist { font-size: 14px; color: var(--mb-text-muted); }
.demo-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  margin-top: 18px;
}
.demo-wave span {
  flex: 1;
  background: var(--mb-surface-3);
  border-radius: 3px;
  height: 30%;
  transition: background .2s ease;
}
.demo.playing .demo-wave span {
  background: var(--mb-accent);
  animation: demoBar 1.3s ease-in-out infinite;
}
@keyframes demoBar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- Cjenik ---------- */
.section-sub a { color: var(--mb-accent); text-decoration: none; border-bottom: 1px solid rgba(90, 227, 255, 0.4); }
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-radius: 22px;
  padding: 40px 38px;
  overflow: hidden;
}
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 6px; }
.price-amount .num {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-amount .cur { font-size: 30px; font-weight: 500; color: var(--mb-text-muted); }
.price-amount .per { font-size: 15px; color: var(--mb-text-muted); }
.price-card .mb-btn { width: 100%; margin: 26px 0 30px; }
.feature-group { margin-top: 26px; }
.feature-group:first-of-type { margin-top: 0; }
.feature-group h4 {
  font-family: var(--mb-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mb-accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mb-border-soft);
}
.feature-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.feature-group li {
  display: flex;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--mb-text);
}
.feature-group li .dash { color: var(--mb-accent); flex-shrink: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; max-width: 1000px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(90, 227, 255, 0.1);
  border: 1px solid rgba(90, 227, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--mb-accent);
}
.contact-item .lbl { font-family: var(--mb-font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mb-text-dim); }
.contact-item .val { font-size: 18px; font-weight: 500; margin-top: 4px; }
.contact-item .val a { text-decoration: none; }
.contact-item .val a:hover { color: var(--mb-accent); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mb-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mb-text-muted); }
.field input, .field textarea {
  width: 100%;
  background: var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--mb-text);
  font-family: var(--mb-font-body);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--mb-text-dim); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mb-accent);
  box-shadow: 0 0 0 3px rgba(90, 227, 255, 0.12);
}
.field.has-error input, .field.has-error textarea { border-color: #ff8a80; }
.field-error, .form-error { font-size: 13px; color: #ff8a80; }
.form-error {
  padding: 12px 16px;
  border: 1px solid rgba(255, 138, 128, 0.35);
  background: rgba(255, 138, 128, 0.08);
  border-radius: 12px;
}
.contact-form .h-captcha { min-height: 78px; }
.contact-form .mb-btn { align-self: flex-start; margin-top: 6px; }
.contact-form .mb-btn[hidden] { display: none; }

/* ---------- Sub-page header + spec cards (tech, faq, pricing) ---------- */
.page-head {
  padding: 72px 0 8px;
  background:
    radial-gradient(60% 80% at 50% -20%, #14213b 0%, transparent 70%),
    var(--mb-bg-deep);
}
.page-title {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
}
.page-sub { color: var(--mb-text-muted); font-size: 17px; line-height: 1.55; max-width: 560px; margin: 18px 0 0; }
.section-tight { padding: 72px 0; }
.section-tight .section-head { margin-bottom: 40px; }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spec-card {
  position: relative;
  background: var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-radius: 18px;
  padding: 28px 26px;
}
.spec-num {
  display: inline-block;
  font-family: var(--mb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mb-accent);
  margin-bottom: 18px;
}
.spec-card h3 {
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.spec-card p { color: var(--mb-text-muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- FAQ accordion ---------- */
.page-sub a { color: var(--mb-accent); text-decoration: none; border-bottom: 1px solid rgba(90, 227, 255, 0.4); }
.faq-list { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-radius: 16px;
  transition: border-color .18s ease;
}
.faq-item[open] { border-color: rgba(90, 227, 255, 0.35); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--mb-font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--mb-accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--mb-accent); outline-offset: 2px; border-radius: 16px; }
.faq-toggle {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(90, 227, 255, 0.1);
  border: 1px solid rgba(90, 227, 255, 0.2);
  color: var(--mb-accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px 22px;
  color: var(--mb-text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 720px;
}
.faq-a p { margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--mb-accent); text-decoration: none; border-bottom: 1px solid rgba(90, 227, 255, 0.4); }
.faq-a strong { color: var(--mb-text); }
.faq-a ul, .faq-a ol { margin: 0 0 12px; padding-left: 22px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--mb-border-soft);
  padding: 64px 0 40px;
  background: var(--mb-bg-deep);
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--mb-text-muted); font-size: 14px; line-height: 1.6; margin: 18px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--mb-font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mb-text-dim); margin: 0 0 16px; font-weight: 500;
}
.footer-col a {
  display: block; text-decoration: none; color: var(--mb-text-muted);
  font-size: 14.5px; margin-bottom: 11px; transition: color .15s ease;
}
.footer-col a:hover { color: var(--mb-accent); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--mb-border-soft);
  flex-wrap: wrap; gap: 18px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--mb-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--mb-text-muted);
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-social a:hover { color: var(--mb-accent); border-color: rgba(90, 227, 255, 0.4); transform: translateY(-2px); }
.footer-copy { font-size: 13px; color: var(--mb-text-dim); }

/* Back to top */
.to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--mb-accent);
  color: var(--mb-accent-ink);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 14px 40px -10px var(--mb-accent-glow);
  padding: 0;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-wave span, .mb-eq span, .scroll-cue .l, .demo.playing .demo-wave span { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .benefits, .pricing { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .page-head { padding-top: 56px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .demo { flex-direction: column; text-align: center; }
  .demo-now { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: 1; }
  .split.reverse .split-media { order: 2; }
  .split-text p { max-width: none; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer { padding-bottom: 96px; } /* keep the back-to-top button off the social icons */
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .nav { padding: 14px 22px; }
  .nav.scrolled, .nav.solid { padding: 12px 22px; }
  .section { padding: 84px 0; }
  .hero { padding: 120px 22px 140px; }
  .demo { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .section-tight { padding: 56px 0; }
  .faq-item summary { padding: 16px 18px; font-size: 16px; }
  .faq-a { padding: 0 18px 18px; }
  .benefit-card, .price-card { padding: 30px 24px; }
  .hero-eyebrow { white-space: normal; text-align: left; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 48px); }
  .footer-cols { gap: 36px; }
  .to-top { right: 16px; bottom: 16px; }
}
