html {
  scroll-behavior: smooth;
}

body {
  color: #334155;
}

/* ---------- Nav links ---------- */
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #0f172a;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0ea5e9;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  transition: background-color 0.2s ease;
}
.mobile-nav-link:hover {
  background-color: #f8fafc;
}

/* ---------- Cards ---------- */
.value-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: #bae6fd;
  box-shadow: 0 12px 28px -8px rgba(14, 165, 233, 0.18);
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #38bdf8;
}

.premise-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
}

.model-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
}

.solution-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.solution-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(14, 165, 233, 0.35);
}

.step-number {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

/* ---------- Forms ---------- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder {
  color: #94a3b8;
}
.form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-input.input-error {
  border-color: #f87171;
}
.form-input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}
.form-error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ef4444;
}
.form-error.visible {
  display: block;
}

/* ---------- Fade-in-on-scroll ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
}
.fade-in-up.in-view {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}

/* Header shadow once scrolled */
header.is-scrolled {
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.06);
}
