/* ============================================================
   FIRM FOUNDATION TECH SOLUTIONS — GLOBAL STYLES
   Brand: Sage #728C69 · Stone · Warm Charcoal · Off-White
   ============================================================ */

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

:root {
  --sage:         #728C69;
  --sage-dark:    #5a7052;
  --sage-deeper:  #3f5039;
  --sage-light:   #a8bea0;
  --sage-mist:    #edf2eb;
  --sage-tint:    #f5f8f4;
  --stone:        #f7f4ef;
  --stone-mid:    #ede8e0;
  --stone-dark:   #d5cfc5;
  --parchment:    #faf8f5;
  --ink:          #1e2218;
  --ink-mid:      #3d4436;
  --ink-light:    #6b7360;
  --ink-faint:    #9ba591;
  --border:       rgba(114, 140, 105, 0.18);
  --border-mid:   rgba(114, 140, 105, 0.30);
  --sage-glow:    rgba(114, 140, 105, 0.12);
  --shadow-sm:    0 2px 12px rgba(30, 34, 24, 0.08);
  --shadow-md:    0 6px 32px rgba(30, 34, 24, 0.12);
  --shadow-lg:    0 16px 56px rgba(30, 34, 24, 0.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --transition:   0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:        1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--parchment); color: var(--ink); line-height: 1.65; font-size: 16px; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }
p  { color: var(--ink-mid); font-weight: 400; }
a  { color: var(--sage-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage-deeper); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }

.section-label { display: inline-block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-dark); margin-bottom: 14px; }
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--ink-light); max-width: 580px; margin-bottom: 52px; }
.sage-rule { width: 40px; height: 3px; background: var(--sage); border-radius: 2px; margin-bottom: 24px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all var(--transition); white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--sage); color: #fff; border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(114,140,105,0.32); }
.btn-outline { background: transparent; color: var(--ink-mid); border-color: var(--stone-dark); }
.btn-outline:hover { border-color: var(--sage); color: var(--sage-dark); transform: translateY(-2px); }
.btn-ghost { background: var(--sage-mist); color: var(--sage-deeper); border-color: var(--border-mid); }
.btn-ghost:hover { background: var(--sage-light); color: var(--sage-deeper); }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: rgba(250, 248, 245, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--stone-mid); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; display: block; object-fit: contain; }
.logo-img-footer { height: 52px; width: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: 0.86rem; font-weight: 500; color: var(--ink-light); padding: 7px 14px; border-radius: 6px; transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--sage-dark); background: var(--sage-mist); }
.nav-links .nav-cta-link a { background: var(--sage); color: #fff; padding: 8px 16px; margin-left: 8px; }
.nav-links .nav-cta-link a:hover { background: var(--sage-dark); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--transition); }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; background: var(--parchment); border-bottom: 1px solid var(--stone-mid); flex-direction: column; padding: 16px 24px 24px; gap: 2px; transform: translateY(-110%); transition: transform var(--transition); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 16px; font-size: 1rem; }
  .nav-links .nav-cta-link { width: 100%; text-align: center; }
}

/* PAGE HERO */
.page-hero { padding: 148px 0 72px; background: var(--stone); border-bottom: 1px solid var(--stone-mid); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 480px; height: 100%; background: var(--sage-tint); clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%); }
.page-hero .container { position: relative; z-index: 2; }

/* HOME HERO */
.hero-home { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; background: var(--stone); position: relative; overflow: hidden; }
.hero-home::before { content: ''; position: absolute; top: 0; right: 0; width: 52%; height: 100%; background: var(--sage-tint); clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%); }
.hero-home .container { position: relative; z-index: 2; }

/* CARDS */
.card { background: var(--parchment); border: 1px solid var(--stone-mid); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.card:hover { border-color: var(--sage-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; background: var(--sage-mist); border: 1px solid var(--border-mid); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.4rem; }

/* TIERS */
.tier { background: var(--parchment); border: 1.5px solid var(--stone-mid); border-radius: var(--radius-xl); padding: 36px 32px; transition: all var(--transition); position: relative; }
.tier:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tier.featured { background: var(--sage-deeper); border-color: var(--sage-deeper); color: #fff; }
.tier.featured p, .tier.featured .tier-sub { color: rgba(255,255,255,0.72); }
.tier.featured .tier-feature { color: rgba(255,255,255,0.88); border-bottom-color: rgba(255,255,255,0.1); }
.tier.featured .tier-feature::before { color: var(--sage-light); }
.featured-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sage); color: #fff; font-family: var(--font-body); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 18px; border-radius: 20px; white-space: nowrap; }
.tier-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dark); background: var(--sage-mist); border: 1px solid var(--border-mid); padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.tier.featured .tier-tag { background: rgba(255,255,255,0.12); color: var(--sage-light); border-color: rgba(255,255,255,0.2); }
.tier-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1; margin: 14px 0 4px; color: var(--ink); }
.tier.featured .tier-price { color: #fff; }
.tier-price sup { font-size: 1.3rem; vertical-align: top; margin-top: 6px; }
.tier-price sub { font-size: 0.85rem; font-weight: 400; color: var(--ink-light); }
.tier.featured .tier-price sub { color: rgba(255,255,255,0.55); }
.tier-features { list-style: none; margin: 24px 0 28px; }
.tier-feature { padding: 8px 0; border-bottom: 1px solid var(--stone-mid); font-size: 0.88rem; color: var(--ink-mid); display: flex; gap: 10px; align-items: flex-start; }
.tier-feature::before { content: '✓'; color: var(--sage); font-weight: 700; flex-shrink: 0; }

/* STATS */
.stats-band { background: var(--sage-deeper); padding: 52px 0; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: #fff; display: block; line-height: 1; }
.stat-num span { color: var(--sage-light); }
.stat-label { font-size: 0.83rem; color: rgba(255,255,255,0.58); margin-top: 6px; }

/* FORMS */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 7px; }
input, select, textarea { width: 100%; background: #fff; border: 1px solid var(--stone-dark); border-radius: var(--radius); padding: 12px 15px; color: var(--ink); font-family: var(--font-body); font-size: 0.92rem; outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(114,140,105,0.14); }
select option { background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-light); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-col a:hover { color: var(--sage-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.8rem; margin-top: 0; max-width: none; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.cta-band { background: var(--sage-mist); border-top: 1px solid var(--border-mid); border-bottom: 1px solid var(--border-mid); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.form-success { display: none; background: var(--sage-mist); border: 1px solid var(--border-mid); border-radius: var(--radius); padding: 18px 22px; color: var(--sage-deeper); font-weight: 600; font-size: 0.92rem; text-align: center; margin-top: 18px; }
.text-sage { color: var(--sage-dark); }
.text-center { text-align: center; }
.bg-stone { background: var(--stone); }
.bg-tint { background: var(--sage-tint); }

/* ============================================================
   MOBILE RESPONSIVE — added fixes
   ============================================================ */

/* Reusable layout classes to replace inline grids */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two-col-r { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.founder-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; align-items: start; }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-header-ff { background: var(--sage); color: #fff; padding: 14px 22px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.compare-header-lg { background: var(--stone-mid); color: var(--ink-light); padding: 14px 22px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 768px) {

  /* Section padding */
  section { padding: 52px 0; }
  .container { padding: 0 18px; }

  /* Hero */
  .hero-home { min-height: auto; padding: 100px 0 52px; }
  .hero-home::before { display: none; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Page hero */
  .page-hero { padding: 110px 0 48px; }
  .page-hero::before { display: none; }

  /* Stats band */
  .stats-band { padding: 36px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

  /* All inline two-column grids collapse to one column */
  .two-col,
  .two-col-r,
  .founder-col { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* About — photo comes first, bio second on mobile */
  .founder-col > div:first-child { order: 1; }
  .founder-col > div:last-child  { order: 2; padding-top: 0 !important; }

  /* Photo on about page */
  .founder-col img { max-width: 260px; margin: 0 auto; display: block; }

  /* Comparison table — keep 2-col but shrink text */
  .compare-row { grid-template-columns: 1fr 1fr !important; }
  .compare-row > div { padding: 9px 10px !important; font-size: 0.78rem !important; }
  .compare-header-ff,
  .compare-header-lg { padding: 10px 10px !important; font-size: 0.7rem !important; }

  /* Tier cards — full width stack */
  .grid-3 { grid-template-columns: 1fr !important; }
  .tier { padding: 28px 22px; }

  /* Industries inline grids */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Nav */
  .nav-inner { height: 58px; }
  .logo-img  { height: 36px; }

  /* Buttons */
  .btn-lg { padding: 13px 22px; font-size: 0.88rem; }
  .btns-hero { flex-direction: column; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* Contact form sidebar stacks below form */
  [style*="grid-template-columns:1.1fr 1fr"] { gap: 36px !important; }

  /* Services project section */
  [style*="grid-template-columns:1fr 1fr;gap:64px"] { gap: 32px !important; }

  /* Pricing note box */
  [style*="max-width:640px"] { padding: 24px 18px !important; }

  /* Hero trust pills wrap cleanly */
  [style*="display:flex;gap:10px;flex-wrap:wrap"] { gap: 8px !important; }

  /* CTA band */
  .cta-band { padding: 52px 0 !important; }

  /* Tier price */
  .tier-price { font-size: 2.2rem; }

  /* Section label + title spacing */
  .section-sub { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  .container { padding: 0 14px; }
  .tier { padding: 24px 18px; }
  .card { padding: 22px 18px; }
  .page-hero { padding: 100px 0 40px; }

  /* Stats 2x2 grid */
  .stats-band .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .stat-num { font-size: 2rem; }

  /* Industries pill nav wraps */
  .page-hero [style*="display:flex;gap:10px"] { gap: 7px !important; }
  .page-hero a[style*="border-radius:20px"] { font-size: 0.68rem !important; padding: 5px 10px !important; }

  /* Comparison table font */
  .compare-row > div { font-size: 0.72rem !important; padding: 8px 8px !important; }
}

/* ============================================================
   HERO CUTOFF FIX — ensures content clears fixed nav on mobile
   ============================================================ */

@media (max-width: 768px) {

  /* Nav is 58px tall on mobile — hero needs enough top padding to clear it */
  .hero-home {
    min-height: 100svh;           /* safe viewport height on modern phones */
    padding-top: 80px !important; /* 58px nav + 22px breathing room */
    padding-bottom: 48px !important;
  }

  .page-hero {
    padding-top: 90px !important; /* same logic for inner pages */
    padding-bottom: 40px !important;
  }

  /* Prevent any horizontal scroll caused by wide elements */
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Hero headline — tighter line-height on small screens */
  .hero-home h1 { line-height: 1.15; margin-bottom: 16px; }

  /* Hero sub-paragraph — readable size */
  .hero-home p { font-size: 0.97rem !important; }

  /* CTA buttons stack vertically on very small screens */
  .hero-home [style*="display:flex;gap:14px"] {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 36px !important;
  }

  /* Trust pills row */
  .hero-home [style*="display:flex;gap:10px;flex-wrap:wrap"] {
    gap: 8px !important;
  }
}

@media (max-width: 480px) {

  .hero-home {
    padding-top: 76px !important;
    padding-bottom: 40px !important;
  }

  .page-hero {
    padding-top: 84px !important;
    padding-bottom: 32px !important;
  }

  /* Keep headline from touching screen edges */
  .hero-home h1 { font-size: 1.8rem !important; }
  .page-hero h1 { font-size: 1.75rem !important; }
}

/* ============================================================
   POLISH LAYER — interactive feel, refined depth, micro-motion
   Added on top of base styles. Maintains minimal aesthetic.
   ============================================================ */

/* ─── Cursor & selection refinement ───────────────────── */
::selection { background: var(--sage); color: #fff; }
button, a, .tier, .card { cursor: pointer; }

/* ─── Nav: subtle glow on scroll, refined link transitions ─── */
nav { transition: background var(--transition), box-shadow var(--transition), border-color var(--transition); }
nav.scrolled {
  background: rgba(250, 248, 245, 0.85);
  box-shadow: 0 1px 0 rgba(30, 34, 24, 0.04), 0 8px 32px rgba(30, 34, 24, 0.05);
  border-bottom-color: transparent;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links li:not(.nav-cta-link) a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links li:not(.nav-cta-link) a:hover::after,
.nav-links li:not(.nav-cta-link) a.active::after { transform: scaleX(1); }
.nav-links li:not(.nav-cta-link) a:hover { background: transparent; }

.nav-links .nav-cta-link a {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links .nav-cta-link a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(114, 140, 105, 0.32);
}

/* ─── Hero: subtle entrance animation ────────────────── */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-home > .container > div > * {
  animation: hero-fade-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero-home > .container > div > *:nth-child(1) { animation-delay: 0.05s; }
.hero-home > .container > div > *:nth-child(2) { animation-delay: 0.18s; }
.hero-home > .container > div > *:nth-child(3) { animation-delay: 0.30s; }
.hero-home > .container > div > *:nth-child(4) { animation-delay: 0.42s; }
.hero-home > .container > div > *:nth-child(5) { animation-delay: 0.54s; }

.page-hero > .container > * {
  animation: hero-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.page-hero > .container > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero > .container > *:nth-child(2) { animation-delay: 0.15s; }
.page-hero > .container > *:nth-child(3) { animation-delay: 0.25s; }
.page-hero > .container > *:nth-child(4) { animation-delay: 0.35s; }

/* ─── Floating accent shapes (decorative, very subtle) ──── */
.hero-home::after {
  content: '';
  position: absolute;
  top: 20%; right: 8%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114,140,105,0.10) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 14s ease-in-out infinite;
}
@keyframes float-slow {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(-30px, 30px); }
}

/* ─── Cards: refined hover with sage glow ───────────── */
.card {
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.34s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(30, 34, 24, 0.10),
              0 2px 8px rgba(114, 140, 105, 0.08);
  border-color: var(--sage-light);
}
.card-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease;
}
.card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

/* ─── Tiers: refined elevation and featured glow ─────── */
.tier {
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.34s ease;
}
.tier:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(30, 34, 24, 0.12),
              0 4px 12px rgba(114, 140, 105, 0.08);
}
.tier.featured {
  box-shadow: 0 12px 40px rgba(63, 80, 57, 0.22),
              0 0 0 1px rgba(168, 190, 160, 0.20);
  position: relative;
}
.tier.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(168,190,160,0.4), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tier.featured:hover::after { opacity: 1; }
.tier.featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 70px rgba(63, 80, 57, 0.30),
              0 0 0 1px rgba(168, 190, 160, 0.30);
}
.featured-badge {
  box-shadow: 0 4px 16px rgba(114, 140, 105, 0.32);
}

/* ─── Buttons: tactile lift, subtle shine on primary ──── */
.btn { position: relative; overflow: hidden; transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(114, 140, 105, 0.36);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover {
  background: var(--sage-mist);
  border-color: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(114, 140, 105, 0.14);
}

/* ─── Industry cards on home: lift + icon bounce ────── */
.grid-4 a .card { transition: all 0.34s cubic-bezier(0.16, 1, 0.3, 1); }
.grid-4 a:hover .card {
  border-color: var(--sage);
  background: #fff;
}
.grid-4 a .card > div:first-child {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.grid-4 a:hover .card > div:first-child {
  transform: translateY(-4px) scale(1.05);
}

/* ─── Stats band: numbers count-up feel ─────────────── */
.stats-band { position: relative; overflow: hidden; }
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(168, 190, 160, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 190, 160, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.stat-num {
  background: linear-gradient(135deg, #fff 0%, #d4e0ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}
.stat-item:hover .stat-num { transform: scale(1.05); }

/* ─── Forms: refined focus and float-label-style labels ── */
input, select, textarea {
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) {
  border-color: var(--sage-light);
}
input:focus, select:focus, textarea:focus {
  background: var(--sage-tint);
}
label {
  transition: color 0.2s ease;
}
.form-group:focus-within label { color: var(--sage-dark); }

/* ─── Section labels: refined with tiny accent ──────── */
.section-label {
  position: relative;
  padding-left: 22px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 14px; height: 2px;
  background: var(--sage);
  border-radius: 1px;
  transform: translateY(-50%);
}

/* ─── Sage rule: animated on appear ─────────────────── */
.sage-rule {
  background: linear-gradient(90deg, var(--sage), var(--sage-light));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Headings: refined letter spacing ──────────────── */
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.015em; }
h3 { letter-spacing: -0.01em; }

/* ─── Smooth scroll anchors with offset ─────────────── */
section[id]::before {
  content: '';
  display: block;
  height: 66px;
  margin-top: -66px;
  visibility: hidden;
  pointer-events: none;
}

/* ─── Footer: subtle hover on links ─────────────────── */
.footer-col a {
  position: relative;
  transition: color 0.24s ease, padding-left 0.24s ease;
}
.footer-col a:hover {
  color: var(--sage-light);
  padding-left: 6px;
}
.footer-col a::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: opacity 0.24s ease, left 0.24s ease;
}
.footer-col a:hover::before {
  opacity: 1;
  left: -12px;
}

/* ─── CTA band: depth and warmth ────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(168, 190, 160, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(114, 140, 105, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }

/* ─── Trust pills (hero): tactile hover ─────────────── */
.hero-home [style*="border:1px solid var(--stone-mid)"][style*="border-radius:6px"] {
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-home [style*="border:1px solid var(--stone-mid)"][style*="border-radius:6px"]:hover {
  border-color: var(--sage) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(114, 140, 105, 0.12);
}

/* ─── Fade-up entrance: smoother curve ──────────────── */
.fade-up {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(28px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Image: gentle Ken Burns on hover (about photo) ── */
.founder-col img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.founder-col > div:first-child:hover img {
  transform: scale(1.03);
}

/* ─── Comparison table rows: hover shading ──────────── */
.compare-row {
  transition: background 0.2s ease;
}
.compare-row:hover > div:first-child { background: var(--sage-mist) !important; }
.compare-row:hover > div:last-child  { background: rgba(213, 207, 197, 0.4) !important; }

/* ─── Reduce motion preference (accessibility) ──────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-home::after { animation: none; }
}
