/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.markdown > * + * {
  margin-top: 0.75rem;
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
}

.markdown th,
.markdown td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.markdown th {
  background: #f8fafc;
  font-weight: 600;
}

.markdown ul,
.markdown ol {
  padding-left: 1.25rem;
}

.markdown blockquote {
  border-left: 4px solid #e2e8f0;
  padding-left: 0.75rem;
  color: #475569;
}

.markdown code {
  background: #f1f5f9;
  border-radius: 0.25rem;
  padding: 0.1rem 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.markdown pre {
  background: #0f172a;
  border-radius: 0.5rem;
  color: #f8fafc;
  overflow-x: auto;
  padding: 0.75rem;
}

body {
  font-family: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

.mock-agent-stage {
  background-image:
    radial-gradient(
      circle at 18% 14%,
      rgba(196, 181, 253, 0.22),
      transparent 42%
    ),
    radial-gradient(
      circle at 78% 78%,
      rgba(129, 140, 248, 0.2),
      transparent 38%
    );
}

.mock-agent-line {
  opacity: 0;
  transform: translateY(8px);
  animation: mockAgentReveal 0.6s ease-out forwards;
  animation-delay: var(--line-delay, 0s);
}

.mock-typing-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0.3;
  animation: mockTyping 1s infinite;
  animation-delay: var(--dot-delay, 0s);
}

@keyframes mockAgentReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes mockTyping {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.hero-typewriter-frame {
  display: block;
}

.hero-typewriter-text {
  display: block;
  white-space: normal;
  word-break: break-word;
}

.hero-typewriter-text .Typewriter__wrapper,
.hero-typewriter-text .Typewriter__cursor {
  display: inline-block;
  transition: opacity 320ms ease, transform 320ms ease;
}

.hero-typewriter-text .Typewriter__cursor {
  margin-left: 0.14em;
  font-size: 0.74em;
  line-height: 1;
  transform: translateY(-0.06em);
}

.hero-typewriter-exit {
  opacity: 0;
  transform: translateY(0.42em);
}

@media (prefers-reduced-motion: reduce) {
  .mock-agent-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .mock-typing-dot {
    animation: none;
    opacity: 1;
  }

  .hero-typewriter-text .Typewriter__wrapper,
  .hero-typewriter-text .Typewriter__cursor {
    transition: none;
  }
}

/* ============================================================
   LANDING PAGE — MODERN MINIMAL DESIGN SYSTEM
   Based on the indigo/violet palette from the hero.
   ============================================================ */

/* ── Sticky nav colour transitions ──
   When the header scrolls over light content the surface goes white/95.
   These rules swap the violet-on-dark palette to indigo-on-white. */

.nav-is-scrolled .landing-nav-brand {
  color: #312e81; /* indigo-900 */
}

.nav-is-scrolled .landing-nav-link {
  color: #4338ca; /* indigo-700 */
}

.nav-is-scrolled .landing-nav-link:hover {
  color: #1e1b4b; /* indigo-950 */
}

.nav-is-scrolled .landing-nav-sign-in {
  background-color: transparent;
  border-color: #c4b5fd; /* violet-300 */
  color: #4338ca; /* indigo-700 */
}

.nav-is-scrolled .landing-nav-sign-in:hover {
  background-color: #f5f3ff; /* violet-50 */
}

/* Eyebrow / label typography */
.coord-label {
  font-family: "Lexend", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Typing dots — light (indigo) variant for white-background sections.
   Use a solid colour so the animation's own opacity: 0.3→1 does the fading
   instead of stacking with a semi-transparent fill. */
.mock-typing-dot-indigo {
  background-color: rgb(99, 102, 241); /* indigo-500 */
}

@media (prefers-reduced-motion: reduce) {
  .mock-typing-dot-indigo {
    animation: none;
    opacity: 0.6;
  }
}

/* ── Itinerary carousel ── */

@keyframes landingCarousel {
  to { transform: translateX(-50%); }
}

.landing-carousel-track {
  animation: landingCarousel 55s linear infinite;
  will-change: transform;
}

.landing-carousel-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .landing-carousel-track {
    animation: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .landing-carousel-track::-webkit-scrollbar {
    display: none;
  }
}
