/* Self-hosted Poppins with metric-matched fallback to prevent layout shift (CLS = 0) */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/assets/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/assets/fonts/poppins-600.woff2') format('woff2');
}

:root {
  --purple: #7c3aed;
  --purple-dark: #6326d1;
  --purple-light: #f5effe;
  --pink: #c05ce0;
  --text: #1e1a28;
  --muted: #625b71;
  --line: #e9e3f2;
  --surface: #faf8fd;
  --radius: 14px;
  --header: 70px;
  --shadow: 0 14px 40px rgba(48, 28, 72, 0.08);
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #ffffff;
  font-synthesis: none;
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--text); }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button:disabled { opacity: 0.55; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b583f2; outline-offset: 2px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #b583f2; outline-offset: 1px; }
input, textarea, select { color: var(--text); max-width: 100%; }
input[type="range"] { accent-color: var(--purple); width: 100%; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -1px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
h2 { font-size: clamp(22px, 2.5vw, 31px); line-height: 1.3; letter-spacing: -0.6px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin-bottom: 8px; color: var(--text); }
p { color: var(--muted); font-size: 15px; line-height: 1.75; }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.container { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }
.container.narrow, .narrow { max-width: 860px; margin-inline: auto; }
.section { padding-block: 68px; }
.section.alt-bg { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.section-head p { margin-bottom: 0; }
.section-split { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; font-weight: 600; text-transform: uppercase; color: var(--purple); display: inline-block; margin-bottom: 10px; background: #efe5ff; padding: 4px 12px; border-radius: 999px; }
.lead { font-size: 16px; color: #564f66; max-width: 780px; line-height: 1.7; margin-bottom: 0; }
.workspace-intro.center .lead { margin-inline: auto; }

/* Buttons & Badges */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s, border-color 0.18s; text-align: center;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: linear-gradient(115deg, var(--pink), var(--purple)); color: #fff;
  border: 1px solid transparent; box-shadow: 0 6px 18px rgba(124, 58, 237, 0.22);
}
.button.primary:hover { box-shadow: 0 9px 26px rgba(124, 58, 237, 0.34); }
.button.ghost { border: 1px solid #d7c7ea; color: var(--purple-dark); background: #fff; }
.button.ghost:hover { background: var(--purple-light); border-color: var(--purple); }
.full-btn { width: 100%; }
.small-cta { min-height: 36px; padding: 7px 14px; font-size: 12.5px; border-radius: 9px; }
.link-btn { color: var(--purple); font-size: 12px; font-weight: 500; padding: 3px 6px; border-radius: 6px; }
.link-btn:hover { background: var(--purple-light); }

.tool-badge {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.4;
  padding: 3px 9px; border-radius: 999px; background: #f2eafe; color: var(--purple);
  margin-bottom: 10px; align-self: flex-start;
}
.tool-badge.free, .free-tag {
  display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.4;
  padding: 3px 9px; border-radius: 999px; background: #e8f8ef; color: #1f7a4c;
}

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 8px; }

/* Header, Mega-Menu & Mobile Drawer */
.site-header {
  height: var(--header); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96);
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.desktop-nav { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: center; min-width: 0; }
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; gap: 5px; align-items: center; padding: 22px 4px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--text); }
.nav-trigger .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-item.open .nav-trigger .icon { transform: rotate(180deg); }
.nav-trigger:hover, .nav-item.open .nav-trigger, .nav-link:hover, .nav-link.active { color: var(--purple); }
.nav-link { font-size: 13.5px; font-weight: 500; padding: 8px 4px; white-space: nowrap; }

.dropdown-panel {
  display: none; position: absolute; top: calc(100% - 2px); left: -24px;
  width: min(620px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; background: #fff; box-shadow: var(--shadow); z-index: 60;
}
.nav-item.open .dropdown-panel { display: block; }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dropdown-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; transition: background 0.15s; }
.dropdown-item:hover { background: var(--purple-light); }
.dropdown-item .item-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--purple-light); color: var(--purple); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.dropdown-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.dropdown-item small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; border: 1px solid var(--line); color: var(--text); }

.mobile-drawer {
  position: fixed; inset: 0; background: #fff; z-index: 80;
  overflow-y: auto; padding: 18px 20px 40px;
}
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.mobile-close { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); font-size: 22px; line-height: 1; display: grid; place-items: center; }
.mobile-section { margin-bottom: 20px; }
.mobile-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); margin-bottom: 8px; }
.mobile-section a { display: block; padding: 9px 10px; font-size: 14px; font-weight: 500; border-radius: 8px; color: var(--text); }
.mobile-section a:hover { background: var(--purple-light); color: var(--purple); }

/* Hero & Workspace Area */
.hero-workspace {
  padding: 40px 0 56px;
  background: linear-gradient(160deg, #f9f4ff 0%, #f4f8ff 54%, #fcf9ff 100%);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--purple); }
.workspace-intro { margin-bottom: 28px; }
.workspace-intro.center { text-align: center; max-width: 860px; margin-inline: auto; margin-bottom: 32px; }

.workspace-grid {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 26px; align-items: start;
}
.control-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; box-shadow: 0 8px 28px rgba(48, 26, 78, 0.05); min-width: 0;
}

.mode-tabs { display: flex; background: #f3effa; border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.mode-tab { flex: 1; padding: 9px 10px; font-size: 12.5px; font-weight: 600; border-radius: 8px; color: #685e7a; line-height: 1.3; text-align: center; }
.mode-tab.active { background: #fff; color: var(--purple); box-shadow: 0 2px 8px rgba(55, 30, 88, 0.09); }

.sample-bar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.sample-load-btn {
  font-size: 11.5px; font-weight: 600; color: var(--purple); background: var(--purple-light);
  border: 1px solid #e1d0f8; padding: 4px 10px; border-radius: 999px; transition: background 0.15s;
}
.sample-load-btn:hover { background: #e8dafc; }

.drop-zone {
  border: 1.5px dashed #c8b6e2; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 18px 14px;
  background: #fcfafe; min-height: 124px; cursor: pointer; margin-bottom: 16px;
  transition: background 0.15s, border-color 0.15s;
}
.drop-zone:hover, .drop-zone.dragover { background: var(--purple-light); border-color: var(--purple); }
.drop-zone .file-input { display: none; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.upload-empty .icon { width: 26px; height: 26px; color: var(--purple); margin-bottom: 2px; }
.upload-empty strong { font-size: 13px; font-weight: 600; color: var(--text); }
.upload-empty small { font-size: 11.5px; color: var(--muted); }
.drop-zone.has-files .upload-empty { display: none; }
.upload-thumbnails { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; }
.upload-thumbnails:empty { display: none; }
.upload-thumbnails img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.upload-file-wrap { position: relative; }
.remove-file { position: absolute; top: 3px; right: 3px; background: #fff; border-radius: 50%; width: 22px; height: 22px; line-height: 20px; font-size: 15px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }

.field-block, .field-label { display: block; margin-bottom: 14px; min-width: 0; }
.label-title, .field-label > span { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field-grid { display: grid; gap: 10px; margin-bottom: 4px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.text-input, .number-input, textarea.prompt-box {
  display: block; width: 100%; border: 1px solid #dcd4ea; border-radius: 9px;
  padding: 9px 12px; background: #fff; font-size: 13px; color: var(--text);
}
textarea.prompt-box { resize: vertical; min-height: 86px; line-height: 1.6; }
.color-input { display: block; width: 100%; height: 38px; border: 1px solid #dcd4ea; border-radius: 9px; padding: 3px; background: #fff; cursor: pointer; }
.prompt-toolbar { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin: 6px 0 12px; }

.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #e0d8ec; border-radius: 8px; padding: 6px 11px; font-size: 12px; font-weight: 500; color: #5f5671; background: #fff; }
.chip:hover { border-color: #b48ef0; }
.chip.active { border-color: var(--purple); background: var(--purple-light); color: var(--purple); font-weight: 600; }

.style-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.style-choice { padding: 0; border-radius: 8px; text-align: center; min-width: 0; }
.style-choice img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid transparent; border-radius: 8px; }
.style-choice.active img { border-color: var(--purple); }
.style-choice span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.style-choice.active span { color: var(--purple); font-weight: 600; }

.generate-btn { margin-top: 6px; min-height: 46px; font-size: 14.5px; }
.generation-note { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; line-height: 1.5; }
.status-message { font-size: 12.5px; line-height: 1.55; margin: 12px 0 0; overflow-wrap: anywhere; }
.status-message:empty { display: none; }
.status-message.error { padding: 10px 12px; color: #9e2a3b; background: #fff1f3; border: 1px solid #f8d0d6; border-radius: 8px; }
.status-message.success { padding: 10px 12px; color: #1f7a4c; background: #eefbf3; border: 1px solid #c7eed8; border-radius: 8px; }
.status-message.working { padding: 10px 12px; color: var(--purple-dark); background: var(--purple-light); border-radius: 8px; }

/* Live Preview Panel */
.preview-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: 0 8px 28px rgba(48, 26, 78, 0.05); min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 16px; margin: 0; }

.preview-stage {
  position: relative; min-height: 360px; border: 1px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px;
  background: var(--surface);
}
.preview-stage.checkerboard {
  background-color: #faf8fd;
  background-image: linear-gradient(45deg, #eee9f6 25%, transparent 25%), linear-gradient(-45deg, #eee9f6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee9f6 75%), linear-gradient(-45deg, transparent 75%, #eee9f6 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}
.preview-placeholder { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 360px; }
.preview-placeholder img { width: 220px; height: 220px; object-fit: contain; border-radius: 12px; }
.preview-placeholder p { font-size: 13px; margin: 0; }
.preview-stage > img, .preview-stage > video { max-height: 360px; max-width: 100%; width: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 8px 24px rgba(28, 16, 44, 0.12); }
.preview-stage .crop-overlay { position: absolute; pointer-events: none; border: 2px dashed var(--purple); background: rgba(124, 58, 237, 0.15); }
.download-zip-label { text-align: center; background: #fff; padding: 26px; border-radius: 12px; border: 1px solid var(--line); }

.file-meta { font-size: 12px; background: var(--purple-light); color: var(--purple-dark); padding: 8px 12px; border-radius: 8px; margin: 12px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.result-stats { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 0; }
.action-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.sample-strip { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sample-strip-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.sample-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sample-card { position: relative; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: border-color 0.15s, transform 0.15s; }
.sample-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.sample-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sample-card span { position: absolute; bottom: 6px; right: 6px; font-size: 10px; font-weight: 600; background: rgba(30, 26, 40, 0.78); color: #fff; padding: 2px 6px; border-radius: 6px; }

/* Showcase, Cards, Steps, Feature Splits, Tables & FAQ */
.showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.showcase-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 6px 20px rgba(48, 28, 72, 0.04); }
.showcase-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; background: #f6f2fc; }
.showcase-card figcaption { font-size: 13px; font-weight: 600; color: var(--text); text-align: center; padding: 10px 4px 2px; }

.card-grid { display: grid; gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tool-card, .info-card, .prompt-card, .step-card {
  display: flex; flex-direction: column; justify-content: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.tool-card:hover { transform: translateY(-3px); border-color: #c8aef0; box-shadow: var(--shadow); }
.tool-card p, .info-card p, .step-card p { font-size: 13.5px; line-height: 1.7; margin: 0; }
.prompt-card p { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.65; background: var(--surface); border: 1px solid var(--line); padding: 12px; border-radius: 9px; color: #2f2640; flex: 1; margin-bottom: 14px; }
.step-num { width: 34px; height: 34px; border-radius: 10px; background: var(--purple-light); color: var(--purple); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-bottom: 12px; }

.feature-stack { display: flex; flex-direction: column; gap: 44px; }
.feature-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.feature-split.reverse .feature-media { order: -1; }
.feature-media { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; justify-content: center; }
.feature-media img { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-top: 18px; }
.spec-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; min-width: 540px; }
.spec-table th, .spec-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { background: var(--surface); font-weight: 600; color: var(--text); }
.spec-table tr:last-child td { border-bottom: 0; }

.faq-list { border-top: 1px solid var(--line); margin-top: 18px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 4px; font-size: 15.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 500; color: var(--purple); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { font-size: 14px; padding: 0 12px 18px 4px; margin: 0; }

/* Pricing, History & Legal */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--purple); background: linear-gradient(165deg, #faf5ff 0%, #ffffff 100%); box-shadow: var(--shadow); }
.price-tag { font-size: 36px; font-weight: 700; color: var(--text); letter-spacing: -1px; margin: 8px 0 14px; }
.price-tag small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { font-size: 13px; color: #4e465f; padding: 6px 0; border-bottom: 1px dashed #eee8f6; }
.price-card li:last-child { border-bottom: 0; }

.history-stack { display: flex; flex-direction: column; gap: 10px; }
.history-empty { border: 1.5px dashed #d5c5eb; border-radius: 16px; text-align: center; padding: 48px 20px; background: var(--surface); }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.legal-prose h2 { font-size: 20px; margin-top: 30px; margin-bottom: 10px; }
.legal-prose p, .legal-prose li { font-size: 14.5px; color: #524b62; line-height: 1.8; }
.legal-prose a { color: var(--purple); text-decoration: underline; }

/* Footer, Dialog & Toast */
.site-footer { border-top: 1px solid var(--line); background: #fbf9fd; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { font-size: 13.5px; margin-top: 12px; }
.footer-contact a { color: var(--purple); font-weight: 500; }
.site-footer h2 { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { font-size: 13px; color: var(--muted); }
.site-footer li a:hover { color: var(--purple); }
.footer-bottom { margin-top: 38px; padding: 20px 0; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { font-size: 12.5px; margin: 0; }
.footer-bottom a { color: var(--purple); }

#app-dialog { border: 1px solid var(--line); border-radius: 18px; padding: 30px; width: min(440px, calc(100% - 32px)); box-shadow: 0 24px 70px rgba(24, 10, 42, 0.25); }
#app-dialog::backdrop { background: rgba(24, 14, 36, 0.5); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 8px; font-size: 20px; color: var(--muted); }
.dialog-symbol { width: 46px; height: 46px; border-radius: 12px; background: var(--purple-light); color: var(--purple); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
#dialog-content h2 { font-size: 20px; margin: 14px 0 8px; }
#dialog-content p { font-size: 13.5px; margin-bottom: 12px; }
#dialog-content .button { width: 100%; margin-top: 8px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #241c33; color: #fff; z-index: 100; padding: 10px 18px; border-radius: 9px; font-size: 12.5px; max-width: calc(100% - 32px); text-align: center; }

/* Responsive Breakpoints */
@media (max-width: 1060px) {
  .workspace-grid { grid-template-columns: 390px minmax(0, 1fr); gap: 20px; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header: 62px; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: 48px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .workspace-grid, .feature-split, .card-grid.three, .card-grid.two, .showcase-grid { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-media { order: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .preview-stage { min-height: 280px; }
}
@media (max-width: 520px) {
  .card-grid.four, .footer-grid, .field-grid.two, .field-grid.three { grid-template-columns: 1fr; }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-actions .small-cta { display: none; }
}
