/* RequestWala Landing Page Styles */

@import 'common.css';

/* ============================================================================
   PAGE-SPECIFIC STYLES
   ============================================================================ */

.landing-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-slow);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 147, 30, 0.4);
}

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(247, 147, 30, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(46, 139, 46, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 147, 30, 0.1);
  border: 1px solid rgba(247, 147, 30, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.hero-badge-icon {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(247, 147, 30, 0.4);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

#features.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-image-container {
  position: relative;
  background: linear-gradient(145deg, rgba(31, 41, 55, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 33%, #22c55e 66%);
  opacity: 0.1;
}

.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.mockup-phone {
  width: 280px;
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
  border-radius: 32px;
  padding: 12px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-radius: 24px;
  padding: 20px;
  min-height: 400px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.phone-time {
  font-size: 14px;
  font-weight: 600;
}

.phone-icons {
  display: flex;
  gap: 6px;
}

.phone-icons span {
  font-size: 12px;
}

.phone-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-chart {
  background: rgba(247, 147, 30, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 80px;
  gap: 8px;
}

.chart-bar {
  width: 24px;
  background: var(--accent-gradient);
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.chart-bar:nth-child(1) { height: 40%; }
.chart-bar:nth-child(2) { height: 70%; }
.chart-bar:nth-child(3) { height: 55%; }
.chart-bar:nth-child(4) { height: 85%; }
.chart-bar:nth-child(5) { height: 65%; }

.mock-request {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.request-method {
  background: rgba(46, 139, 46, 0.2);
  color: var(--secondary-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.request-method.post {
  background: rgba(247, 147, 30, 0.2);
  color: var(--primary-color);
}

.request-url {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-status {
  font-size: 11px;
  color: var(--secondary-light);
  font-weight: 600;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.floating-card-1 {
  top: 20%;
  left: -5%;
  animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
  top: 30%;
  right: -5%;
  animation: float 6s ease-in-out infinite 1s;
}

.floating-card-3 {
  bottom: 15%;
  left: 5%;
  animation: float 6s ease-in-out infinite 2s;
}

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

.floating-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-stat-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
}

.floating-stat-icon.green {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
}

.floating-stat-text {
  display: flex;
  flex-direction: column;
}

.floating-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.floating-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */

.features-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 147, 30, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(247, 147, 30, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon.green {
  background: rgba(46, 139, 46, 0.1);
  color: var(--secondary-light);
}

.feature-card:hover .feature-icon.green {
  background: rgba(46, 139, 46, 0.15);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================================
   HOW IT WORKS SECTION
   ============================================================================ */

.how-it-works-section {
  padding: 100px 24px;
  background: var(--bg-secondary);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--bg-primary);
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(247, 147, 30, 0.3);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.step-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, rgba(247, 147, 30, 0.1) 0%, rgba(46, 139, 46, 0.05) 100%);
  border: 1px solid rgba(247, 147, 30, 0.2);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.cta-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

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

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.landing-footer {
  padding: 40px 24px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .nav-mobile-toggle {
    display: block;
  }

  .hero-section {
    padding: 120px 24px 60px;
  }

  .floating-elements {
    display: none;
  }

  .hero-image-container {
    padding: 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-section {
    padding: 100px 16px 50px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .mockup-phone {
    width: 100%;
    max-width: 280px;
  }

  .features-section,
  .how-it-works-section,
  .cta-section {
    padding: 60px 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-container {
    gap: 32px;
  }

  .cta-container {
    padding: 40px 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .landing-nav {
    padding: 12px 16px;
  }

  .nav-logo-text {
    font-size: 18px;
  }

  .hero-section {
    padding: 90px 16px 40px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 24px;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.1s;
}

.fade-in-delay-2 {
  animation-delay: 0.2s;
}

.fade-in-delay-3 {
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
