:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #889296;
  --faded: #444a4d;
  --green: #39ff7a;
  --cyan: #25a7ff;
  --font-main: "Sora", sans-serif;
  --font-secondary: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle ambient background lighting */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

.cyan-glow {
  background: var(--cyan);
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
}

.green-glow {
  background: var(--green);
  width: 500px;
  height: 500px;
  top: 40%;
  right: -150px;
}

.arrival-container {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

/* Header */
.arrival-header {
  margin-top: 8vh;
  animation: fadeInDown 1.5s ease forwards;
}

.continuity-symbol {
  width: 42px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(57, 255, 122, 0.4));
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.continuity-symbol:hover {
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(57, 255, 122, 0.7));
}

/* Main Arrival Section */
.arrival-main {
  margin-top: 15vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.2s ease forwards 0.3s;
  opacity: 0;
}

.greeting {
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Interaction Zone */
.interaction-zone {
  width: 100%;
  max-width: 500px;
}

.intent-label {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--muted);
  display: block;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.intent-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.75rem;
  font-family: var(--font-main);
  font-weight: 400;
  text-align: center;
  padding: 0.5rem 1rem 1rem 1rem;
  outline: none;
}

.intent-input::placeholder {
  color: var(--faded);
  font-weight: 300;
}

/* Glowing bottom line for the input */
.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 122, 0.5), transparent);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.5;
}

.intent-input:focus ~ .input-line {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleY(1.5);
}

/* Manifesto Section */
.manifesto {
  margin-top: 15vh;
  font-family: var(--font-secondary);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  animation: fadeIn 2s ease forwards 1s;
  opacity: 0;
}

/* Footer Links */
.arrival-footer {
  margin-top: 12vh;
  margin-bottom: 4vh;
  width: 100%;
  animation: fadeIn 2s ease forwards 1.5s;
  opacity: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--faded);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--text);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 600px) {
  .greeting {
    font-size: 2.2rem;
  }
  .intent-input {
    font-size: 1.3rem;
  }
  .footer-links {
    gap: 1.5rem;
  }
  .cyan-glow, .green-glow {
    filter: blur(100px);
  }
}


/* Cinematic Arrival Sequences */
.cinematic-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  min-height: 80px;
}

.cinematic-line {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  margin: 0;
}

.cinematic-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.cinematic-line.highlight {
  color: var(--green);
}

/* UI Elements that fade in late */
.delayed-ui {
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease-in-out;
}

.delayed-ui.visible {
  opacity: 1;
  pointer-events: auto;
}
