@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color: #f4f6ef;
  background: #090b0b;
  font-family: "DM Sans", system-ui, sans-serif;
  font-synthesis: none;
  --lime: #ff4e45;
  --lime-soft: #ff6d66;
  --panel: #151111;
  --panel-2: #1b1515;
  --line: #342b2a;
  --line-soft: rgba(255, 255, 255, .07);
  --muted: #8e9691;
  --muted-2: #636b66;
  --green: #8de3aa;
  --red: #ff9b86;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: #f4f6ef;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 78, 69, .09), transparent 35%),
    radial-gradient(circle at 96% 52%, rgba(255, 78, 69, .03), transparent 26%),
    #0c0909;
  line-height: 1.5;
}

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

.site-shell { min-height: 100vh; }
.topbar {
  min-height: 112px;
  padding: 14px max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  z-index: 5;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #f5f7f2;
  text-decoration: none;
}

.brand-mark {
  width: 60px;
  height: 60px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid #3e463f;
  border-radius: 16px;
  background: linear-gradient(145deg, #1d1716, #100d0d);
  box-shadow: inset 0 0 28px rgba(255, 78, 69, .05);
}

.brand-mark i { display: block; width: 4px; border-radius: 4px; background: var(--lime); }
.brand-mark i:nth-child(1) { height: 20px; }
.brand-mark i:nth-child(2) { height: 35px; }
.brand-mark i:nth-child(3) { height: 26px; }
.brand-lockup { display: grid; gap: 5px; }
.brand-title {
  display: flex;
  gap: 11px;
  align-items: baseline;
  font: 700 28px/1 "Manrope", sans-serif;
  letter-spacing: .035em;
}
.brand-title b { color: var(--lime); font-weight: 700; }
.brand-title strong { font-weight: 800; }
.brand-lockup > small { color: #9aa59e; font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .28em; }
.brand-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.brand-tags i {
  color: var(--lime);
  border: 1px solid rgba(255, 78, 69, .32);
  border-radius: 99px;
  padding: 3px 7px;
  font: 700 8px/1 "Manrope", sans-serif;
  font-style: normal;
  letter-spacing: .13em;
}

.tool-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #737c77;
  font: 700 10px/1 "Manrope", sans-serif;
  letter-spacing: .18em;
}
.tool-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(255, 78, 69, .62); }
.studio-link { justify-self: end; color: #a9b0ac; text-decoration: none; font-size: 13px; font-weight: 600; }
.studio-link span { margin-left: 5px; color: var(--lime); }
.studio-link:hover { color: #fff; }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 210px);
  padding: 72px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, .96fr);
  gap: clamp(54px, 7vw, 104px);
  align-items: center;
}

.eyebrow { color: var(--lime); font: 700 10px/1 "Manrope", sans-serif; letter-spacing: .21em; }
.hero-copy h1 {
  margin: 18px 0 28px;
  max-width: 720px;
  font: 600 clamp(3.5rem, 6.9vw, 6.5rem)/.94 "Manrope", sans-serif;
  letter-spacing: -.075em;
}
.hero-copy h1 em { color: var(--lime); font-style: normal; }
.lede { max-width: 575px; color: #929a95; font-size: 17px; line-height: 1.7; }
.feature-row { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 34px; }
.feature-row span { display: inline-flex; align-items: center; gap: 8px; color: #6f7772; font-size: 11px; }
.feature-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }

.tool-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #303632;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(255, 78, 69, .045), transparent 42%), #12100f;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
}
.tool-panel::before {
  content: "";
  position: absolute;
  top: -95px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 78, 69, .05);
  filter: blur(8px);
  pointer-events: none;
}
.panel-heading { position: relative; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 27px; }
.panel-heading h2 { margin-top: 9px; font: 600 26px/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.ready-badge {
  color: var(--lime);
  background: rgba(255, 78, 69, .08);
  border: 1px solid rgba(255, 78, 69, .22);
  padding: 7px 10px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
.ready-badge::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(255, 78, 69, .68); }

.input-label { display: block; margin-bottom: 9px; color: #727b75; font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .16em; }
.row { display: grid; gap: 10px; }
textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  padding: 17px 18px;
  border: 1px dashed #414a43;
  border-radius: 15px;
  outline: none;
  background: rgba(8, 11, 9, .76);
  color: #f1f4ed;
  font: 12px/1.7 var(--mono);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
textarea::placeholder { color: #4f5752; }
textarea:hover { border-color: #536057; }
textarea:focus { border-color: var(--lime); background: #100d0d; box-shadow: 0 0 0 3px rgba(255, 78, 69, .1); }

button { border: 0; cursor: pointer; }
.btn-main {
  min-height: 52px;
  padding: 0 17px 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 11px;
  background: var(--lime);
  color: #11150e;
  font: 800 12px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn-main b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: rgba(9, 12, 8, .1); font-size: 15px; }
.btn-main:hover:not(:disabled) { background: #ff6d66; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(255, 78, 69, .16); }
button:disabled { cursor: not-allowed; color: #657067; background: #242a26; box-shadow: none; transform: none; }
.input-hint { margin-top: 10px; color: #5f6762; font-size: 11px; line-height: 1.55; }

.error {
  display: none;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 140, 119, .32);
  border-radius: 11px;
  background: rgba(255, 140, 119, .07);
  color: var(--red);
  font-size: 12px;
}

.card {
  display: none;
  flex-direction: column;
  gap: 15px;
  margin-top: 26px;
  padding-top: 25px;
  border-top: 1px solid #272d29;
}
.queue-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.title { margin-top: 7px; font: 600 21px/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.select-all { display: flex; align-items: center; gap: 7px; color: #89918c; font-size: 11px; }
input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--lime); }
.queue-summary { color: #929b95; font: 11px/1.5 var(--mono); }
.queue { max-height: 300px; overflow: auto; list-style: none; border-top: 1px solid #262c28; scrollbar-color: #3d463f transparent; }
.queue-item { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #252b27; }
.queue-item input { margin-top: 6px; }
.queue-item img { width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: #222823; }
.queue-info { min-width: 0; flex: 1; }
.queue-title { overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.queue-meta, .queue-state { overflow-wrap: anywhere; color: #6e7771; font-size: 10px; }
.queue-state { margin-top: 4px; color: #929b95; }
.queue-item[data-state="active"] .queue-state { color: var(--lime); }
.queue-item[data-state="done"] .queue-state { color: var(--green); }
.queue-item[data-state="error"] .queue-state { color: var(--red); }
.queue-item[data-state="duplicate"] { opacity: .56; }

.format-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.format-heading span { color: #8a938d; font: 700 9px/1 "Manrope", sans-serif; letter-spacing: .15em; }
.format-heading small { color: #59615c; font-size: 9px; }
.fmt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fmt-btn {
  min-width: 0;
  padding: 11px 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  border: 1px solid #2e3530;
  border-radius: 10px;
  background: #0c0f0d;
  color: #65706a;
  font: 8px/1.3 "Manrope", sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease;
}
.fmt-btn b { color: #d9ddd8; font-size: 13px; letter-spacing: .06em; }
.fmt-btn:hover:not(:disabled) { border-color: #4c584f; background: #121613; }
.fmt-btn.on { border-color: var(--lime); background: rgba(255, 78, 69, .09); box-shadow: inset 0 0 0 1px rgba(255, 78, 69, .07); }
.fmt-btn.on b, .fmt-btn.on span { color: var(--lime); }
.fmt-btn:disabled { opacity: .52; }
.download-button { justify-content: center; }
.btn-secondary { min-height: 42px; padding: 0 14px; border: 1px solid #343c36; border-radius: 9px; background: transparent; color: #a4ada7; font: 700 10px/1 "Manrope", sans-serif; letter-spacing: .08em; }
.btn-secondary:hover:not(:disabled) { border-color: #576159; background: #151916; }
.hint { display: none; color: #737c77; font: 10px/1.6 var(--mono); }
.bar { height: 6px; overflow: hidden; display: none; border-radius: 99px; background: #242b26; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); box-shadow: 0 0 16px rgba(255, 78, 69, .34); transition: width .2s; }
.status { min-height: 16px; color: #87908a; font: 10px/1.5 var(--mono); }
.status.ok { color: var(--green); }

.format-strip {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.format-strip > div { padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 2px 13px; border-right: 1px solid var(--line-soft); }
.format-strip > div:last-child { border-right: 0; }
.format-strip span { grid-row: span 2; align-self: center; color: var(--lime); font: 9px/1 var(--mono); }
.format-strip strong { font: 600 13px/1 "Manrope", sans-serif; letter-spacing: .06em; }
.format-strip small { color: #606863; font-size: 9px; }

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #515954;
  font: 700 9px/1 "Manrope", sans-serif;
  letter-spacing: .17em;
}

button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 940px) {
  .tool-label { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 66px 0 72px; }
  .hero-copy { max-width: 720px; }
  .hero-copy h1 { max-width: 680px; font-size: clamp(3.5rem, 10vw, 6.2rem); }
  .tool-panel { width: min(100%, 690px); }
}

@media (max-width: 650px) {
  .topbar { min-height: 72px; padding: 0 16px; }
  .studio-link { font-size: 0; }
  .studio-link span { font-size: 16px; }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; gap: 3px; }
  .brand-mark i { width: 3px; }
  .brand-mark i:nth-child(1) { height: 13px; }
  .brand-mark i:nth-child(2) { height: 22px; }
  .brand-mark i:nth-child(3) { height: 17px; }
  .brand-title { gap: 6px; font-size: 17px; }
  .brand-lockup > small, .brand-tags { display: none; }
  main { width: min(100% - 28px, 1180px); }
  .hero { padding: 48px 0 54px; gap: 38px; }
  .hero-copy h1 { margin: 15px 0 22px; font-size: clamp(3.25rem, 16vw, 5rem); }
  .lede { font-size: 14px; line-height: 1.65; }
  .feature-row { margin-top: 25px; gap: 9px 16px; }
  .tool-panel { padding: 22px 18px; border-radius: 18px; }
  .panel-heading h2 { font-size: 22px; }
  .ready-badge { padding: 6px 8px; font-size: 8px; }
  textarea { min-height: 125px; }
  .format-heading small { display: none; }
  .fmt { gap: 6px; }
  .fmt-btn { padding: 10px 2px 9px; }
  .format-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }
  .format-strip > div:nth-child(2) { border-right: 0; }
  .format-strip > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
  footer { width: calc(100% - 28px); padding-bottom: 22px; flex-direction: column; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
