:root {
  --blue: #1e63ff;
  --blue-deep: #0b2f8a;
  --ink: #05102b;
  --paper: #f5f8ff;
  --line: rgba(30, 99, 255, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(30, 99, 255, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 100% 120%, rgba(11, 47, 138, 0.16), transparent 55%),
    var(--paper);
  padding: 24px;
}

.stage { width: min(620px, 100%); text-align: center; }

.hero h1 {
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.blue {
  color: var(--blue);
  text-shadow: 0 6px 30px rgba(30, 99, 255, 0.45);
}
.sub { margin-top: 14px; color: #3a4c78; font-size: 1.05rem; }

.dropzone {
  margin-top: 36px;
  border: 2px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  padding: 52px 24px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue); outline: none; }
.dropzone.drag {
  border-color: var(--blue);
  background: rgba(30, 99, 255, 0.08);
  transform: translateY(-2px);
}
.dz-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  font-size: 1.6rem; color: #fff; font-weight: 700;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 30px rgba(30, 99, 255, 0.4);
}
.dz-title { font-size: 1.2rem; font-weight: 500; }
.dz-hint { margin-top: 6px; color: #56679a; font-size: .92rem; }

.link {
  background: none; border: none; color: var(--blue);
  font: inherit; cursor: pointer; text-decoration: underline; padding: 0;
}

.panel {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  text-align: left;
}
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fname { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(30, 99, 255, 0.12); color: var(--blue-deep); white-space: nowrap;
}
.bar { margin-top: 14px; height: 8px; border-radius: 999px; background: rgba(30, 99, 255, 0.14); overflow: hidden; }
.fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-deep));
  transition: width .3s ease;
}

.result { margin-top: 18px; }
.preview {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, #eef3ff 25%, transparent 25%, transparent 75%, #eef3ff 75%) 0 0 / 20px 20px,
    #fff;
}
.btn {
  display: inline-block; text-decoration: none; color: #fff; font-weight: 500;
  padding: 12px 22px; border-radius: 12px;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 26px rgba(30, 99, 255, 0.4);
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.countdown { margin-top: 10px; font-size: .85rem; color: #56679a; }
.reset { margin-top: 16px; display: inline-block; }
.error { margin-top: 14px; color: #b00429; font-size: .9rem; }

.foot { margin-top: 30px; font-size: .8rem; color: #7285ad; letter-spacing: .02em; }
.foot .built { font-size: .9rem; color: #3a4c78; }
.foot a { color: var(--blue); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-links { margin-top: 6px; }
.hidden { display: none !important; }

/* Legal / doc pages */
.doc {
  width: min(720px, 100%);
  margin: 48px auto;
  padding: 0 24px 64px;
  text-align: left;
  line-height: 1.6;
  color: var(--ink);
}
.doc h1 { font-size: 2rem; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.15rem; margin-top: 28px; }
.doc p, .doc li { color: #33436e; }
.doc ul { margin: 8px 0 8px 20px; }
.doc a { color: var(--blue); }
.doc .back { display: inline-block; margin-bottom: 24px; }
.doc .updated { color: #7285ad; font-size: .85rem; }
