@font-face {
  font-family: "Inter Local";
  src: url("../fonts/inter-light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Local";
  src: url("../fonts/inter-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Local";
  src: url("../fonts/inter-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Local";
  src: url("../fonts/inter-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Local";
  src: url("../fonts/jetbrains-mono-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Local";
  src: url("../fonts/jetbrains-mono-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono Local";
  src: url("../fonts/jetbrains-mono-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime-fog: #fbfce5;
  --lime-light: #f4f9bf;
  --lime-soft: #ecf48e;
  --lime: #dfec42;
  --lime-green: #a9b332;
  --olive: #747b22;
  --ink: #111111;
  --graphite: #2b2b2b;
  --gray-dark: #4f4f4f;
  --gray-mid: #808080;
  --gray-light: #d4d4d4;
  --white: #ffffff;
  --font-sans: "Inter Local", Inter, Arial, sans-serif;
  --font-mono: "JetBrains Mono Local", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--lime-fog);
  font-family: var(--font-sans);
  font-weight: 400;
  min-width: 320px;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0 clamp(20px, 4vw, 64px);
  background:
    linear-gradient(126deg, rgba(17, 17, 17, 0.99) 0%, rgba(28, 30, 20, 0.96) 48%, rgba(43, 43, 43, 0.98) 100%),
    linear-gradient(155deg, var(--olive), var(--ink));
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.2;
}

.ambient-one {
  width: 520px;
  height: 520px;
  top: -280px;
  right: 4%;
  background: var(--lime);
}

.ambient-two {
  width: 460px;
  height: 460px;
  left: -300px;
  bottom: 10%;
  background: var(--olive);
}

.topbar,
.hero,
.workspace,
footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 122px;
  border-bottom: 1px solid rgba(244, 249, 191, 0.14);
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 26px;
  height: 86px;
  color: inherit;
  text-decoration: none;
}

.brand-symbol {
  display: block;
  width: auto;
  height: 82px;
}

.brand-symbol img {
  display: block;
  width: auto;
  height: 82px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  grid-template-rows: 56px 23px;
  row-gap: 5px;
  align-self: center;
}

.brand-mainline {
  display: flex;
  align-items: center;
  height: 56px;
}

.brand-word {
  display: block;
  width: auto;
  height: 56px;
  overflow: visible;
}

.brand-word img {
  display: block;
  width: auto;
  height: 56px;
  object-fit: contain;
}

.brand-divider {
  width: 3px;
  height: 38px;
  margin: 0 18px;
  border-radius: 2px;
  background: var(--olive);
}

.brand-drop {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0;
  color: var(--lime-fog);
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 35px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-tagline {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 23px;
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.brand-slash {
  color: var(--gray-dark);
  font-size: 17px;
  transform: translateY(-1px);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(223, 236, 66, 0.09);
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: clamp(58px, 8vw, 108px) 0 clamp(44px, 5vw, 70px);
}

.eyebrow,
.panel-kicker,
.footer-mono {
  margin: 0;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow::before,
.panel-kicker::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-right: 10px;
  vertical-align: 3px;
  background: currentColor;
}

.hero h1 {
  display: grid;
  gap: clamp(11px, 1.25vw, 18px);
  max-width: 900px;
  margin: 21px 0 24px;
  color: var(--lime-fog);
  font-size: clamp(50px, 6.5vw, 98px);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.hero h1 .hero-line {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2vw, 28px);
  color: inherit;
  font-weight: inherit;
}

.hero h1 .hero-line-bottom {
  color: var(--lime);
  font-weight: 700;
}

.hero h1 .hero-arrow {
  display: block;
  flex: 0 0 clamp(27px, 3vw, 43px);
  width: clamp(27px, 3vw, 43px);
  height: clamp(37px, 4.1vw, 59px);
}

.hero h1 .hero-arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-line-copy {
  display: block;
}

.intro {
  max-width: 680px;
  margin: 0;
  color: #c6c9b5;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  line-height: 1.6;
}

.hero-note {
  min-width: 190px;
  padding: 17px 0 4px 22px;
  border-left: 1px solid rgba(244, 249, 191, 0.18);
}

.hero-note span {
  color: var(--lime-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.hero-note p {
  margin: 8px 0 0;
  color: var(--lime-light);
  font-size: 14px;
  font-weight: 500;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  padding-bottom: 28px;
}

.upload-panel,
.info-panel {
  border: 1px solid rgba(244, 249, 191, 0.15);
  border-radius: 22px;
  background: rgba(17, 17, 17, 0.66);
  backdrop-filter: blur(22px);
}

.upload-panel {
  padding: clamp(24px, 3.2vw, 46px);
}

.panel-heading,
.file-area-head,
.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin: 12px 0 0;
  color: var(--lime-fog);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.file-counter {
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 150px;
  width: 100%;
  margin-top: 30px;
  padding: 26px;
  border: 1px dashed rgba(223, 236, 66, 0.42);
  border-radius: 16px;
  cursor: pointer;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(120deg, rgba(223, 236, 66, 0.07), transparent 45%),
    rgba(43, 43, 43, 0.38);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--lime);
  background:
    linear-gradient(120deg, rgba(223, 236, 66, 0.16), transparent 58%),
    rgba(43, 43, 43, 0.5);
}

.dropzone.is-dragging {
  transform: scale(1.008);
}

.dropzone .upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  line-height: 0;
}

.upload-icon svg,
.primary-action svg,
.icon-action svg,
.privacy-note svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone .upload-icon svg {
  display: block;
  flex: 0 0 24px;
  margin: 0;
}

.dropzone strong,
.dropzone span {
  display: block;
}

.dropzone strong {
  color: var(--lime-fog);
  font-size: 16px;
  font-weight: 500;
}

.dropzone-copy > span {
  margin-top: 8px;
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.choose-button {
  padding: 12px 16px;
  border: 1px solid rgba(244, 249, 191, 0.24);
  border-radius: 9px;
  color: var(--lime-light);
  font-size: 12px;
  font-weight: 600;
}

.notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--lime);
  color: var(--lime-light);
  background: rgba(116, 123, 34, 0.22);
  font-size: 12px;
  line-height: 1.5;
}

.file-area {
  margin-top: 24px;
}

.file-area-head {
  margin-bottom: 12px;
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.file-area-head button {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--gray-light);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.file-area-head button:hover {
  color: var(--lime);
}

.file-area-head button:disabled,
.icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.file-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.file-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(244, 249, 191, 0.11);
  border-radius: 12px;
  background: rgba(43, 43, 43, 0.56);
}

.file-card.status-done {
  border-color: rgba(223, 236, 66, 0.32);
}

.file-card.status-error {
  border-color: rgba(236, 244, 142, 0.38);
}

.thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--graphite);
}

.file-info {
  min-width: 0;
}

.file-info strong,
.file-info > span,
.file-info a {
  display: block;
}

.file-info strong {
  overflow: hidden;
  color: var(--lime-fog);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info > span {
  margin-top: 4px;
  color: var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 9px;
}

.file-info a {
  overflow: hidden;
  margin-top: 6px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 9px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-label {
  color: var(--lime-soft) !important;
}

.state-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1s infinite;
}

.error-label {
  overflow: hidden;
  color: var(--lime-soft) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(244, 249, 191, 0.12);
  border-radius: 8px;
  cursor: pointer;
  color: var(--gray-light);
  background: rgba(17, 17, 17, 0.34);
  transition: color 160ms ease, background 160ms ease;
}

.icon-action:hover,
.copy-action {
  color: var(--ink);
  background: var(--lime);
}

.icon-action svg {
  width: 17px;
  height: 17px;
}

.panel-actions {
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.primary-action {
  gap: 36px;
  min-width: 230px;
  border: 0;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 14px 38px rgba(223, 236, 66, 0.1);
  transition: background 160ms ease, transform 160ms ease;
}

.primary-action:hover:not(:disabled) {
  background: var(--lime-soft);
  transform: translateY(-2px);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.primary-action svg {
  width: 19px;
  height: 19px;
}

.secondary-action {
  border: 1px solid rgba(244, 249, 191, 0.18);
  color: var(--lime-light);
  background: transparent;
  font-size: 12px;
}

.secondary-action:hover {
  border-color: var(--lime-green);
}

.info-panel {
  display: flex;
  flex-direction: column;
  padding: 38px 30px 30px;
}

.info-panel ol {
  display: grid;
  gap: 0;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}

.info-panel li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 21px 0;
  border-top: 1px solid rgba(244, 249, 191, 0.11);
}

.info-panel li > span {
  color: var(--lime-green);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.info-panel li strong,
.privacy-note strong {
  color: var(--lime-fog);
  font-size: 14px;
  font-weight: 500;
}

.info-panel li p,
.privacy-note p {
  margin: 7px 0 0;
  color: var(--gray-mid);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-note {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 14px;
  margin-top: auto;
  padding: 19px;
  border-radius: 12px;
  color: var(--lime);
  background: rgba(116, 123, 34, 0.18);
}

.privacy-note svg {
  width: 24px;
  height: 24px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 38px;
  color: var(--gray-mid);
  border-top: 1px solid rgba(244, 249, 191, 0.1);
  font-size: 12px;
}

footer p {
  margin: 0;
}

footer span {
  color: var(--lime-green);
}

.footer-mono {
  color: var(--gray-mid);
  font-size: 9px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .info-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
  }

  .info-panel ol {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .privacy-note {
    align-self: end;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-inline: 16px;
  }

  .topbar {
    min-height: 108px;
  }

  .brand {
    transform: scale(0.79);
    transform-origin: left center;
    margin-right: -68px;
  }

  .topbar-status {
    width: 9px;
    overflow: hidden;
  }

  .status-dot {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 52px 0 40px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-note {
    display: none;
  }

  .upload-panel {
    padding: 24px 16px;
  }

  .dropzone {
    grid-template-columns: auto 1fr;
    gap: 16px;
    min-height: 130px;
    padding: 20px 16px;
  }

  .choose-button {
    display: none !important;
  }

  .upload-icon {
    width: 50px;
    height: 50px;
  }

  .file-list {
    grid-template-columns: 1fr;
  }

  .panel-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .info-panel {
    display: block;
    padding: 28px 22px;
  }

  .info-panel ol {
    margin-top: 22px;
  }

  .privacy-note {
    margin-top: 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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