.demo-banner {
  background: #15345b;
  color: #fff;
  text-align: center;
  padding: 7px 14px;
  font-size: 12px;
}
.nav-logo {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #2367c7;
  letter-spacing: 0.02em;
}
.hero-visual {
  height: 260px;
  background: #cde5ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: #1763ce;
}
.hero-visual div {
  font-size: 120px;
}
.hero-visual span {
  position: absolute;
  font-size: 34px;
}
.hero-visual span:nth-child(2) {
  top: 12%;
  left: 12%;
}
.hero-visual span:nth-child(3) {
  top: 8%;
  right: 15%;
}
.hero-visual span:nth-child(4) {
  bottom: 10%;
  right: 12%;
}
.thumb img,
.bigpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bigpic {
  overflow: hidden;
}
.narrow {
  max-width: 650px;
  margin: 20px auto;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}
.check input {
  width: auto;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.tab {
  background: white;
  border: 1px solid #cfddf0;
  border-radius: 9px;
  padding: 10px 16px;
  color: #234267;
}
.tab.active {
  background: #1763dc;
  color: white;
  border-color: #1763dc;
}
.stack {
  display: grid;
  gap: 12px;
}
.match-score {
  margin: 12px 0 4px;
  color: #095bc4;
  font-size: 13px;
  font-weight: 800;
}
.match-reasons {
  margin: 0;
  color: #667c99;
  font-size: 12px;
  line-height: 1.55;
}
.card .match-reasons {
  white-space: normal;
}
.list-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid #dfebfa;
  border-radius: 12px;
  padding: 16px;
}
.list-row h3 {
  margin: 0;
  font-size: 16px;
}
.list-row p {
  margin: 4px 0 0;
  color: #687d98;
  font-size: 13px;
}
#message:not(:empty) {
  padding: 12px;
  background: #e7f7ed;
  border: 1px solid #a8daba;
  border-radius: 10px;
  margin-bottom: 16px;
  color: #205b3c;
}
@media (max-width: 760px) {
  .hero-visual {
    display: none;
  }
  .list-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* SSS+ hero system: original cyber-radar composition for LostLink. */
.hero-ssplus {
  min-height: 560px;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(#a9caff16 1px, transparent 1px),
    linear-gradient(90deg, #a9caff16 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000d 0%, transparent 82%);
}
.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 10px 7px 9px;
  border: 1px solid #a9c7ff35;
  border-radius: 999px;
  background: #07172db0;
  box-shadow: inset 0 1px #ffffff13, 0 8px 30px #0000002b;
  color: #c8dbff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.signal-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52f1b4;
  box-shadow: 0 0 0 4px #52f1b425, 0 0 16px #52f1b4;
  animation: status-pulse 1.6s ease-out infinite;
}
.signal-chip span {
  padding: 3px 6px;
  border-radius: 5px;
  background: #53efb51c;
  color: #69f4bf;
  font-size: 9px;
}
.hero-ssplus .actions {
  max-width: 610px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
}
.trust-row span {
  display: grid;
  gap: 2px;
  padding-left: 11px;
  border-left: 1px solid #a2c3ff5c;
}
.trust-row b {
  color: #edf5ff;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.trust-row small {
  color: #9fb1ca;
  font-size: 11px;
}
.hero-ssplus .hero-visual {
  isolation: isolate;
  width: min(100%, 410px);
  aspect-ratio: 1;
  justify-self: end;
  overflow: hidden;
  border: 1px solid #ffffff3e;
  border-radius: 50%;
  transform: none;
  background:
    radial-gradient(circle, #e9f7ff 0 5%, #75c8ff 6%, #346ee5 25%, #162d70 49%, #0b1532 70%, transparent 71%);
  box-shadow: 0 0 0 14px #7ba7ff0a, 0 0 0 28px #7ba7ff07, 0 42px 110px #00000073, inset 0 0 80px #a5c6ff5c;
}
.hero-ssplus .hero-visual::before {
  display: none;
}
.radar-ring {
  position: absolute;
  z-index: -1;
  border: 1px solid #c7e6ff66;
  border-radius: 50%;
}
.hero-ssplus .ring-a { inset: 10%; animation: radar-breathe 3.2s ease-in-out infinite; }
.hero-ssplus .ring-b { inset: 25%; border-color: #ffffff5a; animation: radar-breathe 3.2s 0.7s ease-in-out infinite; }
.scan-line {
  position: absolute;
  z-index: -1;
  width: 52%;
  height: 52%;
  right: 50%;
  bottom: 50%;
  transform-origin: 100% 100%;
  background: conic-gradient(from 90deg, transparent 0 70%, #a9e1ff70 90%, transparent 100%);
  animation: radar-sweep 5.5s linear infinite;
}
.item-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31%;
  aspect-ratio: 1;
  border: 1px solid #ffffff8e;
  border-radius: 34%;
  background: linear-gradient(145deg, #ffffff75, #d5dcff21);
  box-shadow: 0 0 38px #b8e5ff9c, inset 0 1px #fff;
  font-size: clamp(48px, 7vw, 86px);
  animation: core-float 4.5s ease-in-out infinite;
}
.hero-ssplus .item-core { animation: core-float 4.5s ease-in-out infinite; }
.hero-ssplus .satellite {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #ffffff60;
  border-radius: 18px;
  background: #0a1c41b5;
  box-shadow: 0 12px 28px #00000046, inset 0 1px #ffffff1e;
  font-size: 28px;
}
.satellite-a { top: 16%; left: 16%; animation: satellite-float 4.3s ease-in-out infinite; }
.satellite-b { top: 20%; right: 14%; animation: satellite-float 5s 0.8s ease-in-out infinite; }
.satellite-c { bottom: 15%; left: 20%; animation: satellite-float 4.8s 1.3s ease-in-out infinite; }
.beacon {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9bffdb;
  box-shadow: 0 0 0 5px #9bffdb27, 0 0 22px #8affd4;
  animation: status-pulse 2s infinite;
}
.beacon-a { right: 23%; bottom: 28%; }
.beacon-b { left: 31%; top: 40%; animation-delay: 0.9s; }
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 #52f1b459, 0 0 12px #52f1b4; }
  75%,100% { box-shadow: 0 0 0 9px #52f1b400, 0 0 16px #52f1b4; }
}
@keyframes radar-breathe {
  0%,100% { transform: scale(0.97); opacity: 0.5; }
  50% { transform: scale(1.035); opacity: 1; }
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes core-float {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}
@keyframes satellite-float {
  0%,100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(8px, -14px, 0) rotate(5deg); }
}
@media (max-width: 760px) {
  .hero-ssplus { min-height: unset; }
  .hero-ssplus .hero-visual { display: none; }
  .signal-chip { font-size: 9px; }
  .trust-row { gap: 12px; }
}

/* Intro and transitions are visual only; they never block interaction. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 32%, #3996ff, #1252be 55%, #0a275b);
  color: #fff;
  pointer-events: none;
  animation: intro-exit 0.45s ease 1.55s forwards;
}

/* Ambient background: visual depth without reducing form readability. */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 16%, #8cc8ff55 0 2px, transparent 3px),
    radial-gradient(circle at 88% 72%, #9d8cff45 0 2px, transparent 3px),
    linear-gradient(135deg, #eef8ff 0%, #f5f3ff 48%, #edf8ff 100%);
  background-size: 42px 42px, 58px 58px, auto;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.6;
}
body::before {
  top: -20vw;
  left: -14vw;
  background: radial-gradient(circle, #58aaff66 0%, #87bcff22 48%, transparent 71%);
  animation: ambient-drift-a 18s ease-in-out infinite alternate;
}
body::after {
  right: -17vw;
  bottom: -25vw;
  background: radial-gradient(circle, #9b78ff55 0%, #6ab8ff28 53%, transparent 72%);
  animation: ambient-drift-b 22s ease-in-out infinite alternate;
}
.bar {
  background: #ffffffcc;
  border-bottom-color: #ffffffaa;
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 10px 32px #173f7710;
}
.logo {
  text-shadow: 0 5px 20px #297dea3a;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #ffffffd9;
  background:
    linear-gradient(130deg, #e8f7ffdf 0%, #dceaffd9 48%, #eee4ffdc 100%);
  box-shadow: 0 28px 70px #325d9b22;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 270px;
  height: 270px;
  right: -80px;
  top: -130px;
  background: #ffffff8c;
  animation: orb-pulse 7s ease-in-out infinite;
}
.hero::after {
  width: 160px;
  height: 160px;
  left: 42%;
  bottom: -115px;
  background: #7367f044;
  animation: orb-pulse 9s 1s ease-in-out infinite reverse;
}
.hero h1 {
  background: linear-gradient(110deg, #113a78, #146de0 50%, #7046bd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-visual {
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1px #ffffffd9, 0 24px 55px #1d71d237;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed #3b8cf083;
  border-radius: inherit;
  animation: spin-slow 18s linear infinite;
}
.card,
.panel {
  background: #ffffffdc;
  border-color: #ffffffde;
  backdrop-filter: blur(10px);
}
.card:hover,
.panel:hover {
  box-shadow: 0 20px 44px #193f7630;
}
.btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, #0e62d8, #4f77ed 60%, #7759d7);
  box-shadow: 0 10px 22px #155fc340;
}
.btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -30%;
  width: 35%;
  height: 340%;
  background: #ffffff52;
  transform: rotate(24deg);
  transition: left 0.55s ease;
}
.btn:hover::after {
  left: 120%;
}
.google:hover {
  background: #fff;
  box-shadow: 0 12px 26px #173f7720;
}
@keyframes ambient-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12vw, 11vh, 0) scale(1.13); }
}
@keyframes ambient-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-11vw, -9vh, 0) scale(1.18); }
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.58; }
  50% { transform: scale(1.17); opacity: 0.82; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.intro-mark {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid #ffffff80;
  border-radius: 32px;
  background: #ffffff25;
  font-size: 62px;
  box-shadow: 0 20px 55px #001d5c55;
  animation: mark-pop 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.intro-mark img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.intro strong {
  font-size: clamp(40px, 7vw, 68px);
  letter-spacing: -0.04em;
  animation: rise 0.7s 0.2s both;
}
.intro span {
  font-size: 15px;
  opacity: 0.9;
  animation: rise 0.7s 0.35s both;
}
.page-enter {
  animation: rise 0.35s ease both;
}
.hero {
  background: linear-gradient(130deg, #edf7ff, #d9ecff);
  box-shadow: 0 18px 50px #1c5eb015;
}
.hero-visual {
  background: radial-gradient(circle, #fff 0%, #cde6ff 75%);
  box-shadow: inset 0 0 0 1px #ffffffaa;
}
.hero-visual div {
  animation: float 4s ease-in-out infinite;
}
.card,
.btn,
.action {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.card:hover,
.action:hover {
  transform: translateY(-4px);
}
.btn:hover {
  transform: translateY(-2px);
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #62a9ff;
  outline-offset: 3px;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #e1f0ff;
  font-size: 38px;
  margin-bottom: 18px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mark-pop {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes intro-exit {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .intro {
    display: none;
  }
}

/* Motion-inspired visual direction: dark editorial canvas, original LostLink colors. */
:root {
  color: #eaf2ff;
  background: #07111f;
}
body {
  color: #eaf2ff;
  background:
    radial-gradient(circle at 19% 10%, #236dd140 0 1px, transparent 2px),
    radial-gradient(circle at 84% 77%, #ad7cff30 0 1px, transparent 2px),
    linear-gradient(140deg, #07111f 0%, #0c1830 48%, #121127 100%);
  background-size: 32px 32px, 46px 46px, auto;
}
body::before {
  background: radial-gradient(circle, #1267df85 0%, #276df53b 44%, transparent 71%);
  opacity: 0.72;
}
body::after {
  background: radial-gradient(circle, #9f70ff70 0%, #3760e136 52%, transparent 73%);
  opacity: 0.65;
}
.bar {
  background: #091323bd;
  border-bottom-color: #ffffff16;
  box-shadow: 0 12px 38px #00000040;
}
.logo {
  color: #eaf3ff;
  text-shadow: 0 0 28px #6aa4ff78;
}
.plain {
  color: #b8c9e2;
}
.plain:hover {
  color: #fff;
}
.hero {
  min-height: 420px;
  padding: clamp(34px, 6vw, 74px);
  background:
    radial-gradient(circle at 79% 34%, #7358dd6e 0%, transparent 28%),
    radial-gradient(circle at 20% 96%, #0a88ef46 0%, transparent 34%),
    linear-gradient(145deg, #0d1b31ee 0%, #101a36e8 52%, #171333ed 100%);
  border-color: #ffffff1f;
  box-shadow: 0 34px 100px #00000059, inset 0 1px 0 #ffffff20;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.7vw, 78px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
  background: linear-gradient(100deg, #fff 10%, #c8d9ff 48%, #e6cfff 86%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero p,
.muted,
.meta,
.hint,
.match-reasons,
.list-row p,
.foot {
  color: #aabbd3;
}
.hero-visual {
  background: radial-gradient(circle at 36% 33%, #eaf6ff 0%, #8ec5ff 27%, #4365df 62%, #281c65 100%);
  box-shadow: inset 0 0 0 1px #ffffff49, 0 28px 80px #306eff52;
}
.hero-visual::before {
  border-color: #ffffff68;
}
.eyebrow {
  color: #99c8ff;
}
.card,
.panel,
.list-row {
  background: linear-gradient(150deg, #13233ddd, #0f1b30cc);
  color: #eef5ff;
  border-color: #ffffff1a;
  box-shadow: 0 15px 40px #0000002b, inset 0 1px 0 #ffffff13;
}
.card:hover,
.panel:hover {
  border-color: #93b8ff66;
  box-shadow: 0 25px 55px #00000045, 0 0 0 1px #8a8cff24;
}
.thumb,
.bigpic {
  background: linear-gradient(140deg, #1a3764, #20265d);
}
.action {
  color: #eaf3ff;
  background: linear-gradient(135deg, #142744e6, #1b1d4ae0);
  border-color: #ffffff21;
  box-shadow: inset 0 1px 0 #ffffff14;
}
.action:hover {
  background: linear-gradient(135deg, #1d3a67, #2b2465);
  border-color: #a4bfff77;
}
.btn {
  background: linear-gradient(115deg, #408eff 0%, #6175f6 52%, #a365ee 100%);
  box-shadow: 0 13px 30px #376ee15c;
}
.btn:hover {
  background: linear-gradient(115deg, #5b9dff 0%, #7686ff 52%, #b17bf5 100%);
}
.google,
.outline {
  background: #ffffffed;
  color: #13243f;
  border-color: #ffffff80;
}
input,
select,
textarea {
  background: #071426ab;
  color: #eff6ff;
  border-color: #ffffff2b;
}
input::placeholder,
textarea::placeholder {
  color: #8194b1;
}
.auth-side {
  background: linear-gradient(150deg, #17355f, #251d59);
}
.badge {
  background: #143d36;
  color: #85e9bf;
}
.lost {
  background: #472b2d;
  color: #ffb6a2;
}
.notice {
  background: #473b1b;
  border-color: #9b7d2d;
  color: #ffe69e;
}
@media (max-width: 760px) {
  .hero {
    min-height: unset;
  }
  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }
}
