/* ==========================================================================
   AI Visibility & GEO Engine — Rich SaaS Landing Page Stylesheet
   Designed for high visual fidelity, modern depth, and zero missing classes
   ========================================================================== */

:root {
  --saas-primary: #10B981;
  --saas-primary-hover: #059669;
  --saas-primary-soft: #ecfdf5;
  --saas-primary-border: #a7f3d0;
  --saas-dark: #0f172a;
  --saas-dark-surface: #1e293b;
  --saas-text: #0f172a;
  --saas-text-muted: #64748b;
  --saas-text-light: #94a3b8;
  --saas-border: #e2e8f0;
  --saas-card-bg: #ffffff;
  --saas-bg-subtle: #f8fafc;
  --saas-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --saas-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --saas-shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.10), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  --saas-shadow-primary: 0 8px 24px rgba(16, 185, 129, 0.28);
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
  font-family: 'Lexend', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif !important;
}

/* Header & Navigation Bar */
.saas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--saas-border);
  transition: all 0.2s ease;
}

.saas-header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.saas-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--saas-text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.saas-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.saas-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.saas-nav-link {
  text-decoration: none;
  color: var(--saas-text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}

.saas-nav-link:hover, .saas-nav-link.active {
  color: var(--saas-primary);
}

.saas-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--saas-primary);
  border-radius: 2px;
}

.saas-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saas-btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--saas-border);
  background: #ffffff;
  color: var(--saas-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.saas-btn-lang:hover {
  background: var(--saas-bg-subtle);
  border-color: #cbd5e1;
}

.saas-btn-login {
  color: var(--saas-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  transition: all 0.15s ease;
}

.saas-btn-login:hover {
  background: var(--saas-bg-subtle);
}

.saas-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all 0.18s ease;
}

.saas-btn-cta:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

/* Hero Section */
.saas-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background: radial-gradient(1200px 600px at 50% -50px, rgba(16, 185, 129, 0.09) 0%, rgba(248, 250, 252, 0) 100%), #ffffff;
  border-bottom: 1px solid var(--saas-border);
}

.saas-hero-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.saas-badge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}

.saas-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: saasPulse 2s infinite ease-in-out;
}

@keyframes saasPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.saas-hero-title {
  font-size: 46px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: var(--saas-text);
  margin: 0 auto 20px;
  max-width: 960px;
}

@media (max-width: 768px) {
  .saas-hero-title {
    font-size: 30px;
  }
}

.saas-hero-title .gradient-span {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.saas-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--saas-text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

/* Search Form Bar */
.saas-search-form-wrap {
  max-width: 740px;
  margin: 0 auto;
}

.saas-search-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  padding: 7px 8px 7px 18px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.saas-search-card:focus-within {
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), 0 16px 36px -4px rgba(15, 23, 42, 0.08);
}

.saas-search-input-box {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.saas-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.saas-search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--saas-text);
  font-weight: 500;
}

.saas-search-input::placeholder {
  color: #94a3b8;
}

.saas-btn-submit-hero {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 13px !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  transition: all 0.18s ease !important;
  text-decoration: none !important;
}

.saas-btn-submit-hero:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45) !important;
}

@media (max-width: 640px) {
  .saas-search-card {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .saas-search-input-box {
    width: 100%;
  }
  .saas-btn-submit-hero {
    width: 100%;
    justify-content: center;
  }
}

/* Trust Badges */
.saas-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--saas-text-muted);
}

.saas-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.saas-trust-item svg {
  width: 16px;
  height: 16px;
  color: #10B981;
}

/* Hero Showcase Mockup Card */
.saas-mockup-wrapper {
  max-width: 1060px;
  margin: 50px auto 0;
  position: relative;
}

.saas-mockup-window {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.saas-mockup-topbar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.saas-window-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}
.saas-window-dot.red { background: #ff5f56; }
.saas-window-dot.yellow { background: #ffbd2e; }
.saas-window-dot.green { background: #27c93f; }

.saas-mockup-content {
  position: relative;
  background: #f8fafc;
}

.saas-mockup-content img {
  width: 100%;
  display: block;
  height: auto;
}

/* Floating Status Pills on Mockup */
.saas-floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  font-weight: 700;
  color: var(--saas-text);
  z-index: 10;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.saas-floating-pill.pill-left {
  top: 14%;
  left: -20px;
}

.saas-floating-pill.pill-right {
  bottom: 18%;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .saas-floating-pill {
    display: none;
  }
}

/* AI Engine Showcase Bar */
.saas-engine-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--saas-border);
  padding: 40px 0;
}

.saas-engine-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.saas-engine-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saas-text-muted);
  margin-bottom: 24px;
}

.saas-engine-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.saas-engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--saas-text);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.saas-engine-chip:hover {
  background: #ffffff;
  border-color: #10B981;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

/* Feature 4-Pillar Grid */
.saas-feature-section {
  padding: 90px 0;
  background: #ffffff;
}

.saas-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 20px;
}

.saas-section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saas-primary);
  margin-bottom: 12px;
}

.saas-section-title {
  font-size: 36px;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--saas-text);
  line-height: 1.25;
  margin: 0 0 14px;
}

.saas-section-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--saas-text-muted);
  margin: 0;
}

.saas-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 1100px) {
  .saas-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .saas-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.saas-pillar-card {
  background: #ffffff;
  border: 1px solid var(--saas-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--saas-shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.saas-pillar-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--saas-shadow-md);
}

.saas-pillar-card-img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.saas-pillar-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.saas-pillar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--saas-text);
  margin: 0 0 8px;
}

.saas-pillar-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--saas-text-muted);
  margin-bottom: 16px;
}

.saas-pillar-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.saas-pillar-checklist li {
  font-size: 12px;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.saas-pillar-checklist li svg {
  width: 14px;
  height: 14px;
  color: #10B981;
  flex-shrink: 0;
}

/* How It Works 3 Steps */
.saas-steps-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid var(--saas-border);
  border-bottom: 1px solid var(--saas-border);
}

.saas-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 860px) {
  .saas-steps-grid {
    grid-template-columns: 1fr;
  }
}

.saas-step-card {
  background: #ffffff;
  border: 1px solid var(--saas-border);
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: var(--saas-shadow-sm);
  position: relative;
}

.saas-step-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.saas-step-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--saas-text);
  margin: 0 0 10px;
}

.saas-step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--saas-text-muted);
  margin: 0;
}

/* Comparison Table (Traditional SEO vs GEO) */
.saas-compare-section {
  padding: 90px 0;
  background: #ffffff;
}

.saas-compare-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.saas-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) {
  .saas-compare-grid {
    grid-template-columns: 1fr;
  }
}

.saas-compare-col {
  border-radius: 18px;
  padding: 32px;
  border: 1px solid var(--saas-border);
}

.saas-compare-col.legacy {
  background: #f8fafc;
}

.saas-compare-col.future {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #a7f3d0;
  box-shadow: var(--saas-shadow-md);
}

/* Bottom Rich Call To Action */
.saas-cta-section {
  padding: 90px 0;
  background: #ffffff;
}

.saas-cta-card {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(6, 78, 59, 0.35);
}

.saas-cta-title {
  font-size: 38px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 auto 16px;
  max-width: 800px;
}

.saas-cta-desc {
  font-size: 16px;
  color: #a7f3d0;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.saas-btn-cta-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff !important;
  color: #064e3b !important;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.18s ease;
}

.saas-btn-cta-big:hover {
  transform: translateY(-2px);
  background: #f0fdf4 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

/* Emerald & semantic color fallbacks to guarantee 100% solid rendering */
.bg-emerald-600 { background-color: #10B981 !important; }
.hover\:bg-emerald-700:hover { background-color: #059669 !important; }
.bg-emerald-700 { background-color: #059669 !important; }
.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.text-emerald-600 { color: #10B981 !important; }
.text-emerald-700 { color: #047857 !important; }
.text-emerald-800 { color: #065f46 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-emerald-500 { border-color: #10B981 !important; }
.border-emerald-600 { border-color: #059669 !important; }

.bg-blue-50 { background-color: #eff6ff !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-700 { color: #1d4ed8 !important; }
.border-blue-200 { border-color: #bfdbfe !important; }

.bg-purple-50 { background-color: #faf5ff !important; }
.text-purple-600 { color: #9333ea !important; }
.text-purple-700 { color: #7e22ce !important; }
.border-purple-200 { border-color: #e9d5ff !important; }

.bg-amber-50 { background-color: #fffbeb !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.border-amber-200 { border-color: #fde68a !important; }

