/* ALT Solutions — global custom styles
   Tailwind handles the bulk; this file is for what utilities can't cleanly express. */

/* Smooth-scroll respect for reduced motion is handled in JS */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus ring polish — Tailwind's focus-visible:ring is great, but we want it
   keyboard-only (not on click). focus-visible already handles this. */

/* Subtle scrollbar (light theme) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; border: 2px solid #F8FAFC; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Hero gradient blob — very subtle, blue-tinted */
.hero-blob {
  background:
    radial-gradient(60% 60% at 75% 30%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(2, 132, 199, 0.12) 0%, transparent 60%);
}

/* Card hover lift (slightly more refined than Tailwind's default shadow scale) */
.card-lift {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.10), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  border-color: #BAE6FD; /* sky-200 */
}

/* Underline-on-hover for inline links */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 200ms ease;
}
.link-underline:hover { background-size: 100% 1px; }

/* Hide scrollbars on the mobile nav drawer if it scrolls */
.nav-drawer::-webkit-scrollbar { display: none; }

/* Gradient text for the wordmark — restrained, only on logo */
.wordmark-accent {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero emphasis — clean sky-blue underline on a single word, no font swap */
.hero-accent {
  position: relative;
  display: inline-block;
  color: inherit;
}
.hero-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.12em;
  background: #0284C7;
  border-radius: 999px;
}

/* Scroll-fade reveal — applied to [data-fade]; activated by JS adding .is-visible */
[data-fade] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1), transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-fade], [data-fade].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============== BUTTON SYSTEM ==============
   Codified primary/ghost buttons. Use .btn-primary or .btn-ghost on <a> or <button>.
   Add .btn-sm for a compact variant. */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0 0.625rem;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Underline — drawn via ::after for independent animation */
.btn-primary::after,
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  transition: background-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Primary — sky-blue text + sky-blue underline */
.btn-primary {
  color: #0284C7;
}
.btn-primary::after {
  background-color: #0284C7;
}
.btn-primary:hover {
  color: #0369A1;
}
.btn-primary:hover::after {
  background-color: #0369A1;
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #0284C7;
}

/* Ghost — ink text + ink underline; shifts to sky-blue on hover */
.btn-ghost {
  color: #0F172A;
}
.btn-ghost::after {
  background-color: #0F172A;
}
.btn-ghost:hover {
  color: #0284C7;
}
.btn-ghost:hover::after {
  background-color: #0284C7;
}
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #0284C7;
}

/* Small variant */
.btn-sm {
  font-size: 0.8125rem;
}

/* Arrow slide animation — slightly longer, smoother */
.btn-primary .btn-arrow,
.btn-ghost .btn-arrow {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.btn-primary:hover .btn-arrow,
.btn-ghost:hover .btn-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-ghost,
  .btn-primary .btn-arrow, .btn-ghost .btn-arrow {
    transition-duration: 0.01ms !important;
  }
}
