:root {
  --bg: #f6fff7;
  --bg-strong: #e2f8e7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(229, 250, 235, 0.76);
  --text: #0d2a16;
  --muted: #4c6d58;
  --muted-strong: #385542;
  --accent: #1fa74d;
  --accent-strong: #0f7d35;
  --accent-soft: #c8f0d2;
  --accent-soft-2: #e5faea;
  --line: rgba(17, 111, 45, 0.12);
  --line-strong: rgba(17, 111, 45, 0.2);
  --shadow: 0 24px 60px rgba(32, 87, 45, 0.12);
  --shadow-soft: 0 14px 30px rgba(32, 87, 45, 0.08);
  --success: #138c3d;
  --warn: #b47600;
  --danger: #b63c3c;
  --font-head: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", "Menlo", "Monaco", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(100, 225, 140, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(103, 197, 139, 0.18), transparent 28%),
    linear-gradient(180deg, #fbfffb 0%, var(--bg) 42%, #eefaf0 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
    repeating-linear-gradient(
      0deg,
      rgba(31, 167, 77, 0.015) 0,
      rgba(31, 167, 77, 0.015) 1px,
      transparent 1px,
      transparent 22px
    );
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.page-shell-narrow {
  width: min(1040px, calc(100vw - 32px));
}

.hero-card,
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 48%),
    linear-gradient(315deg, rgba(31, 167, 77, 0.08), transparent 52%);
  pointer-events: none;
}

.hero-card {
  padding: 30px;
  animation: rise-up 0.8s ease both;
}

.compact-hero {
  padding-bottom: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-pill,
.link-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14, 120, 46, 0.1);
  border: 1px solid rgba(14, 120, 46, 0.14);
  color: var(--accent-strong);
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-pill:hover {
  transform: translateY(-1px);
}

.brand-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.compact-copy {
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-head);
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.hero-text,
.muted-text {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-stats,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats {
  align-self: stretch;
}

.stat-chip,
.metric-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-chip::after,
.metric-tile::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 167, 77, 0), rgba(31, 167, 77, 0.65), rgba(31, 167, 77, 0));
}

.stat-value,
.metric-tile strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.stat-label,
.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.85fr);
  gap: 20px;
  margin-top: 20px;
}

.single-column {
  grid-template-columns: 1fr;
}

.side-stack {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 24px;
  animation: rise-up 0.9s ease both;
}

.panel-wide {
  min-height: 640px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dropzone {
  width: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px;
  border: 1px dashed rgba(17, 111, 45, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(67, 198, 112, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(234, 249, 238, 0.78));
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dropzone:hover,
.dropzone.is-active {
  transform: translateY(-2px) scale(1.003);
  border-color: rgba(17, 111, 45, 0.48);
  box-shadow: 0 26px 48px rgba(22, 96, 42, 0.12);
}

.dropzone-graphic {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(31, 167, 77, 0.95), rgba(18, 118, 47, 0.96));
  position: relative;
  box-shadow: 0 18px 34px rgba(25, 118, 49, 0.22);
}

.dropzone-graphic::before,
.dropzone-graphic::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 999px;
}

.dropzone-graphic::before {
  width: 14px;
  height: 44px;
  top: 16px;
  left: calc(50% - 7px);
}

.dropzone-graphic::after {
  width: 44px;
  height: 14px;
  left: 20px;
  top: calc(50% - 7px);
}

.dropzone-title {
  max-width: 24ch;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.2;
}

.dropzone-subtitle {
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.toolbar,
.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar {
  margin-top: 18px;
}

.selection-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted-strong);
  font-weight: 600;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 24px rgba(25, 118, 49, 0.24);
}

.button-ghost,
.button-soft {
  color: var(--accent-strong);
  background: rgba(31, 167, 77, 0.1);
  border-color: rgba(17, 111, 45, 0.16);
}

.file-list,
.download-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.file-item,
.download-item {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.file-main,
.download-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.file-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.compact .file-item {
  padding: 14px 16px;
}

.progress-shell,
.download-progress {
  display: grid;
  gap: 10px;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(16, 122, 47, 0.08);
  overflow: hidden;
}

.progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(31, 167, 77, 0.88), rgba(120, 231, 154, 0.92));
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.32);
  transition: width 160ms linear;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0,
    rgba(255, 255, 255, 0.35) 40%,
    transparent 74%
  );
  animation: shimmer 1.6s linear infinite;
}

.progress-meta,
.download-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
  font-weight: 600;
}

.notice {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  line-height: 1.55;
}

.notice-large {
  min-height: 110px;
  display: flex;
  align-items: center;
}

.notice.is-success {
  background: rgba(19, 140, 61, 0.12);
  color: var(--success);
}

.notice.is-warn {
  background: rgba(180, 118, 0, 0.12);
  color: var(--warn);
}

.notice.is-danger {
  background: rgba(182, 60, 60, 0.12);
  color: var(--danger);
}

.result-box,
.deadline-card {
  display: grid;
  gap: 10px;
}

.field-label {
  display: inline-block;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input[type="text"]:focus {
  border-color: rgba(17, 111, 45, 0.34);
  box-shadow: 0 0 0 4px rgba(31, 167, 77, 0.12);
}

.deadline-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(31, 167, 77, 0.14), rgba(255, 255, 255, 0.74));
  border: 1px solid var(--line);
}

.deadline-label {
  color: var(--muted);
}

.download-item {
  gap: 14px;
}

.download-title {
  font-size: 1.02rem;
  font-weight: 750;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.hidden {
  display: none !important;
}

.bg-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.46;
  pointer-events: none;
  z-index: 0;
  animation: float-orb 10s ease-in-out infinite;
}

.bg-orb-left {
  left: -120px;
  top: 80px;
  background: radial-gradient(circle, rgba(91, 221, 127, 0.34), rgba(91, 221, 127, 0));
}

.bg-orb-right {
  right: -120px;
  top: 220px;
  background: radial-gradient(circle, rgba(150, 245, 185, 0.42), rgba(150, 245, 185, 0));
  animation-delay: 1.5s;
}

.grid-glow {
  position: fixed;
  inset: 18vh 14vw auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 167, 77, 0.2), rgba(31, 167, 77, 0));
  filter: blur(42px);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-up 0.9s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.24s;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(180%);
  }
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.04);
  }
}

@media (max-width: 1024px) {
  .hero-copy,
  .layout-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .panel-wide {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
    padding-bottom: 30px;
  }

  .hero-card,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .brand-row,
  .panel-head,
  .toolbar,
  .input-row,
  .file-main,
  .download-main,
  .download-actions,
  .progress-meta,
  .download-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .dropzone {
    min-height: 210px;
    padding: 24px 18px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }
}
