/* ===========================================================
   FMS — Brand tokens for the landing page
   Syne (display) + DM Sans (body) per brand book.
   =========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand core */
  --fms-blue: #1B84FF;
  --fms-blue-600: #0F6FE0;
  --fms-blue-500: #1B84FF;
  --fms-blue-400: #4FA0FF;
  --fms-blue-300: #8FC2FF;
  --fms-blue-200: #BFDCFF;
  --fms-blue-100: #EAF3FF;
  --fms-blue-050: #F5F9FF;

  --fms-ink:     #26272F;
  --fms-ink-700: #3A3B45;
  --fms-ink-600: #54565F;
  --fms-ink-500: #6F717A;
  --fms-ink-400: #9A9CA4;
  --fms-ink-300: #C7C8CE;
  --fms-ink-200: #E4E5E9;
  --fms-ink-100: #F1F2F4;
  --fms-ink-050: #F8F9FB;

  --fms-white:   #FFFFFF;
  --fms-black:   #000000;

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;

  /* Type */
  --font-display: "Syne", "DM Sans", ui-sans-serif, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, -apple-system, sans-serif;
  --font-numeric: "Inter", "DM Sans", ui-sans-serif, sans-serif;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 100px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--fms-ink);
  background: var(--fms-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

img { max-width: 100%; display: block; }

/* ----- Display type ----- */
.h-display, .h-h1, .h-h2, .h-h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.h-h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.h-h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fms-blue);
}

.lead {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fms-ink-600);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--fms-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 132, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--fms-blue-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(27, 132, 255, 0.34);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }
.btn-ghost-dark {
  background: transparent;
  color: var(--fms-ink);
  border-color: var(--fms-ink-200);
}
.btn-ghost-dark:hover { border-color: var(--fms-ink-300); background: var(--fms-ink-050); }
.btn-soft {
  background: var(--fms-blue-100);
  color: var(--fms-blue);
}
.btn-soft:hover { background: var(--fms-blue-200); }

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

/* ----- Reveal animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Gradient text accent ----- */
.grad-text {
  background: linear-gradient(95deg, #1B84FF 0%, #4FA0FF 35%, #8A6BFF 70%, #1B84FF 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: grad-shift 8s linear infinite;
}
@keyframes grad-shift {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ----- Floating blob animation ----- */
@keyframes float-blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.08); }
  66%     { transform: translate(-30px,30px) scale(0.95); }
}
.blob { animation: float-blob 16s ease-in-out infinite; will-change: transform; }
.blob-2 { animation-duration: 22s; animation-delay: -6s; }
.blob-3 { animation-duration: 28s; animation-delay: -12s; }

/* ----- Aurora conic background ----- */
@keyframes aurora-spin {
  to { transform: rotate(360deg); }
}
.aurora {
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 0deg,
    rgba(27,132,255,0.0)   0%,
    rgba(27,132,255,0.18) 18%,
    rgba(138,107,255,0.14) 35%,
    rgba(27,132,255,0.0)  55%,
    rgba(79,160,255,0.16) 75%,
    rgba(27,132,255,0.0) 100%
  );
  filter: blur(60px);
  animation: aurora-spin 40s linear infinite;
  pointer-events: none;
}

/* ----- Card lift ----- */
.lift {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(20,21,28,0.10), 0 4px 14px rgba(27,132,255,0.10);
  border-color: var(--fms-blue-200) !important;
}

/* ----- Gradient border ring (for featured pricing etc.) ----- */
.grad-ring {
  position: relative;
}
.grad-ring::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #1B84FF, #8A6BFF 50%, #1B84FF);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

/* ----- Shimmer (skeleton/data feel) ----- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(27,132,255,0) 0%, rgba(27,132,255,0.18) 50%, rgba(27,132,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

/* ----- Bar grow-in ----- */
@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ----- Pulse dot ----- */
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(16,185,129,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0   rgba(16,185,129,0); }
}
.pulse-dot { animation: pulse-dot 2s ease-out infinite; }

/* ----- Floating particles ----- */
@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-180px) translateX(40px); opacity: 0; }
}

/* ----- Marquee ----- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: marquee 38s linear infinite;
}
.marquee-mask {
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* ----- Button: animated gradient + sheen ----- */
.btn-primary {
  background: linear-gradient(120deg, #1B84FF 0%, #4FA0FF 45%, #8A6BFF 100%) !important;
  background-size: 200% 100% !important;
  background-position: 0% 50%;
  transition: background-position .5s var(--ease-out), transform .2s var(--ease-out), box-shadow .25s var(--ease-out) !important;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background-position: 100% 50% !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(27,132,255,0.42), 0 4px 12px rgba(138,107,255,0.30) !important;
}
.btn-primary::after {
  content:'';
  position:absolute; top:0; left:-120%;
  width:60%; height:100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ----- KPI count-up baseline ----- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ----- Numeric utility — clean tabular figures for prices, amounts, KPIs ----- */
.numeric {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss01" 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .aurora, .shimmer, .pulse-dot, .marquee-track, .grad-text { animation: none !important; }
  .reveal { transition: none; }
}

/* ----- Logomark (recreated, no PNG) ----- */
.logomark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: var(--fms-blue);
  border-radius: 22%;
  padding: 14%;
  gap: 8%;
  flex-shrink: 0;
}
.logomark > span {
  border-radius: 24%;
  background: #fff;
}
.logomark > span:nth-child(1) { opacity: 0.95; }
.logomark > span:nth-child(2) { opacity: 0.65; }
.logomark > span:nth-child(3) { opacity: 0.65; }
.logomark > span:nth-child(4) { opacity: 0.35; }

/* On a brand-blue background, invert: container white-translucent, dots white */
.logomark.on-blue {
  background: rgba(255,255,255,0.18);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--fms-ink);
}
.logo .descriptor {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fms-ink-500);
  margin-top: 4px;
}
.logo.on-dark .wordmark { color: #fff; }
.logo.on-dark .descriptor { color: rgba(255,255,255,0.45); }
