:root {
  --pink: #ff2d95;
  --pink-soft: #ff75bd;
  --pink-deep: #b6005c;
  --black: #0a0a0a;
  --panel: rgba(14, 14, 18, 0.68);
  --panel-strong: rgba(19, 19, 25, 0.82);
  --white: #f8f7fb;
  --muted: #b8b6c3;
  --dim: #676473;
  --line: rgba(255, 45, 149, 0.24);
  --green: #6dffb5;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.56), 0 0 46px rgba(255, 45, 149, 0.16);
  --radius: 8px;
  --mx: 50%;
  --my: 50%;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: #0a0a0a;
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, rgba(255, 45, 149, 0.8) 0 1px, transparent 1px);
  background-size: 34px 34px, 27px 27px;
  mix-blend-mode: screen;
}

.cursor-glow {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  z-index: 3;
  width: 210px;
  height: 210px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.45;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 45, 149, 0.25), transparent 68%);
  filter: blur(14px);
}

.scene,
.gradient-field,
.developer-grid,
.particle-layer,
.binary-rain {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene {
  z-index: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 45, 149, 0.18), transparent 26%),
    linear-gradient(125deg, #0a0a0a 0%, #120710 42%, #0d0d12 70%, #030304 100%);
}

.gradient-field {
  background:
    linear-gradient(120deg, transparent 0 25%, rgba(255, 45, 149, 0.08) 42%, transparent 58% 100%),
    radial-gradient(circle at 18% 12%, rgba(255, 45, 149, 0.34), transparent 26%),
    radial-gradient(circle at 90% 85%, rgba(255, 117, 189, 0.18), transparent 28%);
  background-size: 200% 200%, auto, auto;
  animation: gradientMove 18s ease-in-out infinite alternate;
}

.developer-grid {
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(255, 45, 149, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 149, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-size: 82px 82px, 82px 82px, 20px 20px, 20px 20px;
  animation: gridDrift 34s linear infinite;
  mask-image: radial-gradient(circle at center, #000 15%, transparent 86%);
}

.glow {
  position: fixed;
  width: 36vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.34;
  background: var(--pink);
  animation: glowFloat 12s ease-in-out infinite alternate;
}

.glow-one {
  left: -10vw;
  top: 8vh;
}

.glow-two {
  right: -8vw;
  bottom: -8vh;
  animation-delay: -5s;
  background: #711443;
}

.binary-rain {
  z-index: 1;
}

.binary-column {
  position: absolute;
  top: -24vh;
  color: rgba(255, 117, 189, 0.18);
  font-size: 0.76rem;
  line-height: 1.9;
  writing-mode: vertical-rl;
  text-orientation: upright;
  animation: binaryFall linear infinite;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 45, 149, 0.84);
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.82);
  opacity: var(--opacity);
  transform: translate3d(0, 0, 0);
}

.code-orbit {
  position: fixed;
  z-index: 1;
  max-width: min(42vw, 420px);
  padding: 0.55rem 0.75rem;
  color: rgba(248, 247, 251, 0.58);
  border: 1px solid rgba(255, 45, 149, 0.17);
  background: rgba(10, 10, 10, 0.28);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  white-space: nowrap;
  animation: floatSnippet 8s ease-in-out infinite;
}

.code-orbit-a {
  top: 12vh;
  left: 7vw;
}

.code-orbit-b {
  right: 5vw;
  top: 22vh;
  animation-delay: -2.8s;
}

.code-orbit-c {
  left: 9vw;
  bottom: 14vh;
  animation-delay: -5.2s;
}

.shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2.2rem) 0;
  perspective: 1200px;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top-color: rgba(255, 45, 149, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  animation: fadeUp 760ms ease both;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 45, 149, 0.16), transparent),
    radial-gradient(circle at 8% 0%, rgba(255, 45, 149, 0.22), transparent 32%);
  transform: translateX(-70%);
  animation: scanCard 7s ease-in-out infinite;
}

.hero-topline,
.status-row,
.actions,
.progress-heading,
.terminal-bar,
.metric {
  display: flex;
  align-items: center;
}

.hero-topline {
  position: relative;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: clamp(1.25rem, 4vh, 2.2rem);
}

.code-logo {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--white);
  border: 1px solid rgba(255, 45, 149, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 45, 149, 0.09);
  box-shadow: inset 0 0 18px rgba(255, 45, 149, 0.18), 0 0 32px rgba(255, 45, 149, 0.26);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
  animation: logoFloat 4.8s ease-in-out infinite;
}

.code-logo span:nth-child(2) {
  color: var(--pink);
}

.brand-lockup {
  display: grid;
  gap: 0.2rem;
  margin-right: auto;
}

.brand-lockup span {
  color: var(--white);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 45, 149, 0.36);
}

.brand-lockup small {
  color: var(--dim);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.system-meta,
.status-row {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.system-meta {
  display: flex;
  gap: 0.45rem;
}

.system-meta span,
.status-badge,
.uptime-badge,
.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.48rem 0.68rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--pink-soft);
  font-size: clamp(0.72rem, 1.5vw, 0.86rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.45rem, 7.3vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 42px rgba(255, 45, 149, 0.33);
}

.subtitle {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.status-row {
  justify-content: flex-start;
  gap: 0.55rem;
  margin-top: clamp(1.1rem, 2.5vh, 1.6rem);
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(109, 255, 181, 0.8);
  animation: pulseDot 1.7s ease-in-out infinite;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
}

.time-box {
  min-width: 0;
  padding: clamp(0.78rem, 2vw, 1rem);
  text-align: center;
  border: 1px solid rgba(255, 45, 149, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 0 20px rgba(255, 45, 149, 0.08);
}

.time-box strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.55rem, 4vw, 2.65rem);
  line-height: 1;
}

.time-box span {
  display: block;
  margin-top: 0.45rem;
  color: var(--dim);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.deployment-progress {
  margin-top: clamp(1rem, 2.5vh, 1.45rem);
}

.progress-heading {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-heading strong {
  color: var(--pink-soft);
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 45, 149, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--pink-deep), var(--pink), var(--pink-soft)),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(255, 255, 255, 0.2) 8px 14px);
  box-shadow: 0 0 22px rgba(255, 45, 149, 0.56);
  transition: width 350ms ease;
}

.progress-blocks {
  margin-top: 0.55rem;
  color: var(--pink-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 3vh, 1.75rem);
}

.action-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  padding: 0.86rem 1.1rem;
  color: var(--white);
  border: 1px solid rgba(255, 45, 149, 0.52);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.95), rgba(151, 0, 77, 0.88));
  box-shadow: 0 0 28px rgba(255, 45, 149, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.action-button.secondary {
  background: rgba(255, 255, 255, 0.055);
}

.action-button:hover,
.action-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 38px rgba(255, 45, 149, 0.5);
  transform: translateY(-2px);
}

.action-button:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 3px;
}

.action-button::after {
  content: "";
  position: absolute;
  inset: var(--ripple-y, 50%) auto auto var(--ripple-x, 50%);
  z-index: -1;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: width 520ms ease, height 520ms ease, opacity 650ms ease;
  opacity: 0;
}

.action-button.is-rippling::after {
  width: 280px;
  height: 280px;
  opacity: 1;
}

.ops-stack {
  display: grid;
  gap: 1rem;
  animation: fadeUp 900ms 120ms ease both;
}

.terminal {
  overflow: hidden;
  border-radius: var(--radius);
}

.terminal-bar {
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.window-controls {
  display: inline-flex;
  gap: 0.42rem;
}

.window-controls span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #ff5f57;
}

.window-controls span:nth-child(2) {
  background: #ffbd2e;
}

.window-controls span:nth-child(3) {
  background: #28c840;
}

.terminal-title,
.terminal-state {
  color: var(--muted);
  font-size: 0.74rem;
}

.terminal-state {
  color: var(--green);
}

.terminal-body {
  min-height: 300px;
  padding: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 50%, transparent 50%) 0 0 / 100% 42px,
    rgba(3, 3, 5, 0.44);
}

.terminal-line {
  display: flex;
  min-height: 1.6rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}

.prompt {
  color: var(--pink-soft);
}

.terminal-cursor {
  width: 0.58rem;
  height: 1.1rem;
  background: var(--pink);
  box-shadow: 0 0 16px rgba(255, 45, 149, 0.9);
  animation: blink 900ms steps(2, end) infinite;
}

.log-stream {
  display: grid;
  align-content: start;
  gap: 0.38rem;
  height: 225px;
  margin-top: 0.9rem;
  overflow: hidden;
  color: rgba(248, 247, 251, 0.66);
  font-size: 0.76rem;
  line-height: 1.45;
}

.log-stream div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  animation: logIn 260ms ease both;
}

.log-stream span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-stream time {
  flex: 0 0 auto;
  color: var(--dim);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric {
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.9rem;
  border-radius: var(--radius);
}

.metric span,
.metric small {
  color: var(--dim);
  font-size: 0.72rem;
}

.metric strong {
  color: var(--white);
  font-size: 1rem;
}

.syntax-pink {
  color: var(--pink-soft);
}

.syntax-white {
  color: var(--white);
}

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

.page-footer {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 2;
  width: calc(100% - 2rem);
  transform: translateX(-50%);
  color: rgba(248, 247, 251, 0.55);
  font-size: 0.76rem;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientMove {
  from {
    background-position: 0% 45%, center, center;
  }
  to {
    background-position: 100% 60%, center, center;
  }
}

@keyframes gridDrift {
  to {
    background-position: 82px 82px, 82px 82px, 20px 20px, 20px 20px;
  }
}

@keyframes glowFloat {
  to {
    transform: translate3d(8vw, 5vh, 0) scale(1.12);
  }
}

@keyframes binaryFall {
  to {
    transform: translateY(142vh);
  }
}

@keyframes floatSnippet {
  50% {
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes logoFloat {
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pulseDot {
  50% {
    transform: scale(0.78);
    opacity: 0.62;
  }
}

@keyframes scanCard {
  45%,
  100% {
    transform: translateX(72%);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes logIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (max-width: 980px) {
  body {
    overflow-y: auto;
  }

  .shell {
    grid-template-columns: 1fr;
    align-content: center;
    padding-bottom: 4.2rem;
  }

  .ops-stack {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    min-height: 255px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 560px);
    min-height: auto;
    padding: 0.75rem 0 4.4rem;
  }

  .hero-topline {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .code-logo {
    width: 58px;
    height: 58px;
    font-size: 1.22rem;
  }

  .system-meta {
    justify-content: flex-end;
    max-width: 48%;
  }

  .system-meta span {
    min-height: 28px;
    padding: 0.38rem 0.5rem;
    font-size: 0.62rem;
  }

  .countdown,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-button {
    width: 100%;
  }

  .code-orbit {
    display: none;
  }
}

@media (max-width: 380px) {
  .countdown,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

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

  .cursor-glow,
  .particle-layer,
  .binary-rain {
    display: none;
  }
}
