:root {
  --bg: #02040a;
  --bg-deep: #000106;
  --panel: rgba(5, 10, 17, 0.72);
  --panel-strong: rgba(3, 7, 12, 0.92);
  --line: rgba(131, 255, 177, 0.16);
  --green: #78ff9b;
  --green-dim: #2dd65b;
  --white: #f6f8ff;
  --muted: #778394;
  --shadow: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 20%, rgba(67, 90, 130, 0.09), transparent 24rem),
    radial-gradient(circle at 18% 78%, rgba(43, 255, 111, 0.04), transparent 28rem),
    linear-gradient(180deg, #040814 0%, var(--bg) 55%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.008) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 75%);
}

#matrix-sky {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.08) 68%, rgba(0,0,0,.28) 100%);
  z-index: 12;
}

.moon-wrap {
  position: fixed;
  top: 6vh;
  right: 8vw;
  width: clamp(86px, 10vw, 145px);
  aspect-ratio: 1;
  z-index: 11;
  filter: drop-shadow(0 0 28px rgba(238,245,255,.22));
}

.moon {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 29%, rgba(255,255,255,.94), rgba(232,237,246,.95) 38%, rgba(174,184,201,.9) 100%);
  box-shadow:
    inset -18px -14px 24px rgba(70, 78, 95, .33),
    0 0 32px rgba(235, 241, 255, .17);
}

.moon::before,
.moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(111, 121, 137, .16);
  box-shadow:
    28px 22px 0 -4px rgba(105,117,136,.12),
    5px 47px 0 -8px rgba(96,109,130,.14),
    47px 48px 0 -12px rgba(95,107,127,.15),
    50px 6px 0 -9px rgba(116,126,145,.12);
}

.moon::before {
  width: 22%;
  height: 22%;
  left: 23%;
  top: 19%;
}

.moon::after {
  width: 12%;
  height: 12%;
  left: 61%;
  top: 29%;
}

.site-shell {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7vh 5vw;
}

.hero {
  width: min(980px, 94vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  margin: 0 0 1rem .15rem;
  color: #a5b2c0;
  font: 500 .75rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(120,255,155,.75);
  animation: statusPulse 2s ease-in-out infinite;
}

.console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 210, 222, .13);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10,15,23,.88), rgba(3,7,12,.89)),
    var(--panel-strong);
  box-shadow:
    0 28px 90px rgba(0,0,0,.54),
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(53,255,116,.02);
  backdrop-filter: blur(18px);
}

.console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.018) 0,
    rgba(255,255,255,.018) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: .28;
  mix-blend-mode: screen;
}

.console::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 25%, rgba(99,255,144,.06), transparent 52%);
  transform: translateX(-100%);
  animation: sweep 8s ease-in-out infinite;
}

.console-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(255,255,255,.018);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #39424f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

.dot:nth-child(1) { background: #6b3340; }
.dot:nth-child(2) { background: #766328; }
.dot:nth-child(3) { background: #285d43; }

.console-title {
  color: #8b97a6;
  font: 500 .74rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .08em;
}

.secure {
  justify-self: end;
  color: rgba(122,255,159,.6);
  font: 500 .68rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.console-body {
  position: relative;
  z-index: 1;
  min-height: clamp(360px, 52vh, 520px);
  padding: clamp(25px, 4vw, 48px);
  color: #b9c5d1;
  font: 400 clamp(.78rem, 1.3vw, .96rem)/1.85 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-shadow: 0 0 18px rgba(123,255,156,.025);
}

.line {
  opacity: 0;
  transform: translateY(5px);
  animation: lineIn .45s forwards;
}

.line:nth-child(1) { animation-delay: .25s; }
.line:nth-child(2) { animation-delay: .55s; }
.line:nth-child(3) { animation-delay: .85s; }
.line:nth-child(4) { animation-delay: 1.15s; }
.line:nth-child(5) { animation-delay: 1.45s; }
.line:nth-child(6) { animation-delay: 1.8s; }
.line:nth-child(7) { animation-delay: 2.15s; }
.line:nth-child(8) { animation-delay: 2.55s; }

.prompt {
  color: var(--green);
}

.host {
  color: #d7e6ee;
}

.dim {
  color: #687584;
}

.command {
  color: #eff7ff;
}

.feature-line {
  margin-top: 1.25rem;
  color: #dbe5ed;
}

.rabbit-text {
  display: inline-block;
  color: #e9eef7;
  letter-spacing: .02em;
  animation: rabbitGlow 4.5s ease-in-out infinite;
}

.cursor {
  display: inline-block;
  width: .62em;
  height: 1.05em;
  margin-left: .18rem;
  vertical-align: -.14em;
  background: var(--green);
  box-shadow: 0 0 10px rgba(120,255,155,.36);
  animation: blink 1s steps(1) infinite;
}

.footer-note {
  margin-top: 1.1rem;
  padding-left: .2rem;
  color: rgba(139, 153, 168, .48);
  font: 500 .68rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .05em;
}

.rabbit-link {
  position: fixed;
  z-index: 30;
  left: 4.2vw;
  bottom: 3.8vh;
  width: 20px;
  height: 18px;
  opacity: .23;
  transform: rotate(-4deg);
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
}

.rabbit-link:hover,
.rabbit-link:focus-visible {
  opacity: .95;
  transform: rotate(0deg) scale(1.28);
  filter: drop-shadow(0 0 8px rgba(255,255,255,.5));
  outline: none;
}

.rabbit {
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 13px;
  height: 10px;
  border-radius: 55% 60% 45% 45%;
  background: #fff;
  box-shadow: 7px 1px 0 -4px #fff;
}

.rabbit::before,
.rabbit::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 9px;
  top: -6px;
  border-radius: 75% 75% 20% 20%;
  background: #fff;
  transform-origin: bottom;
}

.rabbit::before {
  left: 3px;
  transform: rotate(-16deg);
}

.rabbit::after {
  left: 7px;
  transform: rotate(10deg);
}

.rabbit-tail {
  position: absolute;
  right: 0;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.rabbit-page .console-body {
  min-height: clamp(340px, 50vh, 480px);
}

.rabbit-page .moon-wrap {
  right: auto;
  left: 7vw;
  top: 8vh;
  transform: scale(.72);
  opacity: .7;
}

.rabbit-page .portal {
  color: #abf6bc;
}

.back-link {
  display: inline-flex;
  margin-top: 2rem;
  color: rgba(166, 178, 191, .65);
  text-decoration: none;
  border-bottom: 1px solid rgba(166,178,191,.18);
  transition: color .2s ease, border-color .2s ease;
}

.back-link:hover {
  color: #eaf2fa;
  border-color: rgba(234,242,250,.5);
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes lineIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sweep {
  0%, 70%, 100% { transform: translateX(-110%); }
  82% { transform: translateX(110%); }
}

@keyframes rabbitGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { text-shadow: 0 0 18px rgba(255,255,255,.16); }
}

@keyframes statusPulse {
  0%, 100% { opacity: .5; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .site-shell {
    padding: 6vh 4vw;
  }

  .console {
    border-radius: 15px;
  }

  .console-bar {
    grid-template-columns: 1fr auto;
  }

  .secure {
    display: none;
  }

  .console-title {
    justify-self: end;
  }

  .console-body {
    min-height: 420px;
    padding: 24px 21px;
    line-height: 1.72;
  }

  .moon-wrap {
    top: 4vh;
    right: 5vw;
    opacity: .7;
  }

  .rabbit-link {
    left: 5vw;
    bottom: 2.8vh;
  }
}

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