/* ==========================================================================
   CATIF (catif.in) - FinTech + SaaS + Trading Technology Design System
   Capital & Trading Institute of Finance | Consistency Creates Capital
   ========================================================================== */

:root {
  --color-navy: #071C45;
  --color-navy-dark: #030D1E;
  --color-navy-light: #0B2554;
  --color-navy-card: #0D2B60;
  
  --color-blue: #0759D9;
  --color-blue-hover: #0646B0;
  --color-blue-light: #1E6BE6;
  
  --color-gold: #FFD21A;
  --color-gold-hover: #E6BC0E;
  --color-gold-light: #FFE366;
  
  --color-emerald: #10B981;
  --color-rose: #F43F5E;
  
  --bg-white: #FFFFFF;
  --bg-slate: #F8FAFC;
  --bg-muted: #F1F5F9;
  
  --text-main: #061A3A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-subtle: #E2E8F0;
  --border-navy: #1E3A8A;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  font-size: 16px;
}

section[id], div[id], [id] {
  scroll-margin-top: 6rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.text-gold {
  color: var(--color-gold) !important;
}

.bg-gold {
  background-color: var(--color-gold) !important;
}

.text-navy {
  color: var(--color-navy) !important;
}

.bg-navy {
  background-color: var(--color-navy) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 700;
  border-radius: 0.625rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--color-gold);
  color: #061A3A;
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(255, 210, 26, 0.35);
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 210, 26, 0.45);
}

.btn-primary {
  background: var(--color-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(7, 89, 217, 0.3);
}

.btn-primary:hover {
  background: var(--color-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 89, 217, 0.4);
}

.btn-navy-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-navy-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--color-navy);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: var(--bg-slate);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 0.75rem;
}

/* Header (Dark Navy #071C45) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #071C45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.site-header.scrolled {
  background: rgba(7, 28, 69, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 8px;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 48px;
  max-height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  .brand-logo-img {
    height: 44px;
    max-height: 46px;
  }
  .brand-logo-pill {
    padding: 2px 6px;
  }
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 38px;
    max-height: 40px;
  }
  .brand-logo-pill {
    padding: 2px 5px;
    border-radius: 0.375rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #E2E8F0;
  font-size: 0.925rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Section (Deep Navy) */
.hero-fintech {
  background: radial-gradient(circle at 75% 20%, rgba(7, 89, 217, 0.28) 0%, rgba(7, 28, 69, 1) 75%),
              linear-gradient(180deg, #071C45 0%, #030D1E 100%);
  color: #FFFFFF;
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-fintech::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.15rem;
  background: #071C45;
  color: #FFFFFF;
  border: 1px solid rgba(255, 210, 26, 0.4);
  box-shadow: 0 4px 16px rgba(7, 28, 69, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.hero-tag:hover {
  background: #0B2554;
  border-color: rgba(255, 210, 26, 0.6);
  transform: translateY(-1px);
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subhead {
  font-size: 1.15rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

/* Digital Multi-Device Showcase Mockup */
.device-showcase-card {
  background: rgba(13, 43, 96, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(7, 89, 217, 0.25);
  backdrop-filter: blur(16px);
  position: relative;
}

.candlestick-chart-box {
  background: #030D1E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.signal-badge-buy {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.signal-badge-sell {
  background: rgba(244, 63, 94, 0.2);
  color: #F43F5E;
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 5 Core Services Cards */
.services-section {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

.services-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.service-card-clean {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.service-card-clean:hover {
  border-color: var(--color-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(7, 89, 217, 0.1);
}

.service-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-title-clean {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.service-desc-clean {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-link-arrow {
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.15s ease;
}

.service-link-arrow:hover {
  color: var(--color-blue-hover);
  gap: 0.55rem;
}

/* About / Growth Ecosystem Section */
.ecosystem-section {
  padding: 5rem 0;
  background: var(--bg-slate);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.ecosystem-card-preview {
  background: linear-gradient(135deg, #061A3A 0%, #0B2554 100%);
  border-radius: 1.25rem;
  padding: 2.5rem;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 35px -5px rgba(6, 26, 58, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Algo Trading Section (Dark Navy) */
.algo-section {
  background: #061A3A;
  color: #FFFFFF;
  padding: 6rem 0;
  position: relative;
}

.algo-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.algo-feature-item {
  background: rgba(13, 43, 96, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.algo-feature-item:hover {
  background: rgba(13, 43, 96, 0.85);
  border-color: var(--color-gold);
  transform: translateX(4px);
}

/* Automation Workflow Section (Light) */
.automation-section {
  padding: 5.5rem 0;
  background: #FFFFFF;
}

.workflow-steps-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.workflow-node {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.workflow-node:hover {
  border-color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(7, 89, 217, 0.1);
}

.workflow-arrow {
  color: #94A3B8;
  font-size: 1.25rem;
}

/* Digital Solutions Section (Light) */
.digital-section {
  padding: 5rem 0;
  background: var(--bg-slate);
  border-top: 1px solid var(--border-subtle);
}

.digital-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

/* Why CATIF & Client Testimonials Section (Dark Navy) */
.why-catif-section {
  background: #061A3A;
  color: #FFFFFF;
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.consistency-callout {
  text-align: center;
  padding: 2rem 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.consistency-script {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.15;
  text-shadow: 0 0 25px rgba(255, 210, 26, 0.4);
}

/* Footer (Dark Navy) */
.site-footer {
  background: #030D1E;
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* FAQ Accordion Styling */
.faq-category-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.faq-cat-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-cat-btn:hover {
  background: var(--bg-slate);
}

.faq-cat-btn.active {
  background: var(--color-navy);
  color: var(--color-gold);
  border-color: var(--color-navy);
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.open {
  border-color: var(--color-blue);
  box-shadow: 0 4px 12px -2px rgba(7, 89, 217, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--color-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
  padding: 0 1.5rem 1.25rem;
}

/* ==========================================================================
   Pricing Section, Modern Segmented Toggle & Conversion-Optimized Cards
   ========================================================================== */

/* 1. Modern Segmented Billing Toggle */
.segmented-pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: #F8FAFC;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  gap: 4px;
}

.billing-toggle-btn {
  padding: 9px 24px;
  border-radius: 9999px;
  font-size: 0.925rem;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  outline: none;
  white-space: nowrap;
}

.billing-toggle-btn:hover:not(.active) {
  color: #071C45;
  background: #F1F5F9;
  border-color: #94A3B8;
}

.billing-toggle-btn.active {
  background: #071C45 !important;
  color: #FFFFFF !important;
  border-color: #071C45 !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(7, 28, 69, 0.22);
}

/* 2. High-Visibility Save 20% Annually Badge */
.pricing-save-badge {
  background: #DCFCE7;
  color: #15803D;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #86EFAC;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.08);
  white-space: nowrap;
}

/* 3. Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(7, 28, 69, 0.12);
  border-color: #94A3B8;
}

/* Best Value Card Highlight & Border */
.pricing-card.popular {
  border: 2px solid #FFD21E;
  box-shadow: 0 12px 30px -4px rgba(7, 28, 69, 0.12), 0 0 0 1px #FFD21E;
  background: #FFFFFF;
}

.pricing-card.popular:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -4px rgba(7, 28, 69, 0.18), 0 0 0 1px #FFD21E;
  border-color: #FFD21E;
}

.popular-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD21E;
  color: #071C45;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(255, 210, 30, 0.35);
  white-space: nowrap;
}

.popular-header-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.popular-header-tag span {
  display: inline-flex;
  align-items: center;
  background: #071C45;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 4px rgba(7, 28, 69, 0.15);
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #071C45;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  min-height: 2.6rem;
}

/* Pricing Display & Smooth Dynamic Switch Animation */
.plan-price-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E2E8F0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: #071C45;
}

.price-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: #071C45;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-block;
}

.price-val.price-animating {
  opacity: 0.3;
  transform: scale(0.92);
}

.price-period {
  font-size: 0.825rem;
  color: #64748B;
  font-weight: 600;
}

.plan-price-subtext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  min-height: 1.35rem;
}

.price-tax-note {
  font-size: 0.775rem;
  color: #64748B;
  font-weight: 500;
}

.price-savings {
  color: #15803D;
  background: #DCFCE7;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #86EFAC;
  display: inline-block;
  transition: opacity 0.25s ease;
}

.price-savings.hidden {
  display: none;
}

/* Bullet list with flex hanging indent and breathing room */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.45;
}

.plan-features li i {
  flex-shrink: 0;
  width: 1.15rem;
  margin-top: 0.18rem;
  color: #0759D9;
  font-size: 0.95rem;
  text-align: center;
}

.plan-features li span {
  flex: 1;
}

/* 4. Conversion-Focused Subscribe Now Buttons (CATIF Brand Yellow #FFD21E) */
.pricing-card .open-checkout-btn {
  margin-top: auto;
  width: 100%;
  background: #FFD21E;
  color: #071C45;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid #FFD21E;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(255, 210, 30, 0.2);
  text-decoration: none;
}

.pricing-card .open-checkout-btn:hover {
  background: #EAB308;
  color: #071C45;
  border-color: #EAB308;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 210, 30, 0.25);
}

.pricing-card .open-checkout-btn:active {
  transform: translateY(0);
}

.pricing-card.popular .open-checkout-btn {
  background: #FFD21E;
  color: #071C45;
  border: 1px solid #FFD21E;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 210, 30, 0.3);
}

.pricing-card.popular .open-checkout-btn:hover {
  background: #EAB308;
  border-color: #EAB308;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 210, 30, 0.35);
}

/* Guarantee Ribbon Matching Grid Width */
.pricing-guarantee-ribbon {
  margin-top: 3rem;
  padding: 1.25rem 2rem;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 1rem;
  width: 100%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* FAQ Section Spacing & Knowledge Base Separation */
.faq-section, #faq {
  padding-top: 5.5rem !important; /* 88px of top padding as requested (60-80px) */
  padding-bottom: 5.5rem !important;
  border-top: 1px solid var(--border-subtle);
  background: #FFFFFF;
}

/* Testimonial Section Animations */
.testimonial-slide {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-slide.hidden {
  display: none;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 58, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(6, 26, 58, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-body {
  padding: 1.75rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-navy);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.625rem;
  background: #FFFFFF;
  color: var(--color-navy);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(7, 89, 217, 0.12);
}

/* Legal Documents */
.legal-content {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 3rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  max-width: 920px;
  margin: 0 auto;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.875rem;
  color: #071C45;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.legal-section p {
  color: #334155;
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* Standardized Information, Refund & Notice Cards */
.legal-card {
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-top: 1rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.legal-card-emerald {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.legal-card-blue {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.legal-card-amber {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.legal-card-slate {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.legal-card-contact {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
}

/* Standardized Bullet Lists with Consistent Indentation */
.legal-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.legal-list > li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #334155;
}

.legal-list > li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  color: #0284C7;
  font-size: 1.1rem;
  line-height: 1.2;
}

.legal-card-emerald .legal-list > li::before {
  color: #059669;
}

.legal-card-amber .legal-list > li::before {
  color: #D97706;
}

.refund-box {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-left: 4px solid var(--color-emerald);
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .algo-grid { grid-template-columns: 1fr; }
  .digital-grid { grid-template-columns: 1fr; }
  .services-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 2.5rem; }
  .services-grid-5 { grid-template-columns: 1fr; }
  .workflow-steps-flex { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 1.5rem; }
}
