/* ==========================================================================
   ZADIN CAT — Modern Landing Page Design System
   Brand Colors: Deep Royal Blue (#1E3A8A), Teal Accent (#0D9488)
   ========================================================================== */

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

:root {
  --primary: #1E3A8A;
  --primary-dark: #172554;
  --primary-light: #2563EB;
  --primary-subtle: #EEF2FF;
  
  --accent: #0D9488;
  --accent-hover: #0F766E;
  --accent-light: #14B8A6;
  --accent-subtle: #F0FDFA;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(30, 58, 138, 0.1), 0 8px 10px -6px rgba(30, 58, 138, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

.text-primary-brand { color: var(--primary) !important; }
.text-accent-brand { color: var(--accent) !important; }
.bg-primary-brand { background-color: var(--primary) !important; }
.bg-accent-brand { background-color: var(--accent) !important; }
.bg-subtle-blue { background-color: #F8FAFC !important; }

/* Sticky Navbar */
.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.25s ease-in-out;
}

.landing-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-left: 8px;
}

.brand-text .cat-badge {
  color: var(--accent);
}

.nav-link-custom {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link-custom:hover {
  color: var(--primary);
  background-color: var(--slate-100);
}

/* Custom Buttons */
.btn-brand-primary {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-brand-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35);
}

.btn-brand-accent {
  background-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-brand-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.btn-brand-outline {
  background-color: transparent;
  color: var(--slate-800);
  font-weight: 600;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-brand-outline:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

/* Hero Section */
.hero-section {
  padding: 70px 0 90px 0;
  background: radial-gradient(circle at 85% 10%, rgba(13, 148, 136, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(30, 58, 138, 0.06) 0%, transparent 45%),
              var(--white);
  position: relative;
  overflow: hidden;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(30, 58, 138, 0.15);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 30px;
}

/* CAT Engine Dashboard Mockup */
.cat-mockup-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.cat-mockup-header {
  background: linear-gradient(90deg, #172554, #1E3A8A);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-mockup-timer {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.cat-mockup-body {
  padding: 24px;
}

.question-option-item {
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--white);
}

.question-option-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-subtle);
}

.question-option-item.selected {
  border-color: var(--primary);
  background: #EFF6FF;
  box-shadow: 0 0 0 1px var(--primary);
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.question-option-item.selected .option-badge {
  background: var(--primary);
  color: var(--white);
}

/* Palette Mini Grid */
.palette-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.palette-btn {
  height: 32px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.palette-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.palette-btn.answered { background: var(--success); color: var(--white); border-color: var(--success); }
.palette-btn.flagged { background: var(--warning); color: var(--white); border-color: var(--warning); }
.palette-btn.unanswered { background: var(--slate-100); color: var(--slate-700); }
.palette-btn.current { outline: 2px solid var(--primary); outline-offset: 1px; font-weight: 800; }

/* Mockup question content transition */
.mockup-question-content {
  transition: opacity 0.2s ease-in-out;
}

/* CAT Mockup Completion Overlay */
.cat-mockup-completion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 24px;
  text-align: center;
  animation: mockupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mockupFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.cat-mockup-completion.d-none {
  display: none !important;
}

/* Quick Tryout Section */
.quick-tryout-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F766E 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 45px 35px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.quick-tryout-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Card Modern Grid */
.modern-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}

.modern-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 58, 138, 0.3);
  box-shadow: var(--shadow-xl);
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* Comparison Table */
.comparison-table-wrapper {
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th {
  background: var(--slate-50);
  padding: 16px 20px;
  font-weight: 700;
}

.comparison-table td {
  padding: 16px 20px;
  vertical-align: middle;
}

/* How It Works Steps */
.step-card {
  text-align: center;
  position: relative;
  padding: 20px;
}

.step-number-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 2px solid rgba(30, 58, 138, 0.2);
}

/* Pricing Cards */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.15);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 16px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  background-color: #25D366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-3px);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--slate-900);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
}

.floating-whatsapp:hover .floating-whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-900);
  padding: 18px 22px;
  background-color: var(--white);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--slate-50);
  color: var(--primary);
  box-shadow: none;
}

/* Footer */
.landing-footer {
  background-color: #0F172A;
  color: var(--slate-400);
  padding: 70px 0 30px 0;
  font-size: 0.95rem;
}

.landing-footer h5 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-link {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.15s ease;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-link:hover {
  color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 40px 0 60px 0;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .cat-mockup-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 575.98px) {
  .hero-headline {
    font-size: 1.85rem;
  }
  .hero-subtext {
    font-size: 1rem;
  }
  .btn-brand-primary, .btn-brand-accent, .btn-brand-outline {
    width: 100%;
  }
  .quick-tryout-box {
    padding: 30px 20px;
  }
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}
