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

:root {
  --background: #050505;
  --background-alt: #090909;
  --surface: rgba(12, 12, 12, 0.85);
  --surface-elevated: rgba(20, 20, 20, 0.9);
  --text-primary: #f5f5f5;
  --text-secondary: #b1b1b1;
  --accent: #ffffff;
  --accent-muted: #d0d0d0;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --error-color: #ff4c4c;
  --success-color: #22d39f;
  --shadow-3d: 0 20px 45px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
  --glass-blur: saturate(150%) blur(20px);
  --pixel-purple: #7d46ff;
}

body {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 35%),
    var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  cursor: none;
}

*:not(input):not(select):not(textarea) {
  cursor: none;
}

input,
select,
textarea {
  cursor: text;
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.fluid-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 1000;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
  transition: opacity 0.35s ease, transform 0.2s ease;
  opacity: 0;
  filter: url('#');
}

.fluid-cursor.visible {
  opacity: 1;
}

.fluid-cursor.pressed .fluid-core {
  animation-duration: 2s;
  box-shadow: 0 0 28px rgba(150, 100, 255, 0.95), inset 0 0 16px rgba(255, 255, 255, 0.6);
}

.fluid-core,
.fluid-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.fluid-core {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(125, 70, 255, 0.95) 65%);
  box-shadow: 0 0 25px rgba(125, 70, 255, 0.8), inset 0 0 16px rgba(255, 255, 255, 0.4);
  animation: fluid-core-pulse 4s ease-in-out infinite;
  backdrop-filter: blur(6px);
}

.fluid-glow {
  background: radial-gradient(circle, rgba(125, 70, 255, 0.35), rgba(0, 0, 0, 0));
  filter: blur(28px);
  animation: fluid-glow-animate 8s ease-in-out infinite;
}

.fluid-cursor::before,
.fluid-cursor::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
  mix-blend-mode: overlay;
  animation: fluid-ripple 5s linear infinite;
}

.fluid-cursor::after {
  inset: 12px;
  animation-duration: 3.5s;
  opacity: 0.4;
}

.fluid-droplets {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.fluid-droplets .droplet {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 84, 255, 0.8), rgba(86, 0, 140, 0.15));
  box-shadow: 0 0 25px rgba(125, 70, 255, 0.65);
  animation: droplet-rise 1.6s ease-out forwards;
  opacity: 0.9;
}

@keyframes fluid-core-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.75;
  }
}

@keyframes fluid-glow-animate {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.4;
  }
}

@keyframes fluid-ripple {
  0% {
    transform: scale(0.8) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.1) rotate(12deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.9) rotate(-6deg);
    opacity: 0.45;
  }
}

@keyframes wave-trace {
  0% {
    stroke-dashoffset: 16;
    opacity: 0.35;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -4;
    opacity: 0.5;
  }
}

@keyframes droplet-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0.75;
  }
  80% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0) scale(1.2);
    opacity: 0;
  }
}

@keyframes sparkle-blink {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.35;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 2rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pixel-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  color: var(--accent);
  text-transform: none;
}

.header-copy {
  flex: 1;
  min-width: 240px;
}

.header h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 460px;
}

.main-content {
  flex: 1;
}

.handoff-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.handoff-info {
  padding: 2.25rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(145deg, rgba(60, 60, 60, 0.4), rgba(0, 0, 0, 0.85));
  box-shadow: var(--shadow-3d);
  position: relative;
  overflow: hidden;
}

.handoff-info::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(143, 82, 255, 0.35), transparent 55%);
  mix-blend-mode: screen;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35rem;
  font-size: 0.75rem;
  color: var(--accent-muted);
  margin-bottom: 1rem;
}

.handoff-info h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.info-copy {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 420px;
  line-height: 1.8;
}

.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.info-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.signal-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(8, 8, 8, 0.9));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-3d);
  position: relative;
  overflow: hidden;
}

.signal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.signal-label {
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.signal-card h3 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05rem;
}

.signal-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.handoff-form,
.results {
  background: var(--surface-elevated);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-3d);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group-header {
  position: relative;
  display: block;
  margin-bottom: 0.35rem;
  padding-right: 48px;
}

.form-group-header label {
  margin-bottom: 0;
}

.form-group-header .audio-toggle {
  position: absolute;
  top: -1.4rem;
  right: 0;
  width: 32px;
  height: 32px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group select::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

#language {
  width: 100%;
  padding: 0.9rem 1rem;
  padding-right: 2.75rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.select-wrapper {
  position: relative;
  width: 100%;
  display: inline-flex;
}

.select-icon {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  pointer-events: none;
}

.select-icon svg {
  width: 14px;
  height: 14px;
}

.help-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.help-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.help-text a:hover {
  border-color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.handoff-form {
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: min(100%, 540px);
  margin: 0 auto;
}

.audio-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}

.audio-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
}

.audio-toggle.playing {
  border-color: rgba(125, 70, 255, 0.8);
  box-shadow: 0 0 20px rgba(125, 70, 255, 0.6);
}

.audio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.audio-icon svg {
  width: 24px;
  height: 24px;
}

.audio-icon .speaker-body {
  fill: currentColor;
  opacity: 0.9;
  transition: filter 0.2s ease;
}

.audio-icon .speaker-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6px;
  stroke-linecap: round;
  opacity: 0.75;
  stroke-dasharray: 16;
  stroke-dashoffset: 0;
  transition: opacity 0.2s ease;
}

.audio-toggle.playing .speaker-body {
  filter: drop-shadow(0 0 8px rgba(125, 70, 255, 0.7));
}

.audio-toggle.playing .speaker-wave {
  animation: wave-trace 1.6s ease-out infinite;
  stroke-dashoffset: 16;
  opacity: 1;
}

.audio-toggle.playing .speaker-wave.wave-two {
  animation-delay: 0.25s;
}

.audio-toggle:not(.playing) .speaker-wave {
  stroke-dashoffset: 0;
  opacity: 0.6;
}

.handoff-form::after,
.results::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(125, 70, 255, 0.4), transparent 45%);
  opacity: 0.7;
}

.handoff-form::before,
.results::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.handoff-form > *,
.results > * {
  position: relative;
  z-index: 1;
}

.btn {
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.05rem;
  border: 1px solid transparent;
}

.btn-primary {
  position: relative;
  background: linear-gradient(125deg, #ffffff 0%, #f1e6ff 40%, #ceb5ff 100%);
  color: #000000;
  width: auto;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -6px 0 rgba(45, 12, 90, 0.35);
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  perspective: 1200px;
  transform: translateZ(0);
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.1));
  opacity: 0.8;
  pointer-events: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -10%;
  width: 140%;
  height: 240%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 55%);
  opacity: 0.85;
  transform: rotate(20deg);
  transition: transform 0.4s ease;
  pointer-events: none;
}

.generate-row {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

#generateBtn {
  padding: 0.95rem 2.75rem;
  letter-spacing: 0.15rem;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -6px 0 rgba(45, 12, 90, 0.4);
}

.btn-primary:hover::after {
  transform: translateY(35%) rotate(10deg);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(45, 12, 90, 0.4);
}

.btn-loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: transparent;
  min-width: 9rem;
  justify-content: center;
}

.sparkles {
  position: relative;
  display: inline-flex;
  gap: 0.35rem;
}

.sparkles span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.85), rgba(70, 70, 70, 0.2));
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  animation: sparkle-blink 1.4s infinite ease-in-out;
}

.sparkles span:nth-child(2) {
  animation-delay: 0.2s;
  transform: scale(1.4);
  background: radial-gradient(circle, rgba(40, 40, 40, 0.9), rgba(90, 90, 90, 0.2));
}

.sparkles span:nth-child(3) {
  animation-delay: 0.4s;
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(20, 20, 20, 0.95), rgba(60, 60, 60, 0.3));
}

/* Loader text removed */

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: var(--accent-muted);
  color: var(--accent);
  transform: translateY(-2px);
}

.error-message {
  background: rgba(255, 76, 76, 0.12);
  color: var(--error-color);
  padding: 1.2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 76, 76, 0.4);
}

.results {
  overflow: visible;
}

.results-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.results-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.tabs {
  display: flex;
  padding: 0 2rem;
}

.tab {
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.tab:hover {
  color: var(--accent);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.code-tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.code-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.code-block-wrapper {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.code-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.code-block {
  background: #060606;
  color: #f8f8f2;
  padding: 2.75rem 1.5rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 600px;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.04);
}

.code-block code {
  color: inherit;
  white-space: pre;
}

.preview-container {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: visible;
  background: #000;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08);
  min-height: 620px;
  max-height: none;
}

.preview-zoom-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0.4rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.preview-zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.preview-zoom-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.preview-zoom-btn:active {
  transform: translateY(1px) scale(0.95);
}

.preview-zoom-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.preview-frame {
  width: 100%;
  min-height: 620px;
  height: auto;
  border: none;
  display: block;
  background: #111;
}

.footer {
  text-align: center;
  padding: 1rem 0;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-link svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.footer-link:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .handoff-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.25rem;
  }

  .handoff-form,
  .results {
    padding: 1.75rem;
  }

  .handoff-info,
  .handoff-form {
    padding: 2rem;
  }

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

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-actions {
    width: 100%;
  }

  .btn-secondary {
    flex: 1;
  }

  .tabs {
    padding: 0 1rem;
  }

  .tab-content {
    padding: 1.5rem 1rem;
  }

  .code-block {
    font-size: 0.8rem;
  }

  .preview-container {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  .fluid-cursor {
    display: none;
  }
}
