/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.public-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
  min-width: max-content;
}

.public-header__mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.public-header__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.public-header__tagline {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.public-header__nav {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px;
}

.public-header__link {
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.public-header__link:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.public-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.public-header__user {
  display: none;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.public-header__ghost,
.public-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.public-header__ghost {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  padding: 0 14px;
}

.public-header__cta {
  background: #2563eb;
  color: #ffffff;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.public-header__ghost:hover,
.public-header__cta:hover {
  transform: translateY(-1px);
}

.public-header__ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.public-header__cta:hover {
  background: #1d4ed8;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

@media (min-width: 760px) {
  .public-header__nav {
    display: flex;
  }

  .public-header__user {
    display: inline-block;
  }
}

@media (max-width: 520px) {
  .public-header__inner {
    padding: 12px 16px;
  }

  .public-header__tagline,
  .public-header__ghost {
    display: none;
  }

  .public-header__cta {
    padding: 0 12px;
  }
}

@keyframes pos-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pos-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pos-scan {
  0% {
    transform: translateY(-20%);
    opacity: 0;
  }

  20%, 80% {
    opacity: 1;
  }

  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}

.motion-rise {
  animation: pos-rise 700ms ease both;
}

.motion-rise-delay-1 {
  animation: pos-rise 700ms ease 120ms both;
}

.motion-rise-delay-2 {
  animation: pos-rise 700ms ease 240ms both;
}

.motion-float {
  animation: pos-float 5s ease-in-out infinite;
}

.motion-scan {
  animation: pos-scan 3.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .motion-rise,
  .motion-rise-delay-1,
  .motion-rise-delay-2,
  .motion-float,
  .motion-scan {
    animation: none;
  }
}
