/* ==========================================================================
   RENEXT TECHNOLOGIES PVT. LTD. & SPENDITWISELY
   Production Corporate + Flagship Startup Stylesheet
   Brand Palette:
     - Renext Corporate Blue: #0066FF / #0047B3 / #0F172A
     - SpendItWisely Green: #10B981 / #059669 / #22C55E
     - Accent Dark Slate: #060D1A / #0B1528 / #1E293B
     - Warm Gray / Card Whites: #F8FAFC / #FFFFFF / #E2E8F0
   ========================================================================== */

:root {
  --primary: #0066FF;
  --primary-dark: #0047B3;
  --primary-light: #38BDF8;
  --primary-glow: rgba(0, 102, 255, 0.22);

  --spendit: #10B981;
  --spendit-dark: #059669;
  --spendit-light: #34D399;
  --spendit-glow: rgba(16, 185, 129, 0.22);
  
  --secondary: #0F172A;
  --surface-dark: #070D18;
  --surface-card: #0F1A2E;
  --surface-card-border: #1E293B;
  --surface-light: #F8FAFC;
  --surface-white: #FFFFFF;
  
  --accent-amber: #F59E0B;
  --accent-purple: #8B5CF6;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #F1F5F9;
  --text-light-muted: #94A3B8;

  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #FFFFFF;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Custom Gradients */
.gradient-text-blue {
  background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: linear-gradient(135deg, #047857 0%, #10B981 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-brand {
  background: linear-gradient(135deg, #0066FF 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-blue {
  background: rgba(0, 102, 255, 0.08);
  color: #0066FF;
  border: 1px solid rgba(0, 102, 255, 0.25);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0066FF 0%, #0047B3 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.45);
  color: #FFFFFF;
}

.btn-spendit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.32);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-spendit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.42);
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Feature & Service Card Animations */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #93C5FD;
  box-shadow: 0 16px 30px -8px rgba(0, 102, 255, 0.1);
}

.feature-card-green:hover {
  transform: translateY(-5px);
  border-color: #6EE7B7;
  box-shadow: 0 16px 30px -8px rgba(16, 185, 129, 0.12);
}

/* Ecosystem Flow Stepper */
.ecosystem-step {
  position: relative;
  transition: all 0.25s ease;
}

.ecosystem-step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 1.25rem;
  font-weight: bold;
}

.ecosystem-step:last-child::after {
  display: none;
}

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

/* Phone Mockup Styling */
.phone-mockup-wrap {
  position: relative;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 46px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  background: #F8FAFC;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 19.5;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.phone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 85px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 40;
}

.phone-img-view {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* Scanner Laser Animation */
@keyframes laser-scan {
  0% {
    top: 15%;
    opacity: 0.9;
  }
  50% {
    top: 80%;
    opacity: 0.9;
  }
  100% {
    top: 15%;
    opacity: 0.9;
  }
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, #10B981 50%, rgba(16, 185, 129, 0) 100%);
  box-shadow: 0 0 15px #10B981, 0 0 25px #10B981;
  animation: laser-scan 2.2s ease-in-out infinite;
  z-index: 30;
}

/* FAQ Accordion Styling */
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.faq-item.active {
  border-color: #0066FF;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.06);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

.faq-chevron {
  transition: transform 0.25s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: #0066FF;
}

/* Pulse Dot */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-dot-green {
  width: 9px;
  height: 9px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

/* Modal Windows */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
  animation: modal-enter 0.25s ease-out;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
