.landing { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }
html { scroll-behavior: smooth; }

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing-hero h1,
.landing-hero p,
.landing-hero .btn-row {
  opacity: 0;
  animation: landing-rise 0.6s var(--ease-out) forwards;
}
.landing-hero h1       { animation-delay: 0.08s; }
.landing-hero p        { animation-delay: 0.18s; }
.landing-hero .btn-row { animation-delay: 0.3s; }

.landing .terminal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.landing .terminal.landing-in { opacity: 1; transform: translateY(0); }

.landing-hero {
  text-align: center;
  margin: 56px 0 52px;
}
.landing-hero h1 {
  font-size: 40px;
  margin: 0 0 12px;
}
.landing-hero p {
  margin: 0 auto 28px;
  font-size: 15px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.6;
}

.terminal-body .term-line { white-space: pre-wrap; }
.landing .terminal-bar { font-size: 12.5px; padding: 12px 16px; }
#termType { font-size: 13.5px; line-height: 1.1; height: 360px; overflow: hidden; }
.landing .terminal-body .cursor { width: 9px; height: 19px; }
.terminal-body .ff-k { color: var(--accent); }
.terminal-body .ff-logo { color: var(--accent); }
@media (max-width: 640px) {
  .landing .terminal {
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    transform-origin: top left;
  }
  #termType {
    height: auto;
    overflow: hidden;
  }
  #termType .term-line {
    white-space: pre;
  }
}

.landing-faq {
  max-width: 640px;
  margin: 72px auto 0;
  text-align: left;
}
.landing-faq details { border-bottom: 1px solid var(--border-soft); }
.landing-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.15s ease;
}
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}
.landing-faq summary:hover { color: var(--accent); }
.landing-faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.landing-faq details p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 640px;
}
.landing-faq-more {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}
.landing-faq-more a {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.landing-faq-more a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .landing-hero h1,
  .landing-hero p,
  .landing-hero .btn-row,
  .landing .terminal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
