:root {
  --bg: #f4f6ff;
  --bg-soft: #eef1ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-2: #f7f8ff;
  --surface-3: #ecefff;
  --border: rgba(48, 58, 110, 0.12);
  --border-strong: rgba(48, 58, 110, 0.2);
  --text: #101428;
  --text-soft: #2a3158;
  --muted: #5b6490;
  --faint: #858cb3;
  --lime: #22c55e;
  --lime-deep: #16a34a;
  --cyan: #06b6d4;
  --violet: #6366f1;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #10b981;
  --danger: #ef4444;
  --primary-fg: #06210f;
  --grad: linear-gradient(112deg, #34d399 0%, #22d3ee 42%, #818cf8 78%, #f472b6 100%);
  --grad-soft: linear-gradient(112deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.16));
  --shadow-lg: 0 40px 90px -50px rgba(79, 70, 229, 0.28);
  --shadow-md: 0 18px 45px -28px rgba(79, 70, 229, 0.22);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --header-h: 72px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f6ff;
  --bg-soft: #eef1ff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-2: #f7f8ff;
  --surface-3: #ecefff;
  --border: rgba(48, 58, 110, 0.12);
  --border-strong: rgba(48, 58, 110, 0.2);
  --text: #101428;
  --text-soft: #2a3158;
  --muted: #5b6490;
  --faint: #858cb3;
  --lime: #22c55e;
  --lime-deep: #16a34a;
  --cyan: #06b6d4;
  --violet: #6366f1;
  --pink: #ec4899;
  --amber: #f59e0b;
  --green: #10b981;
  --danger: #ef4444;
  --primary-fg: #06210f;
  --grad: linear-gradient(112deg, #34d399 0%, #22d3ee 42%, #818cf8 78%, #f472b6 100%);
  --grad-soft: linear-gradient(112deg, rgba(52, 211, 153, 0.18), rgba(34, 211, 238, 0.12), rgba(129, 140, 248, 0.16));
  --shadow-lg: 0 40px 90px -50px rgba(79, 70, 229, 0.28);
  --shadow-md: 0 18px 45px -28px rgba(79, 70, 229, 0.22);
}

[data-theme="dark"] {
  --bg: #06080e;
  --bg-soft: #090c15;
  --surface: rgba(16, 21, 34, 0.72);
  --surface-solid: #0e1320;
  --surface-2: #121a2a;
  --surface-3: #172033;
  --border: rgba(151, 166, 194, 0.14);
  --border-strong: rgba(151, 166, 194, 0.24);
  --text: #eef2f9;
  --text-soft: #c7cfdf;
  --muted: #98a4ba;
  --faint: #69758b;
  --lime: #b8ff5c;
  --lime-deep: #8fdb2e;
  --cyan: #5ce1d4;
  --violet: #8b97ff;
  --pink: #f472b6;
  --amber: #ffc96b;
  --green: #6ee7a8;
  --danger: #ff7a8a;
  --primary-fg: #081007;
  --grad: linear-gradient(112deg, var(--lime) 0%, var(--cyan) 48%, var(--violet) 100%);
  --grad-soft: linear-gradient(112deg, rgba(184, 255, 92, 0.16), rgba(92, 225, 212, 0.12), rgba(139, 151, 255, 0.14));
  --shadow-lg: 0 40px 100px -45px rgba(0, 0, 0, 0.9);
  --shadow-md: 0 18px 50px -28px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 750;
}

p { margin: 0; }

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

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

button { cursor: pointer; }

img, svg { max-width: 100%; }

::selection { background: rgba(184, 255, 92, 0.28); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--primary-fg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-a {
  width: 640px;
  height: 640px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.32), transparent 66%);
}

.glow-b {
  width: 720px;
  height: 720px;
  top: 120px;
  right: -300px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.28), transparent 68%);
}

.glow-c {
  width: 560px;
  height: 560px;
  top: 1180px;
  left: 36%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.16), transparent 70%);
}

[data-theme="light"] .glow { opacity: 0.7; }

[data-theme="dark"] .glow-a { background: radial-gradient(circle, rgba(86, 215, 120, 0.26), transparent 66%); }
[data-theme="dark"] .glow-b { background: radial-gradient(circle, rgba(99, 110, 255, 0.24), transparent 68%); }
[data-theme="dark"] .glow-c { background: radial-gradient(circle, rgba(92, 225, 212, 0.12), transparent 70%); }
[data-theme="dark"] .glow { opacity: 0.5; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
}

[data-theme="light"] .grid-overlay { opacity: 0.7; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 8px 24px -12px rgba(184, 255, 92, 0.6);
}

.brand-mark svg { display: block; width: 100%; height: 100%; }

.brand-word { font-weight: 500; }

.brand-word strong { font-weight: 800; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.primary-nav a {
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 520;
  transition: color 0.18s ease, background 0.18s ease;
}

.primary-nav a:hover { color: var(--text); background: rgba(148, 163, 184, 0.09); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(148, 163, 184, 0.05);
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn:active { transform: scale(0.96); }

.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }

.icon-btn.sm .icon { width: 17px; height: 17px; }

.theme-icon-sun { display: none; }

[data-theme="light"] .theme-icon-moon { display: none; }

[data-theme="light"] .theme-icon-sun { display: block; }

.nav-toggle { display: none; }

.nav-icon-close { display: none; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn .icon { width: 18px; height: 18px; }

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

.btn:active { transform: translateY(0); }

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--grad);
  color: var(--primary-fg);
  box-shadow: 0 12px 30px -16px rgba(184, 255, 92, 0.65);
}

.btn-primary:hover:not(:disabled) { box-shadow: 0 18px 38px -16px rgba(184, 255, 92, 0.7); }

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--border);
  color: var(--text-soft);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.12);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-sm { padding: 8px 14px; border-radius: 9px; font-size: 0.84rem; }

.btn-lg { padding: 14px 24px; border-radius: 13px; font-size: 0.98rem; }

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 0.18s ease;
}

.text-btn .icon { width: 16px; height: 16px; }

.text-btn:hover { color: var(--lime); }

.text-btn.subtle { color: var(--muted); }

.text-btn.subtle:hover { color: var(--text); }

.hero {
  position: relative;
  padding: 72px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 92, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 255, 92, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(184, 255, 92, 0.03); }
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.9rem, 5.4vw, 4.55rem);
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

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

.hero-lede {
  max-width: 55ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.055rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 550;
}

.hero-points li { display: inline-flex; align-items: center; gap: 6px; }

.hero-points .icon { width: 15px; height: 15px; color: var(--lime); }

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.hero-card {
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20, 27, 44, 0.92), rgba(9, 13, 23, 0.96));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}

[data-theme="light"] .hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 232, 0.97));
}

.hero-visual:hover .hero-card { transform: rotateY(0deg) rotateX(0deg); }

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.71rem;
  color: var(--muted);
}

.traffic { display: inline-flex; gap: 5px; }

.traffic i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); opacity: 0.45; }

.traffic i:first-child { background: var(--pink); opacity: 0.8; }

.traffic i:nth-child(2) { background: var(--amber); opacity: 0.8; }

.traffic i:nth-child(3) { background: var(--green); opacity: 0.8; }

.hero-file { color: var(--text-soft); font-family: var(--mono); font-size: 0.68rem; }

.hero-file span { color: var(--faint); margin: 0 3px; }

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid rgba(184, 255, 92, 0.24);
  border-radius: 99px;
  background: rgba(184, 255, 92, 0.07);
  color: var(--lime);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }

.hero-canvas { padding: 8px 12px 4px; }

.hero-art { display: block; width: 100%; height: auto; color: var(--text); }

.hero-label {
  fill: currentColor;
  opacity: 0.38;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.20em;
}

.hero-label.lime { fill: var(--lime); opacity: 0.8; }

.chip-text {
  fill: var(--text-soft);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
}

.chip-text.lime { fill: var(--lime); }

.float-chip { animation: floaty 5s ease-in-out infinite; }

.chip-b { animation-delay: -2.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pixel-mark { animation: rasterPulse 5s ease-in-out infinite; }

@keyframes rasterPulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.5; }
}

.hero-arrow path:last-child { animation: nudge 2.4s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.hero-card-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.74rem;
}

.hero-card-bottom span { display: inline-flex; align-items: center; gap: 6px; }

.hero-card-bottom .icon { width: 14px; height: 14px; color: var(--cyan); }

.hero-size {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.09);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a { inset: -34px -28px; opacity: 0.6; }

.orbit-b { inset: -72px -64px; opacity: 0.32; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 74px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 24px 26px 26px;
  border-left: 1px solid var(--border);
}

.hero-stat:first-child { border-left: 0; padding-left: 0; }

.hero-stat strong {
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat span { color: var(--faint); font-size: 0.75rem; line-height: 1.45; }

.section { padding: 112px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head.left { margin: 0 0 46px; text-align: left; }

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section-head .eyebrow { margin-bottom: 16px; }

.studio-section { padding-top: 96px; }

.studio-shell {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 255, 0.94));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

[data-theme="light"] .studio-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 246, 255, 0.94));
}

[data-theme="dark"] .studio-shell {
  background: linear-gradient(180deg, rgba(18, 24, 39, 0.9), rgba(9, 13, 22, 0.94));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.studio-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 19, 0.35);
}

[data-theme="light"] .studio-topbar { background: rgba(236, 239, 230, 0.5); }

.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

[data-theme="light"] .studio-tabs { background: rgba(255, 255, 255, 0.7); }

[data-theme="dark"] .studio-tabs { background: rgba(7, 10, 17, 0.45); }

.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.studio-tab .icon { width: 16px; height: 16px; }

.studio-tab:hover { color: var(--text-soft); }

.studio-tab.is-active {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.7);
}

.studio-tab.is-active .icon { color: var(--lime); }

.tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(184, 255, 92, 0.14);
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 700;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--faint);
  font-size: 0.73rem;
  font-weight: 550;
}

.privacy-note .icon { width: 15px; height: 15px; color: var(--green); }

.tab-panel { padding: 22px; }

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 20px;
  align-items: start;
}

.stage-column { min-width: 0; }

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 484px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(184, 255, 92, 0.035), transparent 70%),
    rgba(8, 11, 19, 0.32);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

[data-theme="light"] .dropzone { background: rgba(255, 255, 255, 0.45); }

.dropzone:hover,
.dropzone.is-dragging {
  border-color: rgba(184, 255, 92, 0.5);
  background:
    radial-gradient(ellipse 60% 60% at 50% 40%, rgba(184, 255, 92, 0.08), transparent 70%),
    rgba(8, 11, 19, 0.4);
}

.dropzone.is-dragging { transform: scale(0.995); }

.dropzone-inner {
  max-width: 420px;
  padding: 32px;
  text-align: center;
}

.drop-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border: 1px solid var(--border-strong);
  border-radius: 21px;
  background: linear-gradient(160deg, rgba(24, 33, 52, 0.9), rgba(13, 18, 29, 0.95));
  color: var(--lime);
  box-shadow: 0 20px 40px -24px rgba(184, 255, 92, 0.5);
}

[data-theme="light"] .drop-icon { background: #fff; }

.drop-icon .icon { width: 28px; height: 28px; }

.drop-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 100%, rgba(184, 255, 92, 0.22), transparent 65%);
}

.dropzone h3 { font-size: 1.3rem; letter-spacing: -0.03em; }

.dropzone-inner > p {
  margin: 10px auto 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.dropzone .btn { pointer-events: none; }

.drop-hint {
  margin: 16px 0 0 !important;
  color: var(--faint) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.02em;
}

.drop-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.drop-actions .text-btn { z-index: 1; }

.stage-wrap {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(6, 9, 15, 0.5);
  overflow: hidden;
}

[data-theme="light"] .stage-wrap { background: #eef0e9; }

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 24, 0.6);
}

[data-theme="light"] .stage-toolbar { background: rgba(255, 255, 255, 0.7); }

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(6, 9, 15, 0.4);
}

[data-theme="light"] .segmented { background: rgba(236, 239, 230, 0.8); }

.segmented.compact { padding: 2px; }

.seg-btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 620;
  transition: background 0.18s ease, color 0.18s ease;
}

.segmented.compact .seg-btn { padding: 5px 9px; font-size: 0.7rem; }

.seg-btn:hover { color: var(--text); }

.seg-btn.is-active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.6);
}

.stage-tools { display: flex; align-items: center; gap: 5px; }

.toolbar-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.zoom-label {
  min-width: 44px;
  padding: 5px 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.zoom-label:hover { color: var(--text); }

.stage-scroll {
  position: relative;
  display: grid;
  place-items: center;
  height: 438px;
  padding: 26px;
  overflow: auto;
  overscroll-behavior: contain;
}

.canvas-board {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.8);
  flex: none;
}

.canvas-board img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.checker {
  background-color: #c9cdd6;
  background-image:
    linear-gradient(45deg, #e9ebf0 25%, transparent 25%, transparent 75%, #e9ebf0 75%),
    linear-gradient(45deg, #e9ebf0 25%, transparent 25%, transparent 75%, #e9ebf0 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

[data-theme="dark"] .checker {
  background-color: #1b2130;
  background-image:
    linear-gradient(45deg, #252d3f 25%, transparent 25%, transparent 75%, #252d3f 75%),
    linear-gradient(45deg, #252d3f 25%, transparent 25%, transparent 75%, #252d3f 75%);
}

.stage-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(6, 9, 15, 0.72);
  backdrop-filter: blur(5px);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 550;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.stage-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.stage-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 45%;
  color: var(--text-soft);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stage-file .icon { width: 13px; height: 13px; }

.stage-file span { overflow: hidden; text-overflow: ellipsis; }

.stage-status {
  margin-left: auto;
  color: var(--green);
}

.stage-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.035);
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.55;
}

.stage-tip .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--cyan); }

.stage-tip strong { color: var(--text-soft); font-weight: 600; }

.controls-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 24, 0.55);
}

[data-theme="light"] .controls-card { background: rgba(255, 255, 255, 0.6); }

.controls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.controls-head h3 { font-size: 1.05rem; letter-spacing: -0.03em; }

.controls-head p { margin-top: 3px; color: var(--faint); font-size: 0.72rem; }

.controls-head .text-btn { padding: 2px 0; font-size: 0.72rem; }

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 4px;
}

.preset {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.preset:hover { color: var(--text); border-color: var(--border-strong); }

.preset.is-active {
  background: rgba(184, 255, 92, 0.1);
  border-color: rgba(184, 255, 92, 0.32);
  color: var(--lime);
}

.range-field { padding: 15px 0 4px; border-bottom: 1px solid var(--border); }

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.range-head label { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }

.range-head output {
  min-width: 34px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.07);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: center;
}

.field-hint { color: var(--faint); font-size: 0.68rem; line-height: 1.45; }

.range-field .field-hint { margin-top: 9px; padding-bottom: 10px; }

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

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(184, 255, 92, 0.55), rgba(92, 225, 212, 0.35)) no-repeat, rgba(148, 163, 184, 0.18);
  background-size: var(--range-fill, 40%) 100%;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(184, 255, 92, 0.7), rgba(92, 225, 212, 0.5));
}

input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 2px solid #0b101a;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #0b101a;
  border-radius: 50%;
  background: var(--lime);
}

input[type="range"]:focus-visible { outline-offset: 5px; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row label:not(.switch) { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); }

.toggle-row .field-hint { margin-top: 3px; }

.switch { position: relative; flex: none; cursor: pointer; }

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  display: block;
  width: 40px;
  height: 23px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.14);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-thumb {
  display: block;
  width: 15px;
  height: 15px;
  margin: 3px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.22s var(--ease), background 0.2s ease;
}

.switch input:checked + .switch-track {
  background: rgba(184, 255, 92, 0.22);
  border-color: rgba(184, 255, 92, 0.45);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(17px);
  background: var(--lime);
}

.switch input:focus-visible + .switch-track { outline: 2px solid var(--lime); outline-offset: 3px; }

.palette-block { padding: 15px 0 16px; border-bottom: 1px solid var(--border); }

.palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.palette-head span:last-child { color: var(--faint); font-family: var(--mono); font-size: 0.65rem; }

.palette { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; align-items: center; }

.palette-empty { color: var(--faint); font-size: 0.68rem; }

.swatch {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: help;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 15px 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--border);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(9, 13, 22, 0.72);
}

[data-theme="light"] .stat { background: rgba(255, 255, 255, 0.7); }

.stat-label { color: var(--faint); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; }

.stat strong { font-family: var(--mono); font-size: 0.82rem; font-weight: 550; color: var(--text); }

.export-actions { display: grid; gap: 7px; }

.export-actions .btn-primary { width: 100%; }

.export-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.export-row .btn { padding: 8px 6px; font-size: 0.73rem; }

.export-row .btn .icon { width: 14px; height: 14px; }

.shortcut-hint { margin-top: 11px; text-align: center; color: var(--faint); font-size: 0.65rem; }

kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.08);
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
}

.code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.code-input-card,
.code-results-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 24, 0.5);
}

[data-theme="light"] .code-input-card,
[data-theme="light"] .code-results-card { background: rgba(255, 255, 255, 0.6); }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3 { font-size: 1.02rem; letter-spacing: -0.03em; }

.panel-head p { margin-top: 4px; color: var(--faint); font-size: 0.72rem; line-height: 1.5; }

.head-actions { display: flex; align-items: center; gap: 10px; flex: none; }

textarea#code-input {
  width: 100%;
  min-height: 330px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(5, 8, 14, 0.65);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
  tab-size: 2;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] textarea#code-input { background: #f8f9f4; }

textarea#code-input::placeholder { color: var(--faint); }

textarea#code-input:focus {
  outline: none;
  border-color: rgba(184, 255, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(184, 255, 92, 0.08);
}

.code-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0;
}

.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 550;
  cursor: pointer;
}

.check input { position: absolute; opacity: 0; width: 0; height: 0; }

.check-box {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check-box .icon { width: 11px; height: 11px; color: var(--primary-fg); opacity: 0; stroke-width: 3; }

.check input:checked + .check-box { background: var(--lime); border-color: var(--lime); }

.check input:checked + .check-box .icon { opacity: 1; }

.check input:focus-visible + .check-box { outline: 2px solid var(--lime); outline-offset: 2px; }

.code-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.code-actions .btn { flex: 1; min-width: 110px; }

.panel-hint {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.67rem;
  line-height: 1.55;
}

.panel-hint .icon { width: 14px; height: 14px; margin-top: 1px; flex: none; }

.panel-hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.remote-row {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}

.remote-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.remote-field .icon {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--faint);
  pointer-events: none;
}

.remote-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px 9px 33px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(5, 8, 14, 0.55);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .remote-field input { background: #f8f9f4; }

.remote-field input::placeholder { color: var(--faint); }

.remote-field input:focus {
  outline: none;
  border-color: rgba(184, 255, 92, 0.45);
  box-shadow: 0 0 0 3px rgba(184, 255, 92, 0.08);
}

.remote-row .btn {
  flex: none;
  padding: 9px 13px;
  font-size: 0.76rem;
}

.remote-row .btn .icon { width: 15px; height: 15px; }

.remote-hint {
  margin: 0 0 11px;
  color: var(--faint);
  font-size: 0.66rem;
  line-height: 1.5;
}

.remote-hint code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.remote-hint.is-ok { color: var(--green); }

.remote-hint.is-error { color: var(--danger); }

.grabber {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.04);
}

.grabber summary {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 550;
  line-height: 1.45;
  cursor: pointer;
}

.grabber[open] summary { margin-bottom: 8px; color: var(--text-soft); }

.grabber-body p { color: var(--faint); font-size: 0.68rem; line-height: 1.55; }

.grabber-body kbd { font-size: 0.62rem; }

.grabber-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.web-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 20px;
  align-items: start;
  padding: 20px;
}

.web-input-card,
.web-results-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .web-input-card,
[data-theme="dark"] .web-results-card { background: rgba(10, 14, 24, 0.5); }

.web-capture {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.web-capture .btn { flex: 1; min-width: 120px; }

.web-filters { margin-top: 2px; }

.asset-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--violet);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-type.is-svg { background: rgba(34, 197, 94, 0.12); color: var(--lime-deep); }
.asset-type.is-image { background: rgba(6, 182, 212, 0.12); color: #0e7490; }
.asset-type.is-font { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.asset-type.is-css,
.asset-type.is-other { background: rgba(99, 102, 241, 0.1); color: var(--violet); }

[data-theme="dark"] .asset-type.is-image { color: var(--cyan); }
[data-theme="dark"] .asset-type.is-font { color: var(--amber); }

.code-empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: 13px;
  text-align: center;
}

.code-empty .empty-icon,
.batch-empty .empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(148, 163, 184, 0.05);
  color: var(--faint);
}

.code-empty .empty-icon .icon,
.batch-empty .empty-icon .icon { width: 24px; height: 24px; }

.code-empty p { max-width: 30ch; margin-top: 15px; color: var(--faint); font-size: 0.8rem; line-height: 1.6; }

.result-list {
  display: grid;
  gap: 10px;
  max-height: 556px;
  overflow: auto;
  padding-right: 4px;
}

.result-list::-webkit-scrollbar,
.batch-grid::-webkit-scrollbar,
.stage-scroll::-webkit-scrollbar { width: 8px; height: 8px; }

.result-list::-webkit-scrollbar-thumb,
.batch-grid::-webkit-scrollbar-thumb,
.stage-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 99px;
}

.result-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(8, 12, 20, 0.45);
  transition: border-color 0.18s ease, background 0.18s ease;
}

[data-theme="light"] .result-card { background: rgba(248, 249, 244, 0.8); }

.result-card:hover { border-color: var(--border-strong); background: rgba(20, 27, 43, 0.55); }

[data-theme="light"] .result-card:hover { background: #fff; }

.result-thumb {
  display: grid;
  place-items: center;
  height: 78px;
  padding: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.result-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.result-info { min-width: 0; display: flex; flex-direction: column; }

.result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  font-weight: 650;
  color: var(--text);
  overflow: hidden;
}

.result-title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.result-meta {
  margin-top: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.result-actions .mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease;
}

.result-actions .mini-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.12); }

.result-actions .mini-btn .icon { width: 12px; height: 12px; }

.batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 18px;
  border-bottom: 1px solid var(--border);
}

.batch-head h3 { font-size: 1.15rem; }

.batch-head p { margin-top: 4px; color: var(--faint); font-size: 0.78rem; }

.batch-actions { display: flex; flex-wrap: wrap; gap: 7px; flex: none; }

.batch-empty {
  display: grid;
  place-items: center;
  padding: 70px 24px;
  text-align: center;
}

.batch-empty h4 { margin-top: 16px; font-size: 1.05rem; }

.batch-empty p { max-width: 42ch; margin-top: 7px; color: var(--faint); font-size: 0.8rem; }

.batch-empty .btn { margin-top: 18px; }

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-top: 18px;
}

.batch-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 13, 22, 0.55);
  overflow: hidden;
}

[data-theme="light"] .batch-item { background: rgba(255, 255, 255, 0.7); }

.batch-thumb {
  display: grid;
  place-items: center;
  height: 138px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.batch-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }

.batch-body { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }

.batch-info { min-width: 0; flex: 1; }

.batch-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.75rem;
  font-weight: 600;
}

.batch-meta { color: var(--faint); font-family: var(--mono); font-size: 0.61rem; }

.batch-item .mini-btn {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.batch-item .mini-btn:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }

.batch-item .mini-btn .icon { width: 13px; height: 13px; }

.batch-progress {
  padding: 8px 2px 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.features-section { padding-top: 96px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(18, 24, 39, 0.7), rgba(9, 13, 22, 0.5));
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.3s var(--ease), background 0.2s ease;
}

[data-theme="light"] .feature-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(243, 245, 238, 0.7));
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 0%, rgba(184, 255, 92, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
}

.feature-icon .icon { width: 21px; height: 21px; }

.feature-icon.lime { color: var(--lime); background: rgba(184, 255, 92, 0.08); border-color: rgba(184, 255, 92, 0.18); }

.feature-icon.cyan { color: var(--cyan); background: rgba(92, 225, 212, 0.08); border-color: rgba(92, 225, 212, 0.18); }

.feature-icon.violet { color: var(--violet); background: rgba(139, 151, 255, 0.08); border-color: rgba(139, 151, 255, 0.18); }

.feature-icon.amber { color: var(--amber); background: rgba(255, 201, 107, 0.08); border-color: rgba(255, 201, 107, 0.18); }

.feature-icon.pink { color: var(--pink); background: rgba(244, 114, 182, 0.08); border-color: rgba(244, 114, 182, 0.18); }

.feature-icon.green { color: var(--green); background: rgba(110, 231, 168, 0.08); border-color: rgba(110, 231, 168, 0.18); }

.feature-card h3 { font-size: 1.02rem; letter-spacing: -0.025em; }

.feature-card p { margin-top: 9px; color: var(--muted); font-size: 0.82rem; line-height: 1.65; }

.feature-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.02em;
}

.how-section { padding-top: 70px; }

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.how-layout .section-head { position: sticky; top: 116px; margin-bottom: 0; }

.how-layout .section-head .btn { margin-top: 26px; }

.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.step {
  display: flex;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14, 19, 32, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .step { background: rgba(255, 255, 255, 0.55); }

.step:hover { border-color: var(--border-strong); background: rgba(20, 27, 44, 0.55); }

[data-theme="light"] .step:hover { background: #fff; }

.step-num {
  flex: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
  padding-top: 3px;
}

.step h3 { font-size: 1.05rem; }

.step p { margin-top: 6px; color: var(--muted); font-size: 0.85rem; line-height: 1.65; }

.privacy-band { padding: 16px 0; }

.privacy-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid rgba(110, 231, 168, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 50% 100% at 0% 50%, rgba(110, 231, 168, 0.09), transparent 70%),
    rgba(10, 16, 24, 0.5);
}

[data-theme="light"] .privacy-inner {
  background:
    radial-gradient(ellipse 50% 100% at 0% 50%, rgba(45, 168, 108, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.6);
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid rgba(110, 231, 168, 0.24);
  border-radius: 14px;
  background: rgba(110, 231, 168, 0.08);
  color: var(--green);
}

.privacy-icon .icon { width: 23px; height: 23px; }

.privacy-inner h3 { font-size: 1.06rem; }

.privacy-inner p { max-width: 70ch; margin-top: 5px; color: var(--muted); font-size: 0.83rem; line-height: 1.6; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid rgba(110, 231, 168, 0.24);
  border-radius: 99px;
  background: rgba(110, 231, 168, 0.07);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.faq-section { padding-top: 74px; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.faq-layout .section-head { position: sticky; top: 116px; margin: 0; }

.faq-list { display: grid; gap: 9px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(12, 17, 28, 0.45);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

[data-theme="light"] .faq-item { background: rgba(255, 255, 255, 0.55); }

.faq-item[open] { border-color: var(--border-strong); background: rgba(17, 23, 37, 0.6); }

[data-theme="light"] .faq-item[open] { background: #fff; }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  list-style: none;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-soft);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--text); }

.faq-plus {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--faint);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after { background: var(--lime); }

.faq-body {
  padding: 0 19px 18px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.faq-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.1);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.cta-section { padding: 40px 0 96px; }

.cta-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 52px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 45% 90% at 85% 50%, rgba(139, 151, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 100% at 10% 0%, rgba(184, 255, 92, 0.1), transparent 70%),
    rgba(13, 18, 30, 0.7);
  overflow: hidden;
}

[data-theme="light"] .cta-card {
  background:
    radial-gradient(ellipse 45% 90% at 85% 50%, rgba(90, 103, 232, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 100% at 10% 0%, rgba(111, 206, 31, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.7);
}

.cta-copy { position: relative; z-index: 2; max-width: 560px; }

.cta-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.cta-copy p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 0.94rem; }

.cta-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.cta-art {
  position: absolute;
  right: 200px;
  bottom: -26px;
  width: 250px;
  opacity: 0.22;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 15, 0.6);
  padding: 56px 0 26px;
}

[data-theme="light"] .site-footer { background: rgba(239, 241, 233, 0.7); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand > p { max-width: 32ch; color: var(--faint); font-size: 0.82rem; line-height: 1.65; }

.footer-domain {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.footer-col { display: flex; flex-direction: column; gap: 9px; }

.footer-col h4 {
  margin-bottom: 5px;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a { color: var(--faint); font-size: 0.81rem; transition: color 0.18s ease; }

.footer-col a:hover { color: var(--text); }

.footer-note p { color: var(--faint); font-size: 0.78rem; line-height: 1.65; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.72rem;
}

.footer-made { display: inline-flex; align-items: center; gap: 8px; }

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 550;
  animation: toastIn 0.3s var(--ease);
  pointer-events: auto;
}

.toast .icon { width: 17px; height: 17px; flex: none; }

.toast.success .icon { color: var(--green); }

.toast.error .icon { color: var(--danger); }

.toast.info .icon { color: var(--cyan); }

.toast.is-leaving { animation: toastOut 0.25s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 400;
  padding: 16px 20px;
  border: 1px solid rgba(255, 122, 138, 0.4);
  border-radius: 12px;
  background: #1b1118;
  color: #ffd9df;
  font-size: 0.85rem;
  text-align: center;
}

.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal { opacity: 0; transform: translateY(18px); }

html.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .hero-grid { gap: 36px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr) 332px; gap: 16px; }
  .controls-card { padding: 17px; }
  .hero-stat { padding: 22px 18px; }
  .feature-card { padding: 22px; }
}

@media (max-width: 980px) {
  .section { padding: 86px 0; }
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { max-width: 17ch; }
  .hero-visual { max-width: 620px; width: 100%; margin: 0 auto; }
  .hero-stats { margin-top: 54px; }
  .studio-grid { grid-template-columns: 1fr; }
  .controls-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .controls-head, .preset-row, .palette-block, .stats-grid, .export-actions, .shortcut-hint { grid-column: 1 / -1; }
  .code-grid { grid-template-columns: 1fr; }
  .web-grid { grid-template-columns: 1fr; }
  .result-list { max-height: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-layout { grid-template-columns: 1fr; gap: 36px; }
  .how-layout .section-head { position: static; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { position: static; }
  .cta-card { padding: 38px; }
  .cta-art { right: 80px; }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
  .footer-note p { max-width: 60ch; }
}

@media (max-width: 780px) {
  .container { width: min(1200px, 100% - 32px); }
  .hero-orbit { display: none; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(20px);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 14px; font-size: 0.95rem; }
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  body.nav-open .nav-icon-open { display: none; }
  body.nav-open .nav-icon-close { display: block; }
  .header-inner { gap: 12px; }
  .hero-points { gap: 12px 16px; }
  .hero-stat { padding: 18px 14px; }
  .hero-stat strong { font-size: 1.25rem; }
  .hero-stat span { font-size: 0.68rem; }
  .studio-topbar { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .studio-tabs { width: 100%; overflow-x: auto; }
  .studio-tab { flex: 1; justify-content: center; padding: 9px 10px; white-space: nowrap; }
  .privacy-note { margin-left: 2px; }
  .tab-panel { padding: 14px; }
  .stage-scroll { height: 360px; padding: 18px; }
  .dropzone { min-height: 400px; }
  .stage-tools .toolbar-divider,
  #zoom-out,
  #zoom-in { display: none; }
  .controls-card { display: block; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 9px; }
  .stat-label { font-size: 0.56rem; }
  .stat strong { font-size: 0.72rem; }
  .batch-head { flex-direction: column; align-items: flex-start; }
  .batch-actions { width: 100%; }
  .batch-actions .btn { flex: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-inner { flex-wrap: wrap; padding: 22px; }
  .status-pill { margin-left: 68px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-art { right: -20px; opacity: 0.14; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .header-inner { gap: 8px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(2.4rem, 11.5vw, 3.2rem); max-width: none; }
  .hero-lede { font-size: 0.95rem; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
  .hero-points { font-size: 0.73rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat { border-top: 1px solid var(--border); }
  .hero-stat:first-child, .hero-stat:nth-child(2) { border-top: 0; }
  .hero-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stat:nth-child(2) { border-left: 1px solid var(--border); }
  .hero-card { transform: none; }
  .hero-canvas { padding: 2px 6px; }
  .hero-card-bottom { gap: 10px; font-size: 0.65rem; }
  .hero-card-bottom .hero-size { display: none; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: 1.9rem; }
  .studio-tab span:not(.tab-badge) { font-size: 0.75rem; }
  .studio-tab .icon { display: none; }
  .stage-scroll { height: 300px; }
  .stage-footer { gap: 8px; font-size: 0.59rem; }
  .stage-file { max-width: 50%; }
  .stage-tip { font-size: 0.7rem; }
  .dropzone { min-height: 360px; }
  .dropzone-inner { padding: 22px; }
  .dropzone h3 { font-size: 1.12rem; }
  .dropzone-inner > p { font-size: 0.8rem; }
  .drop-actions { flex-direction: column; gap: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .code-input-card, .code-results-card, .web-input-card, .web-results-card { padding: 15px; }
  textarea#code-input { min-height: 260px; }
  .web-grid { grid-template-columns: 1fr; padding: 14px; }
  .remote-row { flex-direction: column; }
  .remote-row .btn { width: 100%; }
  .code-options { gap: 10px; }
  .check { font-size: 0.68rem; }
  .panel-head { flex-wrap: wrap; }
  .head-actions { margin-left: auto; }
  .result-card { grid-template-columns: 74px minmax(0, 1fr); }
  .result-thumb { height: 68px; }
  .batch-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 20px; }
  .step { padding: 19px; gap: 16px; }
  .privacy-inner { gap: 14px; }
  .status-pill { margin-left: 0; }
  .faq-item summary { padding: 15px 16px; font-size: 0.82rem; }
  .cta-card { padding: 28px; border-radius: 20px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .toast-region { right: 12px; left: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}
