:root {
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5f5;
  --brand-600: #0ea5e9;
  --brand-700: #0284c7;
  --accent-500: #22c55e;
  --accent-600: #16a34a;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body.saas-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: #f4f7fb;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.saas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px circle at 10% 10%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(600px circle at 90% 20%, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(244, 247, 251, 1) 100%);
}

.saas-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.saas-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-900);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.saas-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.saas-nav a {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 14px;
}

.saas-nav a:hover {
  color: var(--brand-700);
}

.saas-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary,
.btn-outline,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  border: 1px solid var(--brand-600);
  color: var(--brand-700);
  background: #ffffff;
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid rgba(51, 65, 85, 0.2);
  color: var(--ink-700);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(14, 165, 233, 0.4);
  color: var(--brand-700);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.saas-main {
  position: relative;
  z-index: 1;
}

.saas-hero {
  position: relative;
  padding: 80px 0 96px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.88));
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  color: var(--ink-500);
  font-size: 17px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
}

.hero-preview {
  display: grid;
  gap: 18px;
}

.preview-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.preview-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.preview-title {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
}

.preview-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.preview-media {
  padding: 18px;
  background: var(--surface-alt);
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.preview-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-700);
}

.preview-metric .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
}

.preview-metric .trend {
  font-size: 12px;
  font-weight: 700;
}

.preview-metric .trend.up {
  color: var(--accent-600);
}

.preview-metric .trend.down {
  color: #ef4444;
}

.preview-chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 90px;
}

.preview-chart .bar {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.85), rgba(14, 165, 233, 0.35));
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-500);
}

.preview-footer strong {
  color: var(--ink-900);
}

.preview-float {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.preview-float p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-500);
}

.preview-float strong {
  font-size: 14px;
  color: var(--ink-900);
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.12);
  color: var(--brand-700);
}

.saas-section {
  padding: 72px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-700);
}

.section-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 32px;
  margin: 0;
}

.section-subtitle {
  color: var(--ink-500);
  max-width: 640px;
}

.why-section {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.6), rgba(255, 255, 255, 0.9));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.why-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
}

.why-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.why-card p {
  color: var(--ink-500);
  font-size: 14px;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mid-cta {
  padding: 40px 0 60px;
}

.mid-cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-lg);
}

.mid-cta-copy h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.mid-cta-copy p {
  color: var(--ink-500);
  margin: 0;
}

.mid-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.feature-card p {
  color: var(--ink-500);
  font-size: 14px;
}

.feature-icon {
  font-size: 28px;
  color: var(--brand-700);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.billing-toggle {
  display: inline-flex;
  gap: 6px;
  background: #ffffff;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
}

.billing-btn {
  border: none;
  background: transparent;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.billing-btn.active {
  background: rgba(14, 165, 233, 0.15);
  color: var(--brand-700);
}

.billing-note {
  margin: 12px 0 24px;
  color: var(--ink-500);
  font-size: 13px;
}

.plan-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border: 2px solid rgba(14, 165, 233, 0.5);
  box-shadow: 0 24px 50px rgba(14, 165, 233, 0.15);
}

.plan-card-inner {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.plan-head p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

.plan-price .price-text {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-900);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-700);
  font-size: 14px;
}

.plan-features i {
  color: var(--accent-600);
  margin-right: 8px;
}

.plan-action {
  margin-top: 8px;
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: var(--shadow-lg);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-answer {
  padding: 0 20px;
  color: var(--ink-500);
  font-size: 14px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  opacity: 1;
  padding: 0 20px 18px;
}

.faq-icon {
  transition: transform 0.25s ease;
  color: var(--ink-500);
}

.rotate-180 {
  transform: rotate(180deg);
}

.hidden {
  display: none;
}

.cta-section {
  padding: 72px 0;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(34, 197, 94, 0.12));
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.cta-inner h2 {
  font-size: 30px;
  margin-bottom: 12px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.cta-inner p {
  color: var(--ink-500);
  margin-bottom: 20px;
}

.cta-actions {
  display: flex;
  justify-content: center;
}

.saas-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-500);
  font-size: 13px;
}

.footer-meta {
  color: var(--ink-500);
  font-size: 12px;
}

.text-accent {
  color: var(--brand-700);
}

.gsap-stagger-item {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-preview {
    order: 2;
  }
  .saas-nav {
    display: none;
  }
  .mid-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .cta-inner {
    padding: 28px;
  }
}
