:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eef6fb;
  --text: #132238;
  --muted: #55677d;
  --line: #dbe8f2;
  --primary: #0866a8;
  --primary-dark: #044b7d;
  --accent: #ff7a1a;
  --success: #16835f;
  --shadow: 0 18px 45px rgba(19, 34, 56, 0.11);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 64px);
  background:
    linear-gradient(135deg, rgba(8, 102, 168, 0.08), rgba(255, 122, 26, 0.08)),
    var(--bg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 5.25rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.13rem;
}

p {
  margin: 0;
}

.hero-text {
  max-width: 690px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 102, 168, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

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

.button.wide {
  width: 100%;
}

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

.trust-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.5vw, 24px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drop-zone {
  display: grid;
  min-height: 285px;
  place-items: center;
  gap: 10px;
  border: 2px dashed #a8cce4;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface-soft);
  text-align: center;
}

.drop-zone.drag-over {
  border-color: var(--accent);
  background: #fff4eb;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.drop-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  color: var(--accent);
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(8, 102, 168, 0.13);
}

.drop-zone h2 {
  font-size: 1.35rem;
}

.drop-zone p,
.file-toolbar,
#status-message {
  color: var(--muted);
}

.file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 14px;
  font-size: 0.95rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.preview-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.preview-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.preview-card img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-soft);
}

.file-name {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--muted);
  font-size: 0.86rem;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.convert-row {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

#status-message.success {
  color: var(--success);
  font-weight: 800;
}

.section {
  padding: clamp(46px, 7vw, 82px) clamp(18px, 4vw, 64px);
  background: #fff;
}

.section.alt {
  background: var(--surface-soft);
}

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

.section-heading p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid,
.benefit-list,
.keyword-panels,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-grid article,
.benefit-list article,
.keyword-panels article,
.blog-grid article,
.steps article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}

.feature-grid p,
.benefit-list p,
.keyword-panels p,
.blog-grid p,
.steps p {
  margin-top: 9px;
  color: var(--muted);
}

.blog-grid h3 a {
  color: var(--text);
}

.blog-meta {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.steps span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.keyword-panels h2 {
  font-size: 1.25rem;
}

.article-section {
  background: #fff;
}

.long-form {
  max-width: 880px;
  margin: 0 auto;
}

.long-form h2 {
  margin-bottom: 18px;
}

.long-form h3 {
  margin-top: 30px;
}

.long-form p {
  margin-top: 14px;
  color: #35485e;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-list summary {
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

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

  .feature-grid,
  .benefit-list,
  .keyword-panels,
  .blog-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand span {
    font-size: 0.95rem;
  }

  .main-nav {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .tool-panel {
    padding: 12px;
  }

  .drop-zone {
    min-height: 245px;
    padding: 20px 12px;
  }

  .feature-grid,
  .benefit-list,
  .keyword-panels,
  .blog-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .preview-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .preview-card img {
    width: 62px;
    height: 62px;
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
