/* ─────────────────────────────────────────────
   YMP Internal Resources — shared stylesheet
   Adapted from the main site's global styles.
   Tailwind utility classes are provided at runtime
   by the Tailwind Play CDN loaded in each page;
   this file carries the brand tokens, fonts,
   animations and component styles.
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   PARALUCENT — local font setup
   Place .woff2 files in /fonts/ and these rules
   activate automatically. Outfit (Google) is the
   live fallback via --font-outfit.
───────────────────────────────────────────── */
@font-face {
  font-family: 'Paralucent';
  src: url('/fonts/Paralucent-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Paralucent';
  src: url('/fonts/Paralucent-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Paralucent';
  src: url('/fonts/Paralucent-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Paralucent';
  src: url('/fonts/Paralucent-DemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Paralucent';
  src: url('/fonts/Paralucent-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Paralucent';
  src: url('/fonts/Paralucent-Heavy.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --font-outfit: 'Outfit';
  --font-display: 'Paralucent', 'Outfit', var(--font-outfit), system-ui, sans-serif;
  --brand: #10C4BC;
  --brand-dark: #0DADA6;
  --ink: #0A0A0A;
  --muted: #3D4147;
}

*, *::before, *::after { box-sizing: border-box; font-style: normal; }
html { scroll-behavior: smooth; }

body {
  background: #ffffff;
  color: #0A0A0A;
  font-family: 'Outfit', var(--font-outfit), system-ui, sans-serif;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-display { font-family: var(--font-display); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #10C4BC; border-radius: 2px; }
::selection { background: #10C4BC; color: #ffffff; }

/* ─── CTA arrow — slide-right with micro-bounce, hover-only ─── */
@keyframes ctaArrow {
  0%   { transform: translateX(0); }
  55%  { transform: translateX(7px); }
  75%  { transform: translateX(4px); }
  100% { transform: translateX(6px); }
}

/* ─── CTA arrow — continuous loop ─── */
@keyframes arrowLoop {
  0%   { transform: translateX(0);   opacity: 1; }
  40%  { transform: translateX(5px); opacity: 1; }
  55%  { transform: translateX(5px); opacity: 0.7; }
  56%  { transform: translateX(0);   opacity: 0; }
  70%  { transform: translateX(0);   opacity: 1; }
  100% { transform: translateX(0);   opacity: 1; }
}
.arrow-loop {
  animation: arrowLoop 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ─── CTA button glow pulse ─── */
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 196, 188, 0); }
  50%       { box-shadow: 0 0 18px 4px rgba(16, 196, 188, 0.28); }
}
.btn-glow {
  animation: btnGlow 2.8s ease-in-out infinite;
}

/* ─── Badge text pulse (opacity + micro-scale + soft glow) ─── */
@keyframes badgePulse {
  0%, 100% {
    opacity: 0.7;
    letter-spacing: 0.12em;
    transform: scale(1);
    text-shadow: none;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.135em;
    transform: scale(1.008);
    text-shadow: 0 0 12px rgba(16, 196, 188, 0.35);
  }
}
.badge-pulse {
  animation: badgePulse 2.6s ease-in-out infinite;
  display: inline-block;
}

/* ─── Premium card lift ─── */
.card-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-lift:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

/* ─── Hero fade-in (CSS-only, runs immediately on load) ─── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-fade {
  opacity: 0;
  animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-d1 { animation-delay:  80ms; }
.hero-d2 { animation-delay: 200ms; }
.hero-d3 { animation-delay: 340ms; }
.hero-d4 { animation-delay: 460ms; }

/* ─── Respect reduced-motion preference ─── */
@media (prefers-reduced-motion: reduce) {
  .badge-pulse,
  .arrow-loop,
  .btn-glow,
  .card-lift,
  .hero-fade {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@layer utilities {
  .text-gradient {
    background: linear-gradient(135deg, #10C4BC 0%, #0DADA6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .bg-teal-gradient {
    background: linear-gradient(135deg, #10C4BC 0%, #0DADA6 100%);
  }
}

/* ─────────────────────────────────────────────
   Shared site chrome (nav / footer / buttons)
───────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid #ECECEC;
}
.site-nav .brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  color: #0A0A0A; text-decoration: none;
}
.site-nav .brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #10C4BC 0%, #0DADA6 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(16, 196, 188, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: #3D4147;
  text-decoration: none; padding: 0.45rem 0.8rem; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #0A0A0A; background: #F3F4F6; }
.nav-links a.active { color: #0DADA6; background: rgba(16, 196, 188, 0.10); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #10C4BC 0%, #0DADA6 100%);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.4rem; border-radius: 10px; border: none;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 196, 188, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16, 196, 188, 0.40); }

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  text-align: center; color: #9CA3AF; font-size: 0.82rem;
  border-top: 1px solid #ECECEC; margin-top: 4rem;
}

.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #10C4BC;
}
