/* AppealArmor Landing Pages - Shared Styles */
/* Built with Tailwind CSS + Custom Components */

/* ========================================
   DESIGN SYSTEM
   ======================================== */

:root {
  /* Brand Colors */
  --color-primary: #2563eb;      /* Blue 600 */
  --color-primary-dark: #1e40af; /* Blue 800 */
  --color-success: #16a34a;      /* Green 600 */
  --color-warning: #ea580c;      /* Orange 600 */
  --color-danger: #dc2626;       /* Red 600 */

  /* Trust Signal Colors */
  --color-trust-bg: #dbeafe;     /* Blue 100 */
  --color-trust-border: #3b82f6; /* Blue 500 */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 4rem;
  --section-padding-mobile: 2rem;

  /* Animations */
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero-landing {
  min-height: 90vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-opacity="0.05" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ========================================
   TRUST SIGNALS
   ======================================== */

.trust-badge-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-base);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.trust-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.trust-badge-icon {
  font-size: 2rem;
}

.trust-badge-text {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trust-badge-value {
  font-size: 1.5rem;
  font-weight: 800;
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.cta-primary {
  background: var(--color-success);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 0 0 0 rgba(22, 163, 74, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.cta-primary:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15), 0 0 0 4px rgba(22, 163, 74, 0.2);
}

.cta-primary:active {
  transform: translateY(0);
}

.cta-secondary {
  background: white;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-block;
}

.cta-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */

.section-light {
  background: white;
  padding: var(--section-padding) 2rem;
}

.section-dark {
  background: #f8fafc;
  padding: var(--section-padding) 2rem;
}

.section-accent {
  background: var(--color-trust-bg);
  padding: var(--section-padding) 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0f172a;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 3rem;
  max-width: 800px;
}

/* ========================================
   STATISTICS COUNTERS
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

/* ========================================
   COMPARISON TABLES
   ======================================== */

.comparison-container {
  max-width: 900px;
  margin: 3rem auto;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.comparison-column {
  padding: 2rem;
  border-radius: 16px;
  transition: transform var(--transition-base);
}

.comparison-column.highlight {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.3);
}

.comparison-column:not(.highlight) {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
}

.comparison-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comparison-item:last-child {
  border-bottom: none;
}

.comparison-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-left: 4px solid var(--color-primary);
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.testimonial-result {
  color: var(--color-success);
  font-weight: 600;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-container {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-primary);
}

.faq-question {
  padding: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-icon {
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: #475569;
  line-height: 1.7;
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  position: relative;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.process-number {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.process-icon {
  font-size: 3rem;
  margin: 1rem 0;
  color: var(--color-primary);
}

.process-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.process-description {
  color: #64748b;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .comparison-column.highlight {
    transform: scale(1);
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-landing {
    min-height: 70vh;
  }

  .cta-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS (GSAP Targets)
   ======================================== */

/* .fade-in is visible without JavaScript: animations.js only moves it into place.
   Hiding it here (opacity 0) left the hub cards invisible whenever GSAP did not
   finish the tween. */

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* Pulsing animation for CTAs */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 0 0 0 rgba(22, 163, 74, 0.4);
  }
  50% {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 0 0 8px rgba(22, 163, 74, 0);
  }
}

.cta-primary.pulse {
  animation: pulse-glow 2s infinite;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--color-success);
}

.badge-info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
}

.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.text-balance {
  text-wrap: balance;
}
