/* ==========================================================================
   Techma.io - OTT App Development Landing Page Stylesheet
   Designed for High Conversion, Cinematic Dark Aesthetic & Ultra Responsiveness
   ========================================================================== */

:root {
  --bg-dark: #0c101c;
  --bg-card: rgba(26, 35, 58, 0.82);
  --bg-card-hover: rgba(35, 48, 78, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 107, 0, 0.5);
  --border-cyan: rgba(59, 130, 246, 0.4);
  --primary-orange: #ff6b00;
  --primary-orange-hover: #e05e00;
  --electric-blue: #3b82f6;
  --cyber-cyan: #06b6d4;
  --emerald-green: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Global Smooth & Scrollbar */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090c15;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ff6b00;
}

/* Gradient Mesh Background */
.bg-mesh-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 20% 18%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 22%, rgba(255, 107, 0, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 65%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 75% 85%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
}

.bg-radial-vignette {
  background: radial-gradient(circle at center, transparent 35%, rgba(12, 16, 28, 0.75) 100%);
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.glass-card-orange-glow:hover {
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 0 35px -8px rgba(255, 107, 0, 0.25);
}

.glass-card-blue-glow:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 35px -8px rgba(59, 130, 246, 0.25);
}

.glass-nav {
  background: rgba(9, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Typography Gradient Text */
.gradient-text-orange {
  background: linear-gradient(135deg, #fff 20%, #ff8c38 60%, #ff5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-fire {
  background: linear-gradient(90deg, #ff8c00, #ff4500, #ff0077);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* High Conversion Buttons */
.btn-primary-glow {
  background: linear-gradient(135deg, #ff6b00 0%, #ff5500 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff6200 100%);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.55);
  transform: translateY(-2px);
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
}

.btn-primary-glow:hover::after {
  left: 150%;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

/* Pulse Badges & Live Status */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-dot-orange {
  background-color: #ff6b00;
}
.pulse-dot-orange::after {
  background-color: rgba(255, 107, 0, 0.4);
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Marquee Infinite Scrolling */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3rem;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Range Slider Styling for ROI Calculator */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  transition: background 0.2s;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff6b00;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.7);
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Video Player Mockup Controls */
.video-scrubber-progress {
  background: linear-gradient(90deg, #ff6b00 0%, #ff8c00 100%);
  height: 100%;
  border-radius: 9999px;
  position: relative;
}

.video-scrubber-progress::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 107, 0, 0.9);
}

/* Floating Bottom Conversion Bar */
.floating-bar {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-bar.active {
  transform: translateY(0);
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-container {
  transform: scale(1) translateY(0);
}

/* Tab active state */
.tab-btn.active {
  background: #ff6b00;
  color: #fff;
  border-color: #ff6b00;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

/* Accordion Smooth Expansion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.45s ease-in-out;
}

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

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }
  .glass-card {
    padding: 1.25rem !important;
  }
}
