/* ============================================================
   PACTOTRUST — GLOBAL STYLESHEET
   Inspired by Pactolane, identity: green trust, light clarity
   ============================================================ */

:root {
  /* Primary — Teal PactoTrust (#3A8587 base) */
  --green-50: #EFF9F9; --green-100: #D5EEEF; --green-200: #AADDE0;
  --green-300: #72C5C8; --green-400: #4DA3A5; --green-500: #3A8587;
  --green-600: #2F6E70; --green-700: #265859; --green-800: #1D4445;
  --green-900: #153233;

  /* Accent — Deeper Teal */
  --teal-50: #EDF8F8; --teal-100: #D0EDEE; --teal-400: #3A9B9D;
  --teal-500: #2E8587; --teal-600: #256C6E; --teal-700: #1D5557;
  --teal-800: #164042;

  /* Logo color */
  --logo-color: #3A8587;

  /* Neutral — Slate */
  --slate-50: #F8FAFC; --slate-100: #F1F5F9; --slate-200: #E2E8F0;
  --slate-300: #CBD5E1; --slate-400: #94A3B8; --slate-500: #64748B;
  --slate-600: #475569; --slate-700: #334155; --slate-800: #1E293B;
  --slate-900: #0F172A;

  /* Semantic */
  --success: #059669; --warning: #D97706; --error: #DC2626; --info: #0284C7;

  /* Spacing */
  --sp-section: 100px; --sp-lg: 64px; --sp-md: 40px; --sp-sm: 24px;
  --sp-xs: 16px; --sp-xxs: 8px;

  /* Radius */
  --r-sm: 6px; --r: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --sh-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --sh-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --sh-green: 0 4px 14px -3px rgba(58, 133, 135, 0.4);

  /* Container */
  --mw: 1200px;

  /* Transitions */
  --tr: .2s ease; --tr-slow: .4s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-800);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--mw); margin: 0 auto; padding: 0 var(--sp-sm); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav, .navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: box-shadow var(--tr);
}
.nav.scrolled, .navbar.scrolled { box-shadow: var(--sh); }
.nav-inner, .nav-container {
  max-width: var(--mw); margin: 0 auto; padding: 0 var(--sp-sm);
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
/* Lucide Icons base styling */
.lucide { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.feature-icon .lucide, .solution-icon .lucide, .segment-icon .lucide,
.galaxy-card-icon .lucide, .mockup-doc-icon .lucide, .problem-icon .lucide,
.card-icon .lucide { width: 28px; height: 28px; }
.icon-green .lucide { color: var(--green-600); }
.icon-teal .lucide { color: var(--teal-600); }
.icon-slate .lucide { color: var(--slate-600); }
/* Logo component — definitive, reuse everywhere */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { flex-shrink: 0; width: 40px; height: 40px; }
.logo-wordmark { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.3px; white-space: nowrap; }
.logo-wordmark .wm-pacto { color: var(--slate-900); }
.logo-wordmark .wm-trust { color: var(--logo-color); }
.logo--footer .logo-wordmark .wm-pacto { color: #FFFFFF; }
.logo--footer .logo-wordmark .wm-trust { color: var(--green-400); }
.logo--footer .logo-icon { width: 36px; height: 36px; }
.logo--footer .logo-wordmark { font-size: 22px; }
.logo .by-tag {
  font-size: 11px; font-weight: 500; color: var(--slate-400);
  margin-left: 4px; padding: 2px 8px; background: var(--slate-100);
  border-radius: var(--r-full);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--slate-600);
  transition: color var(--tr); position: relative;
}
.nav-links a:hover { color: var(--green-700); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green-500); transform: scaleX(0);
  transition: transform var(--tr); border-radius: 1px;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-login {
  font-size: 14px; font-weight: 600; color: var(--slate-600);
  padding: 8px 16px; border-radius: var(--r); transition: all var(--tr);
}
.nav-login:hover { color: var(--green-700); background: var(--green-50); }

/* Hamburger */
.nav-hamburger {
  display: none; width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--slate-700);
  border-radius: 2px; transition: all var(--tr);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all var(--tr);
  text-decoration: none; border-radius: var(--r); line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: white; padding: 14px 28px; box-shadow: var(--sh-green);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(58,133,135,0.5);
}
.btn-secondary {
  background: white; color: var(--green-700); padding: 14px 28px;
  border: 1.5px solid var(--green-300);
}
.btn-secondary:hover { background: var(--green-50); border-color: var(--green-400); }
.btn-ghost { background: transparent; color: var(--slate-600); padding: 14px 20px; }
.btn-ghost:hover { color: var(--green-700); background: var(--green-50); }
.btn-dark { background: var(--slate-900); color: white; padding: 14px 28px; }
.btn-dark:hover { background: var(--slate-800); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 17px; border-radius: var(--r-md); }
.btn-white-outline {
  background: transparent; color: white; padding: 14px 28px;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(170deg, #FFFFFF 0%, var(--green-50) 40%, var(--teal-50) 70%, #FFFFFF 100%);
  position: relative; overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  top: -150px; right: -150px; border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  bottom: -100px; left: -100px; border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--green-200);
  border-radius: var(--r-full); padding: 8px 20px;
  font-size: 14px; font-weight: 600; color: var(--green-700);
  margin-bottom: 28px; box-shadow: var(--sh-sm);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; background: var(--green-500);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 900;
  line-height: 1.08; color: var(--slate-900); letter-spacing: -1.5px;
  margin-bottom: 20px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--green-600), var(--teal-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--slate-500); max-width: 640px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 48px 0; border-bottom: 1px solid var(--slate-200);
  text-align: center;
}
.trust-bar p {
  font-size: 14px; font-weight: 500; color: var(--slate-400);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 28px;
}
.trust-logos {
  display: flex; align-items: center; justify-content: center; gap: 48px;
  flex-wrap: wrap; opacity: 0.4;
}
.trust-logo {
  font-size: 20px; font-weight: 700; color: var(--slate-500);
  letter-spacing: -0.5px;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: var(--sp-section) 0; }
.section-alt { background: var(--slate-50); }
.section-label {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--green-600); margin-bottom: 8px;
  text-align: center;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--slate-900); text-align: center; margin-bottom: 16px;
  letter-spacing: -0.5px; line-height: 1.15;
}
.section-subtitle {
  font-size: 17px; color: var(--slate-500); text-align: center;
  max-width: 640px; margin: 0 auto var(--sp-md); line-height: 1.7;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.problem-card {
  background: white; border: 1px solid var(--slate-200); border-radius: var(--r-lg);
  padding: 36px; transition: all var(--tr); position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--error); opacity: 0.7;
}
.problem-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.problem-number {
  font-size: 52px; font-weight: 900; color: var(--slate-100);
  line-height: 1; margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 19px; font-weight: 700; color: var(--slate-900);
  margin-bottom: 12px; line-height: 1.3;
}
.problem-card p {
  font-size: 15px; color: var(--slate-500); line-height: 1.65;
}

/* ============================================================
   SOLUTION SECTION
   ============================================================ */
.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.solution-card {
  background: white; border: 1px solid var(--slate-200); border-radius: var(--r-lg);
  padding: 36px; transition: all var(--tr);
}
.solution-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--green-200); }
.solution-card.featured {
  border-top: 3px solid var(--green-500);
  background: linear-gradient(180deg, var(--green-50) 0%, white 40%);
}
.solution-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.icon-green { background: var(--green-100); }
.icon-teal { background: var(--teal-100); }
.icon-slate { background: var(--slate-100); }
.solution-card h3 {
  font-size: 20px; font-weight: 700; color: var(--slate-900);
  margin-bottom: 12px;
}
.solution-card p {
  font-size: 15px; color: var(--slate-500); line-height: 1.65; margin-bottom: 16px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--green-600);
  transition: gap var(--tr);
}
.card-link:hover { gap: 10px; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section { padding: 64px 0; background: var(--slate-900); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-size: clamp(36px, 5vw, 52px); font-weight: 900;
  background: linear-gradient(135deg, var(--green-400), var(--teal-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: var(--slate-400); font-weight: 500; }

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-section { position: relative; overflow: hidden; }
.ai-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.ai-text h2 {
  font-size: 36px; font-weight: 800; color: var(--slate-900);
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px;
}
.ai-text h2 .gradient {
  background: linear-gradient(135deg, var(--green-600), var(--teal-500));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-text p {
  font-size: 16px; color: var(--slate-500); line-height: 1.7;
  margin-bottom: 24px;
}
.ai-features { list-style: none; margin-bottom: 32px; }
.ai-features li {
  padding: 10px 0; font-size: 15px; color: var(--slate-600);
  display: flex; align-items: center; gap: 12px;
}
.ai-features li .check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-100); display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--green-700);
  flex-shrink: 0; font-weight: 700;
}
.ai-mockup {
  background: linear-gradient(145deg, var(--green-50), var(--teal-50));
  border-radius: var(--r-xl); padding: 32px;
  border: 1px solid var(--green-200);
}
.ai-mockup-inner {
  background: white; border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--sh-md);
}
.mockup-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--slate-100);
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-title {
  font-size: 14px; font-weight: 600; color: var(--slate-700);
}
.mockup-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--slate-100);
}
.mockup-row:last-child { border-bottom: none; }
.mockup-doc {
  display: flex; align-items: center; gap: 12px;
}
.mockup-doc-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.mockup-doc-name { font-size: 14px; font-weight: 600; color: var(--slate-700); }
.mockup-doc-type { font-size: 12px; color: var(--slate-400); }
.mockup-badge {
  padding: 4px 12px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
}
.badge-success { background: var(--green-100); color: var(--green-700); }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.mockup-score {
  font-size: 13px; font-weight: 700; color: var(--green-600);
}

/* ============================================================
   GALAXY / ECOSYSTEM
   ============================================================ */
.galaxy-section {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--green-900) 100%);
  color: white; position: relative; overflow: hidden;
}
.galaxy-section::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  top: -200px; right: -200px; border-radius: 50%;
}
.galaxy-section .section-label { color: var(--green-400); }
.galaxy-section .section-title { color: white; }
.galaxy-section .section-subtitle { color: var(--slate-400); }
.galaxy-flow {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px;
  align-items: center; position: relative; z-index: 1;
}
.galaxy-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 36px; text-align: center;
  backdrop-filter: blur(10px); transition: all var(--tr);
}
.galaxy-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.galaxy-card-icon { font-size: 40px; margin-bottom: 16px; }
.galaxy-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.galaxy-card p { font-size: 14px; color: var(--slate-400); line-height: 1.6; }
.galaxy-arrow {
  font-size: 32px; color: var(--green-400); opacity: 0.6;
  display: flex; align-items: center; justify-content: center;
}
.galaxy-bottom {
  text-align: center; margin-top: 48px; position: relative; z-index: 1;
}
.galaxy-bottom p {
  font-size: 16px; color: var(--slate-400); margin-bottom: 24px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testimonial-card {
  background: white; border: 1px solid var(--slate-200); border-radius: var(--r-lg);
  padding: 36px; position: relative;
}
.testimonial-card::before {
  content: '"'; font-size: 64px; font-weight: 900; color: var(--green-200);
  position: absolute; top: 16px; left: 28px; line-height: 1;
}
.testimonial-quote {
  font-size: 16px; color: var(--slate-600); line-height: 1.7;
  margin-bottom: 24px; padding-top: 20px; font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-200), var(--teal-200));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--green-800);
}
.testimonial-info h4 { font-size: 15px; font-weight: 700; color: var(--slate-800); }
.testimonial-info p { font-size: 13px; color: var(--slate-500); }

/* ============================================================
   SECTORS / DIRECTIONS
   ============================================================ */
.segments-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.segment-group h3 {
  font-size: 18px; font-weight: 700; color: var(--slate-800);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--green-200);
}
.segment-list { display: flex; flex-direction: column; gap: 10px; }
.segment-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: white; border: 1px solid var(--slate-200);
  border-radius: var(--r); transition: all var(--tr); cursor: pointer;
}
.segment-item:hover {
  border-color: var(--green-300); box-shadow: var(--sh); transform: translateX(4px);
}
.segment-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--green-50); flex-shrink: 0;
}
.segment-item span {
  font-size: 15px; font-weight: 600; color: var(--slate-700); flex: 1;
}
.segment-arrow { font-size: 14px; color: var(--slate-400); transition: color var(--tr); }
.segment-item:hover .segment-arrow { color: var(--green-600); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 768px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--slate-200); overflow: hidden;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 24px 0; background: none; border: none;
  font-family: inherit; font-size: 17px; font-weight: 600;
  color: var(--slate-800); cursor: pointer; text-align: left;
  transition: color var(--tr);
}
.faq-question:hover { color: var(--green-700); }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--slate-100); display: flex; align-items: center;
  justify-content: center; font-size: 18px; color: var(--slate-500);
  flex-shrink: 0; transition: all var(--tr);
}
.faq-item.active .faq-toggle { background: var(--green-100); color: var(--green-700); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer p {
  padding-bottom: 24px; font-size: 15px; color: var(--slate-500);
  line-height: 1.7;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--green-900) 100%);
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%); border-radius: 50%;
}
.cta-final h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: white;
  margin-bottom: 16px; position: relative; z-index: 1;
  max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.15;
}
.cta-final p {
  font-size: 17px; color: var(--slate-400); max-width: 560px;
  margin: 0 auto 36px; position: relative; z-index: 1; line-height: 1.7;
}
.cta-final .hero-actions { position: relative; z-index: 1; }

/* CTA Dark Section — shared base for secondary pages */
.cta-dark-section {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-900) 100%);
  color: white; padding: 80px 0; text-align: center;
}
.cta-dark-section h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 900; margin-bottom: 16px; }
.cta-dark-section p {
  font-size: 18px; margin-bottom: 32px; opacity: 0.9;
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.cta-dark-section .btn { margin: 0 8px; }

/* Page Hero — shared base for secondary pages */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(170deg, #FFFFFF 0%, var(--green-50) 50%, #FFFFFF 100%);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 900;
  color: var(--slate-900); letter-spacing: -1px; margin-bottom: 16px;
}
.page-hero .hero-label, .page-hero .section-label {
  display: inline-block; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-600);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px; color: var(--slate-500);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* Feature icon / card base for secondary pages */
.feature-icon, .solution-icon, .problem-icon {
  width: 48px; height: 48px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--green-600);
  background: var(--green-50);
}
.feature-card, .benefit-card {
  border: 1.5px solid var(--slate-200); border-radius: var(--r);
  padding: 32px 24px; background: white; transition: all var(--tr);
}
.feature-card:hover, .benefit-card:hover {
  border-color: var(--green-400);
  box-shadow: 0 12px 24px rgba(58, 133, 135, 0.08);
  transform: translateY(-2px);
}
.feature-card h3, .benefit-card h3 {
  font-size: 18px; font-weight: 700; color: var(--slate-900); margin-bottom: 8px;
}
.feature-card p, .benefit-card p {
  font-size: 15px; color: var(--slate-500); line-height: 1.7;
}

/* Btn light for CTA on dark backgrounds */
.btn-light {
  background: white; color: var(--green-700); padding: 14px 28px;
  font-weight: 600; border-radius: var(--r);
}
.btn-light:hover { background: var(--green-50); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--slate-900); padding: 64px 0 32px; color: white; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--slate-400); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--slate-500); margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--slate-400);
  padding: 5px 0; transition: color var(--tr);
}
.footer-col a:hover { color: var(--green-400); }
.footer-bottom {
  border-top: 1px solid var(--slate-800); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--slate-500); flex-wrap: wrap; gap: 16px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--slate-500); transition: color var(--tr); }
.footer-legal a:hover { color: var(--slate-300); }

/* ============================================================
   ANIMATIONS (entrance)
   ============================================================ */
.reveal {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-loaded .reveal {
  opacity: 0; transform: translateY(28px);
}
.js-loaded .reveal.visible,
.js-loaded .reveal.active,
.js-loaded .reveal.revealed { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .problem-grid, .solution-grid { grid-template-columns: 1fr; }
  .ai-content { grid-template-columns: 1fr; }
  .ai-mockup { order: -1; }
  .galaxy-flow { grid-template-columns: 1fr; }
  .galaxy-arrow { transform: rotate(90deg); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .segments-wrapper { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --sp-section: 64px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================================ */

/* Admin bar offset */
body.admin-bar .nav,
body.admin-bar .navbar {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .nav,
  body.admin-bar .navbar {
    top: 46px;
  }
}

/* WordPress alignment classes */
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.aligncenter { text-align: center; }

/* WordPress image captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--slate-500); padding: 8px 0; }

/* WordPress block editor styles */
.wp-block-group.is-style-section { padding: var(--sp-section) 0; }
.wp-block-group.is-style-section-alt { padding: var(--sp-section) 0; background: var(--slate-50); }

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* Navigation menu WordPress classes */
.nav-links .menu { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links .menu li { list-style: none; }
.nav-links .menu a { font-size: 15px; font-weight: 500; color: var(--slate-600); transition: color var(--tr); position: relative; text-decoration: none; }
.nav-links .menu a:hover { color: var(--green-700); }
.nav-links .menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--green-500); transform: scaleX(0);
  transition: transform var(--tr); border-radius: 1px;
}
.nav-links .menu a:hover::after { transform: scaleX(1); }
.nav-links .menu .current-menu-item > a { color: var(--green-700); }
.nav-links .menu .current-menu-item > a::after { transform: scaleX(1); }

/* Sub-menu dropdown */
.nav-links .menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border: 1px solid var(--slate-200);
  border-radius: var(--r); box-shadow: var(--sh-md);
  padding: 12px 0; min-width: 220px; z-index: 100;
  flex-direction: column; gap: 0;
}
.nav-links .menu li:hover > .sub-menu { display: flex; }
.nav-links .menu .sub-menu a { padding: 10px 20px; font-size: 14px; display: block; }
.nav-links .menu .sub-menu a:hover { background: var(--green-50); }
.nav-links .menu .sub-menu a::after { display: none; }

/* Footer menu WordPress classes */
.footer-col .menu { list-style: none; margin: 0; padding: 0; }
.footer-col .menu li { list-style: none; }
.footer-col .menu a { display: block; font-size: 14px; color: var(--slate-400); padding: 5px 0; transition: color var(--tr); text-decoration: none; }
.footer-col .menu a:hover { color: var(--green-400); }

/* Mobile navigation overlay */
.nav-mobile-overlay {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 999; padding: 24px;
  flex-direction: column; gap: 8px; overflow-y: auto;
}
.nav-mobile-overlay.active { display: flex; }
.nav-mobile-overlay .menu { flex-direction: column; gap: 0; }
.nav-mobile-overlay .menu a {
  display: block; padding: 16px 0; font-size: 18px; font-weight: 600;
  color: var(--slate-800); border-bottom: 1px solid var(--slate-100);
}
.nav-mobile-overlay .menu .sub-menu {
  position: static; display: flex; box-shadow: none; border: none;
  padding: 0 0 0 20px; min-width: auto;
}

/* Page template specific */
.page-content { padding: 40px 0 80px; }
.page-content .container { max-width: var(--mw); margin: 0 auto; padding: 0 var(--sp-sm); }

/* Gutenberg content styling */
.entry-content h2 { font-size: 32px; font-weight: 800; color: var(--slate-900); margin: 48px 0 16px; letter-spacing: -0.5px; }
.entry-content h3 { font-size: 24px; font-weight: 700; color: var(--slate-900); margin: 36px 0 12px; }
.entry-content p { font-size: 16px; color: var(--slate-600); line-height: 1.7; margin-bottom: 20px; }
.entry-content ul, .entry-content ol { margin: 16px 0 24px 24px; color: var(--slate-600); }
.entry-content li { margin-bottom: 8px; line-height: 1.6; }
.entry-content a { color: var(--green-600); text-decoration: underline; }
.entry-content a:hover { color: var(--green-800); }
.entry-content blockquote { border-left: 4px solid var(--green-500); padding: 16px 24px; margin: 24px 0; background: var(--green-50); border-radius: 0 var(--r) var(--r) 0; }
.entry-content blockquote p { color: var(--slate-700); font-style: italic; margin-bottom: 0; }
.entry-content img { border-radius: var(--r); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--slate-200); font-size: 14px; }
.entry-content th { background: var(--green-50); font-weight: 600; color: var(--slate-900); }
.entry-content tr:hover td { background: var(--slate-50); }

/* Comparison table specific */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comparison-table th, .comparison-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--slate-200); }
.comparison-table th { background: var(--green-50); font-weight: 600; color: var(--slate-900); }
.comparison-table tr:hover { background: var(--slate-50); }

/* Use case cards */
.use-case { background: white; border-left: 4px solid var(--green-500); padding: 24px; border-radius: 0 var(--r) var(--r) 0; margin: 24px 0; }
.use-case h3 { color: var(--slate-900); font-weight: 700; margin: 0 0 12px 0; }
.use-case p { color: var(--slate-600); margin: 8px 0; font-size: 14px; }

/* Metrics grid */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 32px 0; }
.metric-box { background: linear-gradient(135deg, var(--green-50) 0%, var(--teal-50) 100%); border-radius: var(--r); padding: 24px; text-align: center; }
.metric-value { font-size: 32px; font-weight: 900; color: var(--green-500); }
.metric-label { font-size: 14px; color: var(--slate-600); margin-top: 8px; }

/* Benefits grid */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 40px 0; }
.benefit-box { background: linear-gradient(135deg, var(--green-50) 0%, var(--teal-50) 100%); border-radius: var(--r); padding: 24px; text-align: center; }
.benefit-value { font-size: 32px; font-weight: 900; color: var(--green-500); }
.benefit-label { font-size: 14px; color: var(--slate-600); margin-top: 8px; }

/* Feature grid for inner pages */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 40px 0; }
