:root {
  color-scheme: light;
  --ink: #101522;
  --muted: #687083;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --line: #e7eaf1;
  --accent: #6d5dfc;
  --accent-dark: #5142dc;
  --coral: #ff866c;
  --mint: #dff8ef;
  --shadow: 0 22px 60px rgba(28, 35, 66, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select { font: inherit; }

button { cursor: pointer; }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(231, 234, 241, .82);
  background: rgba(247, 248, 251, .86);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(109, 93, 252, .11);
}

.brand-mark::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

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

.nav-links a:hover { color: var(--ink); }

.nav-cta, .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 750;
  box-shadow: 0 9px 20px rgba(16, 21, 34, .14);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-cta:hover, .button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 24px rgba(81, 66, 220, .2);
  transform: translateY(-1px);
}

.button-secondary, .button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  transition: border-color .18s ease, transform .18s ease;
}

.button-secondary:hover, .button-quiet:hover { border-color: #bec4d5; transform: translateY(-1px); }

.page-shell { overflow: hidden; }

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 24px 42px;
  text-align: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  left: 50%;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(109, 93, 252, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(109, 93, 252, .025), 0 0 0 78px rgba(255, 134, 108, .03);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

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

h1 {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .99;
  letter-spacing: -.065em;
}

h1 em { color: var(--accent-dark); font-style: normal; }

.hero-copy {
  max-width: 650px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: var(--muted);
  font-size: 13px;
}

.trust-row span::before { margin-right: 6px; color: #20a878; content: "✓"; font-weight: 800; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.tool-card {
  position: relative;
  max-width: 1000px;
  margin: 20px auto 76px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 34px;
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow);
}

.tool-inner {
  min-height: 380px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--surface);
}

.dropzone {
  display: grid;
  min-height: 350px;
  padding: 32px;
  place-items: center;
  border: 1.5px dashed #c8cce0;
  border-radius: 22px;
  background: linear-gradient(145deg, #fbfbff, #f5f6ff);
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dropzone.dragging { border-color: var(--accent); background: #f0efff; transform: scale(.995); }

.drop-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #e9e7ff;
  font-size: 31px;
}

.dropzone h2 { margin-bottom: 7px; font-size: 23px; letter-spacing: -.03em; }
.dropzone p { margin-bottom: 21px; color: var(--muted); font-size: 14px; }
.dropzone-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.microcopy { margin: 17px 0 0 !important; font-size: 12px !important; }

.editor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, .9fr); gap: 26px; align-items: start; }

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

.stage-wrap {
  padding: 22px;
  border-radius: 21px;
  background: #f1f2f7;
}

.canvas-stage {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #e6e8ee 25%, transparent 25%), linear-gradient(-45deg, #e6e8ee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e8ee 75%), linear-gradient(-45deg, transparent 75%, #e6e8ee 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  touch-action: none;
}

#previewCanvas { display: block; width: 100%; height: 100%; cursor: grab; }
#previewCanvas:active { cursor: grabbing; }

.preview-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.controls { display: grid; gap: 16px; }
.control-section { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.control-section:last-child { padding-bottom: 0; border-bottom: 0; }
.control-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--ink); font-size: 13px; font-weight: 750; }
.value { color: var(--muted); font-weight: 600; }

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

select {
  width: 100%;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  min-height: 35px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.choice:hover { border-color: #bfc4d5; color: var(--ink); }
.choice.active { border-color: var(--accent); color: var(--accent-dark); background: #f0efff; }

.color-control { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.color-control input[type="color"] { width: 35px; height: 35px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.color-control[hidden] { display: none; }

.download-button { width: 100%; min-height: 52px; margin-top: 3px; font-size: 15px; }
.reset-link { width: 100%; border: 0; color: var(--muted); background: transparent; font-size: 13px; font-weight: 650; }
.reset-link:hover { color: var(--ink); }

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

.content-section { padding: 76px 0; }
.content-section.alt { background: #fff; }
.section-heading { max-width: 640px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -.05em; }
.section-heading p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.feature-card .number { display: inline-grid; width: 30px; height: 30px; margin-bottom: 18px; place-items: center; border-radius: 50%; color: var(--accent-dark); background: #eceaff; font-size: 12px; font-weight: 800; }
.feature-card h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -.025em; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.use-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.use-case { min-height: 145px; padding: 21px; border-radius: var(--radius-md); background: #f8f8fc; }
.use-case strong { display: block; margin-bottom: 8px; font-size: 15px; }
.use-case span { color: var(--muted); font-size: 13px; }

.faq-list { max-width: 800px; }
details { padding: 19px 0; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary::after { float: right; color: var(--accent); content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { max-width: 690px; margin: 10px 30px 0 0; color: var(--muted); font-size: 14px; }

.seo-intro { max-width: 820px; margin: 0 auto; }
.seo-intro h2 { margin-bottom: 14px; font-size: 30px; letter-spacing: -.04em; }
.seo-intro p { color: var(--muted); }

.legal-page { max-width: 790px; margin: 0 auto; padding: 80px 24px 100px; }
.legal-page h1 { max-width: none; margin: 0 0 18px; font-size: clamp(39px, 6vw, 60px); text-align: left; }
.legal-page h2 { margin-top: 34px; font-size: 22px; letter-spacing: -.03em; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page li { margin: 7px 0; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 28px 24px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 17px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

.page-hero { max-width: 760px; margin: 0 auto; padding: 68px 24px 24px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 6vw, 62px); }
.page-hero p { color: var(--muted); font-size: 18px; }

.status-message { min-height: 22px; margin: 13px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.status-message.error { color: #b53b44; }
.status-message.success { color: #16845e; }

@media (max-width: 820px) {
  .nav { padding: 15px 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 58px; }
  .hero::before { top: 26px; width: 390px; height: 390px; }
  .tool-card { margin-top: 14px; border-radius: 25px; }
  .tool-inner { padding: 18px; border-radius: 19px; }
  .dropzone { min-height: 300px; padding: 22px; }
  .editor { grid-template-columns: 1fr; }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .control-section:last-child { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .content-section { padding: 58px 0; }
}

@media (max-width: 520px) {
  h1 { font-size: 44px; }
  .hero { padding-right: 18px; padding-left: 18px; }
  .hero-copy { font-size: 16px; }
  .trust-row { gap: 8px 15px; font-size: 12px; }
  .tool-inner { padding: 11px; }
  .stage-wrap { padding: 10px; }
  .controls { grid-template-columns: 1fr; }
  .control-section:last-child { grid-column: auto; }
  .use-case-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .page-hero { padding-top: 48px; }
}
