:root {
  color-scheme: dark;
  --bg: #09090a;
  --panel: #111113;
  --panel-up: #161618;
  --line: #29292d;
  --line-bright: #3b3b40;
  --text: #f2f0eb;
  --muted: #96969f;
  --soft: #c4c2bc;
  --accent: #ff4f40;
  --accent-up: #ff6658;
  --green: #76d6a0;
  --amber: #f3c36b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 5%, rgba(255, 79, 64, .08), transparent 24rem),
    var(--bg);
}

button, input, textarea { font: inherit; }
button { color: inherit; }

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

.topbar {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  height: 88px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--soft);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .01em;
}

.wordmark span, .mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 28px rgba(255,79,64,.2);
}

.text-button {
  border: 0;
  padding: 10px 0 10px 20px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}
.text-button:hover { color: var(--text); }

.workspace {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 32px 60px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  column-gap: clamp(48px, 8vw, 120px);
}

.intro { padding: 25px 0; }
.eyebrow {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(118,214,160,.7);
}
.intro h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 680;
}
.intro h1 em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.intro > p:last-child {
  max-width: 390px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.tool-card {
  position: relative;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(17,17,19,.9);
  box-shadow: 0 30px 90px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
}
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.step {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.link-count {
  flex: none;
  margin-top: 2px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.input-wrap { position: relative; }
textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 20px 58px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: #0c0c0e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  transition: border-color .18s, box-shadow .18s;
}
textarea::placeholder { color: #55555c; }
textarea:focus { border-color: var(--line-bright); box-shadow: 0 0 0 4px rgba(255,255,255,.025); }
.clear-button {
  position: absolute;
  top: 14px;
  right: 14px;
  opacity: 0;
  border: 0;
  padding: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  pointer-events: none;
  font-size: 11px;
}
.clear-button.visible { opacity: 1; pointer-events: auto; }
.clear-button:hover { color: var(--text); }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}
.form-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.primary-button {
  min-width: 190px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 8px 0 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  transition: transform .18s, background .18s;
}
.primary-button:hover:not(:disabled) { background: var(--accent-up); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.button-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(0,0,0,.18);
  font-size: 18px;
}
.is-busy { opacity: .35; pointer-events: none; }
.progress-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}
.progress-panel:not([hidden]) { display: grid; }
.progress-panel strong { display: block; margin-bottom: 6px; font-size: 15px; }
.progress-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.loader {
  width: 42px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.loader span {
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.message {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(118,214,160,.23);
  border-radius: 11px;
  color: var(--green);
  background: rgba(118,214,160,.06);
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.5;
}
.message.error { color: #ff877c; border-color: rgba(255,79,64,.25); background: rgba(255,79,64,.06); }
.message.warning { color: var(--amber); border-color: rgba(243,195,107,.25); background: rgba(243,195,107,.06); }

.details {
  grid-column: 1 / -1;
  margin-top: 88px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.details article { display: flex; gap: 18px; padding: 10px 30px 10px 0; }
.details article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.details article > span { color: #56565d; font-family: Georgia, serif; font-style: italic; font-size: 13px; }
.details strong { font-size: 12px; }
.details p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
footer {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px 40px;
  color: #606067;
  font-size: 10px;
  letter-spacing: .04em;
}

.login-body { display: grid; place-items: center; }
.login-shell { width: min(420px, calc(100% - 40px)); }
.login-shell > .mark { width: 42px; height: 42px; margin: 0 0 24px; border-radius: 13px; }
.login-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.login-card .eyebrow { margin-bottom: 16px; color: var(--accent); }
.login-card h1 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.subtle { margin: 10px 0 30px; color: var(--muted); font-size: 13px; }
.login-form label { display: block; margin-bottom: 9px; color: var(--soft); font-size: 11px; }
.password-row { display: grid; grid-template-columns: 1fr 48px; }
.password-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 11px 0 0 11px;
  outline: none;
  color: var(--text);
  background: #0c0c0e;
}
.password-row input:focus { border-color: var(--line-bright); }
.password-row button { border: 0; border-radius: 0 11px 11px 0; background: var(--accent); cursor: pointer; font-size: 20px; }
.password-row button:hover { background: var(--accent-up); }
.form-error { margin: 12px 0 0; color: #ff877c; font-size: 11px; }
.privacy-note { margin: 20px 3px 0; color: #606067; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.privacy-note span { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .topbar { height: 72px; padding: 0 20px; }
  .workspace { padding: 52px 20px 40px; grid-template-columns: 1fr; }
  .intro { padding: 0 0 46px; }
  .intro h1 { font-size: clamp(51px, 15vw, 72px); }
  .intro > p:last-child { margin-top: 25px; }
  .tool-card { padding: 24px; }
  .details { margin-top: 56px; grid-template-columns: 1fr; }
  .details article, .details article + article { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  footer { padding: 20px 20px 30px; }
}

@media (max-width: 520px) {
  .wordmark { font-size: 0; }
  .workspace { padding-top: 38px; }
  .intro h1 { letter-spacing: -.055em; }
  .tool-card { padding: 20px; border-radius: 18px; }
  .card-heading { display: block; }
  .link-count { display: inline-block; margin-top: 12px; }
  textarea { min-height: 190px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .login-card { padding: 28px 24px; }
}

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