:root {
  color-scheme: light;
  --ink: #061738;
  --blue: #0878ff;
  --blue-deep: #0062ef;
  --muted: #526079;
  --line: #c9d9ee;
  --soft: #f8fbff;
  --danger: #ff4269;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fffdf9;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(235, 245, 255, 0.72), transparent 30rem),
    linear-gradient(180deg, #fffefa 0%, #ffffff 58%, #fffefa 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1360px, calc(100% - 96px));
  margin: 18px auto 0;
}

.logo-link {
  display: block;
  width: clamp(180px, 15vw, 230px);
  height: 62px;
  overflow: hidden;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 44px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.nav-actions a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
}

.page {
  width: min(1360px, calc(100% - 96px));
  margin: 38px auto 0;
  padding-bottom: 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "upload";
  justify-items: center;
  row-gap: 30px;
}

.hero-copy {
  grid-area: copy;
  padding-left: 0;
  text-align: center;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.hero-copy p {
  max-width: 760px;
  margin: 24px auto 0;
  color: #3f4d67;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.22;
}

.brand-line {
  display: block;
  margin-top: 20px;
  color: var(--blue);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
}

.workspace {
  grid-area: upload;
  justify-self: center;
  width: min(850px, 100%);
  margin-top: 0;
}

.dropzone {
  display: grid;
  min-height: 276px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 34px 36px 32px;
  border: 1.5px dashed #93c4ff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.upload-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e9f4ff 0%, #dceeff 100%);
  color: var(--blue);
}

.upload-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 96, 210, 0.08);
  transform: translateY(-1px);
}

.dropzone input {
  display: none;
}

.dropzone strong {
  color: var(--ink);
  font-size: clamp(24px, 1.8vw, 28px);
  line-height: 1.08;
}

.dropzone small,
.dropzone em {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
}

.select-pill {
  display: inline-grid;
  min-width: 330px;
  min-height: 56px;
  place-items: center;
  margin-top: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #0f84ff 0%, #0064ef 100%);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 103, 239, 0.16);
}

.share-panel,
.download-panel,
.file-list {
  margin-top: 16px;
}

.share-panel,
.download-panel {
  padding: 18px;
  border: 1px solid #dbe9f9;
  border-radius: 18px;
  background: var(--soft);
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2,
p {
  margin: 0;
}

.share-panel h2,
.download-panel h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.share-panel p {
  margin-top: 6px;
  color: var(--muted);
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.copy-row input {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #cfe1f7;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
}

.copy-row button,
.download-panel button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
}

.download-panel button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.transfer-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe9f9;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.72);
}

.keep-open {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.presence-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.presence-line strong {
  color: var(--blue);
}

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

.state-grid div {
  padding: 12px;
  border: 1px solid #e1ebf7;
  border-radius: 14px;
  background: #ffffff;
}

.state-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.state-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
}

.progress-panel {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.progress-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.ascii-progress {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.progress-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa9bd;
}

.dot.live {
  background: #1fc9a5;
  box-shadow: 0 0 0 5px rgba(31, 201, 165, 0.12);
}

.dot.error {
  background: var(--danger);
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe9f9;
  border-radius: 16px;
  background: #ffffff;
}

.file-meta strong,
.file-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta strong {
  color: var(--ink);
}

.file-meta span {
  color: var(--muted);
  font-size: 13px;
}

progress {
  width: 140px;
  height: 10px;
  accent-color: var(--blue);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(1260px, 100%);
  margin: 36px auto 0;
  padding-top: 30px;
  border-top: 1px solid #dce5f2;
}

.strip-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.feature {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 92px;
  padding: 0 52px;
  border-right: 1px solid #d7deeb;
}

.feature:first-child {
  padding-left: 0;
}

.feature:last-child {
  padding-right: 0;
  border-right: 0;
}

.feature-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef7ff 0%, #e4f1ff 100%);
  color: var(--blue);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.feature h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.34;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 42px auto 0;
}

.home-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #415373;
  font-weight: 650;
  text-decoration: none;
}

.home-links a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.site-footer {
  width: min(1470px, calc(100% - 96px));
  margin: 18px auto 28px;
  color: #7a879a;
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue-deep);
}

.hidden {
  display: none;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  gap: 48px;
  width: min(1130px, 100%);
  margin: 74px auto 0;
  padding-top: 36px;
  border-top: 1px solid #e2e9f3;
}

.seo-summary {
  margin-top: 58px;
}

.content-section h2 {
  max-width: 420px;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.02;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid article,
.faq-list details {
  border: 1px solid #dbe9f9;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.steps-grid article {
  padding: 20px;
}

.steps-grid strong {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
}

.steps-grid h3,
.faq-list summary {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.steps-grid p,
.faq-list p,
.summary-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.summary-copy {
  display: grid;
  gap: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  margin: 0;
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin-top: 10px;
}

.text-page {
  width: min(980px, calc(100% - 96px));
}

.article-hero {
  max-width: 760px;
}

.article-hero h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-hero h1 span {
  color: var(--blue);
}

.article-hero p {
  margin-top: 18px;
  color: #3f4d67;
  font-size: 22px;
  line-height: 1.3;
}

.article-body {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-top: 42px;
}

.article-body h2 {
  margin-top: 24px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.article-body p {
  color: #3f4d67;
  font-size: 18px;
  line-height: 1.58;
}

.faq-page-list {
  max-width: 860px;
  margin-top: 42px;
}

.admin-page {
  width: min(1180px, calc(100% - 96px));
}

.login-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #dbe9f9;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
}

.admin-login-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.admin-login-card p {
  color: var(--muted);
  line-height: 1.4;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.admin-login-card input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfe1f7;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
}

.admin-login-card button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
}

.form-error {
  min-height: 20px;
  color: var(--danger) !important;
  font-weight: 750;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.admin-summary div,
.admin-card,
.admin-log {
  border: 1px solid #dbe9f9;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.admin-summary div {
  padding: 18px;
}

.admin-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 32px;
}

.admin-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-card {
  padding: 18px;
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 24px;
}

.admin-card-head > strong {
  color: var(--blue);
  font-size: 30px;
}

.admin-meter {
  height: 9px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eef9;
}

.admin-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.admin-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.admin-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.admin-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.admin-files {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.admin-files li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e4edf8;
  border-radius: 12px;
  background: #ffffff;
}

.admin-files span {
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-files strong,
.admin-files-empty {
  color: var(--muted);
  font-size: 13px;
}

.admin-files-empty {
  margin-top: 14px;
}

.admin-log {
  margin-top: 28px;
  padding: 18px;
}

.admin-log h2 {
  margin-bottom: 14px;
  color: var(--ink);
}

.event-row {
  display: grid;
  grid-template-columns: 96px minmax(150px, 0.7fr) minmax(160px, 0.7fr) minmax(240px, 1.4fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #e4edf8;
  color: var(--muted);
}

.event-row strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.event-row > div > span,
.event-transfer span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.event-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.event-transfer b {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.event-row .admin-files {
  margin-top: 0;
}

.event-row .admin-files li {
  padding: 8px 10px;
}

.event-row.is-success {
  border-left: 4px solid #1fc9a5;
  padding-left: 12px;
}

.event-row.is-danger {
  border-left: 4px solid var(--danger);
  padding-left: 12px;
}

.event-row.is-active {
  border-left: 4px solid var(--blue);
  padding-left: 12px;
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .topbar,
  .page {
    width: min(100% - 44px, 920px);
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "upload";
    row-gap: 24px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .workspace {
    justify-self: center;
    margin-top: 0;
  }

  .feature {
    padding: 0 28px;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
    width: min(100% - 28px, 620px);
    gap: 12px;
  }

  .logo-link {
    width: min(300px, 82vw);
    height: 80px;
  }

  .nav-actions {
    justify-content: flex-start;
    gap: 12px 18px;
    font-size: 14px;
  }

  .page {
    width: min(100% - 24px, 620px);
    margin-top: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .hero-copy p {
    font-size: 20px;
  }

  .dropzone {
    min-height: 260px;
    padding: 28px 18px;
  }

  .select-pill {
    min-width: min(310px, 100%);
  }

  .copy-row,
  .file-item,
  .state-grid,
  .feature-strip,
  .admin-summary,
  .admin-card dl {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    gap: 20px;
    margin-top: 34px;
  }

  .strip-title {
    margin-bottom: 4px;
    text-align: left;
  }

  .feature,
  .feature:first-child,
  .feature:last-child {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    border-right: 0;
  }

  .presence-line {
    display: grid;
    gap: 8px;
    text-align: center;
  }

  progress {
    width: 100%;
  }

  .text-page,
  .admin-page {
    width: min(100% - 24px, 620px);
  }

  .home-links {
    display: grid;
    justify-items: center;
  }

  .site-footer {
    width: min(100% - 24px, 620px);
  }

  .event-row {
    grid-template-columns: 1fr;
  }
}
