/* ==========================================================================
   Opsfy.ai — hand-coded replica of the Webflow site
   Tokens extracted from the Webflow CSS + inline <style> block.
   Single stylesheet; no preprocessor; custom properties for theming.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette (verbatim from the Webflow inline <style>) */
  --opsfy-accent:   #ffa24e;
  --opsfy-contrast: #fbf6f3;
  --opsfy-primary:  #1f7f95;
  --opsfy-light:    #36d6e7;
  --opsfy-slate:    #5d6c89;

  /* Neutrals (Webflow base neutrals, filtered to the ones the brand uses) */
  --ink-900: #1a2430;
  --ink-700: #3f4a61;
  --ink-500: #5d6c89;
  --ink-300: #a6b1bf;
  --ink-100: #e7ecf2;
  --ink-50:  #f5f7fa;
  --white:   #ffffff;

  /* Gradient shorthands */
  --grad-primary: linear-gradient(135deg, var(--opsfy-primary), var(--opsfy-light));
  --grad-soft:    linear-gradient(180deg, var(--opsfy-contrast), var(--white));

  /* Spacing scale (8px baseline) */
  --s-1:  0.25rem;   /* 4 */
  --s-2:  0.5rem;    /* 8 */
  --s-3:  0.75rem;   /* 12 */
  --s-4:  1rem;      /* 16 */
  --s-5:  1.5rem;    /* 24 */
  --s-6:  2rem;      /* 32 */
  --s-7:  3rem;      /* 48 */
  --s-8:  4rem;      /* 64 */
  --s-9:  6rem;      /* 96 */
  --s-10: 8rem;      /* 128 */

  /* Typography */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius, shadow, borders */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 36, 48, 0.06), 0 1px 3px rgba(26, 36, 48, 0.06);
  --shadow-md: 0 6px 16px rgba(26, 36, 48, 0.08), 0 2px 6px rgba(26, 36, 48, 0.05);
  --shadow-lg: 0 18px 45px rgba(31, 127, 149, 0.14), 0 4px 12px rgba(26, 36, 48, 0.08);
  --shadow-cta: 0 14px 30px rgba(31, 127, 149, 0.35);

  --border-soft: 1px solid rgba(31, 127, 149, 0.12);

  /* Layout */
  --container-max: 1180px;
  --nav-height: 84px;
}

/* ---------- Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--opsfy-contrast);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
a { color: var(--opsfy-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--opsfy-light); }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink-900); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--ink-100); margin: 0; }
:focus-visible {
  outline: 3px solid var(--opsfy-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

/* ---------- Reveal animation (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.8rem 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 0.95rem 1.85rem; font-size: 1.05rem; }

.btn--primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { color: var(--white); box-shadow: 0 18px 34px rgba(31, 127, 149, 0.42); }

.btn--outline {
  background: transparent;
  color: var(--opsfy-primary);
  border: 2px solid var(--opsfy-primary);
}
.btn--outline:hover { background: var(--opsfy-primary); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  padding: 0.75rem 1.1rem;
  font-weight: 500;
}
.btn--ghost:hover { color: var(--opsfy-primary); }

.btn--accent {
  background: var(--opsfy-accent);
  color: var(--ink-900);
  box-shadow: 0 14px 30px rgba(255, 162, 78, 0.42);
}
.btn--accent:hover { background: #ffb66a; color: var(--ink-900); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 243, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(31, 127, 149, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
  gap: var(--s-5);
}
.nav__brand img { width: 160px; height: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border-radius: var(--radius-sm);
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Shared section framing ---------- */
.section__title {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
}
.section__lede {
  text-align: center;
  color: var(--ink-500);
  font-size: 1.1rem;
  margin: 0 auto var(--s-8);
  max-width: 620px;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(54, 214, 231, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%,  rgba(31, 127, 149, 0.14), transparent 60%),
    var(--opsfy-contrast);
}
.hero__inner { text-align: center; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
  line-height: 1.05;
}
.hero__title-line { display: block; }
.hero__title-line--gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__subtitle {
  color: var(--ink-500);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto var(--s-7);
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.hero__trusted {
  color: var(--ink-500);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-top: var(--s-5);
}

/* ---------- The RevOps Reality (card grid) ---------- */
.reality { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--white); }
.reality__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}
.card {
  background: var(--white);
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 127, 149, 0.28);
}
.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--opsfy-primary);
  margin-bottom: var(--s-3);
}
.card__stat {
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- From Chaos to Control ---------- */
.steps { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--opsfy-contrast); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  counter-reset: none;
}
.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-5) var(--s-6);
  box-shadow: var(--shadow-sm);
  border: var(--border-soft);
  position: relative;
  text-align: center;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-cta);
}
.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--s-3);
  color: var(--ink-900);
}
.step__body { color: var(--ink-500); line-height: 1.55; }

/* ---------- Revenue Operations, Reimagined (features) ---------- */
.features { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--white); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.feature {
  background: linear-gradient(180deg, var(--white), var(--opsfy-contrast));
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  border: var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--opsfy-primary);
}
.feature__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-900);
}
.feature__body { color: var(--ink-500); line-height: 1.55; flex-grow: 1; }
.feature__metric {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-md);
  background: rgba(54, 214, 231, 0.14);
  color: var(--opsfy-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Compare table ---------- */
.compare { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--opsfy-contrast); }
.compare__table {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: var(--border-soft);
  max-width: 860px;
  margin: 0 auto;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--ink-100);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row > div { text-align: center; }
.compare__row > div:first-child { text-align: left; color: var(--ink-700); }
.compare__row--head {
  background: var(--grad-primary);
  color: var(--white);
  font-weight: 600;
  border-bottom: 0;
}
.compare__row--head > div,
.compare__row--head > div:first-child { color: var(--white); }
.compare__yes {
  color: var(--opsfy-primary);
  font-weight: 700;
  font-size: 1.3rem;
}
.compare__no {
  color: var(--ink-300);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------- CTA band ---------- */
.cta {
  padding: clamp(3rem, 9vw, 6rem) 0;
  background: var(--grad-primary);
  color: var(--white);
  text-align: center;
}
.cta .container { max-width: 760px; }
.cta__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
}
.cta__lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin-bottom: var(--s-6);
}
.cta__fineprint {
  margin-top: var(--s-5);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--s-8) 0 var(--s-6);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-6);
  margin-bottom: var(--s-6);
}
.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 0.95rem;
}
.footer__links a:hover { color: var(--opsfy-light); }
.footer__divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: var(--s-5) 0;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: 0.9rem;
}
.footer__copyright { margin: 0; }
.footer__legal {
  display: flex;
  gap: var(--s-5);
}
.footer__legal a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.footer__legal a:hover { color: var(--opsfy-light); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-100);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-5);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu .btn { width: 100%; }
}

@media (max-width: 640px) {
  .compare__row {
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    padding: var(--s-3) var(--s-4);
    font-size: 0.92rem;
  }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__legal { width: 100%; justify-content: center; }
  .footer__links a,
  .footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--s-1) var(--s-2);
  }
}
