:root {
  color-scheme: dark;
  --hy-bg: oklch(0% 0 0);
  --hy-panel: oklch(7% 0.008 270/0.88);
  --hy-panel-strong: oklch(11% 0.013 270/0.94);
  --hy-hover: oklch(17% 0.022 270/0.92);
  --hy-line: oklch(62% 0.055 280/0.25);
  --hy-text: oklch(96% 0.012 260);
  --hy-muted: oklch(76% 0.027 265);
  --hy-quiet: oklch(61% 0.025 265);
  --hy-cyan: oklch(83% 0.15 205);
  --hy-blue: oklch(76% 0.15 270);
  --hy-violet: oklch(77% 0.18 315);
  --hy-pink: oklch(78% 0.19 350);
  --hy-amber: oklch(87% 0.16 85);
  --hy-gold: oklch(82% 0.18 78);
  --hy-green: oklch(83% 0.16 155);
  --hy-red: oklch(78% 0.15 25);
  --hy-glow: oklch(65% 0.2 310/0.16);
  --hy-rainbow: conic-gradient(
    from 0deg,
    var(--hy-cyan),
    var(--hy-blue),
    var(--hy-violet),
    var(--hy-pink),
    var(--hy-amber),
    var(--hy-green),
    var(--hy-cyan)
  );
  --hy-glass:
    radial-gradient(
      120% 100% at 12% 0%,
      oklch(83% 0.15 205/0.07),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      var(--hy-panel-strong),
      var(--hy-panel) 48%,
      oklch(2% 0.01 270/0.96)
    );
  --hy-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --hy-shadow: 0 18px 58px oklch(0% 0 0/0.52), 0 0 42px oklch(65% 0.2 310/0.08);
  --hy-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hy-spring: cubic-bezier(0.34, 1.26, 0.64, 1);
  --hy-max: 1220px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--hy-bg);
}
body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--hy-text);
  background: var(--hy-bg);
  font:
    16px/1.6 ui-sans-serif,
    system-ui,
    sans-serif;
  isolation: isolate;
}
body:before,
body:after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}
body:before {
  opacity: 0.72;
  background:
    radial-gradient(
      ellipse 72% 64% at 79% -12%,
      oklch(65% 0.2 310/0.2),
      transparent 68%
    ),
    radial-gradient(
      ellipse 58% 52% at 8% 8%,
      oklch(87% 0.16 85/0.1),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 60% at 50% 110%,
      oklch(83% 0.15 205/0.08),
      transparent 72%
    );
  filter: blur(12px);
  animation: hyurl-ambient-chroma 18s ease-in-out infinite alternate;
}
body:after {
  opacity: 0.18;
  background-image:
    linear-gradient(oklch(100% 0 0/0.08) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0/0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  animation: hyurl-field-breathe 11s ease-in-out infinite;
}
a {
  color: var(--hy-cyan);
  text-underline-offset: 0.18em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
input,
select {
  transition:
    border-color 0.18s var(--hy-ease),
    background-color 0.18s var(--hy-ease),
    color 0.18s var(--hy-ease),
    transform 0.28s var(--hy-spring),
    box-shadow 0.28s var(--hy-ease);
}
button:active {
  transform: scale(0.97);
}
.shell {
  width: min(var(--hy-max), 100%);
  margin-inline: auto;
  padding-inline: 28px;
}
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hy-line);
  background: color-mix(in oklch, var(--hy-bg) 74%, transparent);
  backdrop-filter: blur(18px) saturate(145%);
}
.topbar:after,
.footer:before {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    var(--hy-cyan),
    var(--hy-violet),
    var(--hy-pink),
    var(--hy-amber),
    transparent
  );
  opacity: 0.58;
  animation: hyurl-edge-flow 9s linear infinite;
}
.topbar:after {
  bottom: -1px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hy-text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.brand em {
  color: var(--hy-amber);
  font-style: normal;
}
.mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--hy-cyan);
  background:
    linear-gradient(var(--hy-panel-strong), var(--hy-panel-strong)) padding-box,
    var(--hy-rainbow) border-box;
  box-shadow: 0 0 28px var(--hy-glow);
  font-size: 22px;
}
.mark:after {
  position: absolute;
  inset: -30%;
  content: "";
  background: linear-gradient(
    115deg,
    transparent 35%,
    oklch(100% 0 0/0.22),
    transparent 65%
  );
  transform: translateX(-80%);
  animation: hyurl-sheen 6s ease-in-out infinite;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--hy-line);
  border-radius: 12px;
  color: var(--hy-text);
  background: var(--hy-panel-strong);
  font-size: 12px;
  font-weight: 650;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--hy-violet);
  background: var(--hy-hover);
  box-shadow: 0 0 22px oklch(77% 0.18 315/0.12);
}
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--hy-cyan);
  outline-offset: 3px;
}
.btn.primary {
  color: var(--hy-bg);
  border-color: transparent;
  background: linear-gradient(
    110deg,
    var(--hy-cyan),
    var(--hy-violet) 54%,
    var(--hy-amber)
  );
  background-size: 180% 100%;
  box-shadow: 0 12px 32px var(--hy-glow);
  animation: hyurl-button-chroma 7s ease-in-out infinite;
}
.btn.gold {
  color: var(--hy-bg);
  border-color: transparent;
  background: var(--hy-amber);
  box-shadow: 0 0 22px oklch(87% 0.16 85/0.12);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  min-height: 38px;
  padding-inline: 12px;
  font-size: 11px;
}
.eyebrow {
  color: var(--hy-amber);
  font: 700 11px/1.2 var(--hy-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
  padding: 82px 0 120px;
}
.hero-copy,
.shortener {
  animation: hyurl-rise 0.65s var(--hy-ease) both;
}
.shortener {
  animation-delay: 90ms;
}
.hero h1 {
  max-width: 760px;
  margin: 18px 0 26px;
  color: var(--hy-text);
  font-size: clamp(56px, 8.5vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.095em;
  text-shadow: 0 0 52px oklch(96% 0.012 260/0.08);
}
.hero h1 span {
  color: var(--hy-amber);
  text-shadow: 0 0 35px oklch(87% 0.16 85/0.28);
}
.lede {
  max-width: 620px;
  margin: 0 0 29px;
  color: var(--hy-muted);
  font-size: 19px;
}
.hero-notes {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--hy-quiet);
  font-size: 13px;
}
.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hy-cyan);
  box-shadow: 0 0 12px currentColor;
}
.gold-dot {
  color: var(--hy-amber);
  background: currentColor;
}
.chroma-dot {
  color: var(--hy-violet);
  background: currentColor;
}
.card {
  position: relative;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 28px;
  background:
    var(--hy-glass) padding-box,
    var(--hy-rainbow) border-box;
  box-shadow: var(--hy-shadow);
  backdrop-filter: blur(24px) saturate(145%);
}
.card:before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  content: "";
  background: var(--hy-rainbow);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.62;
  animation: hyurl-edge-breathe 5s ease-in-out infinite;
}
.shortener {
  overflow: hidden;
}
.shortener:after {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -155px;
  top: -160px;
  border: 1px solid color-mix(in oklch, var(--hy-violet) 52%, transparent);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px color-mix(in oklch, var(--hy-pink) 10%, transparent),
    0 0 0 58px color-mix(in oklch, var(--hy-cyan) 7%, transparent),
    0 0 48px oklch(77% 0.18 315/0.18);
  content: "";
  pointer-events: none;
  animation: hyurl-orbit 20s linear infinite;
}
.shortener > * {
  position: relative;
  z-index: 1;
}
h2 {
  margin: 10px 0 14px;
  color: var(--hy-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.field {
  margin: 0 0 16px;
}
label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--hy-muted);
  font-size: 13px;
  font-weight: 650;
}
.hint {
  color: var(--hy-quiet);
  font-size: 12px;
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--hy-line);
  border-radius: 10px;
  outline: 0;
  background: oklch(2% 0.01 270/0.82);
}
input::placeholder {
  color: var(--hy-quiet);
}
input:focus,
select:focus {
  border-color: var(--hy-cyan);
  box-shadow:
    0 0 0 4px oklch(83% 0.15 205/0.13),
    0 0 22px oklch(83% 0.15 205/0.12);
}
.row {
  display: flex;
  gap: 10px;
}
.grow {
  min-width: 0;
  flex: 1;
}
.mode {
  width: 150px;
}
.mode-note {
  width: 150px;
  padding: 10px 0;
  color: var(--hy-text);
  font-weight: 700;
  line-height: 1.35;
}
.mode-note .hint {
  font-weight: 500;
}
.shorten-submit {
  width: 100%;
  margin-top: 2px;
}
.fineprint,
.muted {
  color: var(--hy-muted);
}
.fineprint {
  margin: 15px 0 0;
  color: var(--hy-quiet);
  font-size: 12px;
}
section {
  position: relative;
  padding: 70px 0;
  border-top: 1px solid var(--hy-line);
}
.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  position: relative;
  min-height: 185px;
  padding: 22px;
  border: 1px solid var(--hy-line);
  border-radius: 16px;
  background: var(--hy-glass);
  box-shadow: inset 0 1px 0 oklch(100% 0 0/0.05);
  transition:
    transform 0.35s var(--hy-spring),
    border-color 0.28s var(--hy-ease),
    box-shadow 0.28s var(--hy-ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--hy-violet);
  box-shadow:
    0 18px 40px oklch(0% 0 0/0.3),
    0 0 24px oklch(77% 0.18 315/0.12);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in oklch, var(--hy-cyan) 48%, var(--hy-line));
  border-radius: 11px;
  color: var(--hy-cyan);
  background: color-mix(in oklch, var(--hy-cyan) 9%, var(--hy-bg));
  font-size: 20px;
}
.gold-icon {
  color: var(--hy-amber);
  border-color: color-mix(in oklch, var(--hy-amber) 52%, var(--hy-line));
  background: color-mix(in oklch, var(--hy-amber) 9%, var(--hy-bg));
}
.chroma-icon {
  color: var(--hy-violet);
  border-color: color-mix(in oklch, var(--hy-violet) 52%, var(--hy-line));
  background: color-mix(in oklch, var(--hy-violet) 9%, var(--hy-bg));
}
.green-icon {
  color: var(--hy-cyan);
  border-color: color-mix(in oklch, var(--hy-cyan) 42%, var(--hy-line));
  background: color-mix(in oklch, var(--hy-cyan) 7%, var(--hy-bg));
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.feature p,
.step p,
.faq p {
  margin: 0;
  color: var(--hy-muted);
  font-size: 14px;
}
.explain {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hy-amber);
  border-radius: 50%;
  color: var(--hy-amber);
  font-weight: 800;
  box-shadow: 0 0 15px oklch(87% 0.16 85/0.12);
}
.step h3 {
  margin: 2px 0 3px;
  font-size: 16px;
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.faq details {
  padding: 15px 17px;
  border: 1px solid var(--hy-line);
  border-radius: 12px;
  background: var(--hy-panel);
}
.faq details[open] {
  border-color: color-mix(in oklch, var(--hy-violet) 58%, var(--hy-line));
  background: var(--hy-hover);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
}
.faq p {
  margin-top: 12px;
}
.auth,
.dash {
  display: none;
  max-width: 720px;
  margin: 50px auto 110px;
}
.auth.show,
.dash.show {
  display: block;
  animation: hyurl-rise 0.5s var(--hy-ease) both;
}
.auth-head,
.dashbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.auth-form {
  margin-top: 22px;
}
.full {
  width: 100%;
}
.dash {
  max-width: var(--hy-max);
}
.dash-create {
  margin: 22px 0;
}
.table-wrap {
  overflow: auto;
  margin-top: 20px;
  border: 1px solid var(--hy-line);
  border-radius: 13px;
  background: oklch(2% 0.01 270/0.55);
}
.table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--hy-line);
  text-align: left;
  font-size: 13px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table th {
  color: var(--hy-quiet);
  font-weight: 650;
}
.pill,
.preview-chip {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--hy-amber);
  background: color-mix(in oklch, var(--hy-amber) 10%, transparent);
  font-size: 11px;
}
.preview-chip {
  max-width: 180px;
  overflow: hidden;
  color: var(--hy-violet);
  background: color-mix(in oklch, var(--hy-violet) 10%, transparent);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.result {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid color-mix(in oklch, var(--hy-violet) 52%, var(--hy-line));
  border-radius: 13px;
  background: var(--hy-panel);
  animation: hyurl-pop 0.35s var(--hy-spring) both;
}
.result.show {
  display: block;
}
.result.error,
.status.error {
  color: var(--hy-red);
}
.result-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hy-green);
  font-weight: 800;
}
.result-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.result-link a {
  word-break: break-all;
  font: 700 16px var(--hy-mono);
}
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qr-note {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.qr {
  width: 160px;
  height: 160px;
  padding: 8px;
  border-radius: 12px;
  background: white;
}
.admin {
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid var(--hy-line);
}
.admin pre {
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}
.admin-gate {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--hy-amber);
  color: var(--hy-muted);
  background: color-mix(in oklch, var(--hy-amber) 8%, var(--hy-bg));
}
.expired-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}
.expired-card {
  width: min(520px, 100%);
  text-align: center;
}
.expired-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid var(--hy-violet);
  border-radius: 18px;
  color: var(--hy-amber);
  background: var(--hy-panel-strong);
  box-shadow: 0 0 30px var(--hy-glow);
  font-size: 28px;
}
.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 35px;
  border-top: 1px solid var(--hy-line);
  color: var(--hy-quiet);
  font-size: 13px;
}
.footer:before {
  top: -1px;
}
.footer span {
  color: var(--hy-muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes hyurl-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hyurl-pop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hyurl-ambient-chroma {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    filter: blur(12px) hue-rotate(0deg);
  }
  50% {
    transform: translate3d(1%, 2%, 0) scale(1.04);
    filter: blur(17px) hue-rotate(18deg);
  }
  100% {
    transform: translate3d(3%, -1%, 0) scale(1.08);
    filter: blur(12px) hue-rotate(-10deg);
  }
}
@keyframes hyurl-field-breathe {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.24;
  }
}
@keyframes hyurl-edge-flow {
  to {
    background-position: 240px 0;
  }
}
@keyframes hyurl-edge-breathe {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.86;
  }
}
@keyframes hyurl-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hyurl-sheen {
  0%,
  65% {
    transform: translateX(-80%);
  }
  85%,
  100% {
    transform: translateX(80%);
  }
}
@keyframes hyurl-button-chroma {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 820px) {
  .shell {
    padding-inline: 18px;
  }
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 16px;
  }
  .nav {
    gap: 6px;
  }
  .nav .ghost {
    display: none;
  }
  .nav .gold {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 50px 0 70px;
  }
  .hero h1 {
    font-size: clamp(54px, 15vw, 76px);
  }
  .lede {
    font-size: 17px;
  }
  .card {
    border-radius: 18px;
    padding: 21px;
  }
  .features,
  .faq,
  .explain {
    grid-template-columns: 1fr;
  }
  .explain {
    gap: 32px;
  }
  .row,
  .dashbar,
  .auth-head {
    flex-direction: column;
  }
  .row > *,
  .mode,
  .mode-note {
    width: 100%;
  }
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .table-wrap {
    max-width: 100%;
    margin-inline: -2px;
  }
  .dash {
    min-width: 0;
  }
}
