:root {
  color-scheme: light;
  --navy: #071f4d;
  --navy-deep: #06183a;
  --blue: #2463ed;
  --blue-dark: #174cc6;
  --blue-soft: #eaf1ff;
  --ink: #17233c;
  --muted: #71809b;
  --line: #e1e9f5;
  --surface: #ffffff;
  --background: #f5f8fd;
  --green: #16875c;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { height: 68px; background: var(--navy); color: #fff; }
.header-inner, .app-header-inner { width: min(1180px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; white-space: nowrap; }
.brand-logo { display: block; width: auto; height: 36px; max-width: 180px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.main-nav a { color: #d6e3fa; font-size: 14px; transition: color .18s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }
.header-search { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #dce7fa; }
.header-search:hover { background: #ffffff16; }
.header-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 74% 40%, #0d3b77 0, transparent 31%), linear-gradient(112deg, #071d48 0%, #082858 100%); color: #fff; }
.hero-inner { width: min(1180px, calc(100% - 48px)); min-height: 390px; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding: 46px 0; animation: content-enter .65s cubic-bezier(.2, .7, .2, 1) both; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: #aebfe2; font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.hero h1 { margin: 0; font-size: clamp(38px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.035em; font-weight: 700; }
.hero h1 span { color: #5ca7ff; }
.hero-copy > p { max-width: 490px; margin: 18px 0 25px; color: #d3def2; font-size: 17px; line-height: 1.65; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 8px; padding: 0 20px; color: #fff; background: var(--blue); font-size: 14px; font-weight: 650; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 7px 16px #2463ed33; transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7caaff; outline-offset: 3px; }
.button-primary { background: var(--blue); }
.hero-proof { margin-top: 18px; color: #bfcee5; font-size: 13px; }
.proof-check { display: inline-grid; width: 16px; height: 16px; place-items: center; margin-right: 5px; border-radius: 50%; color: #a4f0d2; background: #2aa67e38; font-size: 10px; }

.hero-art { position: relative; width: 100%; min-height: 340px; max-width: 440px; justify-self: center; display: grid; place-items: center; }
.hero-symbol { display: block; width: min(100%, 350px); height: auto; aspect-ratio: 512 / 540; object-fit: contain; animation: art-float 4s ease-in-out .4s infinite; }

.section-wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }
.tools-section { padding-top: 54px; padding-bottom: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.eyebrow-blue { margin-bottom: 6px; color: var(--blue); }
.section-heading h2, .more-tools h2 { margin: 0; color: var(--navy); font-size: 28px; letter-spacing: -.025em; font-weight: 650; line-height: 1.25; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 15px; }
.tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tool-card { position: relative; min-height: 169px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 17px #152b4a08; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: #a9c5ff; box-shadow: 0 12px 26px #152b4a10; }
.tool-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--blue); background: #eaf1ff; }
.tool-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon .tool-logo { display: block; width: 26px; height: 26px; object-fit: contain; }
.tool-card .tool-icon { width: 44px; height: 44px; border-radius: 12px; }
.tool-card .tool-icon svg { width: 25px; }
.tool-card .tool-icon .tool-logo { width: 36px; height: 36px; }
.icon-image { color: #4375e9; background: #e9f3ff; }
.icon-split { color: #2463ed; background: #eaf1ff; }
.icon-compress { color: #4081d9; background: #edf5ff; }
.card-title { display: block; margin-top: 14px; color: #18315b; font-size: 16px; font-weight: 650; line-height: 1.35; }
.card-description { display: block; max-width: 220px; margin-top: 7px; color: #687891; font-size: 13px; line-height: 1.55; }
.card-arrow { position: absolute; top: 19px; right: 15px; color: #98aad0; font-size: 15px; opacity: 0; transform: translateX(-3px); transition: .18s ease; }
.tool-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

.motion-ready .motion-reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .65s ease, translate .65s cubic-bezier(.2, .7, .2, 1);
}
.motion-ready .motion-reveal.is-visible { opacity: 1; translate: 0 0; }
.motion-ready .motion-reveal:nth-child(2) { transition-delay: .06s; }
.motion-ready .motion-reveal:nth-child(3) { transition-delay: .12s; }
.motion-ready .motion-reveal:nth-child(4) { transition-delay: .18s; }
.motion-ready .motion-reveal:nth-child(5) { transition-delay: .24s; }
.motion-ready .motion-reveal:nth-child(6) { transition-delay: .3s; }
@keyframes content-enter {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes art-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.benefits-section { border-top: 1px solid #e8edf5; border-bottom: 1px solid #e8edf5; background: #f8faff; }
.benefits-inner { width: min(1060px, calc(100% - 48px)); min-height: 96px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 22px; }
.benefit { display: flex; align-items: center; gap: 12px; }
.benefit-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #dbe5f6; border-radius: 10px; color: var(--blue); background: #fff; font-size: 17px; }
.benefit strong { display: block; color: #213352; font-size: 15px; font-weight: 650; }
.benefit p { margin: 4px 0 0; color: #687891; font-size: 13px; }

.site-footer { color: #e2eaff; background: #061a40; }
.footer-inner { width: min(1180px, calc(100% - 48px)); min-height: 139px; margin: auto; display: grid; grid-template-columns: 1.05fr 1.3fr 1.25fr auto; align-items: center; gap: 18px; }
.footer-inner > p { color: #a8bad8; font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a, .copyright { color: #a8bad8; font-size: 12px; }
.footer-links a:hover { color: #fff; }

.tool-page { min-height: 100vh; background: var(--background); }
.app-header { height: 64px; border-bottom: 1px solid #e3eaf4; background: #fff; }
.app-header-inner { width: min(1120px, calc(100% - 48px)); }
.app-header .main-nav a { color: #4c5d78; }
.app-header .main-nav a:hover { color: var(--blue); }
.header-search-dark { color: #4c5d78; }
.header-search-dark:hover { background: #f0f4fb; }
.tool-main { width: min(1010px, calc(100% - 48px)); min-height: calc(100vh - 128px); margin: auto; padding: 25px 0 46px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #8290a6; font-size: 13px; }
.breadcrumbs a { color: var(--blue); }
.tool-title-row { display: flex; align-items: center; gap: 13px; margin: 18px 0 20px; }
.tool-title-row .tool-icon { width: 44px; height: 44px; border-radius: 12px; }
.tool-title-row .tool-icon svg { width: 22px; }
.tool-title-row h1 { margin: 0; color: var(--navy); font-size: 30px; letter-spacing: -.025em; font-weight: 650; line-height: 1.2; }
.tool-title-row p { margin: 5px 0 0; color: #65758d; font-size: 15px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 16px; align-items: stretch; }
.workspace-main, .workspace-aside { border: 1px solid #e1e9f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #213d6708; }
.workspace-main { padding: 14px; }
.processor-form { margin: 0; }
.dropzone { position: relative; min-height: 151px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #a9c4f6; border-radius: 10px; background: #f9fbff; text-align: center; transition: border-color .18s ease, background .18s ease; }
.dropzone.is-dragging { border-color: var(--blue); background: #edf3ff; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.upload-cloud { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 8px; border-radius: 50%; color: #fff; background: linear-gradient(150deg, #5689ff, #2463ed); box-shadow: 0 5px 12px #2463ed30; }
.upload-cloud svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone > strong { color: #263a5b; font-size: 15px; font-weight: 600; }
.dropzone-or { margin-top: 4px; color: #71819a; font-size: 13px; }
.button-small { position: relative; z-index: 1; min-height: 36px; margin-top: 10px; padding: 0 15px; border-radius: 6px; font-size: 13px; pointer-events: none; }
.upload-hint { margin-top: 8px; color: #71819a; font-size: 12px; }
.ranges-label { display: block; margin: 16px 0 7px; color: #324361; font-size: 13px; font-weight: 650; }
.ranges-label span { color: #8997ac; font-weight: 400; }
.ranges-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dce5f1; border-radius: 7px; color: var(--ink); background: #fff; font-size: 14px; }
.ranges-input::placeholder { color: #9aa7b8; }
.selected-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 7px; }
.selected-heading h2, .workspace-aside h2 { margin: 0; color: #293b59; font-size: 16px; font-weight: 650; }
.selected-heading > span { color: #71819a; font-size: 12px; }
.file-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.file-list:empty { display: none; }
.file-item { display: flex; min-height: 42px; align-items: center; gap: 9px; padding: 5px 8px; border: 1px solid #edf1f7; border-radius: 7px; background: #fbfcff; }
.file-type { display: grid; width: 25px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 5px; color: #eb4353; background: #ffebee; font-size: 7px; font-weight: 800; }
.file-meta { min-width: 0; flex: 1; }
.file-name { overflow: hidden; color: #43526b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.file-size { margin-top: 3px; color: #71819a; font-size: 11px; }
.file-actions { display: flex; gap: 2px; }
.file-action { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 5px; color: #7f8da2; background: transparent; font-size: 13px; cursor: pointer; }
.file-action:hover { color: var(--blue); background: #eaf1ff; }
.process-button { width: 100%; min-height: 44px; margin-top: 16px; border-radius: 7px; font-size: 14px; }
.process-button:disabled { color: #f4f7ff; background: #b5c8ea; box-shadow: none; cursor: not-allowed; transform: none; }
.form-message { min-height: 18px; margin: 9px 2px 0; color: var(--green); font-size: 13px; line-height: 1.5; }
.form-message[data-state="error"] { color: #c32c43; }
.form-message[data-state="loading"] { color: #536b99; }
.workspace-aside { padding: 17px 15px; }
.steps { display: grid; gap: 17px; margin: 17px 0 20px; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 9px; }
.steps li > span { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--blue); background: #e9f0ff; font-size: 9px; font-weight: 750; }
.steps p { margin: 1px 0 0; color: #586b84; font-size: 13px; line-height: 1.55; }
.privacy-note { display: flex; gap: 8px; padding: 10px; border: 1px solid #e5edf8; border-radius: 8px; background: #f8faff; }
.privacy-note > span { color: #2174cf; font-size: 17px; }
.privacy-note p { margin: 1px 0; color: #64758e; font-size: 12px; line-height: 1.55; }
.privacy-note strong { color: #354963; }
.more-tools { margin-top: 24px; }
.more-tools h2 { font-size: 20px; }
.more-tools > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.more-tools a { display: inline-flex; gap: 9px; align-items: center; padding: 9px 12px; border: 1px solid #e2eaf5; border-radius: 7px; color: #586a85; background: #fff; font-size: 13px; transition: .15s ease; }
.more-tools a:hover { border-color: #a9c5ff; color: var(--blue); }
.more-tools a span { color: #8ba2cb; }
.tool-footer { min-height: 64px; display: flex; justify-content: center; align-items: center; gap: 12px; border-top: 1px solid #e4eaf3; color: #71819a; background: #fff; font-size: 12px; }
.tool-footer a { color: #304362; font-weight: 750; }

@media (max-width: 760px) {
  .site-header, .app-header { height: 60px; }
  .header-inner, .app-header-inner, .hero-inner, .section-wrap, .benefits-inner, .footer-inner { width: min(100% - 32px, 560px); }
  .main-nav { gap: 0; }
  .main-nav a { display: none; }
  .main-nav a:first-child, .main-nav a:nth-child(2) { display: inline; font-size: 12px; }
  .main-nav a:nth-child(2) { margin-left: 10px; }
  .header-search { width: 28px; }
  .hero-inner { min-height: initial; grid-template-columns: 1fr; }
  .hero-copy { padding: 35px 0 28px; }
  .hero h1 { font-size: clamp(34px, 8vw, 44px); }
  .hero-copy > p { max-width: 390px; font-size: 16px; }
  .hero-art { width: 100%; min-height: 0; max-width: none; margin: 0 auto 18px; justify-self: center; }
  .hero-symbol { width: min(72vw, 250px); }
  .tools-section { padding-top: 30px; padding-bottom: 28px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 23px; }
  .section-heading > p { margin-top: 8px; font-size: 14px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-card { min-height: 151px; padding: 13px; }
  .tool-card:last-child { grid-column: 1 / -1; min-height: 118px; }
  .tool-card:last-child .card-description { max-width: 260px; }
  .benefits-inner { grid-template-columns: 1fr; gap: 0; padding: 11px 0; }
  .benefit { min-height: 65px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 8px; padding: 19px 0; }
  .footer-inner > p { text-align: right; }
  .footer-links { gap: 10px; }
  .copyright { text-align: right; }
  .tool-main { width: min(100% - 32px, 560px); padding-top: 19px; }
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .workspace-aside { padding: 15px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 13px; }
  .tool-title-row { margin: 15px 0; }
  .tool-title-row h1 { font-size: 26px; }
}

@media (max-width: 390px) {
  .header-inner, .app-header-inner, .hero-inner, .section-wrap, .benefits-inner, .footer-inner, .tool-main { width: calc(100% - 26px); }
  .main-nav a:nth-child(2) { margin-left: 9px; }
  .hero h1 { font-size: 33px; }
  .tool-card { padding: 11px; }
  .tool-card .tool-icon { width: 40px; height: 40px; }
  .tool-card .tool-icon svg { width: 24px; }
  .tool-card .tool-icon .tool-logo { width: 32px; height: 32px; }
  .file-action { width: 20px; }
  .tool-footer { flex-direction: column; gap: 4px; padding: 12px; }
}

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

  .motion-ready .motion-reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
