/* Pay Vera Landing Page Styling */

/* Fixed Top Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: var(--bg-topbar);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.4px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.landing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Landing Page Hero Section */
.landing-hero {
  padding: 130px 20px 50px 20px;
  text-align: center;
  max-width: 1050px;
  margin: 0 auto;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-buttons .btn {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
}

/* Hero Simulator Widget */
.hero-simulator-container {
  max-width: 900px;
  margin: 0 auto 40px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

/* Hyper-Realistic Smartphone & Authentic M-Pesa STK Push Mockup */
.phone-device {
  width: 100%;
  max-width: 310px;
  height: 480px;
  background: #090d16;
  border: 10px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-color;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.phone-notch {
  width: 90px;
  height: 16px;
  background: #000000;
  border-radius: 10px;
  margin: 6px auto 4px auto;
  z-index: 10;
  flex-shrink: 0;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  z-index: 10;
  flex-shrink: 0;
}

.phone-screen-display {
  flex: 1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  position: relative;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Authentic Safaricom SIM Toolkit STK Push Prompt */
.mpesa-stk-dialog {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 18px 16px;
  width: 100%;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.stk-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #10b981;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.stk-body {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 14px;
}

.stk-pin-box {
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stk-pin-dots {
  letter-spacing: 4px;
  font-size: 16px;
  color: #10b981;
  font-weight: 800;
}

.stk-actions {
  display: flex;
  gap: 10px;
}

.stk-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.stk-btn-cancel {
  background: #334155;
  color: #94a3b8;
}

.stk-btn-send {
  background: #10b981;
  color: #000000;
}

/* SMS Notification Toast */
.sms-toast {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #10b981;
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-size: 11px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  animation: slideDown 0.3s ease;
  z-index: 20;
}

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

.phone-screen {
  background: #0f172a;
  color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}

.phone-prompt-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

/* Sections */
.landing-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats Metric Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.metric-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.1);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--success-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pipeline Architecture Grid */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pipeline-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #000000;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Code Showcase Multi-Tab */
.code-showcase-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.code-tabs-header {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.code-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.code-tab-btn.active {
  color: var(--accent);
  background: var(--success-bg);
}

.code-box {
  background-color: #070a12;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: monospace;
  font-size: 13px;
  color: #34d399;
  overflow-x: auto;
  line-height: 1.6;
}

/* Calculator Card - Fully Mobile Responsive */
.landing-calc-card {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
}

.landing-calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.landing-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.landing-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 18px 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* High Converting CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
}

/* Landing Footer */
.landing-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  padding: 50px 20px 30px 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.hamburger-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hamburger-menu-btn:hover {
  background-color: var(--bg-surface-elevated);
}

.landing-desktop-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-only-nav-item {
  display: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .landing-header {
    padding: 0 16px;
  }
  .landing-desktop-actions {
    display: none;
  }
  .hamburger-menu-btn {
    display: flex;
  }
  .landing-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-topbar);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    z-index: 999;
  }
  .landing-nav.active {
    display: flex;
  }
  .mobile-only-nav-item {
    display: block;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
  }
  .landing-hero {
    padding-top: 110px;
  }
  .hero-title {
    font-size: 34px;
    letter-spacing: -0.8px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .sim-grid {
    grid-template-columns: 1fr;
  }
  .landing-calc-card {
    padding: 20px 16px;
  }
  .landing-calc-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .code-showcase-container {
    padding: 16px;
  }
}
