:root {
  --ink: #f4f8ff;
  --muted: #a9b8cc;
  --blue: #3c9cff;
  --blue-dark: #1672d7;
  --blue-soft: #172d47;
  --line: #2b4059;
  --surface: #15253a;
  --background: #091421;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(28, 127, 231, .18), transparent 28rem),
    radial-gradient(circle at 90% 35%, rgba(26, 106, 194, .14), transparent 26rem),
    linear-gradient(180deg, #0d1c2e 0, var(--background) 52%, #07111c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgba(117, 171, 222, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(117, 171, 222, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

button, input { font: inherit; }

.page-shell { position: relative; width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(151, 187, 221, .16);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand > span:last-child span { color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: linear-gradient(145deg, #1684ee, #0755bd); box-shadow: 0 8px 18px rgba(8, 103, 213, .24); }
.brand-mark svg { width: 25px; height: 25px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: #bdcbe0; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,35,55,.82); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 4px rgba(245, 165, 36, .14); }

main { padding: 82px 0 0; }
.hero { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.eyebrow, .step { margin: 0 0 13px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.3vw, 76px); line-height: .99; letter-spacing: -.065em; }
.intro { max-width: 630px; margin: 25px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.converter-card { padding: clamp(25px, 4vw, 48px); border: 1px solid rgba(83, 113, 145, .52); border-radius: 24px; background: rgba(18, 35, 55, .94); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.card-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.step { margin-bottom: 8px; font-size: 10px; }
.card-heading h2 { margin: 0; font-size: clamp(23px, 3vw, 31px); letter-spacing: -.035em; }
.format-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.format-list span { padding: 7px 9px; color: #acd5fa; border: 1px solid #36516e; border-radius: 7px; background: #182d44; font-size: 10px; font-weight: 800; }

.drop-zone { min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 1.5px dashed #50789f; border-radius: 17px; background: linear-gradient(180deg, #13283f, #102338); transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 7px; color: #73b9ff; border-radius: 16px; background: #1c3854; box-shadow: 0 9px 25px rgba(0, 0, 0, .24); }
.upload-icon svg { width: 31px; }
.drop-zone strong { font-size: 17px; }
.drop-zone > span:not(.upload-icon) { color: var(--muted); font-size: 14px; }
.drop-zone u { color: var(--blue); font-weight: 700; text-decoration: none; }
.drop-zone small { margin-top: 10px; color: #8599af; font-size: 11px; }

.file-panel { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #10253a; }
.file-panel:not([hidden]) { display: block; }
.file-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 2px 2px 13px; }
.file-panel-heading > div { display: flex; flex-direction: column; gap: 4px; }
.file-panel-heading span { color: var(--muted); font-size: 12px; }
.text-button { cursor: pointer; color: #8fc8ff; border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.text-button:hover { color: white; }
.file-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.file-row { display: flex; align-items: center; gap: 13px; padding: 11px; border: 1px solid #2b435c; border-radius: 10px; background: #132b42; }
.file-row.invalid { border-color: #72404a; background: #38252d; }
.file-badge { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; color: white; border-radius: 11px; background: var(--blue); font-size: 10px; font-weight: 900; }
.file-meta { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { color: var(--muted); font-size: 12px; }
.file-row.invalid .file-meta small { color: #ffadb5; }
.icon-button { width: 34px; height: 34px; cursor: pointer; color: #9cb0c6; border: 0; border-radius: 50%; background: transparent; font-size: 24px; }
.icon-button:hover { color: #ff9aa4; background: #46232b; }

.notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 15px 17px; color: #b4c8dc; border: 1px solid #315579; border-radius: 12px; background: #142d46; }
.notice svg { width: 21px; flex: 0 0 auto; color: var(--blue); }
.notice p { margin: 0; font-size: 12px; line-height: 1.6; }
.notice strong { color: var(--ink); }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.actions > span { color: #8fa2b9; font-size: 12px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 22px; cursor: pointer; color: white; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 10px 24px rgba(8, 103, 213, .22); font-weight: 750; transition: .2s ease; }
.primary-button svg { width: 19px; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(8, 103, 213, .28); }
.primary-button:disabled { cursor: not-allowed; color: #70849a; background: #26394c; box-shadow: none; }

.report-panel { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.report-heading .step { margin-bottom: 6px; }
.report-heading h3 { margin: 0; font-size: 22px; }
.secondary-button { min-height: 40px; padding: 0 15px; cursor: pointer; color: #dbeeff; border: 1px solid #41698f; border-radius: 9px; background: #193651; font-size: 12px; font-weight: 750; }
.secondary-button:hover { border-color: var(--blue); background: #214766; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.report-stats article { display: flex; flex-direction: column; gap: 3px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #10283f; }
.report-stats strong { font-size: 25px; }
.report-stats span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.report-stats .success strong { color: #65d7a1; }
.report-stats .failed strong { color: #ff8994; }
.report-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.report-table th, .report-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.report-table th { color: #91a6bd; background: #0d2236; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.report-status.success { color: #8ce9bc; background: #153e33; }
.report-status.error { color: #ffadb5; background: #48252d; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features article { display: flex; gap: 14px; padding: 30px 28px; }
.features article + article { border-left: 1px solid var(--line); }
.features article > span { color: var(--blue); font-size: 11px; font-weight: 900; }
.features h3 { margin: 0 0 7px; font-size: 14px; }
.features p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

footer { padding: 62px 0 54px; text-align: center; }
footer p { margin: 0 0 6px; color: #7f91a7; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
footer a { color: #f1f6fd; text-decoration: none; font-size: 17px; font-weight: 900; letter-spacing: -.04em; }
footer a span { color: var(--blue); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; padding: 12px 17px; color: white; border-radius: 10px; background: #10213c; box-shadow: 0 12px 35px rgba(16,33,60,.25); font-size: 13px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .page-shell { width: min(100% - 24px, 1120px); }
  .site-header { min-height: 76px; }
  .status-pill { padding: 7px 9px; font-size: 9px; }
  main { padding-top: 55px; }
  .hero { margin-bottom: 30px; }
  .intro { font-size: 15px; }
  .card-heading, .actions { align-items: stretch; flex-direction: column; }
  .report-heading { align-items: stretch; flex-direction: column; }
  .report-stats { grid-template-columns: 1fr; }
  .format-list { justify-content: flex-start; }
  .primary-button { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .features article + article { border-top: 1px solid var(--line); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
