/* landing.css — layout for the public landing page. */

/* ---------- Top nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: 64px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--bg-1);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.wordmark {
  color: var(--text-0);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.site-nav .nav-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-small);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: var(--space-7) var(--space-6);
}

.hero-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-display);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--text-2);
  margin-bottom: var(--space-5);
  margin-inline: auto;
}

.hero-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.hero-form .input { flex: 1; }
.hero-form .btn   { min-width: 120px; }

/* Result row that appears after a successful shorten */
.result-area {
  min-height: 64px;
  margin-top: var(--space-4);
}
.result-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
  text-align: left;
}
.result-card.show {
  opacity: 1;
  transform: translateY(0);
}
.result-link {
  flex: 1;
  color: var(--text-0);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  user-select: all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-actions {
  display: flex;
  gap: var(--space-2);
}

/* ---------- Features (3 cards) ---------- */

.features {
  padding-block: var(--space-6);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature h3 {
  margin-bottom: var(--space-2);
}
.feature p {
  color: var(--text-2);
  font-size: var(--text-small);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--bg-1);
  padding-block: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: var(--text-2);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Mobile ---------- */

@media (max-width: 540px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
}
