:root {
  --ink: #17182b;
  --muted: #6d6e7d;
  --primary: #5b5ce2;
  --primary-dark: #4546c8;
  --surface: #f7f7fb;
  --line: #e7e7ef;
  --white: #fff;
  --shadow: 0 24px 70px rgba(41, 42, 90, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(231, 231, 239, 0.8);
  backdrop-filter: blur(18px);
}
.nav-wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 150px; height: auto; }
.main-nav { display: flex; gap: 36px; font-size: 14px; font-weight: 600; }
.main-nav a { color: #505161; transition: color .2s; }
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  padding: 11px 17px;
  color: var(--primary);
  border: 1px solid #d9d9fa;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    linear-gradient(rgba(91, 92, 226, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 92, 226, .035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbff 0%, #fff 100%);
  background-size: 48px 48px, 48px 48px, auto;
}
.hero-content { position: relative; z-index: 2; padding: 105px 0 84px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  color: #5657c7;
  background: #f0f0ff;
  border: 1px solid #ddddfb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.eyebrow span { width: 7px; height: 7px; background: #6d6ee9; border-radius: 50%; box-shadow: 0 0 0 4px #dedeff; }
.hero h1 { margin: 28px 0 20px; font-size: clamp(48px, 6vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-content > p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; border-radius: 12px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { padding: 15px 21px; color: #fff; background: var(--primary); box-shadow: 0 12px 30px rgba(91, 92, 226, .25); }
.button-primary:hover { background: var(--primary-dark); box-shadow: 0 16px 35px rgba(91, 92, 226, .32); }
.hero-note { color: #858694; font-size: 13px; }
.trust-row { display: flex; justify-content: center; gap: 34px; margin-top: 58px; color: #777885; font-size: 12px; font-weight: 600; }
.trust-row i { display: inline-grid; width: 20px; height: 20px; margin-right: 6px; color: #34a57a; background: #e7f8f1; border-radius: 50%; place-items: center; font-style: normal; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); }
.hero-glow-one { top: 90px; left: -80px; width: 260px; height: 260px; background: rgba(127, 129, 238, .08); }
.hero-glow-two { right: -90px; bottom: -70px; width: 320px; height: 320px; background: rgba(98, 202, 214, .08); }

.tools-section { padding: 100px 0 115px; background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 42px; }
.section-label { display: inline-block; margin-bottom: 12px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2, .why-intro h2, .mini-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.18; letter-spacing: -.04em; }
.section-heading > p { max-width: 420px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tool-card {
  position: relative;
  min-height: 286px;
  padding: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tool-card:not(.coming-soon):hover { transform: translateY(-5px); border-color: #cecef7; box-shadow: var(--shadow); }
.tool-card.featured::after { position: absolute; right: -35px; bottom: -70px; width: 180px; height: 180px; background: #f1f1ff; border-radius: 50%; content: ""; }
.tool-icon { display: grid; width: 52px; height: 52px; margin-bottom: 27px; border-radius: 14px; place-items: center; }
.tool-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-purple { color: #5b5ce2; background: #eeeeff; }
.icon-blue { color: #3685d6; background: #eaf5ff; }
.icon-orange { color: #df8a3e; background: #fff3e8; }
.icon-green { color: #32926f; background: #e9f8f1; }
.tool-card h3 { margin: 0 0 9px; font-size: 20px; }
.tool-card p { max-width: 410px; margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tool-badge { position: absolute; top: 31px; right: 29px; padding: 6px 9px; color: var(--primary); background: #f0f0ff; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tool-badge.neutral { color: #777886; background: #f1f1f4; }
.tool-link { position: relative; z-index: 2; padding: 0; color: var(--primary); background: none; border: 0; font-size: 13px; font-weight: 800; cursor: pointer; }
.tool-link span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.tool-card:hover .tool-link span { transform: translateX(4px); }
.tool-link.muted { color: #a1a2ad; cursor: default; }
.coming-soon { background: rgba(255, 255, 255, .62); }

.why-section { padding: 110px 0; }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.why-intro { position: sticky; top: 120px; }
.why-intro > p { max-width: 430px; margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.benefit { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.benefit:first-child { padding-top: 0; }
.benefit > span { color: #b0b0e7; font-size: 13px; font-weight: 800; }
.benefit h3 { margin: 0 0 8px; font-size: 18px; }
.benefit p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.faq-section { padding: 0 0 100px; }
.mini-cta { display: flex; align-items: center; justify-content: space-between; padding: 54px 60px; color: #fff; background: var(--primary); border-radius: 22px; }
.mini-cta .section-label { color: #cfd0ff; }
.button-light { padding: 15px 20px; color: var(--primary); background: #fff; }
footer { border-top: 1px solid var(--line); }
.footer-content { min-height: 100px; display: flex; align-items: center; justify-content: space-between; }
.footer-content img { width: 130px; height: auto; }
.footer-content p { color: #92939e; font-size: 12px; }

.upload-modal { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; padding: 20px; }
.upload-modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 21, 42, .52); backdrop-filter: blur(6px); }
.modal-card { position: relative; z-index: 1; width: min(520px, 100%); padding: 38px; background: #fff; border-radius: 22px; box-shadow: 0 30px 100px rgba(14, 15, 40, .25); }
.modal-card h2 { margin: 0 0 25px; font-size: 28px; letter-spacing: -.04em; }
.modal-close { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; color: #7d7e8b; background: #f3f3f7; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }
.drop-zone { display: flex; min-height: 210px; align-items: center; justify-content: center; flex-direction: column; background: #fafaff; border: 1.5px dashed #bfc0ed; border-radius: 16px; cursor: pointer; transition: background .2s, border-color .2s; }
.drop-zone:hover, .drop-zone.dragging { background: #f3f3ff; border-color: var(--primary); }
.upload-symbol { display: grid; width: 48px; height: 48px; margin-bottom: 16px; color: var(--primary); background: #eaeaFF; border-radius: 13px; place-items: center; font-size: 25px; font-weight: 400; }
.drop-zone strong { margin-bottom: 7px; font-size: 14px; }
.drop-zone small { color: #90919d; font-size: 11px; }
.file-status { min-height: 20px; margin: 14px 0 0; color: #32926f; font-size: 12px; font-weight: 700; }
.file-status.error { color: #d25151; }
.conversion-progress { margin: 2px 0 14px; padding: 13px 14px; background: #f7f7ff; border-radius: 10px; }
.conversion-progress[hidden] { display: none; }
.progress-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #707184; font-size: 11px; }
.progress-info strong { color: var(--primary); font-size: 12px; }
.progress-track { height: 7px; overflow: hidden; background: #e2e2f4; border-radius: 999px; }
.progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, #7778ec, var(--primary)); border-radius: inherit; transition: width .25s ease; }
.convert-button { width: 100%; margin-top: 8px; border: 0; cursor: pointer; }
.convert-button:disabled { background: #b8b9cf; box-shadow: none; cursor: not-allowed; transform: none; }
.convert-button.loading { pointer-events: none; }
.modal-note { margin: 10px 0 0; padding: 12px; color: #81828e; background: #f7f7f9; border-radius: 9px; font-size: 11px; line-height: 1.55; }

@media (max-width: 800px) {
  .main-nav { display: none; }
  .hero { min-height: auto; }
  .hero-content { padding: 82px 0 70px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-actions { flex-direction: column; }
  .trust-row { flex-wrap: wrap; gap: 15px 22px; margin-top: 45px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .tool-grid, .why-grid { grid-template-columns: 1fr; }
  .why-grid { gap: 50px; }
  .why-intro { position: static; }
  .mini-cta { align-items: flex-start; flex-direction: column; gap: 28px; padding: 40px 30px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav-wrap { height: 68px; }
  .brand img { width: 126px; }
  .nav-cta { padding: 9px 11px; font-size: 11px; }
  .hero-content { padding-top: 66px; }
  .hero-content > p { font-size: 15px; }
  .trust-row { align-items: flex-start; flex-direction: column; width: max-content; margin-right: auto; margin-left: auto; }
  .tools-section, .why-section { padding: 78px 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 270px; padding: 24px; }
  .tool-badge { top: 25px; right: 22px; }
  .faq-section { padding-bottom: 70px; }
  .footer-content { padding: 28px 0; align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-content p { margin: 0; }
  .modal-card { padding: 30px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
