@import './base.css';

#app {
  min-height: 100vh;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 14px), 0);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hover-lift {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.float {
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding-top: var(--header-h);
}

.section {
  padding: var(--section-pad) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-700);
  font-weight: 600;
  font-size: 12px;
}

.h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  /* border-radius: var(--radius-lg); */
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.02);
}

.card-pad {
  padding: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: 160ms ease;

}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.02);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

.btn-link {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-700);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: var(--border);
}

@media (max-width: 960px) {
  :root {
    --section-pad: 56px;
    --header-h: 64px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .float {
    animation: none;
  }
  .hover-lift,
  .hover-lift:hover {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}
