/* Fulfilix frontend polish
   Deliberately restrained: protects the established proportions, palette and assets. */

:root {
  --bg-primary: #12101b;
  --bg-secondary: #181522;
  --bg-tertiary: #211d2e;
  --bg-card: #242036;
  --bg-card-hover: #2b2642;
  --border-color: rgba(167, 139, 250, .26);
  --border-bright: rgba(192, 132, 252, .48);
}

html {
  scroll-padding-top: 96px;
}

body {
  background-color: var(--bg-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012) 62%),
    linear-gradient(100deg, rgba(55, 43, 76, .94), rgba(36, 30, 53, .96) 52%, rgba(55, 43, 76, .94)) !important;
  border-color: rgba(196, 181, 253, .24) !important;
}

.navbar.scrolled .nav-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .012) 62%),
    linear-gradient(100deg, rgba(58, 45, 80, .97), rgba(38, 31, 56, .98) 52%, rgba(58, 45, 80, .97)) !important;
}

.mobile-nav {
  background: linear-gradient(180deg, rgba(38, 31, 56, .99), rgba(25, 22, 37, .995)) !important;
}

.container,
.nav-container,
.hero-container,
.product-hero-container,
.alt-feature-inner {
  width: 100%;
}

.hero-container > *,
.product-hero-container > *,
.features-grid > *,
.steps-grid > *,
.automation-inner > *,
.integrations-inner > *,
.footer-grid > * {
  min-width: 0;
}

h1,
h2,
h3,
.hero-title,
.product-hero h1 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p,
.hero-subtitle,
.section-header p {
  text-wrap: pretty;
}

.feature-card,
.step-card,
.testimonial-card,
.stat-box,
.faq-item {
  transition-property: transform, border-color, background-color, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}

.feature-card:hover,
.step-card:hover,
.testimonial-card:hover {
  transform: translateY(-3px);
}

.media-thumbnail {
  cursor: default;
}

.media-thumbnail img,
.industry-visual img,
.alt-feature-visual img,
.product-hero-visual img {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

:is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--purple-100);
  outline-offset: 3px;
}

input,
select,
textarea {
  max-width: 100%;
}

.fx-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 12px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, .1);
  font-size: .875rem;
}

.fx-alert.is-error {
  border-color: rgba(251, 113, 133, .32);
  color: #fecdd3;
  background: rgba(244, 63, 94, .1);
}

.cms-error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
  background: var(--bg-primary, #07070d);
}

.cms-error-page > div {
  width: min(560px, 100%);
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid var(--border-color, rgba(139, 92, 246, .22));
  border-radius: 24px;
  background: var(--bg-card, #131326);
  box-shadow: var(--shadow-card, 0 20px 60px rgba(0, 0, 0, .35));
}

.cms-error-page span {
  color: var(--purple-100, #c084fc);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.cms-error-page p {
  margin: 12px 0 24px;
}

@media (min-width: 1920px) {
  h1,
  .hero-title,
  .product-hero h1 {
    font-size: 3.25rem;
  }

  h2,
  .section-header h2,
  .cta-card h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 76px;
  }

  h1,
  .hero-title,
  .product-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
    line-height: 1.16;
  }

  h2,
  .section-header h2,
  .cta-card h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .feature-card:hover,
  .step-card:hover,
  .testimonial-card:hover {
    transform: none;
  }

  .media-thumbnail,
  .industry-visual,
  .alt-feature-visual,
  .product-hero-visual {
    max-width: 100%;
  }

  .footer-bottom,
  .footer-bottom-links {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container,
  .nav-container,
  .hero-container,
  .product-hero-container,
  .alt-feature-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn,
  .btn-lg {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
