:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --panel: rgba(255, 255, 255, 0.9);
  --wash: #f4f8f9;
  --purple: #b567c2;
  --cyan: #f28482;
  --emerald: #059669;
  --rose: #e11d48;
  --amber: #f5c344;
  --feature-gradient: linear-gradient(90deg, #f5c344, #f28482, #b567c2);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Inter, "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(18px, calc((100vw - 1024px) / 2 + 24px));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--feature-gradient);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

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

.brand small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

.brand strong {
  color: var(--ink);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(181, 103, 194, 0.08);
}

.nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.language-control {
  display: inline-flex;
  align-items: center;
}

.language-control select {
  min-height: 38px;
  max-width: 104px;
  padding: 0 34px 0 14px;
  color: #1e293b;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--feature-gradient) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.language-links {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px) 24px 18px;
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 14px;
  padding: 0 15px;
  color: #b567c2;
  background: rgba(181, 103, 194, 0.08);
  border: 1px solid rgba(181, 103, 194, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

h2 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h3 {
  color: #1e293b;
  font-weight: 600;
}

p {
  color: var(--muted);
  font-weight: 400;
}

h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 span {
  color: transparent;
  background: var(--feature-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
}

.lead a {
  color: var(--purple);
  border-bottom: 1px solid rgba(181, 103, 194, 0.34);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--feature-gradient);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.18);
}

.button.primary {
  background-clip: padding-box;
}

.button.ghost,
.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.secondary:disabled {
  color: #9aa7a2;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button.full {
  width: 100%;
}

.tool-panel,
.editor-shell,
.info-band,
.faq article {
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(380px, 1.45fr) minmax(260px, 0.78fr);
  gap: 16px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px clamp(18px, 4vw, 42px);
}

.tool-panel {
  padding: 18px;
}

.panel-heading h2 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

.dropzone {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 22px;
  text-align: center;
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(245, 195, 68, 0.12), rgba(181, 103, 194, 0.08)),
    rgba(249, 250, 251, 0.72);
}

.dropzone.dragover {
  border-color: var(--purple);
  background: rgba(181, 103, 194, 0.08);
}

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

.dropzone strong {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
}

.dropzone span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.upload-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--purple);
  background: rgba(181, 103, 194, 0.1);
  border-radius: 14px;
}

.upload-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(209, 213, 219, 0.86);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.preview-meta {
  min-width: 0;
}

.preview-meta strong,
.preview-meta span {
  display: block;
}

.preview-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-meta span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(249, 250, 251, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.mini-button:hover {
  border-color: rgba(181, 103, 194, 0.36);
  color: var(--purple);
}

.editor-shell {
  display: grid;
  grid-template-rows: auto minmax(440px, 1fr) auto;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}

.process-toolbar {
  justify-content: center;
}

.process-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(229, 231, 235, 0.54);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.process-step::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.process-step.active {
  color: var(--purple);
  background: rgba(181, 103, 194, 0.1);
}

.process-step.done {
  color: var(--emerald);
  background: rgba(5, 150, 105, 0.09);
}

body[data-app-state="processing"] .process-step[data-state-dot="processing"]::before {
  animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.canvas-stage {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(-45deg, #eef2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef2f7 75%),
    linear-gradient(-45deg, transparent 75%, #eef2f7 75%);
  background-color: #f8fafc;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
  touch-action: none;
}

.empty-state {
  display: grid;
  min-width: min(320px, calc(100% - 36px));
  min-height: 160px;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}

.progress-panel {
  position: absolute;
  z-index: 9;
  display: grid;
  min-width: min(320px, calc(100% - 36px));
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.progress-panel strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.progress-panel span:not(.spinner) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(181, 103, 194, 0.16);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

canvas {
  position: absolute;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
}

#maskCanvas {
  opacity: 0.65;
}

.hidden {
  display: none !important;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

.secondary-actions .mini-button {
  width: 100%;
  min-height: 40px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
}

.result-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.engine-note,
.status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.engine-note {
  margin: 4px 0 0;
  padding: 10px 12px;
  background: rgba(249, 250, 251, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
}

.engine-note a {
  color: var(--purple);
  font-weight: 600;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(209, 213, 219, 0.84);
  border-left: 4px solid var(--purple);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.success {
  border-left-color: var(--emerald);
}

.c1-container {
  width: 100%;
  max-width: 1100px;
  margin: 58px auto 0;
  padding: 0 24px;
  text-align: center;
}

.c1-header {
  margin-bottom: 50px;
}

.c1-badge {
  margin-bottom: 16px;
  color: transparent;
  background: linear-gradient(90deg, #f5c344, #f28482, #b567c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.c1-title {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.c1-subtitle {
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.5;
}

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

.c1-card {
  position: relative;
  display: flex;
  height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-align: left;
  background: #f4f8f9;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.c1-card h3 {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.c1-card-1 {
  background: radial-gradient(circle at 50% 0%, #ffb347 0%, #f9ed96 30%, #f4f8f9 60%, #f4f8f9 100%);
}

.c1-card-2 {
  background: radial-gradient(circle at 50% 0%, #e5a1f5 0%, #f8aca0 30%, #f4f8f9 60%, #f4f8f9 100%);
}

.c1-card-3 {
  background: radial-gradient(circle at 50% 0%, #f9ed96 0%, #e5a1f5 30%, #f4f8f9 60%, #f4f8f9 100%);
}

.c1-prompt-box {
  position: absolute;
  top: 30px;
  right: 24px;
  left: 24px;
  z-index: 2;
  padding: 16px;
  color: #475569;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  line-height: 1.6;
}

.c1-blur-text {
  color: transparent;
  background: linear-gradient(90deg, #ffb347, #e5a1f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.c1-pill {
  position: absolute;
  top: 180px;
  left: 40px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  color: #1e293b;
  background: #fff;
  border: 1px solid #000;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
}

.c1-pill span {
  color: #a855f7;
  font-size: 1rem;
  line-height: 1;
}

.c1-cursor {
  position: absolute;
  top: 205px;
  left: 110px;
  z-index: 10;
  width: 24px;
  height: 24px;
  fill: #0f172a;
  stroke: #fff;
  stroke-width: 1px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.c1-api-visual {
  position: absolute;
  inset: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.c1-clean-frame {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 250px;
  height: 180px;
  place-items: center;
  margin-top: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, #dbeafe, #fce7f3 52%, #ecfeff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 30px rgba(15, 23, 42, 0.08);
}

.c1-clean-frame::before,
.c1-clean-frame::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.c1-clean-frame::before {
  top: 22px;
  left: 26px;
}

.c1-clean-frame::after {
  right: 28px;
  bottom: 20px;
}

.c1-mark {
  position: relative;
  z-index: 2;
  color: rgba(15, 23, 42, 0.28);
  border: 1px dashed rgba(15, 23, 42, 0.22);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.c1-clean-line {
  position: absolute;
  z-index: 3;
  width: 178px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: rotate(-18deg);
}

.c1-clean-dot {
  position: absolute;
  z-index: 4;
  right: 50px;
  bottom: 46px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.32);
}

.c1-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at center top, black 0%, transparent 80%);
  mask-image: radial-gradient(circle at center top, black 0%, transparent 80%);
}

.c1-folder {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 2;
  width: 170px;
  transform: translateX(-50%);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

.c1-folder svg {
  width: 100%;
  height: auto;
  fill: #fff;
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 2;
}

.c1-folder svg path:first-child {
  fill: #f8fafc;
}

.c1-search {
  position: absolute;
  top: 220px;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  color: #1e293b;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #000;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
}

.c1-search svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-showcase {
  max-width: 1100px;
  margin: 72px auto 0;
  padding: 0 24px;
}

.result-showcase-copy {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.result-showcase-copy h2 {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.result-showcase-copy p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.5;
}

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

.result-pair figure {
  overflow: hidden;
  background: #f4f8f9;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.result-image-frame {
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  background: #f4f8f9;
}

.result-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.result-pair figcaption {
  padding: 14px 18px 16px;
  color: #1e293b;
  background: #fff;
  border-top: 1px solid rgba(229, 231, 235, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
}

.tool-hub,
.content-panel {
  max-width: 1024px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card-grid article,
.content-panel {
  background: var(--panel);
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tool-card-grid article {
  min-height: 220px;
  padding: 22px;
}

.mini-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
}

.mini-icon.purple {
  color: var(--purple);
  background: rgba(181, 103, 194, 0.1);
}

.mini-icon.cyan {
  color: var(--cyan);
  background: rgba(242, 132, 130, 0.1);
}

.mini-icon.emerald {
  color: var(--emerald);
  background: rgba(5, 150, 105, 0.1);
}

.tool-card-grid h3 {
  margin-bottom: 10px;
  font-weight: 600;
}

.tool-card-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.content-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px;
}

.content-panel h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.06;
}

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

.steps li {
  padding: 14px;
  background: rgba(244, 248, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  color: #1e293b;
  font-weight: 600;
}

.steps span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 1024px;
  margin: 42px auto 0;
  padding: 30px;
}

.info-band h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.05;
}

.info-band p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.faq {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 42px 24px;
}

.faq article {
  min-height: 160px;
  padding: 22px;
}

.faq h3 {
  margin-bottom: 10px;
  font-weight: 600;
}

.faq p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(18px, calc((100vw - 1024px) / 2 + 24px));
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1060px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .editor-shell {
    grid-template-rows: auto 560px auto;
  }

  .tool-card-grid,
  .faq {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .nav {
    display: none;
  }

  .language-control {
    margin-left: auto;
  }

  .language-control select {
    max-width: 82px;
    padding-right: 26px;
    padding-left: 10px;
  }

  .hero {
    padding: 32px 16px 28px;
    justify-items: center;
  }

  h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .lead {
    font-size: 16px;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .editor-shell {
    grid-template-rows: auto 360px auto;
  }

  .workspace,
  .c1-container,
  .result-showcase,
  .faq {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tool-panel {
    padding: 16px;
  }

  .dropzone {
    min-height: 220px;
  }

  .canvas-stage {
    min-height: 360px;
  }

  .c1-grid,
  .tool-card-grid,
  .faq,
  .info-band,
  .content-panel {
    grid-template-columns: 1fr;
  }

  .c1-title {
    font-size: 2.25rem;
  }

  .result-showcase-copy h2 {
    font-size: 2.25rem;
  }

  .info-band {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 500px) {
  .hero {
    justify-items: start;
  }

  .hero-copy,
  .workspace,
  .c1-container,
  .result-showcase,
  .tool-hub,
  .content-panel,
  .faq {
    max-width: 288px;
    margin-left: 16px;
    margin-right: 0;
  }

  .workspace,
  .c1-container,
  .result-showcase,
  .tool-hub,
  .content-panel,
  .faq {
    padding-left: 0;
    padding-right: 0;
  }

  .info-band {
    max-width: 288px;
    margin-left: 16px;
    margin-right: 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .brand small {
    font-size: 11px;
  }

  .eyebrow {
    width: 100%;
    justify-content: center;
    padding: 0 10px;
    font-size: 11px;
  }

  h1 {
    font-size: 33px;
  }

  .button {
    width: 100%;
  }

  .editor-shell {
    grid-template-rows: auto 320px auto;
  }

  .canvas-stage {
    min-height: 320px;
  }
}
