:root {
  --green: #39ff88;
  --cyan: #19e8ff;
  --blue: #176bff;
  --deep-blue: #061e5b;
  --black: #030813;
  --glass: rgba(7, 21, 42, 0.58);
  --text: #eaffff;
  --soft: rgba(234, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(57, 255, 136, 0.22), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(25, 232, 255, 0.26), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(23, 107, 255, 0.18), transparent 42%),
    linear-gradient(135deg, #02050c 0%, #06172a 42%, #030813 100%);
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.86;
}

.aurora,
.spotlight {
  pointer-events: none;
  position: fixed;
  z-index: 1;
}

.aurora {
  width: 48vw;
  height: 48vw;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.35;
  animation: drift 9s ease-in-out infinite alternate;
}

.aurora-one {
  left: -12vw;
  top: 16vh;
  background: radial-gradient(circle, rgba(57, 255, 136, 0.85), transparent 62%);
}

.aurora-two {
  right: -16vw;
  bottom: 2vh;
  background: radial-gradient(circle, rgba(25, 232, 255, 0.75), transparent 62%);
  animation-duration: 12s;
}

.spotlight {
  left: 50%;
  top: -18vh;
  width: 74vw;
  height: 70vh;
  transform: translateX(-50%);
  background: conic-gradient(from 180deg, transparent, rgba(25, 232, 255, 0.18), transparent, rgba(57, 255, 136, 0.15), transparent);
  filter: blur(24px);
  opacity: 0.52;
  animation: breathe 6s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 74px;
}

.hero {
  min-height: 83vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px 0 34px;
}

.topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: 999px;
  background: rgba(4, 14, 30, 0.58);
  color: rgba(234, 255, 255, 0.82);
  box-shadow: 0 0 34px rgba(25, 232, 255, 0.14);
  backdrop-filter: blur(14px);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green), 0 0 34px var(--cyan);
  animation: dotPulse 1.35s infinite;
}

.scene-wrap {
  position: relative;
  width: min(100%, 1000px);
  height: clamp(270px, 44vw, 470px);
  display: grid;
  place-items: center;
  perspective: 1050px;
  margin: 12px auto -10px;
  user-select: none;
  touch-action: none;
}

.name-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0px, 0.45vw, 6px);
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-13deg) rotateZ(-1deg);
  cursor: grab;
  will-change: transform;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.35));
}

.name-banner:active {
  cursor: grabbing;
}

.letter {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: clamp(35px, 9vw, 108px);
  font-family: Impact, Haettenschweiler, "Arial Black", fantasy;
  font-size: clamp(4rem, 12.5vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--depth, 0) * 1px)) rotateZ(var(--tilt, 0deg));
  color: transparent;
  background: linear-gradient(135deg, #dffff7 0%, var(--green) 19%, var(--cyan) 45%, var(--blue) 72%, #d8fff2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: clamp(2px, 0.42vw, 6px) rgba(1, 7, 16, 0.92);
  text-shadow:
    2px 2px 0 #031529,
    4px 4px 0 #062950,
    6px 6px 0 #064575,
    8px 8px 0 #056178,
    10px 10px 0 rgba(18, 224, 200, 0.55),
    0 0 18px rgba(57, 255, 136, 0.45),
    0 0 42px rgba(25, 232, 255, 0.35),
    0 0 70px rgba(23, 107, 255, 0.24);
  animation: letterFloat 3.7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.22s);
}

.letter::before,
.letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  pointer-events: none;
}

.letter::before {
  transform: translate3d(12px, 12px, -34px);
  color: rgba(5, 11, 24, 0.8);
  -webkit-text-stroke: clamp(2px, 0.42vw, 6px) rgba(57, 255, 136, 0.32);
  filter: blur(1px);
}

.letter::after {
  transform: translate3d(-4px, -4px, 18px);
  color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0));
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.32;
}

.letter:nth-child(1) { --i: 1; --tilt: -5deg; --depth: 18; }
.letter:nth-child(2) { --i: 2; --tilt: 3deg; --depth: 9; }
.letter:nth-child(3) { --i: 3; --tilt: -2deg; --depth: 20; }
.letter:nth-child(4) { --i: 4; --tilt: 4deg; --depth: 12; }
.letter:nth-child(5) { --i: 5; --tilt: -4deg; --depth: 24; }
.letter:nth-child(6) { --i: 6; --tilt: 2deg; --depth: 16; }
.letter:nth-child(7) { --i: 7; --tilt: -3deg; --depth: 22; }
.letter:nth-child(8) { --i: 8; --tilt: 5deg; --depth: 11; }

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(25, 232, 255, 0.2);
  box-shadow: 0 0 40px rgba(57, 255, 136, 0.08), inset 0 0 34px rgba(25, 232, 255, 0.08);
  transform-style: preserve-3d;
  pointer-events: none;
}

.ring-one {
  width: min(78vw, 860px);
  height: min(78vw, 430px);
  transform: rotateX(72deg) rotateZ(4deg);
  animation: ringSpin 19s linear infinite;
}

.ring-two {
  width: min(86vw, 960px);
  height: min(86vw, 480px);
  transform: rotateX(68deg) rotateZ(-24deg);
  animation: ringSpin 25s linear infinite reverse;
  border-color: rgba(57, 255, 136, 0.22);
}

.ring-three {
  width: min(62vw, 690px);
  height: min(62vw, 340px);
  transform: rotateX(77deg) rotateZ(44deg);
  animation: ringSpin 16s linear infinite;
  border-color: rgba(255, 255, 255, 0.12);
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  color: rgba(234, 255, 255, 0.08);
  -webkit-text-stroke: 1px rgba(234, 255, 255, 0.22);
}

.lead {
  width: min(820px, 100%);
  margin: 16px auto 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.65;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  border: 1px solid rgba(25, 232, 255, 0.42);
  color: var(--text);
  background: linear-gradient(135deg, rgba(6, 30, 91, 0.76), rgba(8, 26, 39, 0.76));
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22), 0 0 30px rgba(25,232,255,0.13);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(57, 255, 136, 0.72);
  box-shadow: 0 18px 36px rgba(0,0,0,0.28), 0 0 44px rgba(57,255,136,0.2);
  outline: none;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.26), rgba(25, 232, 255, 0.24), rgba(23, 107, 255, 0.32));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.glass-card,
.message-panel {
  border: 1px solid rgba(25, 232, 255, 0.18);
  background: linear-gradient(145deg, rgba(7, 21, 42, 0.74), rgba(6, 12, 28, 0.62));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255,255,255,0.05);
}

.glass-card {
  min-height: 215px;
  padding: 24px;
  border-radius: 28px;
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.glass-card:hover {
  border-color: rgba(57, 255, 136, 0.44);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), 0 0 44px rgba(25,232,255,0.11);
}

.card-kicker,
.small-label {
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.glass-card h2,
.message-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1;
}

.glass-card p,
.message-copy p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.message-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  border-radius: 34px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}

.mini-stage {
  min-height: 300px;
  display: grid;
  place-items: center;
  perspective: 800px;
}

.mini-cube {
  position: relative;
  width: 155px;
  height: 155px;
  transform-style: preserve-3d;
  animation: cubeRoll 10s linear infinite;
}

.mini-cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 255, 136, 0.38);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(57,255,136,0.16), rgba(25,232,255,0.18), rgba(23,107,255,0.18));
  color: #eaffff;
  font-weight: 950;
  font-size: 2rem;
  box-shadow: inset 0 0 25px rgba(25,232,255,0.18), 0 0 28px rgba(57,255,136,0.12);
}

.mini-cube span:nth-child(1) { transform: rotateY(0deg) translateZ(78px); }
.mini-cube span:nth-child(2) { transform: rotateY(90deg) translateZ(78px); }
.mini-cube span:nth-child(3) { transform: rotateY(180deg) translateZ(78px); }
.mini-cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(78px); }
.mini-cube span:nth-child(5) { transform: rotateX(90deg) translateZ(78px); }
.mini-cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(78px); }

.site-footer {
  position: relative;
  z-index: 2;
  padding: 24px 14px 34px;
  text-align: center;
  color: rgba(234, 255, 255, 0.55);
  font-size: 0.9rem;
}

.spark {
  position: fixed;
  z-index: 5;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  pointer-events: none;
  background: var(--green);
  box-shadow: 0 0 12px var(--green), 0 0 22px var(--cyan);
  animation: sparkOut 900ms ease-out forwards;
}

.calm .aurora,
.calm .spotlight {
  opacity: 0.18;
}

.calm .letter {
  animation-duration: 6.4s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, -3vh, 0) scale(1.08); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.58; transform: translateX(-50%) scale(1.08); }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes letterFloat {
  from { translate: 0 0; }
  to { translate: 0 -12px; }
}

@keyframes ringSpin {
  to { rotate: 0 0 1 360deg; }
}

@keyframes cubeRoll {
  from { transform: rotateX(-16deg) rotateY(0deg) rotateZ(4deg); }
  to { transform: rotateX(-16deg) rotateY(360deg) rotateZ(4deg); }
}

@keyframes sparkOut {
  from { transform: translate(0,0) scale(1); opacity: 1; }
  to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; }
}

@media (max-width: 900px) {
  .cards,
  .message-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .scene-wrap {
    height: 330px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 16px;
  }

  .topline {
    font-size: 0.78rem;
    text-align: left;
  }

  .scene-wrap {
    height: 285px;
    margin-bottom: -18px;
  }

  .letter {
    min-width: clamp(25px, 10vw, 46px);
    font-size: clamp(3.2rem, 18vw, 5.8rem);
    -webkit-text-stroke: 2px rgba(1, 7, 16, 0.94);
  }

  .lead {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .glass-card,
  .message-panel {
    border-radius: 22px;
  }
}
