/**
 * ============================================================================
 * REPOSITORY: MSME Vyapari (Celestiq Insights OPC Pvt. Ltd.)
 * MODULE: Finorio-Inspired Landing Page Components (landing.css)
 * ============================================================================
 */

/* ==========================================================================
   1. FLOATING PILL NAVBAR
   ========================================================================== */
.floating-header-wrapper {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.floating-navbar {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgba(10, 13, 20, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon-sq {
  width: 36px;
  height: 36px;
  background: #0A0D14;
  color: var(--brand-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-menu-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}
.nav-menu-link:hover {
  color: var(--text-primary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Custom Glassmorphic Language Switcher (No Native Select) */
.custom-dropdown-wrap {
  position: relative;
}

.custom-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-page-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast);
}
.custom-dropdown-btn:hover {
  background: #E2E8F0;
}

.custom-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 200;
}

.custom-dropdown-panel.show {
  display: flex;
  animation: floatDown 180ms ease forwards;
}

@keyframes floatDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.dropdown-opt-btn:hover, .dropdown-opt-btn.active {
  background: var(--bg-page-secondary);
  color: var(--brand-primary);
}

.dropdown-portal-menu {
  width: 290px;
}

.portal-opt-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.portal-opt-item:hover {
  background: var(--bg-page-secondary);
}

/* ==========================================================================
   2. HERO SECTION WITH AURA GLOW & APP SHOWCASE
   ========================================================================== */
.hero-wrapper {
  padding-top: clamp(6.5rem, 10vw, 8.5rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, #EDFBF5 0%, #F8FAFC 60%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-aura-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(254, 224, 30, 0.08) 50%, rgba(255,255,255,0) 80%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-main-title {
  max-width: 920px;
  margin: 0 auto 1.4rem auto;
}

.hero-main-desc {
  max-width: 680px;
  margin: 0 auto 2.2rem auto;
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-actions-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   3. HIGH-FIDELITY APP SHOWCASE MOCKUP
   ========================================================================== */
.app-showcase-container {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.app-window-frame {
  background: #FFFFFF;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-card-float), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

/* Browser / Window Header Bar */
.window-topbar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.window-url-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Live App Interface Mockup Inside Frame */
.app-ui-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
  text-align: left;
}

.app-mockup-sidebar {
  background: #0A0D14;
  color: #FFFFFF;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-mockup-main {
  background: #F8FAFC;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Floating Status Chips (Finorio Style) */
.floating-chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 20;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.floating-chip.chip-left {
  top: 18%;
  left: -24px;
}

.floating-chip.chip-right {
  bottom: 15%;
  right: -24px;
  animation-delay: -2s;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.chip-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ==========================================================================
   4. METRICS / SOCIAL PROOF STRIP
   ========================================================================== */
.social-proof-section {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.metrics-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-strip-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.metric-strip-lbl {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* ==========================================================================
   5. BENTO GRID FEATURES SECTION
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-spring);
}
.bento-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.bento-col-7 { grid-column: span 7; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }

.bento-header {
  margin-bottom: 1.5rem;
}

.bento-visual-box {
  background: var(--bg-page-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. ALTERNATING DEEP-DIVE FEATURE SPOTLIGHTS
   ========================================================================== */
.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
}

.spotlight-row.reverse {
  grid-template-columns: 1.15fr 1fr;
}

.spotlight-card-visual {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   7. INTERACTIVE ROI CALCULATOR
   ========================================================================== */
.roi-terminal-card {
  background: #0A0D14;
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-xl);
  align-items: center;
}

.roi-slider-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #1E293B;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.roi-slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: transform 120ms;
}
.roi-slider-track::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ==========================================================================
   8. PRICING GRID
   ========================================================================== */
.pricing-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-plan-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--duration-normal);
}

.pricing-plan-card.is-popular {
  border: 2px solid #0A0D14;
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
}

/* ==========================================================================
   9. PRE-FOOTER CTA BANNER
   ========================================================================== */
.pre-footer-banner {
  background: #0A0D14;
  color: #FFFFFF;
  border-radius: var(--radius-2xl);
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
}

.pre-footer-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.pre-footer-banner p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* ==========================================================================
   10. SITE FOOTER
   ========================================================================== */
.modern-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem 0;
}

.footer-grid-layout {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .app-ui-body { grid-template-columns: 1fr; }
  .app-mockup-sidebar { display: none; }
  .floating-chip { display: none; }
  .bento-col-7, .bento-col-5, .bento-col-4, .bento-col-8, .bento-col-6 { grid-column: span 12; }
  .spotlight-row, .spotlight-row.reverse { grid-template-columns: 1fr; }
  .roi-terminal-card { grid-template-columns: 1fr; }
  .pricing-matrix { grid-template-columns: 1fr; }
  .metrics-strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links-menu { display: none; }
  .footer-grid-layout { grid-template-columns: 1fr; }
}
