/* ============================================================
   Hermon — Sales operations platform
   Design system: warm light theme, Hermon Purple accent
   Type: Plus Jakarta Sans (logo is a fixed serif asset)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root {
  /* canvas + surfaces (warm neutral grays) */
  --bg: #FBFAF9;
  --surface: #FFFFFF;
  --surface-2: #F5F3F0;
  --surface-3: #EFECE7;

  /* soft purple tints (derive from --purple) */
  --tint: color-mix(in oklab, var(--purple), #fff 92%);
  --tint-2: color-mix(in oklab, var(--purple), #fff 84%);
  --tint-line: color-mix(in oklab, var(--purple), #fff 70%);

  /* ink (warm near-black w/ faint purple) */
  --ink: #181522;
  --ink-2: #423D4E;
  --muted: #736D7E;
  --muted-2: #9A94A4;

  /* lines */
  --line: #EBE7E1;
  --line-strong: #E0DBD3;

  /* Hermon Purple — shades derive from --purple so the accent tweak cascades */
  --purple: #6D4AE6;
  --purple-600: color-mix(in oklab, var(--purple), #000 13%);
  --purple-700: color-mix(in oklab, var(--purple), #000 30%);
  --purple-400: color-mix(in oklab, var(--purple), #fff 24%);
  --purple-300: color-mix(in oklab, var(--purple), #fff 42%);
  --purple-100: color-mix(in oklab, var(--purple), #fff 80%);
  --purple-50: color-mix(in oklab, var(--purple), #fff 90%);

  /* support accents (same chroma/lightness family, hue-shifted) */
  --green: #1F9D6B;
  --green-soft: #E5F4ED;
  --amber: #C98A1E;
  --amber-soft: #F8EFDD;
  --rose: #D6457E;
  --rose-soft: #FBE9F1;
  --blue: #3B73D6;

  /* dark surface for high-contrast section */
  --dark: #16131F;
  --dark-2: #1E1A2B;
  --dark-line: rgba(255,255,255,.10);

  /* shadows — soft, layered, faint purple cast */
  --shadow-xs: 0 1px 2px rgba(24,21,34,.05);
  --shadow-sm: 0 1px 2px rgba(24,21,34,.04), 0 2px 6px rgba(24,21,34,.06);
  --shadow-md: 0 6px 20px -6px rgba(24,21,34,.10), 0 2px 8px -2px rgba(24,21,34,.06);
  --shadow-lg: 0 24px 60px -18px rgba(60,40,130,.20), 0 8px 24px -12px rgba(24,21,34,.10);
  --shadow-xl: 0 40px 90px -24px rgba(58,38,128,.30), 0 12px 30px -14px rgba(24,21,34,.12);
  --shadow-purple: 0 18px 40px -12px rgba(109,74,230,.42);
  --ring: 0 0 0 1px var(--line);

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --pill: 999px;

  --maxw: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv01';
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--purple-100); color: var(--purple-700); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- type ---------- */
.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
  font-size: clamp(2.7rem, 6.2vw, 5rem);
}
.h1 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); font-weight: 500; margin: 0; }
.body { color: var(--muted); margin: 0; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.grad-ink { background: linear-gradient(98deg, var(--ink) 30%, var(--purple-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl { color: var(--purple); }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple-600);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--purple-100); }
.eyebrow--ondark { color: var(--purple-300); }
.eyebrow--ondark .dot { background: var(--purple-300); box-shadow: 0 0 0 4px rgba(174,152,244,.2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: var(--pill);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: var(--shadow-purple); }
.btn--primary:hover { background: var(--purple-600); transform: translateY(-2px); box-shadow: 0 24px 50px -12px rgba(109,74,230,.55); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { border-color: var(--purple-300); color: var(--purple-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--onlight-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--onlight-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--lg { padding: 17px 28px; font-size: 1.06rem; }
.btn--sm { padding: 10px 16px; font-size: .92rem; }
.btn--block { width: 100%; }

.cta-note { font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cta-note .check { color: var(--green); display: inline-flex; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-xs);
}
.chip .ping { position: relative; width: 8px; height: 8px; }
.chip .ping i { position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.chip .ping i::after { content:''; position:absolute; inset:0; border-radius:50%; background: var(--green); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0%{ transform: scale(1); opacity:.6 } 100%{ transform: scale(2.6); opacity:0 } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .3s, box-shadow .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav.scrolled { background: rgba(251,250,249,.82); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav__logo { height: 21px; width: auto; }
.nav__logo img { height: 100%; width: auto; }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__link { padding: 8px 13px; border-radius: var(--pill); font-size: .96rem; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__signin { font-weight: 600; font-size: .96rem; padding: 8px 12px; color: var(--ink-2); white-space: nowrap; }
.nav__signin:hover { color: var(--purple-700); }
@media (max-width: 880px) { .nav__links, .nav__signin { display: none; } }

/* ---------- generic card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* background flourishes */
.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.dotgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px; color: rgba(24,21,34,.05);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
