/* Sealed — Developer/SaaS-tool genre. Ground #0C0B11, accent #FFF313, blue #298DFF (all sampled). */
:root {
  --bg: #0C0B11;
  --panel: #131218;
  --line: #26252E;
  --ink: #F7F7EE;
  --mute: #8F8F9B;
  --dim2: #5C5C68;
  --acc: #FFF313;
  --blue: #298DFF;
  --red: #FF5949;
  --display: "Inter Tight", "Inter", "SF Pro Display", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
}
a { color: var(--blue); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.dim { color: var(--mute); }
.dim2 { color: var(--dim2); }
.acc { color: var(--acc); }

.top, main, .foot { width: min(100% - 48px, 860px); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 0 0; gap: 16px; flex-wrap: wrap; }
.mark { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.mark::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--acc); margin-right: 10px; vertical-align: 1px; }

main { flex: 1; padding: clamp(48px, 10vh, 120px) 0 80px; }

.display {
  font-size: clamp(3rem, 10vw, 7.6rem); font-weight: 700; line-height: .92;
  letter-spacing: -.045em; margin: 0 0 32px;
}
.display-s { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; word-break: break-word; }
.lede { max-width: 58ch; font-size: 19px; color: #C9C9CF; margin: 0 0 56px; }

/* drop zone */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 220px; border: 1px dashed var(--line); border-radius: 4px; cursor: pointer;
  background: var(--panel); padding: 32px; text-align: center;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.drop:hover, .drop:focus-visible { border-color: var(--mute); outline: none; }
.drop.over { border-color: var(--acc); background: #16150c; transform: scale(1.005); }
.drop.has { border-style: solid; border-color: var(--acc); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; word-break: break-word; max-width: 100%; }

.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.opt { display: flex; flex-direction: column; gap: 8px; }
.opt label { text-transform: uppercase; }
select, input[type=password] {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%;
  transition: border-color .2s var(--ease);
}
select:focus, input:focus { outline: none; border-color: var(--acc); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: var(--dim2); }

.btn {
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block;
  padding: 14px 22px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s;
}
.btn:hover { border-color: var(--mute); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--acc); color: var(--bg); border-color: var(--acc); width: 100%; padding: 18px; font-size: 18px; }
.btn.primary:hover { background: #fff76a; }
.btn.primary:disabled { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; color: var(--red); border-color: #3a2220; }
.btn.danger:hover { border-color: var(--red); }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* progress narrative */
.progress { margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--dim2); transition: color .3s; }
.steps li.on { color: var(--ink); }
.steps li.done { color: var(--mute); }
.steps li.on .idx { color: var(--acc); }
.steps li.done .state::before { content: "done"; color: var(--acc); }
.steps li.on .state::before { content: "…"; color: var(--acc); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: .2; } }
.bar { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .25s var(--ease); }
#progress-note, #recv-note { margin-top: 12px; }

/* result */
.result { margin-top: 8px; }
.result.err .display-s { color: var(--red); }
.linkbox { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; margin: 12px 0; }
.linkbox code { font-family: var(--mono); font-size: 14px; line-height: 1.5; background: var(--panel); border: 1px solid var(--acc); border-radius: 4px; padding: 14px 16px; word-break: break-all; color: var(--ink); }
.linkbox .btn { align-self: stretch; }
.btn.copied { border-color: var(--acc); color: var(--acc); }

/* your links */
.mine { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 16px; }
.mine h2 { text-transform: uppercase; font-weight: 400; margin: 0 0 8px; }
.mine ul { list-style: none; padding: 0; margin: 0; }
.mine li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mine li .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine li .name a { color: var(--ink); text-decoration: none; }
.mine li .name a:hover { color: var(--acc); }
.mine li button { font: inherit; font-family: var(--mono); font-size: 12px; background: none; border: 0; color: var(--mute); cursor: pointer; padding: 4px 0; }
.mine li button:hover { color: var(--red); }

/* footer — rising trait in the brief; give it real weight */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.foot h3 { text-transform: uppercase; font-weight: 400; margin: 0 0 8px; }
.foot p { margin: 0; font-size: 14px; color: #B5B5BE; }

/* reveal sequence */
.reveal { opacity: 0; transform: translateY(14px); animation: in .7s var(--ease) forwards; }
.d1 { animation-delay: 90ms; } .d2 { animation-delay: 180ms; } .d3 { animation-delay: 270ms; } .d4 { animation-delay: 360ms; }
@keyframes in { to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .opts { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:last-child { grid-column: 1 / -1; }
  .linkbox { grid-template-columns: 1fr; }
  .mine li { grid-template-columns: 1fr auto; }
  .mine li .st { grid-column: 1 / -1; white-space: normal; }
}
@media (max-width: 440px) { .foot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .steps li.on .state::before { animation: none; }
  .drop, .btn, .bar i { transition: none; }
}

/* ---- v2 additions ---- */
.tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 4px; width: max-content; margin-bottom: 16px; overflow: hidden; }
.tab { font: inherit; font-size: 12px; text-transform: uppercase; background: transparent; color: var(--mute); border: 0; padding: 10px 18px; cursor: pointer; }
.tab.on { background: var(--ink); color: var(--bg); }
.tab:not(.on):hover { color: var(--ink); }
#drop-list { display: block; margin-top: 10px; color: var(--mute); white-space: pre-line; text-align: left; max-width: 100%; }
.row.tight { margin-top: 12px; gap: 8px; }
.btn.small { padding: 8px 14px; font-size: 13px; font-weight: 500; }
textarea { font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 14px; width: 100%; resize: vertical; min-height: 160px; }
textarea:focus { outline: none; border-color: var(--acc); }
textarea::placeholder { color: var(--dim2); }
input[type=text] { font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%; }
input[type=text]:focus { outline: none; border-color: var(--acc); }
#send-form > .opt { margin-top: 24px; }
#gate { margin-bottom: 24px; }
.pending { display: grid; gap: 6px; border: 1px solid var(--acc); border-radius: 4px; padding: 16px; margin-bottom: 24px; background: #16150c; justify-items: start; }
.pending .btn { margin-top: 6px; }
.qr-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; margin: 20px 0 8px; }
.qr-row img { border: 1px solid var(--line); border-radius: 4px; background: #fff; image-rendering: pixelated; }
.qr-row p { margin: 0 0 8px; }
.msg { font-size: 17px; color: #C9C9CF; border-left: 2px solid var(--acc); padding: 4px 0 4px 14px; margin: 0 0 20px; white-space: pre-wrap; word-break: break-word; }
.textbox { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; margin: 12px 0; }
.textbox pre { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.5; background: var(--panel); border: 1px solid var(--acc); border-radius: 4px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; color: var(--ink); max-height: 60vh; overflow: auto; }
.report { margin-top: 56px; }
.linkbtn { font: inherit; background: none; border: 0; color: var(--mute); text-decoration: underline; cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--red); }
.mine li .st { font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
@media (max-width: 720px) {
  .qr-row { grid-template-columns: 1fr; }
  .textbox { grid-template-columns: 1fr; }
}
