/**
 * Medallion XLN - Custom Styles
 * Enhanced with proof points and investor-focused design
 */

/* CSS Variables */
:root {
  --color-primary: #f59e0b;
  --color-primary-dark: #d97706;
  --color-primary-light: #fcd34d;
  --color-dark: #0f172a;
  --color-dark-light: #1e293b;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display {
  font-family: var(--font-display);
}

/* Section Base */
.section {
  position: relative;
}

/* Card Component */
.card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Badge Component */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  border-color: #f59e0b;
  color: #d97706;
}

.btn-ghost {
  background: transparent;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-ghost:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* Hero Blob Animation */
.hero-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Navigation Link Hover Effect */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* FAQ Accordion */
.faq-item {
  transition: all 0.3s ease;
}

.faq-trigger {
  cursor: pointer;
}

.faq-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal Animation Classes */
.reveal {
  opacity: 1;
}

/* Mobile Menu */
#mobileMenu {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats Counter */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* Feature Card Hover */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Roadmap Phase Indicator */
.phase-indicator {
  position: relative;
}

.phase-indicator::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #f59e0b;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #f59e0b;
}

/* Testimonial Card */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Investor Section Gradients */
.investor-gradient {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
}

/* Pricing Card Highlight */
.pricing-highlight {
  position: relative;
  overflow: hidden;
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
}

/* Social Proof Avatar Stack */
.avatar-stack {
  display: flex;
}

.avatar-stack img {
  border: 3px solid white;
  margin-left: -0.75rem;
  transition: transform 0.2s ease;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-stack img:hover {
  transform: translateY(-2px);
  z-index: 10;
}

/* CTA Section Glow */
.cta-glow {
  position: relative;
}

.cta-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border: 2px solid #e5e7eb;
  border-top-color: #f59e0b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Selection Color */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: inherit;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-blob {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .hero-blob {
    display: none;
  }
  
  .card {
    border-radius: 1rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: black;
    background: white;
  }
}