@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 800;
}

:root {
  --bg: #070914;
  --bg-2: #10110d;
  --ink: #f7fbff;
  --muted: #aeb8ca;
  --soft: rgba(255, 255, 255, .07);
  --soft-2: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .16);
  --cyan: #47f0d2;
  --lime: #b6ef62;
  --red: #ff6a55;
  --amber: #ffcb66;
  --violet: #8d7dff;
  --panel: rgba(9, 12, 22, .9);
  --radius: 8px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

::-webkit-scrollbar-corner {
  background: transparent;
}


html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(145deg, #070914 0%, #11131b 42%, #10110d 100%);
  background-size: 44px 44px, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(71, 240, 210, .12) 42% 43%, transparent 43% 100%),
    linear-gradient(155deg, transparent 0 68%, rgba(255, 203, 102, .1) 68% 69%, transparent 69% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .026) 0 1px, transparent 1px 18px);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 9, 20, .18), rgba(7, 9, 20, .82));
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: .72;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  display: flex;
  width: min(1500px, calc(100% - 48px));
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(7, 9, 20, .68);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .26);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.4s ease, 
              box-shadow 0.4s ease;
}

.site-header.scrolled {
  top: 0;
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0;
  padding: 12px 24px;
  background: rgba(7, 9, 20, .92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand,
.nav,
.hero-actions,
.download-actions,
.status-stack,
.action-row {
  display: flex;
  align-items: center;
}

.brand {
  min-width: max-content;
  gap: 10px;
  padding-right: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand:hover .brand-mark {
  border-color: var(--cyan);
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 0 15px rgba(71, 240, 210, 0.3);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(71, 240, 210, .34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav {
  margin: 0 auto;
  gap: 8px;
}

.nav a {
  position: relative;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav a:hover::after {
  width: 60%;
  left: 20%;
}

.nav-cta {
  min-height: 38px;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--lime);
  background: rgba(182, 239, 98, .08);
  border: 1px solid rgba(182, 239, 98, .42);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(182, 239, 98, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
  background: var(--lime);
  color: #07100d;
  box-shadow: 0 0 20px rgba(182, 239, 98, 0.4);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(500px, 1.4fr);
  gap: clamp(24px, 4vw, 64px);
  width: min(1600px, calc(100% - clamp(24px, 4vw, 80px)));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(100px, 10vh, 140px) 0 clamp(40px, 4vh, 80px);
  align-items: start;
}

.hero-copy {
  align-self: start;
}

/* Tool & converter pages (those with a .desk-2col workspace): stack the SEO copy
   as a compact card ON TOP and let the workspace span the full width below, so the
   tool can stretch sideways instead of being squeezed into a right-hand column.
   The homepage launcher uses .desk-flow-container (not .desk-2col) so it's unaffected. */
.hero:has(.desk-2col) {
  grid-template-columns: 1fr;
  min-height: 0;
  gap: 22px;
}
.hero:has(.desk-2col) .hero-copy {
  position: relative;
  max-width: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 2.6vw, 30px);
  overflow: hidden;
}
/* Multicolor brand stripe across the top — mirrors the legacy editorial card. */
.hero:has(.desk-2col) .hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 50%, var(--violet) 100%);
  opacity: 0.95;
}
.hero:has(.desk-2col) .hero-copy h1,
.hero:has(.desk-2col) #hero-title {
  max-width: 30ch;
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.04;
}
.hero:has(.desk-2col) .hero-text {
  max-width: 80ch;
  margin-bottom: 0;
  font-size: 1rem;
}
.hero:has(.desk-2col) .converter-desk { width: 100%; }

.eyebrow,
.desk-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: 4.7rem;
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-text,
.privacy-copy p,
.native-copy p,
.download p,
.panel-head p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: 1.08rem;
}

.privacy-ledger {
  display: grid;
  max-width: 640px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
}

.privacy-ledger div {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-ledger span {
  color: var(--muted);
}

.privacy-ledger strong {
  font-size: .98rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--ink);
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(71, 240, 210, .4);
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #07100d;
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .055);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .09);
}

.converter-desk {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    rgba(9, 12, 22, .82);
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: var(--shadow);
  overflow: visible;
}

.converter-desk::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  content: "";
  background: linear-gradient(var(--cyan), var(--red), var(--amber), var(--lime));
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  z-index: 2;
}

/* Breadcrumbs */
.desk-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px 0 26px;
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}
.desk-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.desk-breadcrumbs a:hover { color: var(--cyan); }
.desk-breadcrumbs .crumb-sep { color: var(--muted); opacity: 0.35; }
.desk-breadcrumbs .crumb-current { color: var(--ink); font-weight: 700; }

/* Two-column desk: SEO content left, converter right. Uses a CONTAINER query so
   it only splits when the desk itself is wide enough — staying stacked when the
   desk sits in the hero's narrow right column on large monitors. */
.converter-desk { container-type: inline-size; }
.desk-2col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.desk-tool { min-width: 0; width: 100%; }

.desk-topbar {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 17px 26px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 12, .52);
  position: relative;
  z-index: 1;
}

.desk-topbar h2 {
  margin: 0;
  font-size: 1.6rem;
}

.status-stack {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-stack span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(182, 239, 98, .26);
  border-radius: 999px;
  color: #dff8ae;
  background: rgba(182, 239, 98, .06);
  font-size: .78rem;
  font-weight: 800;
}

.status-stack i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
}

.desk-grid {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 610px;
}

.tool-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 12px 16px 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, .22);
}

.tool-tab {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 54px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.tool-tab:hover,
.tool-tab.active {
  border-color: rgba(71, 240, 210, .28);
  background: rgba(255, 255, 255, .075);
  color: var(--ink);
}

.tool-tab span {
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(71, 240, 210, .08);
  font-size: .72rem;
  font-weight: 800;
}

.tool-tab strong {
  overflow: hidden;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-surface {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: grid;
  gap: 14px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
}

.panel-head p {
  max-width: 560px;
  margin-bottom: 0;
  font-size: .94rem;
}

.panel-head strong {
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(255, 203, 102, .28);
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 203, 102, .07);
  font-size: .76rem;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 112px;
  gap: 8px;
  border: 1px dashed rgba(71, 240, 210, .44);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(71, 240, 210, .045);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.drop-zone.dragging {
  border-color: var(--lime);
  background: rgba(182, 239, 98, .08);
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: none !important;
}

.drop-zone strong,
.drop-zone small {
  display: block;
}

.drop-zone small {
  margin-top: 6px;
  color: var(--muted);
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.controls-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.controls-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.controls-grid output {
  color: var(--cyan);
}

select,
input[type="number"],
input[type="color"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: rgba(1, 3, 10, .72);
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2347f0d2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 40px !important;
  cursor: pointer;
}

select:hover,
input[type="number"]:hover {
  border-color: rgba(71, 240, 210, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

select:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(71, 240, 210, 0.25);
}

select option {
  background-color: #070914;
  color: var(--ink);
  padding: 12px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
  outline: none;
  height: 22px;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 12px rgba(71, 240, 210, 0.6);
  transition: transform 0.2s, background-color 0.2s;
  margin-top: -5px;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: #ffffff;
}

input[type="color"] {
  padding: 4px;
  cursor: pointer;
}

.action-row {
  flex-wrap: wrap;
  gap: 10px;
}

.preview-canvas {
  width: 240px;
  height: 150px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .3);
}

.preview-canvas.checker {
  background-color: #19202b;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .14) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, .14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .14) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.editor-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

textarea {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 13px;
  color: var(--ink);
  background: rgba(1, 3, 10, .72);
  outline: none;
  line-height: 1.45;
  tab-size: 2;
}

.queue-list {
  display: grid;
  gap: 8px;
  min-height: 80px;
  max-height: 160px;
  overflow: auto;
}

.queue-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  font-size: .84rem;
}

.desk-log {
  min-height: 44px;
  padding: 13px 18px 13px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, .28);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
}

.desk-log span {
  color: var(--lime);
}

.privacy-strip,
.native-band,
.download,
.footer {
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
}

.privacy-strip {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 38px;
  padding: 96px 0 80px;
}

.privacy-strip h2,
.native-band h2,
.download h2 {
  font-size: 3rem;
}

.privacy-copy {
  display: grid;
  gap: 18px;
}

.privacy-copy p {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--red);
  font-size: 1.02rem;
}

.native-band {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(420px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding: 86px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-board {
  display: grid;
  gap: 10px;
}

.capability-board div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  min-height: 68px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: rgba(255, 255, 255, .055);
}

.capability-board span {
  color: var(--amber);
  font-weight: 800;
}

.download {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 72px 0 58px;
}

.download p {
  max-width: 680px;
}

.download-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 42px;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .48s ease, transform .48s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  h1 {
    max-width: 14ch;
    font-size: 3.55rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .hero-copy {
    max-width: 760px;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 2.85rem;
  }

  .privacy-strip,
  .native-band,
  .download {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }

  .desk-grid {
    grid-template-columns: 1fr;
  }

  .tool-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .tool-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 72px;
    text-align: center;
  }

  .tool-tab span {
    width: 42px;
  }

  .controls-grid,
  .controls-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .privacy-strip,
  .native-band,
  .download,
  .footer {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: .94rem;
  }

  .nav-cta {
    min-width: 0;
    padding: 8px 9px;
    font-size: .78rem;
  }

  .hero {
    padding-top: 92px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2,
  .privacy-strip h2,
  .native-band h2,
  .download h2 {
    font-size: 2rem;
  }

  .privacy-ledger div,
  .capability-board div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .desk-topbar,
  .panel-head {
    display: grid;
  }

  .tool-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .controls-grid,
  .controls-grid.compact {
    grid-template-columns: 1fr;
  }

  .tool-surface {
    padding: 13px;
  }

  .button {
    width: 100%;
  }

  .preview-canvas {
    width: 100%;
  }

  textarea {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   CUSTOM GLASSMORPHIC SELECTS STYLE
   ========================================================================== */
.custom-select {
  position: relative;
  width: 100%;
  margin-top: 2px;
  user-select: none;
  z-index: 10;
}

.select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  background: rgba(1, 3, 10, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.select-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  flex-shrink: 0;
}

.custom-select.open .select-trigger::after {
  transform: rotate(-135deg) translateY(1px);
  border-color: var(--cyan);
}

.custom-select:hover .select-trigger {
  border-color: rgba(71, 240, 210, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.custom-select.open .select-trigger {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(71, 240, 210, 0.25);
  background: rgba(1, 3, 10, .85);
}

.select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: rgba(9, 12, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(71, 240, 210, 0.02);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 220px;
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.select-options::-webkit-scrollbar {
  width: 6px;
}

.select-options::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px;
}

.select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.select-options::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}


.custom-select.open .select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-option {
  padding: 11px 14px;
  font-size: .84rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.select-option:hover {
  background: rgba(71, 240, 210, 0.08);
  color: var(--cyan);
  padding-left: 18px;
}

.select-option.active {
  background: rgba(71, 240, 210, 0.12);
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(71, 240, 210, 0.2);
}

.select-option.active::after {
  content: "✓";
  font-size: 11px;
  color: var(--cyan);
}

/* ==========================================================================
   CONTROL GROUP & PREMIUM COMPARISON STYLES
   ========================================================================== */
.control-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.control-group label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.control-group.btn-group-align {
  justify-self: start;
  align-self: end;
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  width: 100%;
  margin-top: 40px;
}

.comparison-card {
  position: relative;
  background: rgba(9, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-desktop {
  border-color: rgba(71, 240, 210, 0.25);
  background: rgba(9, 12, 22, 0.85);
}

.card-desktop:hover {
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(71, 240, 210, 0.15);
}

.card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(71, 240, 210, 0.15) 0%, rgba(71, 240, 210, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.card-web .card-glow {
  background: radial-gradient(circle, rgba(255, 203, 102, 0.12) 0%, rgba(255, 203, 102, 0) 70%);
}

.card-header {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

.card-header h3 {
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  font-weight: 800;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-web {
  background: rgba(255, 203, 102, 0.1);
  color: var(--amber);
  border: 1px solid rgba(255, 203, 102, 0.2);
}

.badge-desktop {
  background: rgba(71, 240, 210, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(71, 240, 210, 0.2);
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

.card-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-yes svg {
  fill: var(--lime);
}

.feature-no svg {
  fill: var(--red);
  opacity: 0.6;
}

.card-features li.accent-feature {
  color: var(--ink);
}

.card-features li.accent-feature strong {
  color: var(--cyan);
}

.card-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.card-desktop .card-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.price-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--muted);
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-tag-free {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--lime);
  text-shadow: 0 0 15px rgba(182, 239, 98, 0.2);
}

.price-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.card-cta-btn {
  width: 100%;
}

@media (max-width: 960px) {
  .comparison-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-btn:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 150;
  display: none;
  min-width: 120px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(9, 12, 22, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lang-selector.active .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.lang-dropdown a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.lang-dropdown a.active {
  color: var(--cyan);
  background: rgba(71, 240, 210, 0.08);
}

/* Desk Promo Link */
/* Desk Promo Banner (Replacing the old tilted floating card) */
.desk-promo-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px dashed rgba(71, 240, 210, 0.35);
  border-radius: var(--radius);
  background: rgba(71, 240, 210, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desk-promo-banner:hover {
  border-color: var(--cyan);
  background: rgba(71, 240, 210, 0.08);
  box-shadow: 0 0 20px rgba(71, 240, 210, 0.15);
}

.desk-promo-banner span {
  font-size: 0.86rem;
  color: var(--muted);
}

.promo-banner-link {
  font-size: 0.94rem;
  color: var(--cyan);
  transition: color 0.25s ease;
}

.promo-banner-link strong {
  color: var(--lime);
  text-shadow: 0 0 8px rgba(182, 239, 98, 0.2);
}

.promo-banner-link:hover {
  color: #ffffff;
}

@media (min-width: 768px) {
  .desk-promo-banner {
    flex-direction: row;
    gap: 16px;
    padding: 14px 28px;
  }
}

/* App downloads group */
.app-downloads-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

@media (min-width: 480px) {
  .app-downloads-group {
    flex-direction: row;
  }
  .app-downloads-group .button {
    flex: 1;
  }
}

/* ==========================================================================
   ENGINE LOADER & WARNING BANNER STYLES
   ========================================================================== */
.engine-loader-container {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.engine-loader-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

#doc-loader-status {
  font-weight: 700;
  color: var(--cyan);
}

#doc-loader-percent {
  font-weight: 800;
  color: var(--lime);
}

.engine-loader-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.engine-loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(71, 240, 210, 0.5);
}

.media-warning-banner {
  background: rgba(255, 106, 85, 0.06);
  border: 1px dashed rgba(255, 106, 85, 0.42);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 800;
}

.media-warning-text {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.warning-cta-btn {
  display: inline-flex;
  align-self: flex-start;
  min-height: 32px;
  align-items: center;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #07100d;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(182, 239, 98, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.warning-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(182, 239, 98, 0.45);
  background: #ffffff;
  color: #07100d;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.checkbox-container span {
  font-size: 0.84rem;
  color: var(--muted);
}

.checkbox-align {
  display: flex;
  align-items: center;
  min-height: 42px;
}

/* ==========================================================================
   ESTILOS PREMIUM DEL ESTUDIO DE CONVERSIÓN (STEP-BY-STEP FLOW)
   ========================================================================== */

.desk-flow-container {
  padding: 24px;
}

.step-container {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-container + .step-container {
  margin-top: 32px;
}

.stage-header h3 {
  margin: 0;
}

/* 1. Category Grid & Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 36, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsla(var(--cat-color), 88%, 66%, 0.62), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: hsla(var(--cat-color), 88%, 66%, 0.32);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 32px hsla(var(--cat-color), 88%, 66%, 0.08);
}

.category-card:hover::before {
  opacity: 1;
}

.card-glow-effect {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, hsla(var(--cat-color), 88%, 66%, 0.15) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.category-card:hover .card-glow-effect {
  opacity: 1;
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: hsla(var(--cat-color), 92%, 68%, 1);
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-card:hover .card-icon {
  transform: scale(1.08) rotate(2deg);
  border-color: hsla(var(--cat-color), 92%, 68%, 0.4);
}

.category-card strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.category-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Paste Shortcut */
.paste-text-shortcut {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.shortcut-link {
  background: none;
  border: none;
  padding: 0;
  font-weight: 800;
  color: var(--cyan);
  cursor: pointer;
  transition: color 0.2s, text-decoration 0.2s;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shortcut-link:hover {
  color: var(--lime);
}

/* 2. Selected File Card Stage */
.stage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(71, 240, 210, 0.08);
  border: 1px solid rgba(71, 240, 210, 0.34);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.glowing-file-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(16, 20, 38, 0.85);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 16px 20px;
}

.card-glow-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(71, 240, 210, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.file-card-content {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .file-card-content {
    flex-wrap: wrap;
    gap: 12px;
  }
}

.visual-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cyan);
}

.file-text-info {
  flex: 1;
  min-width: 150px;
}

.file-text-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.file-text-info span {
  font-size: 0.8rem;
  color: var(--muted);
}

.autodetect-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(182, 239, 98, 0.07);
  border: 1px solid rgba(182, 239, 98, 0.35);
  color: var(--lime);
  font-size: 0.8rem;
}

.pulse-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: led-pulse 1.8s infinite ease-in-out;
}

@keyframes led-pulse {
  0% { transform: scale(0.92); opacity: 0.6; box-shadow: 0 0 0 0 rgba(182, 239, 98, 0.7); }
  70% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 0 8px rgba(182, 239, 98, 0); }
  100% { transform: scale(0.92); opacity: 0.6; box-shadow: 0 0 0 0 rgba(182, 239, 98, 0); }
}

.btn-remove-stage {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-remove-stage:hover {
  background: rgba(255, 106, 85, 0.12);
  border-color: rgba(255, 106, 85, 0.4);
  color: var(--red);
  transform: rotate(90deg);
}

/* 3. Target Format Pills Selector */
.target-format-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}

.target-pill {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.target-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ink);
  transform: translateY(-2px);
}

.target-pill.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07100d;
  box-shadow: 0 0 24px rgba(71, 240, 210, 0.35);
}

/* 4. Parameters and Actions */
.custom-params-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(1, 3, 10, 0.45);
  padding: 20px;
  margin-top: 10px;
  animation: slide-up-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.visual-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.huge-action-btn {
  flex: 1;
  min-height: 52px;
  font-size: 1.05rem;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(71, 240, 210, 0.15);
  letter-spacing: -0.01em;
}

.huge-action-btn:hover {
  box-shadow: 0 0 30px rgba(71, 240, 210, 0.4);
}

/* Textareas premium wrap */
.textarea-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.textarea-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.editor-pair textarea {
  min-height: 250px;
}

/* ==========================================================================
   PREMIUM UX LAYOUT & TOOLTIPS (NO OVERLAPS, PERFECT GRID ALIGNMENTS)
   ========================================================================== */

/* ---- Basic options label/header ---- */
.params-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

/* ---- Params basic grid (2-col responsive) ---- */
.params-basic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

/* ---- Advanced Options Block (collapsible container) ---- */
.adv-opts-block {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

.adv-opts-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.adv-opts-toggle:hover {
  color: var(--cyan);
}

.adv-opts-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.adv-opts-toggle[aria-expanded="true"] .adv-opts-arrow {
  transform: rotate(180deg);
}

/* The collapsible content area */
.adv-opts-content {
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-height: 800px;
  opacity: 1;
}

.adv-opts-content.collapsed-panel {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---- Advanced params grid (2-col: selects/inputs) ---- */
.adv-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 4px;
}

/* ---- Advanced checks grid (2-col checkboxes) ---- */
.adv-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 24px;
  padding: 10px 0 14px;
}

/* ---- Inline pair (width/height fields side by side) ---- */
.inline-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- Controls grid override for advanced content ---- */
.controls-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)) !important;
  gap: 20px !important;
}

.controls-grid label {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Align titles with outputs in range-label */
.range-label {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.range-label output {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--cyan) !important;
}

/* Premium Tooltip styling */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: var(--cyan);
  cursor: pointer;
  vertical-align: middle;
  transition: color 0.2s ease;
}

.tooltip-trigger:hover {
  color: var(--lime);
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  z-index: 200;
  width: 220px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(9, 12, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: none !important;
  letter-spacing: normal !important;
}

.tooltip-trigger:hover .tooltip-content {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(9, 12, 22, 0.98) transparent transparent transparent;
}

/* Format comparison (pros/cons) styling */
.format-seo-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius) !important;
  padding: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.format-seo-card:hover {
  border-color: rgba(71, 240, 210, 0.25) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 24px rgba(71, 240, 210, 0.04) !important;
}

/* Bulletproof grid collapse class (for legacy non-animated panels) */
.collapsed-panel:not(.adv-opts-content) {
  display: none !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* Premium multi-level navbar dropdown styling */
.nav-dropdown-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Invisible bridge that keeps :hover alive while the cursor crosses the
   gap between the trigger and the dropdown menu. Without this, the
   dropdown closes the moment the cursor leaves the button. */
.nav-dropdown-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Match .nav a so Conversores aligns visually with the rest of the nav */
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-dropdown-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-item:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  background: rgba(9, 12, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  min-width: 230px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  margin-top: 12px;
}

.nav-dropdown-menu.nav-dropdown-scrollable {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Inside a scrollable dropdown, submenus must be inline (not absolute flyouts)
   because overflow-y:auto clips absolutely-positioned children. */
.nav-dropdown-scrollable .nav-dropdown-submenu-menu {
  position: static;
  display: none;
  background: transparent;
  border: none;
  border-left: 2px solid rgba(255,255,255,0.08);
  margin-left: 16px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  min-width: 0;
  padding: 2px 0;
}
.nav-dropdown-scrollable .nav-dropdown-submenu:hover > .nav-dropdown-submenu-menu,
.nav-dropdown-scrollable .nav-dropdown-submenu.active > .nav-dropdown-submenu-menu {
  display: block;
}

.nav-dropdown-item:hover > .nav-dropdown-menu,
.nav-dropdown-item.active > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a, .nav-dropdown-submenu-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.nav-dropdown-submenu-trigger {
  font-weight: 800;
}

.nav-dropdown-menu a:hover, .nav-dropdown-submenu-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-submenu {
  position: relative;
}

.nav-dropdown-submenu-menu {
  position: absolute;
  top: -8px;
  left: 100%;
  display: none;
  background: rgba(9, 12, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
}

.nav-dropdown-submenu:hover > .nav-dropdown-submenu-menu,
.nav-dropdown-submenu.active > .nav-dropdown-submenu-menu {
  display: block;
}

.nav-dropdown-subsubmenu { position: relative; }

/* The Tools dropdown is the right-most nav item, so its side-flyouts (and the
   extra PDF nesting level) would overflow the right edge of the viewport.
   Flip every flyout under it to open towards the LEFT instead. */
.nav-dropdown-flip .nav-dropdown-submenu-menu,
.nav-dropdown-flip .nav-dropdown-subsubmenu-menu {
  left: auto;
  right: 100%;
}

.nav-dropdown-subsubmenu-menu {
  position: absolute;
  top: -8px;
  left: 100%;
  display: none;
  background: rgba(9, 12, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
}

.nav-dropdown-subsubmenu:hover > .nav-dropdown-subsubmenu-menu,
.nav-dropdown-subsubmenu.active > .nav-dropdown-subsubmenu-menu {
  display: block;
}

/* Checkbox vertical list stack to prevent scattering in grid */
.checkbox-list-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  padding: 8px 0 !important;
}

/* ==========================================================================
   HIGHLY CUSTOM PREMIUM SELECT COMPONENT
   ========================================================================== */

.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
  z-index: 99;
}

.custom-select.open {
  z-index: 999;
}

.select-trigger {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(8, 10, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.select-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  flex-shrink: 0;
}

.custom-select.open .select-trigger::after {
  transform: rotate(-135deg) translateY(1px);
  border-color: var(--cyan);
}

.custom-select:hover .select-trigger {
  background-color: rgba(13, 17, 30, 0.95);
  border-color: rgba(66, 245, 215, 0.4);
  box-shadow: 0 4px 20px rgba(66, 245, 215, 0.08), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.custom-select.open .select-trigger {
  border-color: var(--cyan);
  background-color: rgba(13, 17, 30, 0.98);
  box-shadow: 0 0 0 3px rgba(66, 245, 215, 0.15), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(11, 13, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 50px rgba(66, 245, 215, 0.04);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 260px;
  z-index: 9999;
}

.custom-select.open .select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-option {
  padding: 13px 18px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.select-option:hover {
  background: rgba(66, 245, 215, 0.08);
  color: var(--cyan);
  padding-left: 22px;
}

.select-option.active {
  background: rgba(66, 245, 215, 0.12);
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(66, 245, 215, 0.2);
}

.select-option.active::after {
  content: "✓";
  font-size: 12px;
  color: var(--cyan);
}

/* ─── PDF Tool Dashboard Cards ─── */
.pdf-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background .22s, transform .2s, box-shadow .22s;
  text-align: center;
  color: var(--ink);
  min-height: 120px;
}

.pdf-tool-card svg {
  opacity: 0.55;
  transition: opacity .22s;
}

.pdf-tool-card strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.pdf-tool-card span {
  font-size: 12px;
  opacity: 0.55;
  line-height: 1.3;
}

.pdf-tool-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}

.pdf-tool-card:hover svg {
  opacity: 1;
  stroke: var(--cyan);
}

.pdf-tool-card:hover strong {
  color: var(--cyan);
}

.pdf-tool-card.active {
  border-color: var(--cyan);
  background: rgba(66, 245, 215, 0.1);
  box-shadow: 0 0 24px rgba(66, 245, 215, 0.12);
}

.pdf-tool-card.active strong {
  color: var(--cyan);
}

/* PDF Preview panel */
.pdf-preview-panel {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}

.pdf-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.pdf-preview-grid {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pdf-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 100px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.pdf-thumb:hover {
  border-color: var(--cyan);
}

.pdf-thumb.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(66, 245, 215, 0.3);
}

.pdf-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-thumb-num {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
}

.pdf-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}

.pdf-back-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.nua-island-mount {
  position: relative;
  z-index: 101;
}

body.nua-modal-open {
  overflow: hidden;
}

body.nua-modal-open .site-header {
  z-index: 99 !important;
}

body.nua-modal-open .converter-desk::before {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   TAURI DESKTOP SPECIFIC STYLING (Active when running inside the desktop app)
   ────────────────────────────────────────────────────────────────────────── */
body.is-tauri {
  box-sizing: border-box;
}

/* Force side-by-side PC desktop layout and dynamically scale paddings/gaps */
body.is-tauri .hero {
  min-height: 100vh;
  height: 100vh !important; /* Force to take exactly 100% of viewport height! */
  padding: clamp(70px, 9vh, 120px) clamp(16px, 3vw, 48px) clamp(16px, 3vh, 32px) clamp(16px, 3vw, 48px) !important;
  gap: clamp(24px, 4vw, 80px) !important;
  align-items: stretch !important; /* Stretch columns to take full height! */
  width: 95% !important; /* Center with a beautiful uniform side margin */
  margin: 0 auto !important;
  max-width: none !important; /* No max width bounds in Tauri desktop! */
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 1fr 1.6fr !important; /* Spacious column distribution */
  overflow: hidden !important; /* No parent overflow */
}

/* Compact header inside Tauri */
body.is-tauri .site-header {
  top: clamp(6px, 1.2vh, 16px) !important;
  min-height: clamp(40px, 6vh, 58px) !important;
  padding: 4px 24px !important;
  width: 95% !important; /* Center exactly matching the content column */
  left: 50% !important;
  transform: translateX(-50%) !important;
  max-width: none !important;
}
body.is-tauri .site-header .brand-mark {
  width: clamp(28px, 4vh, 38px) !important;
  height: clamp(28px, 4vh, 38px) !important;
}
body.is-tauri .site-header .brand-mark img {
  width: clamp(20px, 3vh, 30px) !important;
  height: clamp(20px, 3vh, 30px) !important;
}
body.is-tauri .site-header .nav-cta {
  display: none !important; /* Hide "Descargar App" button inside the desktop app itself */
}

/* Fluid scaling for hero typography and spacings based on viewport height */
body.is-tauri .hero-copy {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Center hero copy vertically as height stretches! */
  box-sizing: border-box;
}
body.is-tauri .hero-copy h1 {
  font-size: clamp(2.2rem, 6.5vh, 4.8rem) !important; /* Scale typography up dynamically! */
  line-height: 1.05 !important;
  margin-bottom: clamp(10px, 2vh, 26px) !important;
  max-width: 100% !important;
}
body.is-tauri .hero-copy .hero-text {
  font-size: clamp(0.85rem, 2.3vh, 1.3rem) !important; /* Fluid scaled copy text */
  line-height: 1.55 !important;
  margin-bottom: clamp(12px, 2.5vh, 26px) !important;
}
body.is-tauri .privacy-ledger {
  margin-bottom: clamp(10px, 2vh, 26px) !important;
}
body.is-tauri .privacy-ledger div {
  padding: clamp(6px, 1.3vh, 16px) 0 !important;
  grid-template-columns: clamp(100px, 14vh, 150px) 1fr !important;
  gap: clamp(10px, 1.5vw, 20px) !important;
}
body.is-tauri .privacy-ledger strong {
  font-size: clamp(0.8rem, 2.2vh, 1.25rem) !important; /* Proportional text scaling */
}
body.is-tauri .privacy-ledger span {
  font-size: clamp(0.7rem, 1.9vh, 1.1rem) !important;
}
body.is-tauri .hero-actions {
  display: none !important; /* Hide primary landing action buttons inside Tauri */
}

/* Fluid scaled compact converter desk and category selector */
body.is-tauri .converter-desk {
  height: 100% !important; /* Take full height of the parent grid! */
  max-height: none !important; /* Override previous restrictions */
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important; /* Let the converter desk scroll independently so other options are visible */
  background:
    linear-gradient(to bottom, var(--cyan), var(--red), var(--amber), var(--lime)) no-repeat 0 0 / 6px 100%,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    rgba(9, 12, 22, .82) !important;
  background-size: 6px 100%, 26px 26px, 26px 26px, auto !important;
}
body.is-tauri .converter-desk::before {
  display: none !important; /* Hide scrolling absolute element, replaced with fixed background gradient */
}
body.is-tauri .desk-topbar {
  min-height: 0 !important;
  padding: clamp(12px, 2.2vh, 24px) clamp(16px, 2.5vw, 32px) clamp(16px, 2.8vh, 26px) !important;
  background: transparent !important; /* Remove the ugly dark background band! */
  border-bottom: none !important; /* Remove the dividing line to keep it continuous! */
  flex-shrink: 0 !important; /* Prevent squishing when options appear */
}
body.is-tauri .desk-2col {
  padding: clamp(16px, 2.8vh, 32px) clamp(16px, 2.5vw, 32px) !important;
  gap: clamp(16px, 2.5vh, 28px) !important;
  flex-shrink: 0 !important; /* Prevent squishing when options appear */
}
body.is-tauri .desk-topbar p.desk-kicker {
  margin-bottom: clamp(2px, 0.5vh, 6px) !important;
}
body.is-tauri .desk-topbar h2#desk-title {
  font-size: clamp(1.3rem, 3.2vh, 2.1rem) !important; /* Scaled desk title */
}
body.is-tauri .desk-topbar p {
  font-size: clamp(0.78rem, 2vh, 1.1rem) !important;
  margin: clamp(4px, 0.8vh, 10px) 0 0 !important;
}

body.is-tauri .desk-flow-container {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* Avoid showing parent scrollbar, grid handles space */
  padding: clamp(12px, 2.5vh, 28px) clamp(16px, 2.5vw, 32px) !important;
}
body.is-tauri .step-container {
  padding: 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Fluid scaled grid cards stretching to fill vertical screen space */
body.is-tauri .category-grid {
  height: 100% !important;
  flex: 1 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(3, 1fr) !important; /* 3 rows stretching to fill space */
  gap: clamp(10px, 2vh, 24px) !important; /* Scaled gaps */
  margin-bottom: 0 !important;
}
body.is-tauri .category-card {
  padding: clamp(10px, 2.5vh, 32px) clamp(12px, 2.5vw, 36px) !important; /* Expand card interior */
  min-height: 0 !important; /* Let grid control size */
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Center the contents vertically inside the stretched card! */
  align-items: flex-start !important;
}
body.is-tauri .category-card .card-icon {
  width: clamp(32px, 8vh, 64px) !important; /* Dynamically scale icon wrapper! */
  height: clamp(32px, 8vh, 64px) !important;
  margin-bottom: clamp(6px, 1.8vh, 16px) !important;
  border-radius: clamp(6px, 1.5vh, 12px) !important;
}
body.is-tauri .category-card .card-icon svg {
  width: clamp(18px, 4.5vh, 36px) !important; /* Scale SVG inside wrapper */
  height: clamp(18px, 4.5vh, 36px) !important;
}
body.is-tauri .category-card .card-icon span {
  font-size: clamp(14px, 3vh, 26px) !important;
}
body.is-tauri .category-card strong {
  font-size: clamp(0.9rem, 2.4vh, 1.45rem) !important; /* Dynamic card title */
  margin-bottom: clamp(4px, 1vh, 10px) !important;
}
body.is-tauri .category-card span {
  font-size: clamp(0.7rem, 1.8vh, 0.95rem) !important; /* Dynamic card desc */
  line-height: 1.45 !important;
}

/* Hide web-specific indicators and SEO comparative grids */
body.is-tauri .step-container > div[style*="text-align:center"] {
  display: none !important;
}
body.is-tauri .desk-promo-banner {
  display: none !important;
}
body.is-tauri #native, body.is-tauri .native-band {
  display: none !important;
}
/* Ensure no text squishing / collision at the top of containers when window height is small */
body.is-tauri .desk-breadcrumbs {
  padding: clamp(16px, 3vh, 28px) clamp(16px, 2vw, 24px) clamp(12px, 2.2vh, 20px) clamp(16px, 2vw, 24px) !important;
  margin-bottom: 0 !important;
  flex-shrink: 0 !important; /* Prevent squishing when options appear */
}
body.is-tauri .desk-kicker {
  margin-top: clamp(8px, 1.5vh, 16px) !important; /* Elegant vertical separation from breadcrumbs */
  margin-bottom: clamp(8px, 1.2vh, 14px) !important; /* Added beautiful spacing between kicker and title */
}
body.is-tauri .hero:has(.desk-2col) .hero-copy {
  justify-content: flex-start !important; /* Align to start with elegant padding to avoid vertical squishing */
  padding: clamp(24px, 5vh, 48px) clamp(16px, 2vw, 28px) clamp(16px, 2.5vh, 26px) !important;
  overflow-y: auto !important; /* Allow the left panel to scroll independently to read pros and cons! */
  background:
    linear-gradient(90deg, var(--cyan) 0%, var(--lime) 50%, var(--violet) 100%) no-repeat 0 0 / 100% 3px,
    rgba(255, 255, 255, 0.02) !important;
  background-size: 100% 3px, auto !important;
}
body.is-tauri .hero:has(.desk-2col) .hero-copy::before {
  display: none !important; /* Hide scrolling absolute element, replaced with fixed background gradient */
}
body.is-tauri .hero:has(.desk-2col) .hero-copy h1 {
  font-size: clamp(1.5rem, 3.8vh, 2.5rem) !important; /* Elegant, more compact title so everything fits beautifully */
  line-height: 1.1 !important;
  margin-bottom: clamp(10px, 2vh, 18px) !important;
}
body.is-tauri .hero:has(.desk-2col) .hero-copy .eyebrow {
  margin-top: 0 !important; /* No top margin since padding handles the space from the brand stripe */
  margin-bottom: clamp(8px, 1.5vh, 12px) !important; /* Elegant spacing before title */
}
body.is-tauri .format-seo-card h3 {
  font-size: clamp(0.85rem, 1.8vh, 1.05rem) !important; /* Slightly more compact card headers inside Tauri */
}
body.is-tauri .hero-copy .eyebrow {
  margin-top: clamp(4px, 0.8vh, 8px) !important;
  margin-bottom: clamp(6px, 1.2vh, 12px) !important;
}

/* Premium subtle scrollbar styling inside Tauri for independent scrolling panels */
body.is-tauri *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
body.is-tauri *::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 3px;
}
body.is-tauri *::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  transition: background 0.3s;
}
body.is-tauri *::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 240, 210, 0.35); /* Subtle cyan glow on hover */
}

/* Style the internal linking grid as a beautiful, premium standalone section card inside the desktop app */
body.is-tauri .seo-linking-grid {
  border-top: none !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin: 40px 24px 24px 24px !important;
  flex-shrink: 0 !important; /* Prevent squishing when options appear */
}
body.is-tauri .seo-linking-grid h4 {
  font-size: 0.8rem !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  color: var(--cyan) !important;
  letter-spacing: 0.05em !important;
}

/* Card-directory pages (tools hub + PDF suite): the workbench/card containers
   should grow to fit ALL their cards, not trap them behind an inner scrollbar.
   Only pages that hold a .tools-cat grid are affected — the homepage launcher
   (.category-grid) keeps its full-viewport app-shell. Here we unlock the 100vh
   lock and let the whole window scroll naturally. */
body.is-tauri .hero:has(.tools-cat) {
  height: auto !important;
  min-height: 100vh;
  overflow: visible !important;
  grid-template-columns: 1fr !important; /* stack header on top, grid full width below */
  align-items: start !important;
}
body.is-tauri .hero:has(.tools-cat) .hero-copy,
body.is-tauri .hero:has(.tools-cat) .converter-desk {
  height: auto !important;       /* grow with content instead of filling the viewport */
  max-height: none !important;
  overflow: visible !important;  /* no inner scrollbar */
}

/* ── Tool directory grids (/herramientas/ hub + PDF suite in /convertir/pdf/).
   Cards were inline-styled <a> with onmouseover/onmouseout handlers; the pages'
   CSP (script-src without 'unsafe-inline') blocks inline handlers, so hover
   never fired. These rules MUST stay visually identical to the SPA's .tool-card
   / .section-title / .tool-grid (web-app/src/index.css) so the static "web" and
   the Preact "app" render the same grid. Keep both in sync when either changes. */
.tools-cat { margin-top: 22px; }
.tools-cat + .tools-cat { margin-top: 36px; }
.tools-cat-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 12px;
}
.tools-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}
.tool-tile {
  --ac: var(--cyan);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  transition: background .22s, transform .2s cubic-bezier(.22,.68,0,1.2), box-shadow .22s;
}
/* accent sheen along the top edge — faint at rest, lights up on hover */
.tool-tile::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
  opacity: .35;
  transition: opacity .22s;
}
/* directional arrow that slides in on hover */
.tool-tile::after {
  content: "→";
  position: absolute; top: 16px; right: 18px;
  font-size: 14px; font-weight: 800; color: var(--ac);
  opacity: 0; transform: translateX(-5px);
  transition: opacity .2s, transform .2s;
}
.tool-tile strong { color: var(--ink); font-size: 14px; font-weight: 700; }
.tool-tile span { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tool-tile:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,.32);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.32);
}
.tool-tile:hover::before { opacity: .9; }
.tool-tile:hover::after { opacity: 1; transform: translateX(0); }
.tool-tile:hover strong { color: var(--ac); }

.tool-tile.accent-cyan   { --ac: var(--cyan);   border-color: rgba(71,240,210,.25); }
.tool-tile.accent-cyan:hover   { border-color: rgba(71,240,210,.55); box-shadow: 0 14px 32px rgba(0,0,0,0.3), 0 0 22px rgba(71,240,210,0.14); }
.tool-tile.accent-lime   { --ac: var(--lime);   border-color: rgba(182,239,98,.25); }
.tool-tile.accent-lime:hover   { border-color: rgba(182,239,98,.55); box-shadow: 0 14px 32px rgba(0,0,0,0.3), 0 0 22px rgba(182,239,98,0.14); }
.tool-tile.accent-amber  { --ac: var(--amber);  border-color: rgba(255,203,102,.25); }
.tool-tile.accent-amber:hover  { border-color: rgba(255,203,102,.55); box-shadow: 0 14px 32px rgba(0,0,0,0.3), 0 0 22px rgba(255,203,102,0.14); }
.tool-tile.accent-violet { --ac: var(--violet); border-color: rgba(141,125,255,.25); }
.tool-tile.accent-violet:hover { border-color: rgba(141,125,255,.55); box-shadow: 0 14px 32px rgba(0,0,0,0.3), 0 0 22px rgba(141,125,255,0.14); }
.tool-tile.accent-red    { --ac: var(--red);    border-color: rgba(255,106,85,.25); }
.tool-tile.accent-red:hover    { border-color: rgba(255,106,85,.55); box-shadow: 0 14px 32px rgba(0,0,0,0.3), 0 0 22px rgba(255,106,85,0.14); }

@media (max-width: 520px) {
  .tools-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Related/sister tool links under converters and tool pages (same CSP issue). */
.seo-link-card {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.seo-link-card:hover {
  border-color: rgba(71,240,210,0.3);
  color: var(--ink);
}
