/* =========================================================
   FULFILIX CLOUD — Refinement Layer
   Loaded last. Aligns typography, buttons, cards, hero
   carousel, integrations hub, CTA and spacing rhythm with
   the reference layout language (asaanretail.io) while
   keeping the Fulfilix dark / purple brand.
   ========================================================= */

:root {
  --btn-h: 48px;
  --btn-h-lg: 54px;
  --btn-radius: 10px;
  --section-pad: 120px;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------
   1. TYPOGRAPHY — lighter, reference-matched hierarchy
   --------------------------------------------------------- */
body {
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .hero-title, .product-hero h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2, .section-header h2, .cta-card h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

h3, .feature-card h3, .industry-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.005em; }
h5 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; }

p, .hero-subtitle, .section-header p {
  font-weight: 400;
  letter-spacing: 0;
}

.hero-subtitle { font-size: 1.0625rem; line-height: 1.7; }
.hero-subtitle strong { font-weight: 500; }
.section-header p { font-size: 1.0625rem; line-height: 1.7; }
.section-header { margin-bottom: 56px; }

.section-tag {
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  padding: 7px 16px;
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.28);
}

.proof-num, .stat-box-num { font-weight: 600; letter-spacing: -0.02em; }
.dash-stat-val { font-weight: 600; }
strong, b { font-weight: 600; }

/* ---------------------------------------------------------
   2. BUTTON SYSTEM — one uniform geometry everywhere
   --------------------------------------------------------- */
.btn,
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-lg {
  height: var(--btn-h);
  min-height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--btn-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: none;
  transition: background-color 0.25s var(--ease-soft),
              border-color 0.25s var(--ease-soft),
              color 0.25s var(--ease-soft),
              background-position 0.45s var(--ease-soft),
              opacity 0.25s var(--ease-soft);
}

.btn-lg { height: var(--btn-h-lg); min-height: var(--btn-h-lg); padding: 0 32px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(120deg, #6d28d9 0%, #a855f7 50%, #6d28d9 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-position: 100% 0;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:active { background-position: 100% 0; opacity: 0.92; }

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: var(--text-primary);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  transform: none;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(168, 85, 247, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  padding: 0 18px;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }

.btn:focus-visible { outline: 2px solid rgba(168, 85, 247, 0.6); outline-offset: 2px; }
.btn svg { width: 17px; height: 17px; }

/* Any residual lift animations removed site-wide */
.btn:hover, .btn:active { transform: none !important; }

/* ---------------------------------------------------------
   3. HEADER & LOGO CONTRAST
   --------------------------------------------------------- */
.navbar {
  background: rgba(7, 7, 13, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.navbar.scrolled { background: rgba(7, 7, 13, 0.88); }

.nav-logo,
.footer-logo {
  position: relative;
  padding: 7px 14px;
}
.nav-logo:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.24); }
.nav-logo img { height: 32px; filter: brightness(1.06) contrast(1.04); }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 34px; }

.nav-link { font-weight: 400; letter-spacing: 0.005em; }
@media (min-width: 1024px) {
  .nav-cta { display: flex; align-items: center; gap: 10px; }
}

/* ---------------------------------------------------------
   4. HERO — horizontal auto-play carousel
   --------------------------------------------------------- */
.hero-visual { width: 100%; }

.hero-marquee {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 6px 0;
}

.hm-row {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.hm-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: hmScroll 40s linear infinite;
  will-change: transform;
}
.hm-track.hm-reverse { animation-name: hmScrollReverse; animation-duration: 46s; }
.hero-marquee:hover .hm-track { animation-play-state: paused; }

@keyframes hmScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes hmScrollReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.hm-card {
  position: relative;
  flex: 0 0 auto;
  width: 20rem;
  height: 13rem;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transition: border-color 0.35s var(--ease-soft);
}
.hm-card:hover { border-color: rgba(168, 85, 247, 0.5); }
.hm-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.82);
  transition: filter 0.5s var(--ease-soft);
}
.hm-card:hover img { filter: saturate(1) brightness(0.95); }
.hm-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0) 35%, rgba(7, 7, 13, 0.85) 100%);
  pointer-events: none;
}
.hm-tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 40, 0.7);
  border: 1px solid rgba(139, 92, 246, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hm-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(13, 13, 30, 0.86);
  border: 1px solid rgba(139, 92, 246, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.hm-chip strong { color: #fff; font-weight: 600; }
.hm-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.hm-chip-1 { left: 6%; bottom: -26px; }
.hm-chip-2 { right: 6%; top: -26px; }


/* ---------------------------------------------------------
   5. INTEGRATIONS HUB
   --------------------------------------------------------- */
.int-hub {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.int-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.int-hub-lines .int-lines line {
  stroke: rgb(139 92 246 / 97%);
  stroke-width: 1;
  stroke-dasharray: 5 6;
  animation: intDash 4s linear infinite;
}
@keyframes intDash {
  from { stroke-dashoffset: 44; }
  to { stroke-dashoffset: 0; }
}
.int-ring-dashed {
  fill: none;
  stroke: rgb(147 100 255);
  stroke-width: 1;
  stroke-dasharray: 3 9;
  transform-origin: 240px 240px;
  animation: intSpin 42s linear infinite;
}
.int-ring-soft {
  fill: none;
  stroke: rgba(139, 92, 246, 0.14);
  stroke-width: 1;
  transform-origin: 240px 240px;
  animation: intSpin 30s linear infinite reverse;
}
@keyframes intSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.int-hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(109, 40, 217, 0.35), rgba(13, 13, 30, 0.96));
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 12px rgba(109, 40, 217, 0.06), 0 20px 60px rgba(109, 40, 217, 0.25);
  padding: 12%;
}
.int-hub-center img { width: 100%; height: auto; filter: brightness(1.1); }
.int-hub-center::after {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.18);
  animation: intPulse 3s ease-in-out infinite;
}
@keyframes intPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.int-hub-badge {
  position: absolute;
  left: 50%;
  top: 70%;
  bottom: auto;
  z-index: 4;
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(13, 13, 30, 0.9);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-100);
  background: rgba(109, 40, 217, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
}

.int-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translate(39%, 0);
}
.int-hub { --node-r: 188px; }
.int-node { transform: rotate(var(--a)) translate(var(--node-r)); }

.int-node-in {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(19, 19, 38, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
  padding: 6px;
  line-height: 1.2;
}
.int-node:hover .int-node-in {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(30, 10, 74, 0.95);
}

/* ---------------------------------------------------------
   6. CARDS — premium enterprise treatment
   --------------------------------------------------------- */
.feature-card,
.stat-box,
.testimonial-card,
.platform-card,
.industry-card,
.pricing-card,
.faq-item,
.alt-feature-visual {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 60%),
    var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s var(--ease-soft), background-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.feature-card {
  padding: 36px 32px 32px;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}
.feature-card:hover,
.stat-box:hover,
.testimonial-card:hover,
.platform-card:hover {
  transform: none;
  border-color: rgba(168, 85, 247, 0.38);
  background-color: var(--bg-card-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(168, 85, 247, 0.22), rgba(109, 40, 217, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
}
.feature-card:hover .feature-icon {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--purple-100); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 22px; color: var(--text-muted); }
.feature-link { font-weight: 500; color: var(--purple-100); }

.features-grid { gap: 20px; }
.stat-box { padding: 24px; }
.faq-item { padding: 4px 22px; }

/* ---------------------------------------------------------
   7. CTA SECTION
   --------------------------------------------------------- */
.cta-card {
  padding: 54px 54px;
  border-radius: 26px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(139, 92, 246, 0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(30, 10, 74, 0.7) 0%, rgba(12, 12, 24, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.5);
}
.cta-card::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent);
}
.cta-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; margin-bottom: 18px; }
.cta-card p { font-size: 1.0625rem;  color: var(--text-muted); }
.cta-buttons { gap: 14px; padding:25px 0;}
.cta-note { margin-top: 20px; font-size: 0.8rem; }
.cta-avatars { margin-bottom: 18px; }
.cta-social-proof { margin-bottom: 32px; }

/* ---------------------------------------------------------
   8. SPACING & VERTICAL RHYTHM
   --------------------------------------------------------- */
.integrations-section,
.features-section,
.automation-section,
.industries-section,
.platform-section,
.testimonials-section,
.faq-section,
.cta-section,
.how-it-works,
.features-strip,
.alt-feature {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.trusted-section { padding: 56px 0; }

.container { padding-left: 32px; padding-right: 32px; }
.nav-container { padding-left: 32px; padding-right: 32px; }

/* ---------------------------------------------------------
   9. MOTION — smoother reveals
   --------------------------------------------------------- */
.reveal, .reveal-left, .reveal-right {
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  .hm-track, .int-ring-dashed, .int-ring-soft, .int-hub-lines .int-lines line, .marquee-track {
    animation: none !important;
  }
}

/* ---------------------------------------------------------
   10. RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1199px) {
  :root { --section-pad: 100px; }
  .int-hub { --node-r: 165px; }
  .int-node-in { width: 66px; height: 66px; font-size: 0.62rem; }
}

@media (max-width: 1023px) {
  :root { --section-pad: 88px; }
  .hero-marquee { gap: 16px; }
  .hm-card { width: 17rem; height: 11.5rem; }
  .hm-chip-1 { left: 4%; bottom: -20px; }
  .hm-chip-2 { right: 4%; top: -20px; }
  .cta-card { padding: 64px 40px; }
  .int-hub { max-width: 420px; --node-r: 150px; }
}

@media (max-width: 767px) {
  :root { --section-pad: 72px; --btn-h: 46px; --btn-h-lg: 50px; }
  .container, .nav-container { padding-left: 20px; padding-right: 20px; }
  .hm-card { width: 14.5rem; height: 10rem; border-radius: 16px; }
  .hm-tag { font-size: 0.72rem; padding: 5px 10px; }
  .hm-chip { font-size: 0.72rem; padding: 8px 12px; }
  .hm-chip-2 { display: none; }
  .feature-card { padding: 28px 24px; }
  .cta-card { padding: 48px 24px; border-radius: 20px; }
  .btn, .btn-lg { width: auto; }
  .hero-cta .btn, .cta-buttons .btn { flex: 1 1 auto; min-width: 190px; }
  .int-hub { max-width: 330px; --node-r: 120px; }
  .int-node-in { width: 54px; height: 54px; font-size: 0.55rem; }
  .int-hub-badge { display: none; }
}

@media (max-width: 400px) {
  .hm-card { width: 12.5rem; height: 9rem; }
}

/* ---------------------------------------------------------
   11. FIXES — hero height, grid overflow, logo contrast
   --------------------------------------------------------- */
.hero { min-height: 0; align-items: center; }
.hero-container { padding: 118px 32px 108px; gap: 56px; align-items: center; }

/* grid children must be allowed to shrink or the marquee widens the row */
.hero-content, .hero-visual { min-width: 0; }
.hero-visual { max-width: 100%; }
.hero-marquee { max-width: 100%; overflow: visible; }
.hm-row { max-width: 100%; }

.hero-title { max-width: max-content; }
.hero-cta { flex-wrap: nowrap; gap: 14px; }
.hero-cta .btn { flex: 0 0 auto; white-space: nowrap; }

/* Logo: light plate so the purple wordmark reads clearly on dark UI */
.nav-logo,
.footer-logo {
  background: linear-gradient(160deg, #ffffff 0%, #f1eefc 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
}
.nav-logo:hover {
  background: linear-gradient(160deg, #ffffff 0%, #e9e3fb 100%);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 26px rgba(109, 40, 217, 0.34), inset 0 1px 0 #fff;
}
.nav-logo img, .footer-logo img { filter: none; }

@media (max-width: 1023px) {
  .hero-container { padding: 96px 24px 80px; grid-template-columns: 1fr; }
  .hero-title { max-width: 20ch; }
  .hero-cta { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .hero-container { padding: 72px 20px 64px; }
  .hero-title { max-width: none; }
  .nav-logo { padding: 6px 12px; }
  .nav-logo img { height: 26px; }
}

/* Hub centre: light disc so the Fulfilix mark stays legible */
.int-hub-center {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #efeafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 14px rgba(109, 40, 217, 0.08), 0 22px 60px rgba(109, 40, 217, 0.4);
  padding: 9%;
}
.int-hub-center img { filter: none; }
.int-hub-center::after {
    border-color: rgb(168 85 247);
}

.int-node-in {
  width: 80px;
  height: 80px;
  font-size: 0.7rem;
  color: var(--text-primary);
  hyphens: auto;
  overflow-wrap: anywhere;
}
@media (max-width: 1199px) { .int-node-in { width: 72px; height: 72px; font-size: 0.64rem; } }
@media (max-width: 767px) { .int-node-in { width: 56px; height: 56px; font-size: 0.5rem; } }

.int-hub-center { width: 31%; padding: 0; }
.int-hub-center img { width: 76%; max-width: 76%; height: auto; }
.int-node-in { font-size: 0.63rem; letter-spacing: -0.01em; padding: 8px; }

.int-node:nth-of-type(2) .int-node-in { font-size: 0.55rem; }
.cta-card { padding-bottom: 64px; }
.cta-note { margin-top: 24px; }

/* Mobile: headline leads, visual follows */
@media (max-width: 1023px) {
  .hero-visual { order: 2; }
  .hero-content { order: 1; }
  .hero-marquee { margin-top: 8px; }
  .mobile-menu-btn { z-index: 20; }
}

html, body { overflow-x: hidden; }

/* ---------------------------------------------------------
   12. PRODUCT PAGES — same rhythm as the homepage
   --------------------------------------------------------- */
.product-hero { min-height: 0; }
.product-hero-container { padding-top: 118px; padding-bottom: 100px; align-items: center; }
.product-hero-tag {
  display: inline-flex;
  width: fit-content;
  align-self: flex-start;
}
.product-hero h1 { max-width: 16ch; }
.product-hero p { font-size: 1.0625rem; line-height: 1.7; }
.features-strip { padding-top: 44px; padding-bottom: 44px; }
.alt-feature { padding-top: 96px; padding-bottom: 96px; }

@media (max-width: 1023px) {
  .product-hero-container { padding-top: 92px; padding-bottom: 76px; }
  .product-hero-tag { align-self: center; }
  .product-hero h1 { max-width: none; }
}
@media (max-width: 767px) {
  .product-hero-container { padding-top: 72px; padding-bottom: 60px; }
  .alt-feature { padding-top: 64px; padding-bottom: 64px; }
}
