﻿/* MOCHI Technologies - tokens & base */

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

:root {
  /* Brand - Core Navy + accent palette */
  --navy: #091F3F;
  --navy-2: #122E55;
  --navy-3: #1A3B6A;

  /* The 4 brand accents */
  --teal-700: #057871;
  --teal: #00A388;       /* Growth Green - Financial Growth */
  --teal-200: #E2FAF5;

  --blue-700: #006398;
  --blue: #0095C8;       /* Clarity Blue - Process Improvement */
  --blue-200: #E6F9FF;

  --purple-700: #5B478D;
  --purple: #8B68C6;     /* Unity Purple - Talent Management */
  --purple-200: #EEE6FF;

  --orange-700: #C64426;
  --orange: #FF6200;     /* Velocity Orange - Market Expansion */
  --orange-200: #FFE5D2;

  /* Greys */
  --grey-800: #111C2B;
  --grey-600: #5B636D;
  --grey-400: #A6A9AE;
  --grey-200: #F0F0F0;
  --grey-100: #F7F8FA;
  --grey-0:   #FFFFFF;

  /* Page surfaces */
  --paper: #FFFFFF;
  --ink: #091F3F;
  --ink-2: #2B3F5E;
  --ink-3: #5B636D;
  --line: #E7EAF0;
  --line-2: #EEF0F4;

  /* Accent */
  --accent: var(--orange);
  --accent-ink: var(--orange-700);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(7,30,63,.04), 0 12px 30px -12px rgba(7,30,63,.18);
  --shadow-lg: 0 30px 60px -30px rgba(7,30,63,.35);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--navy);
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
}

#app {
  overflow: clip;
  max-width: 100vw;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: 88px 0; position: relative; overflow: hidden; }
.section--tight { padding: 56px 0; }
.section--navy {
  background: var(--navy) url("/assets/v4/site-assets/navy-bg.png") center center / cover no-repeat;
  color: #fff;
}
.section--paper { background: var(--paper); color: var(--ink); }
.section--grey { background: var(--grey-100); color: var(--ink); }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  margin: 0;
  text-wrap: balance;
}

.eyebrow,
.section-head__eyebrow {
  /* Unified label/eyebrow - used across every section.
     Refined mono pill with pulsing dot indicator. */
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, currentColor 28%, transparent);
  background: color-mix(in oklab, currentColor 9%, transparent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.eyebrow::before,
.section-head__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px color-mix(in oklab, currentColor 16%, transparent),
    0 0 10px currentColor;
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}
.eyebrow:hover,
.section-head__eyebrow:hover {
  background: color-mix(in oklab, currentColor 16%, transparent);
  border-color: color-mix(in oklab, currentColor 42%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -12px color-mix(in oklab, currentColor 80%, transparent);
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.h-display {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h-display .stack { display: block; }

.h-section {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-card { font-size: 22px; line-height: 1.2; font-family: var(--font-display); font-weight: 700; }

.lede {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.55;
  color: inherit;
  opacity: .82;
  max-width: 62ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-700); }

.btn--secondary { background: #fff; color: var(--navy); }
.btn--secondary:hover { background: var(--grey-100); }

.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn--ghost-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: #fff; }

.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: 16px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.pill--light { background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.16); }
.pill--dark { background: rgba(7,30,63,.06); color: var(--navy); border: 1px solid var(--line); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.muted { color: var(--ink-3); }

@keyframes pop {
  0% { transform: scale(.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.pop { animation: pop .35s ease-out both; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes flipIn {
  0%   { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}
.flip { position: relative; display: inline-block; vertical-align: baseline; overflow: hidden; }
.flip__sizer { visibility: hidden; white-space: nowrap; }
.flip__word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  animation: flipIn 0.6s cubic-bezier(.2,.8,.2,1) both;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}

/* Form */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.field label {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15.5px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  background: rgba(255,255,255,.1);
}
.field select option { background: var(--navy); color: #fff; }

/* ============ SECTION HEAD - shared (left aligned, big) ============ */
.section-head {
  max-width: 1100px;
  margin: 0 0 56px;
}
/* .section-head__eyebrow inherits the unified eyebrow style declared above. */
.section-head__h {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head__p {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.55;
  margin-top: 22px;
  max-width: 720px;
}
.section-head--light .section-head__h { color: var(--navy); }
.section-head--light .section-head__p { color: var(--ink-2); }
.section-head--dark .section-head__h { color: #fff; }
.section-head--dark .section-head__p { color: rgba(255,255,255,.72); }

/* ===== Tech / mono accents (AI feel without changing palette) ===== */

/* Scroll progress bar pinned to top */
.scrollbar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple), var(--orange));
  z-index: 100;
  transition: width .12s linear;
}

/* Hover shine sweep - apply to any card */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-18deg);
  transition: left .8s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.shine:hover::after { left: 130%; }

/* Magnetic hover - buttons drift toward cursor */
.btn--magnet { will-change: transform; transition: transform .25s cubic-bezier(.2,.8,.2,1); }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}
.kicker--light { color: rgba(255,255,255,.6); }
.kicker--accent { color: var(--orange); }

/* Subtle dotted grid background (use as backdrop on dark sections) */
.tech-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.tech-grid--light::before {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(7,30,63,.08) 1px, transparent 0);
}

/* ================= HUBSPOT-STYLE SCROLL REVEALS ================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Stagger helper - child reveals chain in sequence */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ================= HOVER LIFT (HubSpot card feel) ================= */
.lift {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1), border-color .25s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -18px rgba(7,30,63,.22);
}

/* Card "icon punch" on hover */
.lift:hover .lift__icon {
  transform: scale(1.08) rotate(-3deg);
}
.lift__icon {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

/* Underline-grow link */
.uline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.uline::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.uline:hover::after { transform: scaleX(1); }

/* Animated count-up number */
.countup { display: inline-block; font-variant-numeric: tabular-nums; }

/* Pillar interactive border glow */
.pillar { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease, border-color .35s ease; }
.pillar:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}
.pillar::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.15), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.pillar:hover::before { opacity: 1; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .lift, .pillar { transition: none; }
}

/* =================== RESPONSIVE DESIGN =================== */

/* ---- Large tablet (≤1100px) ---- */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
}

/* ---- Tablet (≤880px) ---- */
@media (max-width: 880px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 40px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head__p { font-size: 17px; }
  .lede { font-size: 17px; }
  .h-section { font-size: clamp(28px, 4.5vw, 44px); }
}

/* ---- Mobile (≤620px) ---- */
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .section--tight { padding: 28px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head__h { font-size: clamp(26px, 7.5vw, 40px); }
  .section-head__p { font-size: 15px; margin-top: 14px; }
  .lede { font-size: 15px; }
  .btn { padding: 12px 18px; font-size: 15px; }
  .btn--lg { padding: 14px 22px; font-size: 15px; }
  .eyebrow { font-size: 10px; }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .section-head__h { font-size: clamp(24px, 8vw, 36px); }
  .h-display { font-size: clamp(32px, 8vw, 52px); }
}
