/* SCM Custom Styles — Beyond Tailwind */

/* ============================================
   SCROLL & GLOBAL BEHAVIORS
   ============================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CUSTOM ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 87, 51, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(255, 87, 51, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animation utility classes */
.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out both;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out both;
}

.animate-slide-in-left {
  animation: slide-in-left 0.6s ease-out both;
}

.animate-slide-in-right {
  animation: slide-in-right 0.6s ease-out both;
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out both;
}

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

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

/* Stagger delays for sequential reveals */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }

/* ============================================
   INTERSECTION OBSERVER ANIMATIONS
   (triggered by Alpine x-intersect)
   ============================================ */
[x-cloak] { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   GRADIENT DECORATIONS
   ============================================ */
.gradient-coral {
  background: linear-gradient(135deg, #FF5733 0%, #E64A2E 100%);
}

.gradient-midnight {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1a2744 50%, #0F172A 100%);
}

.gradient-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 87, 51, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 87, 51, 0.04) 0%, transparent 50%);
}

.gradient-text {
  background: linear-gradient(135deg, #FF5733, #14B8A6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-hover-strong {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover-strong:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
  border-color: #FF5733;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
  background-color: #FF5733;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: #E64A2E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 87, 51, 0.3);
}

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

.btn-secondary {
  background-color: transparent;
  color: #0F172A;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: 1.5px solid #E2E8F0;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: #FF5733;
  color: #FF5733;
  transform: translateY(-1px);
}

/* ============================================
   LOGO
   ============================================ */
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1;
}

.logo-text .logo-c {
  color: #FF5733;
}

.logo-text-dark .logo-s,
.logo-text-dark .logo-m {
  color: #0F172A;
}

.logo-text-light .logo-s,
.logo-text-light .logo-m {
  color: #FFFFFF;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link-light {
  color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link-light:hover {
  color: #FFFFFF !important;
}

.nav-link {
  color: #64748B;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #0F172A;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FF5733;
  transition: width 0.3s ease;
}

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

.nav-link-active {
  color: #0F172A;
}

.nav-link-active::after {
  width: 100%;
}

/* ============================================
   SECTION DECORATIONS
   ============================================ */
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #FF5733, #14B8A6);
  border-radius: 2px;
}

.dot-pattern {
  background-image: radial-gradient(circle, #E2E8F0 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ============================================
   PRICING CARD STYLES
   ============================================ */
.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.pricing-popular {
  border: 2px solid #FF5733;
  position: relative;
}

.pricing-popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FF5733, #E64A2E);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  border-bottom: 1px solid #E2E8F0;
}

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

.faq-toggle svg {
  transition: transform 0.3s ease;
}

/* ============================================
   STEP CONNECTOR LINES
   ============================================ */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, #FF5733, #14B8A6);
}

@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #E2E8F0;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #1E293B;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #FFFFFF;
}

.form-input:focus {
  outline: none;
  border-color: #FF5733;
  box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.1);
}

.form-input::placeholder {
  color: #94A3B8;
}

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

/* ============================================
   STAT COUNTER
   ============================================ */
.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #FF5733;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */
.founder-quote {
  border-left: 3px solid #FF5733;
  padding-left: 1.5rem;
  font-style: italic;
  color: #1E293B;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF5733, #14B8A6);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #0F172A;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #0F172A;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.legal-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  nav, footer, .btn-primary, .btn-secondary {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
}
