:root {
  --primary: #635bff;
  --primary-dark: #5148e8;
  --ink: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f7f8fc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(16, 24, 40, 0.08);
}
 
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
 
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { border: 0; }
 
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
 
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}
 
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
 
.brand {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand span { color: var(--primary); }
 
.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}
.navlinks a:hover { color: var(--primary); }
.nav-cta {
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.menu { display: none; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
 
.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #f7f7ff 0%, #ffffff 55%, #f2f7ff 100%);
}
.hero-wrap { padding: 108px 0 92px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #dedcff;
  border-radius: 999px;
  background: #f4f2ff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 750;
}
.hero h1 {
  max-width: 850px;
  margin: 20px auto 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}
.hero .sub {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.2);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.secondary:hover { background: var(--soft); }
.btn-xl { min-height: 52px; padding: 14px 22px; }
.stat-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
}
 
.section { padding: 82px 0; }
.section.alt { background: var(--soft); }
.section-title { margin-bottom: 32px; }
.section-title h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.045em; }
.section-title p { margin: 0; color: var(--muted); }
 
.grid { display: grid; gap: 18px; }
.grid.tools-premium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.025);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #c9c5ff; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f0efff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 850;
}
.muted { color: var(--muted); }
 
.feature-panel {
  padding: 42px;
  border-radius: 24px;
  background: #101828;
  color: #fff;
  box-shadow: var(--shadow);
}
.feature-panel .section-title { margin-bottom: 22px; }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid strong { display: block; margin-bottom: 5px; }
.feature-grid p { margin: 0; color: #cbd5e1; font-size: 14px; }
 
footer { padding: 58px 0 24px; background: #101828; color: #fff; }
.footer { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
.footer h3 { margin: 0 0 13px; font-size: 16px; }
.footer p { margin: 0; }
.footer a { display: block; margin: 8px 0; color: #cbd5e1; font-size: 14px; }
.footer a:hover { color: #fff; }
.copy { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #98a2b3; font-size: 13px; }
 
/* Forms and PDF tool screens */
.auth-card, .tool-panel { max-width: 720px; margin: 0 auto; }
.auth-card label, .options label { display: block; margin: 12px 0; font-weight: 650; font-size: 14px; }
.auth-card input, .options input, .options select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d9dce7;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.auth-card input:focus, .options input:focus, .options select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,91,255,.12); }
.upload-icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 12px; background: #f0efff; color: var(--primary); display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.upload-btn { display: inline-block; margin: 10px auto; padding: 13px 22px; border-radius: 11px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }
.drop { padding: 38px 22px; border: 2px dashed #c9c5ff; border-radius: 18px; background: #fafaff; text-align: center; }
.drop input[type=file] { display: none; }
.file-name { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.ad-slot { min-height: 92px; margin: 28px 0; border: 1px dashed #d9dce7; border-radius: 16px; display: grid; place-items: center; color: #98a2b3; background: #fbfbfd; font-size: 12px; }
 
@media (max-width: 900px) {
  .grid.tools-premium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 620px); }
  .hero-wrap { padding: 76px 0 64px; }
  .hero .sub { font-size: 16px; }
  .navlinks { display: none; position: absolute; top: 68px; right: 0; left: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 4px; }
  .navlinks.open { display: flex !important; }
  .navlinks a { padding: 10px 8px; }
  .menu { display: block; }
  .grid.tools-premium, .grid.three, .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .feature-panel { padding: 28px 22px; }
  .footer { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .footer { grid-template-columns: 1fr; }
}
