/*
  MEDRANO LABS — Terminal Green Minimal
  ------------------------------------------------------------
  Archivo principal de estilo. Para cambiar colores globales, empieza por :root.
*/

:root {
  color-scheme: dark;
  --bg: #030604;
  --bg-2: #050905;
  --panel: #07100d;
  --panel-2: #0b120e;
  --panel-3: #0d1812;
  --line: rgba(137, 220, 103, 0.16);
  --line-strong: rgba(137, 220, 103, 0.34);
  --text: #e7ebe3;
  --text-soft: #cdd5ca;
  --muted: #849084;
  --muted-2: #667267;
  --green: #89dc67;
  --green-2: #c7ff9c;
  --danger: #ffb87a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 20%, rgba(137, 220, 103, 0.10) 0, transparent 28%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, #020302 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(137, 220, 103, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 220, 103, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 82%);
  z-index: -1;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(137, 220, 103, 0.22); color: white; }

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  color: var(--green);
  font-family: var(--mono);
}

.rail-logo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(137, 220, 103, 0.42);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  box-shadow: inset 0 0 24px rgba(137, 220, 103, .04);
}

.rail-mid { display: flex; flex-direction: column; gap: 38px; align-items: center; font-size: 13px; }
.rail-bottom { writing-mode: vertical-rl; color: var(--muted-2); font-size: 12px; }

.main { min-width: 0; }
.topbar {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 56px;
  backdrop-filter: blur(14px);
  background: rgba(3, 6, 4, .58);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { text-decoration: none; display: flex; align-items: baseline; gap: 14px; }
.brand-name { font-size: 18px; letter-spacing: .04em; font-weight: 650; }
.brand-prompt { font-family: var(--mono); color: var(--green); font-size: 21px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a, .cart-button {
  color: var(--text-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  font-weight: 700;
  opacity: .88;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-links a:hover, .cart-button:hover { color: var(--green); }
.cart-button span { color: var(--green); }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 80px 0; }
.section.tight { padding: 46px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.kicker { font-family: var(--mono); color: var(--green); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; margin: 0 0 14px; }
.h2 { margin: 0; font-size: clamp(32px, 4vw, 58px); letter-spacing: -.04em; line-height: 1.05; font-weight: 520; }
.text-muted { color: var(--muted); line-height: 1.7; }

.hero {
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  gap: 66px;
  align-items: center;
  padding: 92px 56px 70px;
}
.hero-title {
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: .98;
  letter-spacing: -.065em;
  margin: 0 0 26px;
  font-weight: 480;
}
.hero-title span { color: var(--green); }
.hero-lead {
  font-family: var(--mono);
  color: #a6b0a6;
  font-size: 17px;
  line-height: 1.72;
  max-width: 660px;
  margin: 0 0 34px;
}
.actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 15px 22px;
  border: 1px solid rgba(137, 220, 103, 0.24);
  background: rgba(255,255,255,0.01);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: 12px;
}
.btn:hover { border-color: var(--green); color: var(--green); }
.btn.primary { border-color: var(--green); color: var(--green); box-shadow: 0 0 50px rgba(137,220,103,.06); }
.btn.small { min-height: 38px; padding: 10px 14px; font-size: 11px; }

.btn.product-status-action {
  opacity: .58;
  cursor: default;
  pointer-events: none;
  border-color: rgba(190, 190, 190, .22);
  color: var(--muted);
  box-shadow: none;
}

.terminal-card, .panel, .product-card, .metric-card {
  border: 1px solid rgba(137, 220, 103, .20);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.006));
  box-shadow: var(--shadow);
}
.terminal-card { border-radius: var(--radius); overflow: hidden; }
.card-top {
  min-height: 58px;
  border-bottom: 1px solid rgba(137, 220, 103, .16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-family: var(--mono);
  color: var(--green);
}
.card-top .status { color: var(--muted); font-size: 12px; }
.hero-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 10, 8, 0.88);
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  cursor: zoom-in;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid rgba(137, 220, 103, .14);
}
.icon-button {
  border: 1px solid rgba(137, 220, 103, .24);
  color: var(--green);
  background: rgba(137, 220, 103, .03);
  min-width: 38px;
  min-height: 34px;
}
.icon-button:hover { border-color: var(--green); }
.dots { display: flex; gap: 8px; align-items: center; justify-content: center; flex: 1; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(137, 220, 103, .45);
  background: transparent;
  padding: 0;
}
.dot.active { background: var(--green); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 32px 38px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric small { display: block; color: var(--muted); text-transform: uppercase; font-family: var(--mono); letter-spacing: .12em; margin-bottom: 10px; }
.metric strong { color: var(--text); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { border-radius: 12px; overflow: hidden; background-color: rgba(7,16,13,.72); }
.product-card-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  padding: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(137,220,103,.13);
  background: rgba(3, 10, 8, 0.86);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: transform .18s ease, opacity .18s ease;
}
.product-card-image-link:hover img { transform: scale(1.012); opacity: .92; }
.product-card-body { padding: 22px; }
.product-card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.product-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

/* Format / compatibility badges */
.format-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0 18px;
}
.format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 6px 9px;
  border: 1px solid rgba(137,220,103,.26);
  border-radius: 7px;
  background: rgba(137,220,103,.045);
  color: var(--green-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.format-badge.host { color: #e7ebe3; border-color: rgba(231,235,227,.24); background: rgba(231,235,227,.035); }
.format-badge.vst { color: var(--green); }
.format-badge.clap { color: var(--danger); border-color: rgba(255,184,122,.30); background: rgba(255,184,122,.04); }
.format-badge.arch, .format-badge.os { color: var(--text-soft); border-color: rgba(205,213,202,.20); background: rgba(205,213,202,.035); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px; }
.tag { border: 1px solid rgba(137,220,103,.18); color: var(--green); padding: 6px 9px; font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.card-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.price { font-family: var(--mono); color: var(--green-2); }

.panel { border-radius: 12px; padding: 28px; }
.panel h3 { margin-top: 0; font-size: 22px; }
.panel p, .panel li { color: var(--muted); line-height: 1.7; }

.product-hero { padding: 78px 56px 42px; }
.breadcrumb { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.product-hero-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.product-title { font-size: clamp(50px, 7vw, 104px); line-height: .98; letter-spacing: -.065em; margin: 0 0 22px; font-weight: 480; }
.product-title span { color: var(--green); }
.product-subtitle { font-family: var(--mono); color: #a6b0a6; line-height: 1.72; font-size: 16px; }
.product-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 30px; }
.meta-pill { border: 1px solid rgba(137,220,103,.22); color: var(--text-soft); padding: 8px 10px; font-size: 12px; font-family: var(--mono); }
.meta-pill.accent { color: var(--green); border-color: rgba(137,220,103,.45); }
.gallery-main { cursor: zoom-in; }
.thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; border-top: 1px solid rgba(137,220,103,.14); }
.thumb { border: 1px solid rgba(137,220,103,.16); background: transparent; padding: 0; opacity: .65; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--green); }
.thumb img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #030604; padding: 4px; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.workflow-step { border: 1px solid rgba(137,220,103,.16); padding: 18px; font-family: var(--mono); color: var(--text-soft); counter-increment: step; }
.workflow-step::before { content: counter(step, decimal-leading-zero); display: block; color: var(--green); margin-bottom: 10px; }
.spec-list { display: grid; gap: 10px; }
.spec { display: grid; grid-template-columns: 170px 1fr; gap: 16px; border-bottom: 1px solid rgba(137,220,103,.12); padding: 12px 0; }
.spec strong { color: var(--green); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.spec span { color: var(--text-soft); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,.84);
}
.lightbox.open { display: flex; }
.lightbox-inner { width: min(1180px, 96vw); }
.lightbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; font-family: var(--mono); color: var(--green); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #020302; border: 1px solid rgba(137,220,103,.22); }
.lightbox-nav { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }

.cart-panel {
  position: fixed;
  right: 18px;
  top: 108px;
  width: min(380px, calc(100vw - 36px));
  z-index: 80;
  border: 1px solid rgba(137,220,103,.28);
  background: rgba(5,9,5,.96);
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
}
.cart-panel.open { display: block; }
.cart-panel h3 { margin: 0 0 14px; }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-bottom: 1px solid rgba(137,220,103,.12); padding: 12px 0; color: var(--text-soft); }
.cart-empty { color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 34px 56px 46px; color: var(--muted-2); font-family: var(--mono); font-size: 13px; display: flex; justify-content: space-between; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--green); }

.simple-page { padding: 78px 56px; }
.simple-page .panel { max-width: 900px; }
.code-note { background: #050805; border: 1px solid rgba(137,220,103,.18); padding: 16px; color: var(--green); font-family: var(--mono); overflow: auto; }


/* ------------------------------------------------------------
   Product images — consistent sizing, fit and subtle frame
   ------------------------------------------------------------
   Use object-fit: contain for software/plugin screenshots so the UI
   is never cropped or distorted. Change the height values here if you
   want the screenshots larger or smaller across the whole site.
*/
.hero-image-wrap,
.product-card-image-link,
.gallery-main {
  border: 1px solid rgba(137, 220, 103, 0.22);
  box-shadow: inset 0 0 0 1px rgba(137, 220, 103, 0.045);
}

.gallery-main {
  height: min(62vh, 620px);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 10, 8, 0.88);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.product-card-image-link:hover img {
  transform: scale(1.018);
}

@media (max-width: 720px) {
  .product-card-image-link {
    height: 200px;
  }

  .gallery-main {
    height: min(54vh, 420px);
    padding: 12px;
  }
}

@media (max-width: 1060px) {
  .page-shell { grid-template-columns: 1fr; }
  .side-rail { display: none; }
  .hero, .product-hero-grid { grid-template-columns: 1fr; }
  .grid.products, .grid.two, .grid.four, .metrics, .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .topbar { padding: 20px 24px; min-height: auto; align-items: flex-start; }
  .nav-links { display: none; }
  .hero, .product-hero, .simple-page { padding-left: 24px; padding-right: 24px; }
  .container { width: min(100% - 36px, 1180px); }
  .grid.products, .grid.two, .grid.four, .metrics, .workflow { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .section-head { display: block; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  .footer { display: block; padding-left: 24px; padding-right: 24px; }
  .footer div { margin: 10px 0; }
}

/* ------------------------------------------------------------
   Interaction clarity system
   ------------------------------------------------------------
   Rule: only clickable elements get strong hover, pointer cursor,
   arrows, or action labels. Informational badges stay passive.
*/

/* Real actions */
a.btn,
button.btn,
.icon-button,
.dot,
.thumb,
.product-card-image-link,
.gallery-main {
  cursor: pointer;
}

.btn,
.icon-button {
  position: relative;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.btn:hover,
.icon-button:hover,
.btn:focus-visible,
.icon-button:focus-visible {
  border-color: var(--green);
  color: var(--green-2);
  background: rgba(137, 220, 103, .075);
  box-shadow: 0 0 0 1px rgba(137,220,103,.12) inset, 0 0 32px rgba(137,220,103,.07);
  outline: none;
}

.btn:active,
.icon-button:active {
  transform: translateY(1px);
}

.nav-links a,
.cart-button,
.footer a,
.breadcrumb a {
  cursor: pointer;
  transition: color .16s ease, opacity .16s ease, border-color .16s ease;
}

/* Clickable product cards / images */
.product-card {
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.product-card:has(.product-card-image-link:hover),
.product-card:has(.btn:hover) {
  border-color: rgba(137, 220, 103, .36);
  background-color: rgba(9, 22, 17, .78);
}

.interactive-image {
  position: relative;
  isolation: isolate;
}

.interactive-image::after {
  content: attr(data-action-label);
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(137, 220, 103, .34);
  border-radius: 7px;
  background: rgba(3, 6, 4, .82);
  color: var(--green-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background-color .16s ease;
  pointer-events: none;
}

.interactive-image:hover::after,
.interactive-image:focus-visible::after,
.product-card-image-link:focus-visible::after,
.thumb:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.product-card-image-link:hover,
.product-card-image-link:focus-visible,
.thumb:hover,
.thumb:focus-visible {
  outline: none;
  border-color: rgba(137, 220, 103, .42);
}

.product-card-image-link:hover img,
.product-card-image-link:focus-visible img,
.interactive-image:hover > img,
.interactive-image:focus-visible > img {
  opacity: .88;
}

/* Passive information: badges, tags, meta, specs and feature blocks */
.format-badge,
.tag,
.meta-pill,
.price,
.metric,
.workflow-step,
.spec,
.panel {
  cursor: default;
}

.format-badge,
.tag,
.meta-pill {
  opacity: .74;
  box-shadow: none;
  user-select: text;
}

.format-badge {
  border-color: rgba(137,220,103,.18);
  background: rgba(137,220,103,.025);
  color: var(--text-soft);
}

.format-badge.vst,
.format-badge.host,
.format-badge.arch,
.format-badge.os {
  color: var(--text-soft);
}

.format-badge.clap {
  color: #c9a17e;
  border-color: rgba(255,184,122,.20);
  background: rgba(255,184,122,.025);
}

.tag {
  color: #a8b3a8;
  border-color: rgba(205,213,202,.13);
  background: rgba(255,255,255,.012);
}

.meta-pill {
  color: #a8b3a8;
  border-color: rgba(205,213,202,.15);
  background: rgba(255,255,255,.012);
}

.meta-pill.accent {
  color: var(--green);
  border-color: rgba(137,220,103,.30);
  background: rgba(137,220,103,.035);
}

/* Carousel controls are explicitly interactive */
.carousel-controls .icon-button,
.dots .dot,
.thumbnails .thumb {
  cursor: pointer;
}

.dot:hover,
.dot:focus-visible {
  border-color: var(--green-2);
  background: rgba(137, 220, 103, .16);
  outline: none;
}

.thumb {
  transition: opacity .16s ease, border-color .16s ease, background-color .16s ease;
}

.thumb:hover,
.thumb:focus-visible {
  background: rgba(137, 220, 103, .035);
}

@media (hover: none) {
  .interactive-image::after {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .interactive-image::after {
    right: 9px;
    bottom: 9px;
    padding: 6px 8px;
    font-size: 9px;
  }
}

/* ------------------------------------------------------------
   Beta access dialog
   ------------------------------------------------------------ */
body.modal-open { overflow: hidden; }

.beta-inline-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(10px);
}

.beta-modal.open { display: grid; }

.beta-dialog {
  width: min(650px, 96vw);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(137, 220, 103, .34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(137, 220, 103, .035), rgba(255, 255, 255, .008)),
    #050805;
  box-shadow: 0 32px 120px rgba(0, 0, 0, .72);
}

.beta-dialog-top {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid rgba(137, 220, 103, .16);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.beta-terminal-prompt {
  margin-right: 10px;
  color: var(--green);
  font-size: 16px;
}

.beta-close {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 22px;
}

.beta-dialog-body { padding: 34px; }
.beta-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 520;
}
.beta-lead {
  margin: 0 0 26px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}

.beta-form { display: grid; gap: 18px; }
.beta-field { display: grid; gap: 8px; }
.beta-field > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.beta-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(137, 220, 103, .22);
  border-radius: 7px;
  outline: none;
  background: rgba(255, 255, 255, .018);
  color: var(--text);
  padding: 12px 14px;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.beta-field input:hover { border-color: rgba(137, 220, 103, .38); }
.beta-field input:focus {
  border-color: var(--green);
  background: rgba(137, 220, 103, .035);
  box-shadow: 0 0 0 3px rgba(137, 220, 103, .06);
}

.beta-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}
.beta-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.beta-check a { color: var(--green); }
.beta-check strong { color: var(--muted); font-weight: 700; }
.beta-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.beta-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.beta-security-note,
.beta-smallprint,
.beta-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
}
.beta-status { min-height: 18px; margin: 0; }
.beta-status.error { color: var(--danger); }
.beta-form .btn:disabled { opacity: .45; cursor: wait; }

.beta-downloads {
  display: grid;
  gap: 12px;
  margin: 28px 0 18px;
}
.beta-download-button { width: 100%; }
.beta-access-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(137, 220, 103, .12);
  border-bottom: 1px solid rgba(137, 220, 103, .12);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.beta-smallprint { margin: 18px 0; }
.beta-smallprint strong { color: var(--text-soft); }

@media (max-width: 720px) {
  .beta-modal { padding: 12px; }
  .beta-dialog { max-height: calc(100vh - 24px); }
  .beta-dialog-body { padding: 26px 20px; }
  .beta-dialog-top { padding-left: 18px; }
  .beta-form-actions .btn { width: 100%; }
}

/* Legal / policy copy */
.legal-copy { max-width: 920px; }
.legal-copy h2 {
  margin: 34px 0 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.legal-copy p { color: var(--text-soft); line-height: 1.75; }
.legal-copy a { color: var(--green); }

/* ------------------------------------------------------------
   Mobile navigation
   ------------------------------------------------------------ */
.mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-menu-button:hover,
.mobile-menu-button:focus-visible,
.mobile-menu-button[aria-expanded="true"] {
  border-color: var(--green);
  color: var(--green-2);
  background: rgba(137, 220, 103, .075);
  outline: none;
}

.mobile-menu-icon {
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after,
.mobile-menu-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform .16s ease, top .16s ease, opacity .16s ease;
}

.mobile-menu-icon::before { top: 0; }
.mobile-menu-icon span { top: 5.5px; }
.mobile-menu-icon::after { top: 11px; }

.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon::before {
  top: 5.5px;
  transform: rotate(45deg);
}
.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon span { opacity: 0; }
.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon::after {
  top: 5.5px;
  transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .topbar {
    padding: 14px 18px;
    min-height: 66px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-name {
    font-size: 16px;
    white-space: nowrap;
  }

  .brand-prompt { font-size: 18px; }

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  .cart-button {
    order: 3;
    min-height: 38px;
    padding: 0 2px;
    white-space: nowrap;
  }

  .nav-links {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    margin: 2px 0 0;
    border-top: 1px solid var(--line);
  }

  .topbar.mobile-menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(137, 220, 103, .12);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .09em;
  }

  .nav-links a::after {
    content: "→";
    color: var(--green);
    opacity: .72;
  }

  .nav-links a[aria-current="page"] {
    color: var(--green-2);
  }

  .nav-links a[aria-current="page"]::before {
    content: "> ";
    color: var(--green);
  }
}

@media (max-width: 390px) {
  .mobile-menu-button .mobile-menu-label { display: none; }
  .mobile-menu-button { width: 38px; padding: 0; }
  .brand-name { font-size: 15px; }
  .cart-button { font-size: 11px; letter-spacing: .05em; }
}

/* ------------------------------------------------------------
   Music catalog — price, embedded player and direct purchase
   ------------------------------------------------------------ */
.music-cover { position: relative; }
.music-cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(137,220,103,.55);
  background: rgba(3,8,5,.86);
  color: var(--green);
  font: 700 19px/1 var(--mono);
  cursor: pointer;
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}
.music-cover:hover .music-cover-play,
.music-cover-play:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
  background: rgba(8,18,12,.96);
}
.music-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: 2px;
  border-top: 1px solid rgba(137,220,103,.12);
}
.music-price-row .price { font-size: 22px; color: var(--green); }
.music-format { color: var(--muted-2); font: 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.music-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.music-actions .btn { flex: 1 1 120px; text-align: center; justify-content: center; }
.music-buy-status { min-height: 1.4em; margin: 10px 0 0 !important; color: #ffb7b7 !important; font: 12px/1.45 var(--mono); }

.music-player-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
}
.music-player-modal.open { display: flex; }
.music-player-dialog {
  width: min(760px, 96vw);
  max-height: 94vh;
  overflow: auto;
  border: 1px solid rgba(137,220,103,.28);
  background: #050905;
  box-shadow: var(--shadow);
  padding: 20px;
}
.music-player-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.music-player-toolbar h3 { margin: 2px 0 0; font-size: 25px; }
.music-player-frame { width: 100%; border: 1px solid rgba(137,220,103,.18); background: #000; }
.music-player-frame iframe { display: block; width: 100%; height: 450px; border: 0; }
.music-player-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
body.modal-open { overflow: hidden; }

.music-success-card { max-width: 760px; margin: 0 auto; }
.music-success-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.music-order-meta { margin-top: 20px; padding: 16px; border: 1px solid rgba(137,220,103,.16); background: rgba(7,16,13,.55); }
.music-order-meta strong { color: var(--green); }

@media (max-width: 720px) {
  .music-cover-play { opacity: 1; width: 52px; height: 52px; }
  .music-price-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .music-format { text-align: left; }
  .music-player-modal { padding: 10px; }
  .music-player-dialog { width: 100%; padding: 14px; }
  .music-player-frame iframe { height: 420px; }
}

/* ------------------------------------------------------------
   Language switcher
   ------------------------------------------------------------ */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}

.language-button {
  min-width: 30px;
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--green-2);
  border-color: rgba(137, 220, 103, .28);
  outline: none;
}

.language-button.active {
  color: var(--green);
  border-color: var(--green);
  background: rgba(137, 220, 103, .06);
}

@media (max-width: 720px) {
  .language-switcher {
    width: 100%;
    justify-content: flex-end;
    padding: 10px 4px 4px;
    margin: 0;
    border-left: 0;
    border-top: 1px solid rgba(137, 220, 103, .12);
  }
}

/* ------------------------------------------------------------
   Medrano Labs branding switch
   Original HTML branding remains untouched; site.js enables these
   classes only when the corresponding MEDRANO_BRANDING flag is true.
   ------------------------------------------------------------ */
.brand-vector {
  align-items: center;
  line-height: 0;
}

.brand-vector-logo {
  display: block;
  width: 132px;
  max-width: 132px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.rail-logo-vector {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
}

.rail-logo-vector img {
  display: block;
  width: 50px;
  max-width: none;
  height: auto;
  transform: translateY(-8px);
}

@media (max-width: 720px) {
  .brand-vector-logo {
    width: 112px;
    max-width: 112px;
    max-height: 52px;
  }
}


/* ------------------------------------------------------------
   Software screenshots — soft edge fade
   ------------------------------------------------------------
   The screenshot <img> itself is allowed to keep its intrinsic ratio
   inside each fixed presentation area. This makes the mask follow the
   actual visible screenshot edge (important for very wide plugin UIs).
   Music artwork is intentionally excluded.
*/

/* Product-page carousel: .gallery-main is the IMG, not a wrapper. */
.hero-image.gallery-main {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  display: block;
  object-fit: contain;
  background: transparent;
  --software-edge-fade: 8px;
}

/* Software cards on home/catalog. Keep the image box tied to its real ratio. */
.product-card-image-link:not(.music-cover) > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  --software-edge-fade: 6px;
}

/* Carousel thumbnails and the Screenshots grid. */
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  padding: 0;
  display: block;
  object-fit: contain;
  background: transparent;
  --software-edge-fade: 5px;
}

/* Expanded screenshot. */
.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  border: 0;
  background: transparent;
  --software-edge-fade: 10px;
}

/* True transparency fade on all four edges. */
.hero-image.gallery-main,
.product-card-image-link:not(.music-cover) > img,
.thumb > img,
.lightbox img {
  -webkit-mask-image:
    linear-gradient(to right,
      transparent 0,
      #000 var(--software-edge-fade),
      #000 calc(100% - var(--software-edge-fade)),
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0,
      #000 var(--software-edge-fade),
      #000 calc(100% - var(--software-edge-fade)),
      transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,
      transparent 0,
      #000 var(--software-edge-fade),
      #000 calc(100% - var(--software-edge-fade)),
      transparent 100%),
    linear-gradient(to bottom,
      transparent 0,
      #000 var(--software-edge-fade),
      #000 calc(100% - var(--software-edge-fade)),
      transparent 100%);
  mask-composite: intersect;
}
