:root {
  --teal: #16b8b4;
  --teal-deep: #079f9e;
  --aqua: #55c6e2;
  --coral: #ff7138;
  --pink: #ff2d68;
  --navy: #10282b;
  --ink: #263234;
  --muted: #687879;
  --page: #f8faf9;
  --white: #ffffff;
  --soft: #edf5f3;
  --line: #d8e4e2;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(16, 78, 78, .15);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  height: 92px;
  width: 100%;
  padding: 0 max(28px, calc((100% - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(25, 70, 69, .07);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 158px; height: auto; display: block; }

.local-pill {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(115deg, var(--coral), var(--pink));
  box-shadow: 0 10px 25px rgba(255, 74, 89, .2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.local-pill span,
.lock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

main { min-height: calc(100vh - 180px); }

.hero {
  min-height: 680px;
  width: 100%;
  margin-bottom: 72px;
  padding: 62px 24px 105px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(118deg, var(--aqua) 0%, var(--teal) 58%, var(--teal-deep) 100%);
}

.hero::before {
  content: "";
  width: 480px;
  height: 480px;
  position: absolute;
  left: -170px;
  top: -210px;
  border: 70px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.hero::after {
  content: "";
  width: 100%;
  height: 105px;
  position: absolute;
  left: 0;
  bottom: -72px;
  z-index: 0;
  background: linear-gradient(118deg, var(--aqua) 0%, var(--teal) 58%, var(--teal-deep) 100%);
  clip-path: ellipse(64% 100% at 50% 0%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--teal-deep);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(0, 100, 105, .15);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.08em;
  text-transform: lowercase;
  transform: rotate(-4deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: currentColor;
  opacity: .75;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 80px);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: lowercase;
}

.hero h1 em { font-style: normal; color: var(--white); }

.intro {
  max-width: 680px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.6;
}

.drop-shell {
  width: min(700px, 100%);
  margin-top: 38px;
  position: relative;
  z-index: 3;
}

.drop-zone {
  width: 100%;
  min-height: 286px;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.drop-zone::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(22,184,180,.35);
  border-radius: 21px;
  transition: border-color .25s ease, background .25s ease;
}

.drop-zone::after {
  content: "";
  width: 140px;
  height: 140px;
  position: absolute;
  right: -75px;
  top: -75px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  opacity: .9;
}

.drop-zone:hover, .drop-zone.dragging {
  transform: translateY(-5px);
  box-shadow: 0 32px 85px rgba(5, 89, 91, .25);
}
.drop-zone:hover::before, .drop-zone.dragging::before { border-color: var(--teal); background: rgba(22,184,180,.035); }

.drop-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  box-shadow: 0 13px 28px rgba(22,184,180,.3);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.drop-title { position: relative; z-index: 1; font-size: 24px; font-weight: 900; letter-spacing: -.04em; }
.drop-subtitle { margin-top: 7px; position: relative; z-index: 1; color: var(--muted); font-size: 13px; }
.drop-limit { margin-top: 24px; position: relative; z-index: 1; color: var(--teal-deep); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.drop-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.soft-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.14);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.privacy-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.88);
  font-size: 10px;
  text-align: center;
}

.workspace {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 100px;
}

.result-topbar {
  min-height: 92px;
  margin-bottom: 22px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(110deg, var(--aqua), var(--teal) 60%, var(--teal-deep));
  box-shadow: 0 16px 45px rgba(14, 116, 116, .15);
}

.result-topbar::after {
  content: "";
  width: 180px;
  height: 180px;
  position: absolute;
  right: 110px;
  top: -115px;
  border: 28px solid rgba(255,255,255,.1);
  border-radius: 50%;
}

.file-identity { min-width: 0; display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.zip-stamp { flex: none; padding: 9px 8px 7px; border-radius: 7px; color: var(--white); background: linear-gradient(135deg, var(--coral), var(--pink)); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.file-identity h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; letter-spacing: -.025em; }
.file-identity p { margin: 5px 0 0; color: rgba(255,255,255,.78); font-size: 11px; }

.outline-button {
  min-height: 42px;
  padding: 0 18px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 28px;
  align-items: start;
}

.report-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(19, 128, 126, .1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(23, 83, 83, .09);
}

.report-card::before {
  content: "";
  width: 90px;
  height: 8px;
  position: absolute;
  top: 0;
  left: 28px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--aqua), var(--teal));
}

.download-card::before { background: linear-gradient(90deg, var(--coral), var(--pink)); }

.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-heading h3 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.card-heading .eyebrow { margin-bottom: 8px; color: var(--teal-deep); opacity: 1; }

.count-pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--teal-deep);
  background: var(--soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.empty-state {
  min-height: 250px;
  margin-top: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(22,184,180,.3);
  border-radius: 22px;
  background: var(--soft);
}

.empty-state strong { display: block; margin-bottom: 7px; color: var(--navy); font-size: 26px; letter-spacing: -.05em; }
.empty-state span { color: var(--muted); font-size: 12px; }

.file-list {
  max-height: 580px;
  margin-top: 22px;
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 3px;
}

.file-row {
  min-height: 70px;
  padding: 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(22,184,180,.14);
  border-radius: 18px;
  background: linear-gradient(155deg, #ffffff 0%, #f7fcfb 100%);
}

.file-type {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  font-size: 8px;
  font-weight: 900;
}

.file-info { min-width: 0; }
.file-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.file-info span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.remove-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255,45,104,.08);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.field-label {
  display: block;
  margin: 28px 0 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.archive-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(22,184,180,.24);
  border-radius: 14px;
  color: var(--navy);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
  outline: none;
}

.archive-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(22,184,180,.12);
}

.stat-stack {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-stack div {
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(155deg, #ffffff 0%, #f2fbfa 100%);
  border: 1px solid rgba(22,184,180,.16);
}

.stat-stack span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.stat-stack strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.05em;
}

.progress-shell { margin: 18px 0; }
.progress-text { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 900; }
.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}
.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--teal), var(--pink));
  transition: width .18s ease;
}

.download-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(115deg, var(--coral), var(--pink));
  box-shadow: 0 16px 34px rgba(255, 74, 89, .22);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.helper-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

footer {
  min-height: 92px;
  width: 100%;
  padding: 0 max(28px, calc((100% - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 9px;
}
footer img { width: 106px; height: auto; }
footer span { font-weight: 900; letter-spacing: .08em; }
footer p { text-align: center; }

@media (max-width: 900px) {
  .builder-grid { grid-template-columns: 1fr; }
  .file-list { max-height: none; }
}

@media (max-width: 620px) {
  .site-header { height: 78px; padding-inline: 18px; }
  .brand img { width: 132px; }
  .local-pill { min-height: 34px; padding: 0 12px; font-size: 8px; }
  .hero { min-height: 650px; padding: 46px 14px 92px; }
  .hero h1 { font-size: 48px; }
  .intro { font-size: 13px; }
  .drop-shell { margin-top: 30px; }
  .drop-zone { min-height: 265px; padding: 34px 18px; }
  .drop-title { font-size: 20px; }
  .drop-actions { flex-direction: column; }
  .workspace { width: min(100% - 28px, 1180px); padding-bottom: 70px; }
  .result-topbar { align-items: flex-start; }
  .outline-button { padding-inline: 13px; }
  .report-card { padding: 20px; }
  .file-row { grid-template-columns: 42px minmax(0, 1fr); }
  .file-type { width: 42px; height: 42px; border-radius: 12px; }
  .remove-button { grid-column: 2; justify-self: start; }
  .stat-stack { grid-template-columns: 1fr; }
  footer { padding-inline: 18px; }
  footer p { display: none; }
}

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