/* AIAetherStream — common styles
   Background: CSS rain (SelfMadeSystem, MIT)
   Logo: orange crab (SelfMadeSystem, MIT)
   Chat panel (Cobp, MIT) and combination lock (dexter-st, MIT)
   are used on the landing page only. */

html, body {
  margin: 0;
  height: 100%;
  background: #000;
}

/* === Background: CSS rain, SelfMadeSystem (MIT) === */

.container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(1em) brightness(6);
  background-image: radial-gradient(
    circle at 50% 50%,
    #0000 0,
    #0000 2px,
    hsl(0 0 4%) 2px
  );
  background-size: 8px 8px;
}

.container {
  position: fixed;
  inset: 0;
  z-index: 0;
  --c: #09f;
  background-color: #000;
  background-image: radial-gradient(4px 100px at 0px 235px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 235px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 117.5px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 252px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 252px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 126px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 150px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 150px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 75px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 253px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 253px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 126.5px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 204px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 204px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 102px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 134px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 134px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 67px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 179px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 179px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 89.5px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 299px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 299px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 149.5px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 215px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 215px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 107.5px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 281px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 281px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 140.5px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 158px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 158px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 79px, var(--c) 100%, #0000 150%),
    radial-gradient(4px 100px at 0px 210px, var(--c), #0000),
    radial-gradient(4px 100px at 300px 210px, var(--c), #0000),
    radial-gradient(1.5px 1.5px at 150px 105px, var(--c) 100%, #0000 150%);
  background-size:
    300px 235px,
    300px 235px,
    300px 235px,
    300px 252px,
    300px 252px,
    300px 252px,
    300px 150px,
    300px 150px,
    300px 150px,
    300px 253px,
    300px 253px,
    300px 253px,
    300px 204px,
    300px 204px,
    300px 204px,
    300px 134px,
    300px 134px,
    300px 134px,
    300px 179px,
    300px 179px,
    300px 179px,
    300px 299px,
    300px 299px,
    300px 299px,
    300px 215px,
    300px 215px,
    300px 215px,
    300px 281px,
    300px 281px,
    300px 281px,
    300px 158px,
    300px 158px,
    300px 158px,
    300px 210px,
    300px 210px,
    300px 210px;
  animation: hi 150s linear infinite;
}

@keyframes hi {
  0% {
    background-position:
      0px 220px,
      3px 220px,
      151.5px 337.5px,
      25px 24px,
      28px 24px,
      176.5px 150px,
      50px 16px,
      53px 16px,
      201.5px 91px,
      75px 224px,
      78px 224px,
      226.5px 350.5px,
      100px 19px,
      103px 19px,
      251.5px 121px,
      125px 120px,
      128px 120px,
      276.5px 187px,
      150px 31px,
      153px 31px,
      301.5px 120.5px,
      175px 235px,
      178px 235px,
      326.5px 384.5px,
      200px 121px,
      203px 121px,
      351.5px 228.5px,
      225px 224px,
      228px 224px,
      376.5px 364.5px,
      250px 26px,
      253px 26px,
      401.5px 105px,
      275px 75px,
      278px 75px,
      426.5px 180px;
  }

  to {
    background-position:
      0px 6800px,
      3px 6800px,
      151.5px 6917.5px,
      25px 13632px,
      28px 13632px,
      176.5px 13758px,
      50px 5416px,
      53px 5416px,
      201.5px 5491px,
      75px 17175px,
      78px 17175px,
      226.5px 17301.5px,
      100px 5119px,
      103px 5119px,
      251.5px 5221px,
      125px 8428px,
      128px 8428px,
      276.5px 8495px,
      150px 9876px,
      153px 9876px,
      301.5px 9965.5px,
      175px 13391px,
      178px 13391px,
      326.5px 13540.5px,
      200px 14741px,
      203px 14741px,
      351.5px 14848.5px,
      225px 18770px,
      228px 18770px,
      376.5px 18910.5px,
      250px 5082px,
      253px 5082px,
      401.5px 5161px,
      275px 6375px,
      278px 6375px,
      426.5px 6480px;
  }
}

/* === Logo: orange crab, SelfMadeSystem (MIT) ===
   Opaque background circle removed so the animated background shows through. */
.stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
}

.loader {
  display: block;
  width: 10em;
  height: 10em;
  overflow: visible;
}

.loader path.fill {
  fill: #2Af2;
  animation: fill 4s ease-in-out infinite;
}

.loader .dash path {
  stroke: #2AF;
  stroke-width: 1px;
  stroke-linecap: round;
  animation: dashArray var(--sped, 2s) ease-in-out infinite,
    dashOffset var(--sped, 2s) linear infinite;
}

.loader .dash path.aaa {
  stroke-width: 2px;
  stroke-linecap: butt;
  clip-path: path('M 20.4603 48.5493 L 16.6461 46.9584 C 17.3209 48.3794 18.4917 49.5682 20.0447 50.2206 C 23.4007 51.6328 27.2707 50.0262 28.6694 46.6367 C 29.3464 44.9966 29.3509 43.1867 28.6806 41.5422 C 28.0103 39.8977 26.7434 38.6151 25.119 37.9315 C 23.5035 37.2544 21.7741 37.279 20.2547 37.8576 L 24.1961 39.5022 C 26.6719 40.5434 27.8427 43.4124 26.8104 45.9105 C 25.7803 48.4085 22.936 49.5905 20.4603 48.5493 Z');
}

.loader .dash path.big {
  stroke-width: 2px;
  filter: drop-shadow(0 0 2px #2AF);
}

@keyframes dashArray {
  0% {
    stroke-dasharray: 0 1 359 0;
  }

  50% {
    stroke-dasharray: 0 359 1 0;
  }

  100% {
    stroke-dasharray: 359 1 0 0;
  }
}

@keyframes dashOffset {
  0% {
    stroke-dashoffset: -5;
  }

  100% {
    stroke-dashoffset: -365;
  }
}

@keyframes fill {
  30%,
  55% {
    fill: #2AF0;
  }
}
/* === Chat panel: Cobp (MIT) === */
.chat-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  width: 260px;
}

.container_chat_bot {
  display: flex;
  flex-direction: column;
  max-width: 260px;
  width: 100%;
}

.container_chat_bot .container-chat-options {
  position: relative;
  display: flex;
  background: linear-gradient(
    to bottom right,
    #7e7e7e,
    #363636,
    #363636,
    #363636,
    #363636
  );
  border-radius: 16px;
  padding: 1.5px;
  overflow: hidden;
}

.container_chat_bot .container-chat-options::after {
  position: absolute;
  content: "";
  top: -10px;
  left: -10px;
  background: radial-gradient(
    ellipse at center,
    #ffffff,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0)
  );
  width: 30px;
  height: 30px;
  filter: blur(1px);
}

.container_chat_bot .container-chat-options .chat {
  display: flex;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  width: 100%;
  overflow: hidden;
}

.container_chat_bot .container-chat-options .chat .chat-bot {
  position: relative;
  display: flex;
}

.container_chat_bot .chat .chat-bot textarea {
  background-color: transparent;
  border-radius: 16px;
  border: none;
  width: 100%;
  height: 50px;
  color: #ffffff;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 10px;
  resize: none;
  outline: none;
}

.container_chat_bot .chat .chat-bot textarea::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.container_chat_bot .chat .chat-bot textarea::-webkit-scrollbar-track {
  background: transparent;
}

.container_chat_bot .chat .chat-bot textarea::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.container_chat_bot .chat .chat-bot textarea::-webkit-scrollbar-thumb:hover {
  background: #555;
  cursor: pointer;
}

.container_chat_bot .chat .chat-bot textarea::placeholder {
  color: #f3f6fd;
  transition: all 0.3s ease;
}

.container_chat_bot .chat .chat-bot textarea:focus::placeholder {
  color: #363636;
}

.container_chat_bot .chat .options {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px;
}

.container_chat_bot .chat .options .btns-add {
  display: flex;
  gap: 8px;
}

.container_chat_bot .chat .options .btns-add button {
  display: flex;
  color: rgba(255, 255, 255, 0.1);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container_chat_bot .chat .options .btns-add button:hover {
  transform: translateY(-5px);
  color: #ffffff;
}

.container_chat_bot .chat .options .btn-submit {
  display: flex;
  padding: 2px;
  background-image: linear-gradient(to top, #292929, #555555, #292929);
  border-radius: 10px;
  box-shadow: inset 0 6px 2px -4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.15s ease;
}

.container_chat_bot .chat .options .btn-submit i {
  width: 30px;
  height: 30px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(3px);
  color: #8b8b8b;
}

.container_chat_bot .chat .options .btn-submit svg {
  transition: all 0.3s ease;
}

.container_chat_bot .chat .options .btn-submit:hover svg {
  color: #f3f6fd;
  filter: drop-shadow(0 0 5px #ffffff);
}

.container_chat_bot .chat .options .btn-submit:focus svg {
  color: #f3f6fd;
  filter: drop-shadow(0 0 5px #ffffff);
  transform: scale(1.2) rotate(45deg) translateX(-2px) translateY(1px);
}

.container_chat_bot .chat .options .btn-submit:active {
  transform: scale(0.92);
}

.container_chat_bot .tags {
  padding: 14px 0;
  display: flex;
  color: #ffffff;
  font-size: 10px;
  gap: 4px;
}

.container_chat_bot .tags span {
  padding: 4px 8px;
  background-color: #1b1b1b;
  border: 1.5px solid #363636;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
/* === Combination lock: dexter-st (MIT), extended to 4 dials === */
.lock-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3;
}

.combination-lock {
  position: relative;
  display: flex;
  gap: 1.25rem;
  user-select: none;
}

.dial {
  width: 34px;
  height: 120px;
  overflow: hidden;
  perspective: 500px;
  border-radius: 10px / 250px;
  outline: solid 3px #000;
  outline-offset: 1px;
  filter: drop-shadow(4px 0 0px #0006) drop-shadow(8px -1px 1px #0003)
    drop-shadow(8px 10px 1px #0003)
    drop-shadow(12px 16px 32px rgba(255, 231, 201, 0.5))
    drop-shadow(-12px -16px 64px rgba(255, 231, 201, 0.5)) contrast(1.6);
  box-shadow:
    -2px -3px 0 4px #1115,
    0 -3px 0 2px #fff,
    0 2px 0 3px #eee,
    0 4px 0 4px #0009;
}

.dial::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, #000 40%, 40.5%, #fff0),
    linear-gradient(to bottom, #fff, 50%, #111);

  background-position:
    0 16px,
    0 0;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.nonagon {
  width: 100%;
  height: 100%;
  position: relative;
  top: 36px;
  transform-style: preserve-3d;
  transform-origin: 0 24px;
  transform: rotateX(0deg);
  transition: transform 300ms ease;
}

.face {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 47px;

  background-color: #bbbab8;
  box-shadow:
    0 -3px 1px 2px #000a,
    0 0px 1px 3px #fffe;

  font-family: "Lucida Console", Courier, monospace;
  font-size: 1.75em;
  font-weight: bolder;
  text-shadow:
    1px 1px 0.5px #fff,
    -1px -1px 0.5px #ccc,
    -0.5px -0.5px 0.5px #0005;
  color: #000b;
  -webkit-text-stroke: 01px #aaa6;
}

.face::before,
.face::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 4px;
  border: 0.5px solid #0005;
}
.face::before {
  left: 0;
  background-color: #fff;
}
.face::after {
  right: 0;
  background-color: #0004;
}

.face span {
  position: absolute;
  pointer-events: none;
}

.face .radio {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  appearance: none;
  opacity: 0.5;
  z-index: 0;
}

.nonagon:has(.radio-0:checked) {
  transform: rotateX(0deg);
}
.nonagon:has(.radio-1:checked) {
  transform: rotateX(36deg);
}
.nonagon:has(.radio-2:checked) {
  transform: rotateX(72deg);
}
.nonagon:has(.radio-3:checked) {
  transform: rotateX(108deg);
}
.nonagon:has(.radio-4:checked) {
  transform: rotateX(144deg);
}
.nonagon:has(.radio-5:checked) {
  transform: rotateX(180deg);
}
.nonagon:has(.radio-6:checked) {
  transform: rotateX(216deg);
}
.nonagon:has(.radio-7:checked) {
  transform: rotateX(252deg);
}
.nonagon:has(.radio-8:checked) {
  transform: rotateX(288deg);
}
.nonagon:has(.radio-9:checked) {
  transform: rotateX(324deg);
}

.face-0 {
  transform: rotateX(0deg) translateZ(71px);
}
.face-1 {
  transform: rotateX(-36deg) translateZ(71px);
}
.face-2 {
  transform: rotateX(-72deg) translateZ(71px);
}
.face-3 {
  transform: rotateX(-108deg) translateZ(71px);
}
.face-4 {
  transform: rotateX(-144deg) translateZ(71px);
}
.face-5 {
  transform: rotateX(-180deg) translateZ(71px);
}
.face-6 {
  transform: rotateX(-216deg) translateZ(71px);
}
.face-7 {
  transform: rotateX(-252deg) translateZ(71px);
}
.face-8 {
  transform: rotateX(-288deg) translateZ(71px);
}
.face-9 {
  transform: rotateX(-324deg) translateZ(71px);
}




/* === Landing: hero === */
.title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 24px #2af6;
}

.tagline {
  margin: 0;
  max-width: 460px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: #dfe6ff;
  text-shadow: 0 1px 8px #000a;
}

.cta {
  margin-top: 10px;
  padding: 12px 38px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2af, #09f);
  color: #001;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 0 24px #2af5;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px #2af8;
}

.cta:active {
  transform: scale(0.97);
}

/* === Footer === */
.footer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  white-space: nowrap;
  color: #ffffff8c;
}

.footer a {
  color: #9fc0ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* === Content pages (privacy, terms, 404) === */
.content {
  position: relative;
  z-index: 3;
  width: min(720px, calc(100% - 32px));
  margin: 8vh auto;
  padding: 40px 32px;
  background: rgba(2, 4, 16, 0.6);
  border: 1px solid #ffffff1c;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  color: #dfe6ff;
  font-size: 15px;
  line-height: 1.65;
}

.content h1 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  color: #fff;
}

.content h2 {
  margin: 22px 0 8px;
  font-size: 1.1rem;
  color: #fff;
}

.content p {
  margin: 0 0 12px;
}

.content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.content li {
  margin-bottom: 6px;
}

.content a {
  color: #9fc0ff;
}

.back {
  display: inline-block;
  margin-top: 18px;
  color: #2af;
  text-decoration: none;
  font-weight: 600;
}

.back:hover {
  text-decoration: underline;
}

/* mobile layout */
@media (max-width: 520px) {
  .lock-panel {
    bottom: 190px;
  }
  .stage {
    padding-bottom: 170px;
  }
  .loader {
    width: 8em;
    height: 8em;
  }
  .footer {
    top: 10px;
    bottom: auto;
  }
}
