:root {
  color-scheme: dark;
  --bg: #101014;
  --panel: #18181f;
  --panel-soft: #1f1f27;
  --ink: #f5f3ef;
  --muted: #a4a2ae;
  --faint: #777581;
  --line: rgba(255, 255, 255, .11);
  --pink: #ff477e;
  --cyan: #5de4e7;
  --green: #a7f0c0;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --mono: 'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 82% 0%, rgba(255, 71, 126, .10), transparent 34rem),
    radial-gradient(ellipse at 4% 44%, rgba(93, 228, 231, .055), transparent 32rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.page-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 700 19px var(--display); letter-spacing: -.07em; }
.brand-light { color: #b8b6c1; font-weight: 500; }
.brand-mark { position: relative; display: inline-block; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.72); border-radius: 8px; transform: rotate(-8deg); }
.brand-mark span:first-child { position: absolute; inset: 5px 6px 5px 9px; border: 1.5px solid var(--pink); border-radius: 50%; }
.brand-mark span:last-child { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); right: 3px; top: 2px; box-shadow: 0 0 10px rgba(93,228,231,.7); }
.topbar-note, .eyebrow, .section-kicker, .preview-ready, .preview-type, .detail-label, .footer { font: 500 10px var(--mono); letter-spacing: .13em; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #c1bfca; }
.live-dot { width: 6px; height: 6px; border-radius: 100%; background: var(--cyan); box-shadow: 0 0 12px rgba(93,228,231,.8); }

main { width: min(100%, 910px); margin: 0 auto; }
.intro { padding: 78px 0 38px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 23px; color: var(--cyan); }
.eyebrow-line { width: 23px; height: 1px; background: currentColor; }
.eyebrow-index { margin-left: auto; color: var(--faint); }
h1 { margin: 0; font: 600 clamp(50px, 7.5vw, 82px)/.98 var(--display); letter-spacing: -.075em; }
h1 span { color: #8d8b98; }
.intro-copy { max-width: 420px; margin: 21px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.workbench { position: relative; padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: linear-gradient(145deg, rgba(31,31,39,.96), rgba(22,22,28,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.workbench::before { position: absolute; top: -1px; left: 30px; width: 68px; height: 2px; content: ''; background: linear-gradient(90deg, var(--cyan), var(--pink)); }
.workbench-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.section-kicker { margin: 0 0 9px; color: var(--cyan); }
.section-kicker span { color: #686672; }
h2 { margin: 0; font: 600 25px var(--display); letter-spacing: -.045em; }
.reset-button { border: 0; padding: 6px 0; background: transparent; color: #aaa8b3; cursor: pointer; font-size: 12px; }
.reset-button:hover { color: var(--ink); }
.reset-button span { font-size: 17px; vertical-align: -1px; margin-right: 3px; }
label { display: block; margin: 0 0 10px; color: #dedce4; font-size: 12px; font-weight: 600; }
.input-row { display: flex; gap: 10px; }
.input-wrap { min-width: 0; flex: 1; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 7px 0 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; background: #111116; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: rgba(93,228,231,.65); box-shadow: 0 0 0 3px rgba(93,228,231,.08); }
.input-prefix { color: var(--pink); font-size: 18px; }
.input-wrap input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.input-wrap input::placeholder { color: #706e79; }
.paste-button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.11); border-radius: 6px; padding: 7px 9px; background: #1d1c23; color: #e5e3e8; font-size: 11px; cursor: pointer; }
.paste-button:hover { border-color: rgba(255,255,255,.28); background: #26252d; }
.paste-button span { margin-left: 4px; color: #827f8b; font: 10px var(--mono); }
.check-button, .share-button { border: 0; border-radius: 8px; background: var(--pink); color: #200b13; font-weight: 700; cursor: pointer; transition: transform .16s, filter .16s, background .16s; }
.check-button { min-width: 142px; padding: 0 17px; font-size: 13px; }
.check-button span { margin-left: 7px; font-size: 17px; vertical-align: -1px; }
.check-button:hover, .share-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.field-hint { margin: 10px 0 0; color: var(--faint); font-size: 11px; }
.form-message, .action-message { min-height: 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-message:not(:empty) { margin-top: 12px; }
.form-message[data-kind="error"], .action-message[data-kind="error"] { color: #ff9bb9; }
.form-message[data-kind="success"], .action-message[data-kind="success"] { color: var(--green); }

.preview-card { margin-top: 27px; padding: 21px; border: 1px solid rgba(93,228,231,.23); border-radius: 10px; background: linear-gradient(130deg, rgba(18,35,38,.58), rgba(21,21,27,.93) 55%); animation: lift-in .24s ease-out both; }
@keyframes lift-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.preview-topline { display: flex; align-items: center; justify-content: space-between; }
.preview-ready { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; }
.check-mark { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(167,240,192,.13); font: 12px var(--sans); }
.preview-type { color: #898792; font-size: 9px; }
.preview-card h3 { margin: 15px 0 4px; font: 600 19px var(--display); letter-spacing: -.035em; }
.preview-caption { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.link-detail { display: flex; flex-direction: column; gap: 9px; margin-top: 19px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 6px; background: rgba(0,0,0,.15); }
.detail-label { color: #8e8c98; font-size: 9px; }
.detail-value { overflow-wrap: anywhere; color: #e8e6eb; font: 12px/1.5 var(--mono); }
.action-row { display: flex; gap: 9px; margin-top: 17px; }
.share-button, .copy-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 7px; padding: 0 16px; font-size: 12px; }
.share-button { flex: 1; }
.share-icon { font-size: 18px; }
.share-button:disabled { cursor: not-allowed; background: #45434d; color: #bbb9c2; }
.copy-button { border: 1px solid rgba(255,255,255,.17); background: transparent; color: var(--ink); cursor: pointer; }
.copy-button:hover { background: rgba(255,255,255,.07); }
.share-note { margin: 11px 0 0; color: #85838e; font-size: 11px; line-height: 1.5; }
.action-message:not(:empty) { margin-top: 9px; }

.privacy-note { display: flex; gap: 14px; margin: 25px 0 0; padding: 18px 20px; border-left: 2px solid var(--cyan); background: rgba(255,255,255,.025); }
.privacy-icon { color: var(--cyan); font-size: 19px; line-height: 1.2; }
.privacy-note strong { display: block; margin-bottom: 5px; color: #e8e6eb; font-size: 12px; }
.privacy-note p { max-width: 720px; margin: 0; color: #95939e; font-size: 11px; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 50px 0 26px; color: #777580; font-size: 9px; letter-spacing: .1em; }
.footer-separator { padding: 0 7px; color: var(--pink); }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 36px, 520px); }
  .topbar { height: 70px; }
  .topbar-note { font-size: 8px; letter-spacing: .08em; }
  .intro { padding: 58px 0 29px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: clamp(48px, 13vw, 68px); }
  .intro-copy { max-width: 330px; font-size: 14px; }
  .workbench { padding: 22px 18px; }
  .workbench::before { left: 18px; }
  h2 { font-size: 22px; }
  .input-row { flex-direction: column; }
  .input-wrap { flex: none; width: 100%; height: 54px; }
  .check-button { min-height: 48px; width: 100%; }
  .preview-card { padding: 17px 14px; }
  .action-row { flex-direction: column; }
  .share-button, .copy-button { width: 100%; min-height: 48px; }
  .privacy-note { margin-top: 20px; padding: 16px 14px; }
  .footer { flex-direction: column; gap: 8px; padding-top: 38px; }
}

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