@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --field: #f3f4fa;
  --ink: #0e1022;
  --muted: #565c75;
  --line: #e2e4f0;
  --accent: #5a4bf0;
  --accent-2: #0fb5a2;
  --accent-ink: #ffffff;
  --soft: #efeeff;
  --warn: #7a4a00;
  --warn-bg: #fff1cf;
  --err: #b3261e;
  --ok: #0b7d70;
  --night: #0b0d1c;
  --grad: linear-gradient(120deg, #7c6cff 0%, #4f8dff 45%, #1fd1b9 100%);
  --shadow: 0 1px 2px rgba(14, 16, 34, 0.04), 0 12px 32px -12px rgba(14, 16, 34, 0.14);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d1c;
    --card: #14172b;
    --field: #0f1224;
    --ink: #f1f2fa;
    --muted: #a4a9c4;
    --line: #262a45;
    --accent: #9d92ff;
    --accent-2: #3fe0cb;
    --accent-ink: #0b0d1c;
    --soft: #1b1d3a;
    --warn: #f3c871;
    --warn-bg: #3a2d0c;
    --err: #ff9a94;
    --ok: #3fe0cb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 28, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.1rem var(--display);
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.mark { width: 30px; height: 30px; stroke: none; }
.top nav { display: flex; gap: 6px; white-space: nowrap; }
.top nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #c9cce4;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.top nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.glow-a { width: 520px; height: 520px; left: -140px; top: -180px; background: #6a5bff; }
.glow-b { width: 460px; height: 460px; right: -100px; bottom: -200px; background: #14c6b0; opacity: 0.4; }
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 24px 96px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d5d8ee;
  font-size: 0.88rem;
  font-weight: 500;
}
.live { width: 8px; height: 8px; border-radius: 50%; background: #2fe3c8; box-shadow: 0 0 0 4px rgba(47, 227, 200, 0.2); }
h1 {
  margin: 0;
  font: 700 clamp(4rem, 13vw, 8.5rem)/0.92 var(--display);
  letter-spacing: -0.045em;
}
.stop { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede {
  max-width: 30em;
  margin: 26px 0 34px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: #c3c7e0;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: #aeb3d0; font-size: 0.95rem; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 380px); }
.portrait::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 34px;
  background: var(--grad);
  transform: rotate(-3deg);
  opacity: 0.9;
}
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.portrait figcaption {
  position: absolute;
  left: -18px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(11, 13, 28, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  line-height: 1.3;
}
.portrait figcaption strong { font: 700 1.05rem var(--display); }
.portrait figcaption span { font-size: 0.82rem; color: #aeb3d0; }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 24px 0; scroll-margin-top: 60px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 { margin: 0; font: 700 clamp(1.9rem, 4.4vw, 2.7rem)/1.1 var(--display); letter-spacing: -0.03em; }
.sub { max-width: 38em; margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 28px; }
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tool:hover { transform: translateY(-4px); border-color: var(--accent); }
.tool-next { background: transparent; border-style: dashed; box-shadow: none; }
.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 15px;
  background: var(--grad);
  color: #fff;
}
.tool-icon svg { width: 26px; height: 26px; }
.tool-next .tool-icon { background: var(--soft); color: var(--accent); }
.tool-tag {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.tool-tag.ready { background: rgba(15, 181, 162, 0.14); color: var(--ok); }
.tool-name { font: 700 1.35rem var(--display); letter-spacing: -0.02em; }
.tool-desc { flex: 1; color: var(--muted); }
.tool-go { margin-top: 10px; font-weight: 700; color: var(--accent); }
.tool-go::after { content: " \2192"; }

.steps { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 20px; padding: 0; list-style: none; }
.steps li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.steps b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font: 700 0.95rem var(--display);
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* ---------- combiner ---------- */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 20px;
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 18px;
  background: var(--soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over { border-color: var(--accent); }
.drop.over { border-style: solid; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop-icon { width: 38px; height: 38px; color: var(--accent); }
.drop-title {
  padding: 13px 30px;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font: 700 1.15rem var(--display);
  box-shadow: 0 10px 24px -10px rgba(90, 75, 240, 0.7);
}
.drop-hint { color: var(--muted); }

.controls { display: flex; flex-wrap: wrap; gap: 16px 22px; margin: 26px 0 16px; align-items: end; }
.controls label, .name, #sForm label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.controls .check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); min-height: 48px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

select, input[type="text"], input[type="date"], textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  min-height: 48px;
  max-width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
select:focus-visible, input:focus-visible, textarea:focus-visible, .btn:focus-visible, .icon:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 600;
}

.list { list-style: none; margin: 0; padding: 0; }
.group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
  font: 700 1.15rem var(--display);
  letter-spacing: -0.01em;
}
.group small { font: 500 0.88rem var(--sans); color: var(--muted); }
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--field);
}
.row.dup { border-color: var(--warn); }
.row.bad { border-color: var(--err); }
.row.drag-over { box-shadow: 0 -3px 0 var(--accent); }
.row.dragging { opacity: 0.45; }
.row > div:first-child { display: flex; align-items: center; gap: 6px; }
.handle { display: grid; place-items: center; width: 26px; height: 40px; color: var(--muted); cursor: grab; font-size: 1.15rem; user-select: none; }
.num {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  font: 700 0.85rem var(--display);
  font-variant-numeric: tabular-nums;
}
.fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { font-size: 0.86rem; color: var(--muted); }
.meta .flag { color: var(--warn); font-weight: 700; }
.meta .errtxt { color: var(--err); font-weight: 700; }
.when { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.when input { min-height: 40px; padding: 6px 10px; font-size: 0.93rem; background: var(--card); }
.when small { font-size: 0.76rem; color: var(--muted); }
.rowbtns { display: flex; gap: 5px; }
.icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}
.icon:hover { border-color: var(--accent); color: var(--accent); }
.icon:disabled { opacity: 0.3; cursor: default; }

.finish { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.summary { margin: 0 0 16px; font-weight: 600; }
.name input { width: min(100%, 440px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 1rem var(--sans);
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary {
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 1.08rem;
  box-shadow: 0 12px 28px -12px rgba(90, 75, 240, 0.8);
}
.btn.ghost { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn.ghost:hover { border-color: #fff; }
.btn.small { min-height: 40px; padding: 6px 16px; font-size: 0.93rem; border-radius: 11px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.progress { min-height: 1.6em; margin: 16px 0 0; color: var(--muted); }
.progress.err { color: var(--err); font-weight: 600; }
.progress.ok { color: var(--ok); font-weight: 600; }

.results { display: grid; gap: 10px; margin-top: 8px; }
.result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 45%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-2) 10%, var(--card));
}
.result strong { overflow-wrap: anywhere; }
.result span { color: var(--muted); font-size: 0.9rem; }
.result a {
  padding: 11px 22px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.private { display: flex; gap: 10px; align-items: flex-start; margin: 18px 4px 0; font-size: 0.92rem; color: var(--muted); }
.private svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }

/* ---------- suggestions ---------- */
.suggest { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
#sForm { display: grid; gap: 18px; }
#sForm input[type="text"], #sForm textarea { width: 100%; }
#sForm .actions { margin-top: 0; }
#sForm .progress { margin-top: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 1120px;
  margin: 80px auto 0;
  padding: 26px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.foot span:first-child { font: 700 1rem var(--display); color: var(--ink); }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; padding: 56px 20px 72px; }
  .portrait { order: -1; justify-self: start; width: min(62%, 240px); margin-left: 8px; }
  .portrait figcaption { left: auto; right: -40px; bottom: 16px; }
  .suggest { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 20px 0; }
}
@media (max-width: 640px) {
  .top-in { padding: 10px 16px; }
  .top nav a { padding: 8px 9px; font-size: 0.88rem; }
  .brand { font-size: 1rem; gap: 8px; }
  .top nav a:first-child { display: none; }
  .panel { padding: 18px 14px; border-radius: 20px; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .when { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .fname { white-space: normal; overflow-wrap: anywhere; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool, .btn { transition: none; }
}

/* ---------- submissions page ---------- */
.subs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.count { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 700; font-size: 0.92rem; }
.subs { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.sub-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.sub-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.sub-top strong { font: 700 1.05rem var(--display); }
.sub-top time { color: var(--muted); font-size: 0.9rem; }
.sub-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { margin-top: 28px; padding: 40px 20px; border: 2px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.gate { display: grid; gap: 14px; max-width: 380px; margin-top: 28px; }
