:root {
  --bg: #f3f6fb;
  --bg-2: #e9eef8;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --line: rgba(148, 163, 184, 0.28);
  --line-strong: rgba(100, 116, 139, 0.32);
  --text: #0f172a;
  --muted: #5b6577;
  --muted-2: #7b8798;
  --primary: #0f172a;
  --primary-2: #1e293b;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --success: #0f766e;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.07), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.page-shell { min-height: 100vh; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.84);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.brand { display: block; font-size: 1.08rem; letter-spacing: -0.02em; }
.tagline { display: block; color: var(--muted); font-size: 0.92rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-link {
  color: var(--muted);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 999px;
}
.header-link:hover { background: rgba(255,255,255,0.72); color: var(--text); }

.hero-section { padding: 56px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.interest-wrap,
.info-card,
.editor-card,
.action-panel { padding: 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 5.2vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 16px;
  max-width: 10ch;
}

.hero-copy h1 span {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), #0f766e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.section-lead,
.info-card p,
.interest-wrap p,
.panel-head p,
.footer-inner p {
  color: var(--muted);
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 64ch;
  margin: 0 0 22px;
}

.hero-cta-row,
.quick-actions,
.export-actions,
.interest-actions,
.result-actions-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-benefits,
.trust-items {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-benefits li,
.trust-items span,
.starter-chip,
.status-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-top,
.preview-head,
.panel-head,
.tool-header,
.export-panel,
.action-top,
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.hero-card h2,
.tool-header h2,
.interest-wrap h2,
.info-card h3,
.panel-head h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-card h2 { font-size: 1.55rem; }
.mini-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-2);
  font-weight: 700;
}

.status-pill {
  align-self: flex-start;
  color: var(--success);
  border-color: rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
}

.stat-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  padding: 16px;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.preview-mini {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248,250,252,0.9), rgba(255,255,255,0.85));
  border: 1px solid var(--line);
}
.preview-head {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.preview-pane {
  min-height: 88px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.trust-strip { padding: 6px 0 14px; }
.trust-items { margin: 0; justify-content: center; }
.trust-items span { color: var(--muted); font-weight: 700; }

.tool-section,
.info-section,
.interest-section { padding: 18px 0 12px; }
.tool-header { align-items: end; margin-bottom: 16px; }
.tool-header h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); margin-bottom: 10px; }

.mode-toggle {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mode-btn,
.tool-btn,
.text-action,
.btn {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, opacity .16s ease;
}
.mode-btn:hover,
.tool-btn:hover,
.text-action:hover,
.btn:hover { transform: translateY(-1px); }
.mode-btn:active,
.tool-btn:active,
.text-action:active,
.btn:active { transform: translateY(0); }

.mode-btn {
  padding: 12px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.mode-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.btn {
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn-large { padding: 14px 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}
.btn-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost {
  background: rgba(255,255,255,0.58);
  color: var(--text);
  border-color: var(--line);
}

.action-panel { margin-bottom: 18px; }
.action-panel,
.starter-row,
.format-toolbar,
.editor-footer {
  display: grid;
  gap: 16px;
}

.action-top,
.export-panel { align-items: center; flex-wrap: wrap; }
.starter-row { grid-template-columns: auto 1fr; align-items: center; }
.starter-label { font-weight: 800; color: var(--muted); }
.starter-chip {
  cursor: pointer;
  box-shadow: none;
  font-size: 0.95rem;
}
.starter-chip:hover { border-color: var(--accent); color: var(--accent); }

.export-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.export-meta label { font-weight: 800; }
.export-meta input {
  min-width: 260px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.92);
  padding: 0 14px;
  color: var(--text);
}
.export-meta input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.editor-card { display: flex; flex-direction: column; gap: 16px; }
.panel-head { align-items: start; }
.panel-head p { margin: 6px 0 0; max-width: 50ch; }
.live-stats {
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-weight: 800;
  align-self: flex-start;
}

.format-toolbar {
  grid-template-columns: repeat(7, auto);
  justify-content: start;
  gap: 8px;
}
.tool-btn {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.84);
  border-color: var(--line);
  color: var(--text);
  font-weight: 700;
}
.tool-btn.active,
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }

.editor {
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--card-solid);
  padding: 20px;
  overflow: auto;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}
.result-view { background: linear-gradient(180deg, #ffffff, #f8fbff); }
.editor-footer { color: var(--muted); font-size: 0.92rem; }
.text-action {
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  padding: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.info-card { position: relative; overflow: hidden; }
.info-index {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}

.interest-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer { padding: 22px 0 36px; }
.footer-inner { align-items: center; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-weight: 700; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #111827;
  color: #fff;
  padding: 13px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .hero-grid,
  .editor-layout,
  .info-grid { grid-template-columns: 1fr; }
  .tool-header,
  .interest-wrap,
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) {
  .header-inner,
  .hero-card-top,
  .preview-head,
  .panel-head,
  .action-top,
  .export-panel { flex-direction: column; align-items: flex-start; }
  .format-toolbar { grid-template-columns: repeat(3, auto); }
  .starter-row { grid-template-columns: 1fr; }
  .mode-toggle { width: 100%; }
  .mode-btn { flex: 1; text-align: center; }
}

@media (max-width: 640px) {
  .container { width: min(1240px, calc(100vw - 20px)); }
  .hero-section { padding-top: 28px; }
  .hero-copy, .hero-card, .interest-wrap, .info-card, .editor-card, .action-panel { padding: 18px; }
  .hero-copy h1 { max-width: none; font-size: clamp(2.1rem, 10vw, 3rem); }
  .editor { min-height: 360px; }
  .header-actions { width: 100%; }
  .header-link { display: none; }
  .export-meta, .export-meta input { width: 100%; min-width: 0; }
  .quick-actions, .export-actions, .hero-cta-row, .interest-actions { width: 100%; }
  .quick-actions > *, .export-actions > *, .hero-cta-row > *, .interest-actions > * { flex: 1 1 auto; }
  .preview-row { grid-template-columns: 1fr; }
}


.narrow-stack {
  display: grid;
  gap: 18px;
}

.section-title-wrap {
  margin-bottom: 18px;
}

.section-title-wrap h2,
.seo-copy-card h2 {
  margin: 14px 0 10px;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.seo-section {
  padding: 20px 0 14px;
}

.seo-copy-card,
.usecase-card,
.faq-item {
  padding: 28px;
}

.seo-copy-card p,
.usecase-card p,
.faq-item p,
.ordered-steps {
  color: var(--muted);
}

.split-copy-grid,
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.section-copy {
  padding: 28px;
}

.ordered-steps {
  margin: 0;
  padding-left: 18px;
}

.ordered-steps li + li {
  margin-top: 12px;
}

.usecase-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 14px 0 0;
}

@media (max-width: 1100px) {
  .split-copy-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}


.contact-card{padding:18px;border-radius:18px;background:rgba(255,255,255,0.9);border:1px solid var(--line);}
.contact-email{color:var(--accent);font-weight:800;}
.muted{color:var(--muted);}


.upload-label{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.docx-note{margin:8px 0 0;color:var(--muted);font-size:0.95rem;}
