/* 
  PESTFLOW LANDING PAGE - ULTRA PREMIUM B2B
*/

:root {
  --pf-green: #16A05D;
  --pf-green-dark: #0F7543;
  --pf-green-light: #EDFAF4;

  --pf-black: #0A0A0A;
  --pf-gray-900: #171717;
  --pf-gray-800: #262626;
  --pf-gray-600: #525252;
  --pf-gray-400: #A3A3A3;
  --pf-gray-200: #E5E5E5;
  --pf-gray-100: #F5F5F5;
  --pf-white: #FFFFFF;

  --border-light: rgba(0, 0, 0, 0.07);
  --border-dark: rgba(255, 255, 255, 0.1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.10), 0 12px 28px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  background: var(--pf-white);
  color: var(--pf-black);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

/* TYPOGRAPHY */
h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

.text-gradient {
  background: linear-gradient(135deg, #16A05D 0%, #0A5C3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-green);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 14px;
  height: 2px;
  background: var(--pf-green);
}

.p-lg { font-size: 19px; line-height: 1.65; color: var(--pf-gray-600); }
.p-md { font-size: 15px; line-height: 1.65; color: var(--pf-gray-600); }

/* LAYOUT */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; position: relative; }
@media (min-width: 1024px) { section { padding: 160px 0; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: #0A0A0A; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.14); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn-secondary { background: #fff; color: #0A0A0A; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--pf-gray-100); }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 68px; z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }

.nav-links { display: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; gap: 28px; }
  .nav-links a { font-size: 14px; color: var(--pf-gray-600); font-weight: 500; text-decoration: none; transition: color 0.2s; }
  .nav-links a:hover { color: var(--pf-black); }
}

.header-actions { display: none; }
@media (min-width: 768px) {
  .header-actions { display: flex; align-items: center; gap: 20px; }
  .header-actions a.login { font-size: 14px; font-weight: 500; color: var(--pf-gray-600); text-decoration: none; }
  .header-actions a.login:hover { color: var(--pf-black); }
}

/* HERO */
.hero {
  padding-top: 160px;
  padding-bottom: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 70vw;
  background: radial-gradient(ellipse, rgba(22,160,93,0.07) 0%, transparent 65%);
  z-index: -1;
}
.hero-content { max-width: 820px; margin: 0 auto; position: relative; z-index: 10; }
.hero p { max-width: 600px; margin: 20px auto 36px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ============================================
   DASHBOARD MOCKUP — PREMIUM
   ============================================ */
.hero-mockup {
  margin-top: 72px;
  perspective: 2600px;
  padding-bottom: 72px;
}
.mockup-window {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: #EAECF0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 13px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 52px 130px rgba(0,0,0,0.14),
    0 14px 36px rgba(0,0,0,0.07);
  transform: rotateX(5.5deg) rotateY(-1deg) scale(0.97);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1), box-shadow 0.9s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-mockup:hover .mockup-window {
  transform: rotateX(0) rotateY(0) scale(1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 70px 160px rgba(0,0,0,0.15),
    0 20px 52px rgba(0,0,0,0.08);
}

/* TOP OS BAR */
.mu-topbar {
  height: 38px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 5px;
  flex-shrink: 0;
}
.mu-dot { width: 10px; height: 10px; border-radius: 50%; }
.mu-dot.r { background: #FF5F57; }
.mu-dot.y { background: #FFBD2E; }
.mu-dot.g { background: #28C840; }
.mu-topbar-title {
  flex: 1; text-align: center;
  font-size: 11px; font-weight: 500; color: #C8CBD0;
}

/* BODY */
.mu-body-row { display: flex; overflow: hidden; }

/* ─── SIDEBAR ─── */
.mu-sidebar {
  width: 196px;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.07);
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.mu-brand {
  padding: 0 14px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 10px;
}
.mu-nav-section {
  padding: 8px 14px 3px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.09em; color: #C6CAD3;
  text-transform: uppercase;
}
.mu-nav-item {
  margin: 1px 7px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500; color: #6B7280;
  display: flex; align-items: center; gap: 8px;
  cursor: default;
}
.mu-nav-item.active { background: #EDFAF4; color: #16A05D; font-weight: 600; }
.mu-nav-icon { width: 13px; height: 13px; opacity: 0.5; flex-shrink: 0; }
.mu-nav-item.active .mu-nav-icon { opacity: 1; }
.mu-sidebar-footer {
  margin-top: auto;
  padding: 10px 10px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 8px;
}
.mu-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#16A05D,#0A5C3D);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.mu-user-name { font-size: 11px; font-weight: 600; color: #111; }
.mu-user-role  { font-size: 10px; color: #9CA3AF; }

/* ─── MAIN ─── */
.mu-main {
  flex: 1;
  background: #F0F2F5;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Page header */
.mu-page-header { display: flex; align-items: flex-start; justify-content: space-between; }
.mu-page-title { font-size: 14px; font-weight: 700; color: #111; letter-spacing: -0.02em; }
.mu-page-sub   { font-size: 10px; color: #9CA3AF; margin-top: 2px; }
.mu-header-actions { display: flex; gap: 6px; align-items: center; }
.mu-btn-outline {
  border: 1px solid rgba(0,0,0,0.13); background: #fff;
  border-radius: 6px; padding: 5px 10px;
  font-size: 11px; font-weight: 500; color: #374151;
  display: flex; align-items: center; gap: 4px;
}
.mu-btn-solid {
  background: #16A05D; border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: 4px;
}

/* Stats */
.mu-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.mu-stat {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 9px;
  padding: 12px 14px;
}
.mu-stat-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.mu-stat-label { font-size: 10px; font-weight: 600; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; }
.mu-stat-icon  {
  width: 22px; height: 22px; border-radius: 6px;
  background: #F3F4F6;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.mu-stat-val   { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; color: #111; line-height: 1; }
.mu-stat-val.red { color: #DC2626; }
.mu-stat-val.amber { color: #D97706; }
.mu-stat-trend { font-size: 10px; color: #16A05D; font-weight: 600; margin-top: 3px; }
.mu-stat-trend.down { color: #DC2626; }

/* Bottom 2-col */
.mu-bottom-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }

/* Card */
.mu-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 9px;
  overflow: hidden;
}
.mu-card-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.mu-card-title { font-size: 12px; font-weight: 600; color: #111; }
.mu-card-link  { font-size: 10px; color: #16A05D; font-weight: 600; }

/* Table rows */
.mu-table-row {
  display: flex; align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  gap: 10px;
}
.mu-table-row:last-child { border-bottom: none; }
.mu-order-num  { font-size: 11px; font-weight: 700; color: #374151; min-width: 46px; font-variant-numeric: tabular-nums; }
.mu-order-info { flex: 1; }
.mu-order-name { font-size: 11px; font-weight: 600; color: #111; }
.mu-order-meta { font-size: 10px; color: #9CA3AF; margin-top: 1px; }

/* Tags */
.mu-tag {
  font-size: 9px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
  letter-spacing: 0.03em; flex-shrink: 0; text-transform: uppercase;
}
.mu-tag.green  { background: #EDFAF4; color: #16A05D; }
.mu-tag.gray   { background: #F3F4F6; color: #6B7280; }
.mu-tag.blue   { background: #EFF6FF; color: #3B82F6; }
.mu-tag.yellow { background: #FFFBEB; color: #D97706; }
.mu-tag.red    { background: #FEF2F2; color: #DC2626; }

/* Agenda */
.mu-agenda-item {
  padding: 9px 14px;
  display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mu-agenda-item:last-child { border-bottom: none; }
.mu-agenda-time { font-size: 10px; font-weight: 700; color: #9CA3AF; min-width: 38px; font-variant-numeric: tabular-nums; }
.mu-agenda-dot  { width: 7px; height: 7px; border-radius: 50%; background: #16A05D; flex-shrink: 0; }
.mu-agenda-dot.b { background: #3B82F6; }
.mu-agenda-dot.o { background: #F59E0B; }
.mu-agenda-info { flex: 1; }
.mu-agenda-title { font-size: 11px; font-weight: 600; color: #111; }
.mu-agenda-tec   { font-size: 10px; color: #9CA3AF; }

/* Mini chart bar */
.mu-mini-chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 32px; padding: 0 14px 10px;
}
.mu-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: #E8EAF0;
  min-height: 4px;
}
.mu-bar.hi { background: #16A05D; }

/* ============================================
   REST OF PAGE
   ============================================ */

/* STRIP */
.strip {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 36px 0;
  background: #FAFAFA;
}
.strip span { font-size: 12px; font-weight: 700; color: var(--pf-gray-400); text-transform: uppercase; letter-spacing: 0.1em; }

/* COMPARE */
.compare-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
@media(min-width: 1024px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-box {
  background: var(--pf-gray-100);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.04);
}
.cb-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--pf-gray-400); margin-bottom: 20px; }
.cb-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-tag { background: #fff; border: 1px solid var(--border-light); padding: 10px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--pf-gray-600); box-shadow: var(--shadow-sm); }
.cb-tag.x { color: #DC2626; text-decoration: line-through; opacity: 0.75; }

/* STEPS */
.steps {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 24px; margin-top: 56px;
  overflow-x: auto; padding-bottom: 24px;
}
.step-card { min-width: 220px; border-top: 2px solid var(--border-light); padding-top: 20px; }
.step-card h4 { font-size: 15px; margin: 10px 0 6px; }
.step-card p  { font-size: 13px; color: var(--pf-gray-600); }

/* FEATURE SPLITS */
.feature-split { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; margin-bottom: 140px; }
@media (min-width: 1024px) {
  .feature-split { grid-template-columns: 5fr 6fr; gap: 100px; }
  .feature-split.reverse .fs-content { order: 2; }
  .feature-split.reverse .fs-visual  { order: 1; }
}
.fs-visual-inner {
  background: var(--pf-gray-100);
  border-radius: 20px;
  padding: 36px;
  border: 1px solid var(--border-light);
}
.os-flow { display: flex; flex-direction: column; gap: 14px; }
.os-card { background: #fff; padding: 18px 20px; border-radius: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.os-card span { font-size: 13px; font-weight: 600; }
.os-arrow { width: 2px; height: 20px; background: var(--border-light); margin: 0 auto; }

/* DARK SECTION */
.dark-section { background: #0A0A0A; color: #fff; }
.dark-section h2 { color: #fff; }
.dark-section .p-lg { color: #737373; }
.dark-section .eyebrow { color: var(--pf-green); }

.portal-mockup {
  margin-top: 72px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.pm-header { padding: 20px 28px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.pm-body { padding: 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.pm-stat { margin-bottom: 28px; }
.pm-stat-v { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; color: #fff; }
.pm-stat-l { font-size: 11px; color: #737373; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: 4px; }
.pm-row { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.pm-row:last-child { border: none; }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 72px; }
.bento-card {
  background: var(--pf-gray-100);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 20px;
  padding: 36px;
  transition: all 0.25s ease;
}
.bento-card:hover { background: #fff; box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0.07); }
.bento-card:nth-child(1), .bento-card:nth-child(6) { grid-column: span 2; }
.bento-n { font-size: 12px; font-weight: 700; color: var(--pf-gray-400); margin-bottom: 20px; display: block; }
.bento-t { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.bento-d { font-size: 14px; color: var(--pf-gray-600); }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 72px; }
.pr-card { border: 1px solid var(--border-light); border-radius: 20px; padding: 40px 28px; display: flex; flex-direction: column; background: #fff; }
.pr-card.pro { border: 2px solid var(--pf-green); box-shadow: var(--shadow-lg), 0 0 0 4px rgba(22,160,93,0.08); position: relative; }
.pr-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--pf-green); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; letter-spacing: 0.06em; text-transform: uppercase; }
.pr-name  { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.pr-price { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 6px; }
.pr-price span { font-size: 15px; font-weight: 400; color: var(--pf-gray-400); }
.pr-desc  { font-size: 14px; color: var(--pf-gray-600); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.pr-features { list-style: none; margin-bottom: 40px; flex: 1; }
.pr-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 14px; color: var(--pf-gray-900); }
.pr-features li svg { width: 18px; height: 18px; color: var(--pf-green); flex-shrink: 0; margin-top: 1px; }

/* FINAL CTA */
.cta-final { background: #0A0A0A; text-align: center; position: relative; overflow: hidden; }
.cta-final::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100vw; height: 100vw;
  background: radial-gradient(circle, rgba(22,160,93,0.14) 0%, transparent 55%);
  z-index: 1;
}
.cta-final .container { position: relative; z-index: 10; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 100ms; }
.d-2 { transition-delay: 200ms; }
.d-3 { transition-delay: 300ms; }

/* MOBILE */
@media(max-width: 1023px) {
  .bento, .pricing, .steps { grid-template-columns: 1fr; }
  .bento-card:nth-child(1), .bento-card:nth-child(6) { grid-column: span 1; }
  .pm-body { grid-template-columns: 1fr; gap: 28px; }
  .strip { flex-wrap: wrap; gap: 20px; justify-content: center; padding: 24px; }
  .hero-mockup { transform: none !important; perspective: none; }
  .mockup-window { transform: none !important; }
  .mu-sidebar { display: none; }
  .mu-stats-row { grid-template-columns: 1fr 1fr; }
  .mu-bottom-row { grid-template-columns: 1fr; }
}
