/* ==========================================
   Rapid Route – Landing Page Styles
   ========================================== */

.landing-body { overflow-x: hidden; }

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 2rem 80px;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 1.8rem;
  animation: fadeInDown 0.6s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s 0.2s ease both;
  max-width: 480px;
}

/* Quick Track Bar */
.quick-track-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.7s 0.3s ease both;
  transition: var(--transition);
}

.quick-track-bar:focus-within {
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1), var(--shadow-glow);
}

.track-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  padding: 0 1rem;
}

.track-icon { color: var(--text-muted); flex-shrink: 0; }

.track-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
}

.track-input::placeholder { color: var(--text-muted); }

.btn-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: white;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: calc(var(--radius-lg) - 4px);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-track:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(108, 99, 255, 0.55);
}

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

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.7s 0.45s ease both;
}

.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

/* --- Phone Mockup --- */
.hero-visual {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInRight 0.8s 0.2s ease both;
}

.phone-mockup {
  width: 280px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-glass);
  border-radius: 36px;
  padding: 20px 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.phone-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tracking-number-display {
  font-size: 0.72rem;
  color: var(--purple-light);
  font-weight: 600;
  background: rgba(108, 99, 255, 0.1);
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

/* Mock Timeline */
.track-timeline-mock { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }

.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 28px;
  width: 2px;
  height: calc(100% - 12px);
  background: rgba(255,255,255,0.1);
}

.tl-step.tl-done::after { background: linear-gradient(to bottom, var(--purple), rgba(108,99,255,0.2)); }
.tl-step.tl-active::after { background: rgba(255,255,255,0.08); }

.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.tl-dot.done { background: var(--purple); border-color: var(--purple); }
.tl-dot.done::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: white;
  border-radius: 50%;
}

.tl-dot.active { background: transparent; border-color: var(--green); box-shadow: 0 0 12px var(--green); }
.tl-dot.active::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--green);
  border-radius: 50%;
}

.pulse-dot { animation: dotPulse 1.5s infinite; }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--green); }
  50% { box-shadow: 0 0 20px var(--green), 0 0 40px rgba(67,233,123,0.3); }
}

.tl-info { display: flex; flex-direction: column; gap: 1px; }

.tl-event { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }
.tl-time { font-size: 0.68rem; color: var(--text-muted); }

.tl-step.tl-active .tl-event { color: var(--green); }

.phone-delivery-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.delivery-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-weight: 700;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 15, 35, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  z-index: 3;
}

.card-1 { top: 30px; left: -50px; animation: float1 4s ease-in-out infinite; }
.card-2 { top: 45%; right: -40px; animation: float2 5s 1s ease-in-out infinite; }
.card-3 { bottom: 50px; left: -40px; animation: float3 4.5s 0.5s ease-in-out infinite; }

@keyframes float1 { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }

/* --- Features Section --- */
.features-section {
  padding: 120px 2rem;
  background: linear-gradient(to bottom, transparent, rgba(108,99,255,0.03), transparent);
}

.section-container { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 4rem; }

.section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.05), transparent);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(108,99,255,0.1);
}

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

.fc-large { grid-column: span 2; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .fc-large { grid-column: span 2; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .fc-large { grid-column: span 1; }
}

.feature-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- How It Works --- */
.how-section { padding: 120px 2rem; }

.steps-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.step-number {
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.06;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: white;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 50%;
  margin-bottom: 1.2rem;
}

.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.step-card p { font-family: var(--font-body); font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 2rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .steps-wrap { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); }
  .hero-section { flex-direction: column; padding: 100px 1.5rem 60px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { max-width: 300px; }
  .card-1 { display: none; }
  .card-2 { right: -10px; }
  .card-3 { left: -10px; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
}

/* --- CTA Section --- */
.cta-section {
  padding: 100px 2rem;
  text-align: center;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(255,107,107,0.06));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.2), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  position: relative;
}

.cta-subtitle {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-brand { flex: 2; min-width: 200px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }

.footer-links { display: flex; gap: 4rem; flex: 1; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; min-width: 120px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-col a { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition-fast); }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Work Section / Success Showcase --- */
.work-section {
  padding: 120px 2rem;
  position: relative;
  background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 107, 107, 0.05), transparent 40%);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(108,99,255,0.1);
}

.work-image {
  height: 200px;
  background: linear-gradient(45deg, rgba(108,99,255,0.15), rgba(255,107,107,0.08));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,10,26,0.8));
}

.work-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(108, 99, 255, 0.2);
  border: 1px solid rgba(108, 99, 255, 0.4);
  backdrop-filter: blur(10px);
  color: var(--purple-light);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.work-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  transition: var(--transition);
}

.work-card:hover .work-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--purple);
  border-color: var(--purple-light);
}

.work-details {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-details h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.work-details p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.work-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-glass);
}

.ws-item { display: flex; flex-direction: column; }
.ws-item span { font-weight: 800; color: var(--purple-light); font-size: 1.1rem; }
.ws-item label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* Achievement Banner */
.achievement-banner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.ach-glow {
  position: absolute;
  width: 400px; height: 100%;
  background: radial-gradient(circle, rgba(108,99,255,0.1), transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.ach-item {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.ach-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #6C63FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.ach-plus {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-light);
  margin-left: 2px;
}

.ach-item label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.ach-divider {
  width: 1px;
  height: 60px;
  background: var(--border-glass);
}

@media (max-width: 992px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .work-grid { grid-template-columns: 1fr; }
  .achievement-banner { flex-direction: column; gap: 3rem; }
  .ach-divider { width: 100%; height: 1px; }
  .ach-number { font-size: 2.8rem; }
}
