:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #0d1118;
  --panel-2: #121824;
  --ink: #f4f7fb;
  --muted: #8d98a8;
  --line: #273140;
  --lime: #c7ff4a;
  --mint: #6af5c6;
  --danger: #ff6a7d;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 9%, rgba(106, 245, 198, 0.11), transparent 30rem),
    linear-gradient(180deg, #090c12, var(--bg) 38%);
  color: var(--ink);
}

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

button,
.file-button {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(39, 49, 64, 0.72);
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.privacy-pulse {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--mint);
  font-size: 12px;
  font-weight: 720;
}

.privacy-pulse span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(106, 245, 198, 0.08);
}

main {
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 68vh;
  align-content: center;
  padding: clamp(76px, 12vw, 180px) clamp(0px, 4vw, 60px);
}

.kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1120px;
  margin-bottom: 30px;
  font-size: clamp(54px, 9.4vw, 146px);
  font-weight: 660;
  letter-spacing: -0.072em;
  line-height: 0.84;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: #bec7d5;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-proof span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  min-height: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 17, 24, 0.96);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #090d13;
}

.tab,
.segmented button,
.secondary,
.primary,
.file-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}

.tab {
  padding: 12px 16px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.tab:hover,
.tab.is-active {
  background: var(--panel-2);
  color: var(--ink);
}

.tool-panel {
  min-height: 706px;
}

.tool-panel[data-panel="image"] {
  display: none;
  grid-template-columns: 310px minmax(0, 1fr);
}

.tool-panel[data-panel="image"].is-active {
  display: grid;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #0a0e14;
}

.control-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.control-group:first-child {
  padding-top: 0;
}

.control-group.push-down {
  margin-top: auto;
  border-bottom: 0;
}

.label,
.text-column > label,
.text-controls > label,
legend {
  display: block;
  margin-bottom: 12px;
  color: #dbe2ed;
  font-size: 12px;
  font-weight: 760;
}

.file-button,
.primary,
.secondary {
  display: inline-flex;
  min-height: 43px;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  font-weight: 780;
}

.file-button,
.primary {
  background: var(--lime);
  color: #101500;
}

.file-button:hover,
.primary:hover {
  transform: translateY(-1px);
  background: #d4ff70;
}

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

.secondary {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}

.secondary:hover:not(:disabled) {
  border-color: #4a5b70;
  background: #18202d;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.wide {
  width: 100%;
  margin-top: 10px;
}

.microcopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080b10;
}

.segmented button {
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.segmented button.is-active {
  background: #202a38;
  color: var(--ink);
}

.color-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.color-control input {
  width: 44px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: none;
}

.watermark-controls {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #080b10;
}

.watermark-controls summary {
  cursor: pointer;
  color: #dbe2ed;
  font-size: 12px;
  font-weight: 760;
}

.watermark-controls[open] summary {
  margin-bottom: 14px;
}

.watermark-controls label {
  display: block;
  margin: 12px 0 7px;
  color: var(--muted);
  font-size: 11px;
}

.watermark-controls .toggle-line {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c7d0dc;
}

.watermark-controls input[type="checkbox"] {
  accent-color: var(--lime);
}

.watermark-controls input[type="text"],
.watermark-controls select {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #06080c;
  color: var(--ink);
  font-size: 11px;
}

.watermark-controls input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-row.right {
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

.canvas-shell {
  position: relative;
  display: grid;
  min-height: 706px;
  place-items: center;
  overflow: auto;
  padding: clamp(20px, 4vw, 60px);
  background:
    linear-gradient(45deg, #0b1017 25%, transparent 25%) 0 0 / 26px 26px,
    linear-gradient(45deg, transparent 75%, #0b1017 75%) 0 0 / 26px 26px,
    linear-gradient(45deg, transparent 75%, #0b1017 75%) 13px -13px / 26px 26px,
    linear-gradient(45deg, #0b1017 25%, #080b10 25%) 13px 13px / 26px 26px;
}

.canvas-shell.is-dragover {
  box-shadow: inset 0 0 0 2px var(--lime);
}

#editor-canvas {
  display: none;
  max-width: 100%;
  max-height: 72vh;
  border: 1px solid #364255;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.46);
  cursor: crosshair;
  touch-action: none;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.drop-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 10px;
  border: 1px solid #46566c;
  border-radius: 20px;
  background:
    linear-gradient(135deg, transparent 47%, var(--lime) 48% 52%, transparent 53%),
    linear-gradient(45deg, transparent 47%, var(--mint) 48% 52%, transparent 53%);
  transform: rotate(8deg);
}

.text-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr);
  gap: 1px;
  min-height: 706px;
  background: var(--line);
}

.text-column,
.text-controls {
  padding: clamp(22px, 3vw, 38px);
  background: #0a0e14;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070a0f;
  color: var(--ink);
}

.text-column > textarea {
  min-height: 590px;
  padding: 18px;
  resize: vertical;
  line-height: 1.6;
}

.small-textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.text-controls fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.text-controls fieldset label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #b7c0ce;
  font-size: 12px;
}

.text-controls input[type="checkbox"] {
  accent-color: var(--lime);
}

.select-label {
  margin-top: 20px;
}

select {
  min-height: 42px;
  margin-bottom: 14px;
  padding: 0 10px;
}

.text-controls .primary {
  width: 100%;
}

.batch-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  min-height: 706px;
}

.batch-intro {
  padding: clamp(34px, 5vw, 70px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 90%, rgba(199, 255, 74, 0.08), transparent 25rem),
    #0a0e14;
}

.batch-intro h2,
.privacy-note h2 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.batch-intro > p:not(.kicker) {
  max-width: 520px;
  margin-bottom: 28px;
  color: #b3bdcb;
  font-size: 17px;
  line-height: 1.55;
}

.batch-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 38px);
  background: #080b10;
}

.batch-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed #364255;
  border-radius: 16px;
  color: var(--muted);
}

.batch-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.batch-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 9px;
  background: #030405;
}

.batch-item strong,
.batch-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-item strong {
  font-size: 13px;
}

.batch-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

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

.batch-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 11px;
}

.privacy-note {
  display: grid;
  grid-template-columns: 90px minmax(240px, 1fr) minmax(260px, 0.62fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: start;
  padding: clamp(90px, 12vw, 180px) clamp(0px, 4vw, 60px);
}

.privacy-note .number {
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
}

.privacy-note > p {
  color: #aab4c2;
  font-size: 17px;
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .tool-panel[data-panel="image"].is-active,
  .text-layout,
  .batch-layout,
  .privacy-note {
    grid-template-columns: 1fr;
  }

  .controls,
  .batch-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .control-group.push-down {
    margin-top: 0;
  }

  .text-column > textarea {
    min-height: 330px;
  }

  .privacy-note {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .privacy-note > p {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 20px, 1500px);
  }

  .privacy-pulse {
    font-size: 0;
  }

  .hero {
    min-height: 62vh;
    padding-block: 78px;
  }

  h1 {
    font-size: clamp(51px, 16vw, 82px);
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    white-space: nowrap;
  }

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

  .canvas-shell {
    min-height: 470px;
    padding: 12px;
  }

  .batch-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .batch-item img {
    width: 46px;
    height: 46px;
  }

  .batch-actions {
    grid-column: 1 / -1;
  }

  .privacy-note {
    grid-template-columns: 1fr;
  }

  .privacy-note > p {
    grid-column: auto;
  }

  footer {
    flex-direction: column;
  }
}


/* Public-demo conversion link. This is not included in downloadable packages. */
.demo-buy-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--lime);
  border-radius: 9px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

.demo-buy-link:hover {
  background: var(--lime);
  color: #111700;
}

@media (max-width: 640px) {
  .demo-buy-link {
    min-height: 38px;
    padding-inline: 12px;
  }
}
