/* ============================================
   Obandhu Premium Landing Page - Custom Styles
   ============================================ */

:root {
  --bg-deep: #050505;
  --bg-secondary: #0D0D0D;
  --bg-card: #141414;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent: #FF7A00;
  --accent-secondary: #FFB000;
  --gradient-start: #FF6A00;
  --gradient-end: #FFB300;
  --text-primary: #FFFFFF;
  --text-secondary: #A5A5A5;
  --text-muted: #6F6F6F;
  --success: #22C55E;
  --radius: 14px;
  --radius-lg: 18px;
}

* {
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 80px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 122, 0, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 0, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 122, 0, 0.6);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card */
.glass-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.glass-nav {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Glow Effects */
.glow-amber {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.glow-amber-sm {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 50%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 122, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 176, 0, 0.05) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 122, 0, 0.3);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(255, 122, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 122, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px 28px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: rgba(255, 122, 0, 0.4);
  background: rgba(255, 122, 0, 0.05);
}

/* Form Fields */
#audit-form {
  color-scheme: dark;
}

.form-field {
  position: relative;
}

.form-input,
#audit-form input,
#audit-form select,
#audit-form textarea {
  width: 100%;
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
#audit-form input::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

.form-input:hover,
#audit-form input:hover,
#audit-form select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: #181818;
}

.form-input:focus,
#audit-form input:focus,
#audit-form select:focus {
  border-color: rgba(255, 122, 0, 0.6);
  background-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Autofill — prevent white/yellow browser override */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #141414 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 9999s ease-out 0s;
}

/* Select dropdown */
.form-select,
#audit-form select {
  cursor: pointer;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A5A5A5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 44px;
}

#audit-form select option {
  background-color: #141414;
  color: #ffffff;
  padding: 12px;
}

#audit-form select option:checked,
#audit-form select option:hover {
  background-color: #FF7A00;
  color: #ffffff;
}

#audit-form select:required:invalid {
  color: #8a8a8a;
}

#audit-form select:valid,
#audit-form select option:not([value=""]) {
  color: #ffffff;
}

.form-label,
#audit-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #e5e5e5;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  display: block;
}

/* Card Hover */
.card-hover-lift {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.card-hover-lift:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 122, 0, 0.08);
}

/* Service Card Arrow */
.service-card .arrow-icon {
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.service-card:hover .arrow-icon {
  transform: translateX(4px);
  opacity: 1;
  color: var(--accent);
}

/* Platform Card Glow */
.platform-card {
  transition: all 0.4s ease;
}

.platform-card:hover {
  border-color: rgba(255, 122, 0, 0.3);
  box-shadow: 0 0 30px rgba(255, 122, 0, 0.15);
}

.platform-card:hover .platform-name {
  color: var(--accent);
}

/* Trust Logos */
.trust-logo {
  filter: grayscale(100%) brightness(0.6);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.trust-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.5);
}

.timeline-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero Animations */
.hero-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
}

.hero-fade-up-delay-1 { animation-delay: 0.1s; }
.hero-fade-up-delay-2 { animation-delay: 0.2s; }
.hero-fade-up-delay-3 { animation-delay: 0.3s; }
.hero-fade-up-delay-4 { animation-delay: 0.4s; }
.hero-fade-up-delay-5 { animation-delay: 0.5s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pricing Highlight */
.pricing-featured {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) border-box;
  border-radius: var(--radius-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Sticky Urgency Footer */
.sticky-cta {
  position: fixed;
  bottom: -120px;
  left: 0;
  right: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 122, 0, 0.25);
  z-index: 998;
  transition: bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), 0 -1px 0 rgba(255, 122, 0, 0.1);
}

.sticky-cta.visible {
  bottom: 0;
}

.sticky-cta-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-secondary), transparent);
  opacity: 0.8;
}

.urgency-pulse-wrap {
  position: relative;
  width: 12px;
  height: 12px;
}

.urgency-pulse-dot {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.urgency-pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.4);
  animation: urgencyPulse 1.8s ease-out infinite;
}

@keyframes urgencyPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.urgency-countdown {
  color: var(--accent-secondary);
  letter-spacing: 0.05em;
}

.btn-urgency {
  animation: btnUrgencyGlow 2.5s ease-in-out infinite;
  padding: 12px 24px !important;
  font-size: 14px !important;
}

@keyframes btnUrgencyGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(255, 122, 0, 0.3); }
  50% { box-shadow: 0 4px 32px rgba(255, 122, 0, 0.55), 0 0 20px rgba(255, 122, 0, 0.2); }
}

body.sticky-cta-active {
  padding-bottom: 88px;
}

@media (min-width: 640px) {
  body.sticky-cta-active {
    padding-bottom: 76px;
  }
}

body.sticky-cta-active .whatsapp-btn {
  bottom: 180px;
}

body.sticky-cta-active .back-to-top {
  bottom: 252px;
}

@media (max-width: 639px) {
  body.sticky-cta-active {
    padding-bottom: 108px;
  }

  body.sticky-cta-active .whatsapp-btn {
    bottom: 200px;
  }

  body.sticky-cta-active .back-to-top {
    bottom: 268px;
  }
}

/* Floating Buttons */
.float-btn {
  position: fixed;
  z-index: 997;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.float-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn {
  bottom: 100px;
  right: 24px;
  background: #25D366;
  color: #fff;
}

.back-to-top {
  bottom: 172px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.4s ease;
  max-width: 360px;
}

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Testimonial Glow */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.1), transparent);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* Case Study Card */
.case-study-card {
  overflow: hidden;
}

.case-study-card .growth-badge {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(255, 176, 0, 0.1));
  border: 1px solid rgba(255, 122, 0, 0.2);
}

/* Stats Counter */
.stat-value {
  font-variant-numeric: tabular-nums;
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  max-height: 580px;
}

.hero-image {
  display: block;
  min-height: 100%;
}

.hero-float-card {
  z-index: 2;
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Page Header (inner pages) */
.page-header {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 100%);
}

/* Section Spacing */
.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
  
  .float-btn {
    width: 48px;
    height: 48px;
  }
  
  .whatsapp-btn {
    bottom: 90px;
    right: 16px;
  }
  
  .back-to-top {
    bottom: 152px;
    right: 16px;
  }
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.98);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 122, 0, 0.1);
  border: 1px solid rgba(255, 122, 0, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Check Icon List */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(255, 122, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

/* Star Rating */
.star-rating {
  color: var(--accent);
}

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  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;
  }
  
  .reveal, .timeline-item {
    opacity: 1;
    transform: none;
  }
}
