/* Smart Sourcing — Landing Page
   Brand: Fibon
   ------------------------------------- */

:root {
  /* Brand */
  --fb-navy: #0a1f4d;
  --fb-navy-2: #0d2a66;
  --fb-blue: #1654d8;
  --fb-blue-2: #2a78ff;
  --fb-orange: #ff6a1a;
  --fb-orange-2: #ff8a3d;
  --fb-coral: #e53935;
  --fb-gold: #f5c518;

  /* Neutrals */
  --ink: #0b1228;
  --ink-2: #1a2347;
  --slate: #4a5578;
  --slate-2: #5e6885;
  --line: #e3e7f1;
  --line-soft: #eef1f8;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-cream: #fbf8f3;

  /* Effects */
  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11,18,40,.04), 0 2px 8px rgba(11,18,40,.05);
  --shadow: 0 6px 24px rgba(11,18,40,.08);
  --shadow-lg: 0 30px 60px -20px rgba(11,18,40,.25);
  --shadow-glow: 0 0 0 1px rgba(255,106,26,.18), 0 18px 40px -10px rgba(255,106,26,.45);

  /* Type */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--fb-orange); color: white; }

/* Headlines */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fb-orange);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Section spacing */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fb-orange);
  color: white;
  box-shadow: 0 10px 24px -8px rgba(255,106,26,.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(255,106,26,.7);
  background: #ff7a30;
}
.btn-dark {
  background: var(--fb-navy);
  color: white;
}
.btn-dark:hover { background: var(--fb-navy-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-2); }
.btn-link {
  background: transparent;
  padding: 10px 0;
  color: var(--fb-blue);
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
}

/* Pill / chip */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--fb-orange);
}

/* Card base */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: #cbd2e3; }

/* Utility */
.muted { color: var(--slate); }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   SMART SOURCING — MOTION SYSTEM
   ============================================================ */

/* Scroll-triggered reveals: title fade-up + card cascade */
.rv-elem {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.rv-elem.rv-in { opacity: 1; transform: translateY(0); }

/* Hero — staggered entrance on load */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-stagger > * {
  opacity: 0;
  animation: heroIn .85s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: .12s; }
.hero-stagger > *:nth-child(2) { animation-delay: .24s; }
.hero-stagger > *:nth-child(3) { animation-delay: .38s; }
.hero-stagger > *:nth-child(4) { animation-delay: .52s; }
.hero-stagger > *:nth-child(5) { animation-delay: .66s; }

@keyframes heroDashIn {
  from { opacity: 0; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(28px) scale(.96); }
  to   { opacity: 1; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateY(0) scale(1); }
}
.hero-dash-anim {
  animation: heroDashIn 1.1s .55s cubic-bezier(.16,1,.3,1) both;
}

/* Cost section "punch" — animated strikethrough + slide-up reveal */
.strike-anim {
  position: relative;
  display: inline-block;
}
.strike-anim::after {
  content: "";
  position: absolute;
  top: 50%; left: -4px; right: -4px;
  height: 3px;
  background: var(--fb-coral);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform .65s cubic-bezier(.65,0,.35,1) .35s;
}
.strike-anim.struck::after { transform: translateY(-50%) scaleX(1); }

.cut-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease 1s, transform .8s cubic-bezier(.16,1,.3,1) 1s;
}
.cut-reveal.in { opacity: 1; transform: translateY(0); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fb-orange) 0%, var(--fb-coral) 60%, var(--fb-gold) 100%);
  box-shadow: 0 0 12px rgba(255,106,26,.6);
  transition: width .06s linear;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .rv-elem,
  .hero-stagger > *,
  .hero-dash-anim,
  .cut-reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .strike-anim::after { transform: translateY(-50%) scaleX(1) !important; transition: none !important; }
}

/* Grain texture for hero */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .6;
}

/* Marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

/* Custom scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4daea; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b0b8d0; }
