:root {
  --navy-950: #04101f;
  --navy-900: #071a30;
  --navy-800: #0b2545;
  --navy-700: #12345c;
  --navy-600: #17416f;
  --orange: #f97316;
  --orange-600: #ea580c;
  --orange-soft: #ffb37a;
  --ink: #eef4ff;
  --muted: #9db2d0;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(2, 10, 22, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3.5rem) 1rem 2rem;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.55;
  background: var(--navy-950);
  background-image:
    radial-gradient(60rem 30rem at 15% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(50rem 28rem at 110% 10%, rgba(23, 65, 111, 0.55), transparent 65%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  background-attachment: fixed;
}

.shell {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
}

.site-header {
  margin-bottom: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-arrow {
  margin: 0 0.35rem;
  color: var(--orange);
}

.brand-tag {
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-soft);
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
}

.tagline {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, rgba(18, 52, 92, 0.55), rgba(7, 26, 48, 0.85));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  letter-spacing: -0.01em;
}

.lead {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
}

.alert {
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  color: #ffd9d2;
  border: 1px solid rgba(255, 107, 87, 0.55);
  border-left: 4px solid #ff6b57;
  border-radius: 12px;
  background: rgba(255, 107, 87, 0.12);
}

.alert strong {
  color: #fff;
}

.upload-form {
  margin: 0;
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.25rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(4, 16, 31, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.08);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--orange);
}

.dropzone-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.dropzone-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--orange-soft);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  color: #10233d;
  background: linear-gradient(180deg, #ff8a3d, var(--orange));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover:not([disabled]) {
  background: linear-gradient(180deg, #ff9a55, var(--orange-600));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.36);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover:not([disabled]) {
  border-color: rgba(249, 115, 22, 0.6);
  background: rgba(249, 115, 22, 0.1);
}

.actions-hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.actions-hint code {
  padding: 0.05rem 0.3rem;
  font-size: 0.85em;
  color: var(--orange-soft);
  border-radius: 5px;
  background: rgba(249, 115, 22, 0.12);
}

.result {
  margin-top: 1.75rem;
  padding: 1.35rem;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.07);
}

.result-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.result-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #10233d;
  background: var(--orange);
  border-radius: 999px;
}

.result h2 {
  margin: 0;
  font-size: 1.15rem;
}

.result-sub {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.15rem;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.btn-download {
  width: 100%;
  overflow-wrap: anywhere;
}

.result-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.feature {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 26, 48, 0.55);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.feature h3::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  vertical-align: 0.1em;
  border-radius: 999px;
  background: var(--orange);
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(157, 178, 208, 0.75);
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .actions {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
