:root {
  --bg: #030305;
  --text-main: #ffffff;
  --text-muted: #8a8a9e;
  --accent-1: #6a00ff;
  --accent-2: #00d2ff;
  --accent-glow: rgba(106, 0, 255, 0.5);
}

body,
html {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
.logo,
.glow-btn span {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

/* 
 * The scroll-track is tall to allow the user to scroll.
 * It does not contain the visual elements directly, 
 * it just provides the height for the scrollbar.
 */
.scroll-track {
  height: 400vh;
}

/* 
 * The sticky-view locks to the screen and holds our 3D space.
 */
.sticky-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 1200px;
  background: radial-gradient(circle at center, #11111a 0%, #030305 100%);
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  box-sizing: border-box;
}

.logo {
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}

.scroll-prompt {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.7;
}

.scroll-prompt span {
  font-size: 0.7rem;
  letter-spacing: 4px;
  font-weight: 500;
}

.mouse {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  animation: scrollWheel 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scrollWheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

.scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  transform-style: preserve-3d;
}

.step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateZ(-1000px);
  will-change: transform, opacity;
  pointer-events: none;
}

.step.active {
  pointer-events: auto;
}

.content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(
    to right,
    #ff007f,
    #6a00ff,
    #00d2ff,
    #ff007f
  );
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    to right,
    #00d2ff,
    #6a00ff,
    #ff007f,
    #00d2ff
  );
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 8s linear infinite;
}

@keyframes shine {
  to {
    background-position: 300% center;
  }
}

p {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.solid-background {
  background: #000;
}

/* Glassmorphism Form Card */
.glass {
  background: rgba(15, 15, 20, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 4rem;
  width: 100%;
  max-width: 700px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.glass h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.glass p {
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.input-row {
  display: flex;
  gap: 1.5rem;
}

input,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  transform: translateZ(0);
}

textarea {
  resize: none;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: #666;
}

.glow-btn {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  padding: 1.3rem;
  border-radius: 16px;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s;
  box-shadow: 0 10px 30px var(--accent-glow);
  transform: translateZ(0);
}

.glow-btn:hover {
  transform: translateY(-3px) scale(1.02) translateZ(0);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.glow-btn:active {
  transform: translateY(0) scale(0.98) translateZ(0);
}

.glow-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-btn:hover::before {
  left: 100%;
}

#form-message {
  text-align: center;
  min-height: 24px;
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 400;
}
#form-message.success {
  color: #00d2ff;
  opacity: 1;
}
#form-message.error {
  color: #ff007f;
  opacity: 1;
}

@media (max-width: 768px) {
  .input-row {
    flex-direction: column;
    gap: 1rem;
  }
  .glass {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  .ui-layer {
    padding: 1.5rem;
  }
  .content {
    padding: 1.5rem;
  }
  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
  }
  h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
  }
  p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .glass h2 {
    font-size: 1.5rem;
  }
  .scroll-prompt {
    transform: scale(0.8);
  }
}
