/* ========================================
   MiPOS Web — Landing Page CSS
   ======================================== */

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-brand img {
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #475569;
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-cta .btn {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(91, 79, 244, 0.25);
}
.nav-cta .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 79, 244, 0.35);
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  padding: 64px 64px 80px;
  position: relative;
  overflow: hidden;
}

/* Glow orbs in background */
.hero-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.6;
}
.hero-bg-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(91, 79, 244, 0.12);
  top: -100px;
  left: -100px;
}
.hero-bg-glow-2 {
  width: 600px;
  height: 600px;
  background: rgba(123, 111, 246, 0.14);
  top: 40px;
  right: -100px;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero Left Column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  padding: 6px 14px 6px 8px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4338CA;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.hero-badge:hover {
  border-color: #A5B4FC;
  transform: translateY(-1px);
}
.hero-badge-tag {
  background: linear-gradient(135deg, #5B4FF4, #7B6FF6);
  color: white;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge-text {
  color: #3730A3;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title-brand {
  color: #0F172A;
}
.hero-title-highlight {
  background: linear-gradient(135deg, #5B4FF4 0%, #7B6FF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 450;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.btn-hero-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5B4FF4 0%, #7B6FF6 100%);
  color: white;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(91, 79, 244, 0.4);
  transition: all 0.25s ease;
}
.btn-hero-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(91, 79, 244, 0.5);
  color: white;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #334155;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #E2E8F0;
  transition: all 0.25s ease;
}
.btn-hero-secondary:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
}
.trust-stars {
  color: #F59E0B;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

/* Hero Right Column: Receipt Visual */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-receipt-wrapper {
  position: relative;
  width: 100%;
  max-width: 410px;
  perspective: 1000px;
}

/* Receipt Window Header */
.receipt-window-bar {
  background: #0F172A;
  border-radius: 18px 18px 0 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.receipt-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-green {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.receipt-tab-title {
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 4px;
}
.receipt-window-actions {
  display: flex;
  gap: 6px;
}
.receipt-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.receipt-chip.active {
  background: #5B4FF4;
  color: white;
}

/* Receipt Paper Card */
.receipt-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
  position: relative;
}

/* Receipt Top Branding */
.receipt-header {
  text-align: center;
  margin-bottom: 16px;
}
.receipt-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.receipt-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.receipt-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}
.receipt-subtitle-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.receipt-type-badge {
  display: inline-block;
  background: #EEF2FF;
  border: 1.5px solid #C7D2FE;
  color: #4338CA;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 14px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.receipt-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 500;
}

.receipt-divider {
  border-bottom: 1.5px dashed #E2E8F0;
  margin: 16px 0;
}

/* Items */
.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.receipt-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.item-name {
  color: #334155;
  font-weight: 600;
}
.item-price {
  color: #0F172A;
  font-weight: 700;
}

/* Totals */
.receipt-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.receipt-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
}
.receipt-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px solid #E2E8F0;
}
.total-amount {
  font-size: 1.4rem;
  color: #5B4FF4;
  font-weight: 800;
}

/* Barcode */
.receipt-footer {
  margin-top: 20px;
  text-align: center;
}
.receipt-barcode {
  padding: 6px 0;
  opacity: 0.85;
}
.receipt-thanks {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
}

/* Floating Glass Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  padding: 14px 18px;
  z-index: 10;
  transition: transform 0.3s ease;
}
.floating-badge:hover {
  transform: translateY(-3px) scale(1.02);
}

.badge-top-right {
  top: 50px;
  right: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-icon-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-info {
  display: flex;
  flex-direction: column;
}
.badge-label {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #10B981;
}

.badge-bottom-left {
  bottom: 20px;
  left: -28px;
}
.badge-main-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  margin: 2px 0 4px;
}
.badge-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
}

/* ---- Features Section ---- */
.features-section {
  padding: 80px 64px;
  text-align: center;
  background: white;
}
.section-title { font-size: 2.2rem; font-weight: 800; color: #0F172A; margin-bottom: 12px; }
.section-subtitle { font-size: 1.05rem; color: #334155; font-weight: 500; margin-bottom: 56px; max-width: 540px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1040px;
  margin: 0 auto;
}
.feature-card {
  padding: 36px 28px;
  text-align: left;
  border-radius: var(--radius-xl);
  border: 1.5px solid #E2E8F0;
  transition: all 0.3s ease;
  background: white;
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(91, 79, 244, 0.12);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #EEF2FF;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.feature-title { font-size: 1.25rem; font-weight: 800; color: #0F172A; margin-bottom: 12px; }
.feature-desc { font-size: 0.95rem; color: #334155; font-weight: 500; line-height: 1.65; }

/* ---- Mobile Section ---- */
.mobile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 64px;
  align-items: center;
  background: var(--bg-main);
}
.mobile-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.mobile-text p { font-size: 1.05rem; color: #334155; font-weight: 500; line-height: 1.65; margin-bottom: 24px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
}
.mobile-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-mockup {
  max-width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.device-preview {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.device-phone, .device-tablet {
  background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
  border-radius: 20px;
  border: 3px solid #d0d0d0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-phone { width: 120px; height: 220px; }
.device-tablet { width: 200px; height: 150px; }
.device-screen {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* ---- Insights Section ---- */
.insights-section {
  padding: 100px 64px;
  background: #0f172a;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.insights-section::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,79,244,0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.insights-section::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.insights-header {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto 64px;
}
.insights-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.insights-header p {
  font-size: 1.15rem;
  color: #F1F5F9;
  line-height: 1.65;
  font-weight: 500;
}
.insights-dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}
.metric-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: left;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.metric-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.metric-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: rgba(91, 79, 244, 0.2);
  color: #a89df8;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.metric-card.orange .metric-icon {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
}
.metric-card.green .metric-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.metric-value {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: white;
  line-height: 1;
}
.metric-label {
  font-size: 1rem;
  color: #E2E8F0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 20px;
  padding: 6px 12px;
  border-radius: 99px;
}
.trend-up {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

/* ---- Pricing Section ---- */
.pricing-section {
  padding: 80px 64px;
  background: white;
  text-align: center;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}
.pricing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  text-align: left;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(91,79,244,0.18);
  transform: scale(1.04);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-secondary); }
.pricing-price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}
.price-currency { font-size: 1.2rem; font-weight: 700; padding-top: 8px; }
.price-amount { font-size: 3rem; font-weight: 800; line-height: 1; }
.price-period { font-size: 0.85rem; color: var(--text-muted); padding-top: 22px; }
.pricing-card--featured .price-currency,
.pricing-card--featured .price-amount { color: var(--primary); }
.pricing-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 0.75rem;
  width: 18px; height: 18px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pricing-features li.disabled { opacity: 0.6; }
.pricing-features li.disabled::before {
  content: '✕';
  color: var(--text-muted);
  background: var(--border);
}
.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: none;
  display: block;
  text-decoration: none;
}
.btn-plan--outline {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}
.btn-plan--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-plan--primary { background: var(--secondary); color: white; }
.btn-plan--primary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-plan--secondary { background: var(--primary-bg); color: var(--primary); }
.btn-plan--secondary:hover { background: var(--primary); color: white; }

/* ---- Footer ---- */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 40px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .navbar { padding: 0 32px; }
  .hero { padding: 60px 32px 80px; }
  .hero-container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-title { font-size: 2.6rem; }
  .features-section, .pricing-section { padding: 60px 32px; }
  .mobile-section { padding: 60px 32px; }
}
@media (max-width: 868px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-left { text-align: center; align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .badge-top-right { right: 0; }
  .badge-bottom-left { left: 0; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 48px 20px 60px; }
  .hero-title { font-size: 2.1rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-hero-main, .btn-hero-secondary { width: 100%; justify-content: center; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .insights-dashboard { grid-template-columns: 1fr; }
  .mobile-section { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .footer { padding: 32px 20px; flex-direction: column; text-align: center; }
}
