/* Modern POS & Smart Split Styling */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --accent: #4f46e5;
  --accent-light: #e0e7ff;
  --surface: #ffffff;
  --bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Gujarati", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Modern Sleek Responsive Navbar
   ========================================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.22);
  flex-shrink: 0;
}

.logo-brand-text {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.logo-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav Menu Links - Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link, a.nav-link {
  color: #475569;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-link:hover, a.nav-link:hover {
  color: var(--primary-dark);
  background: #f1f5f9;
  text-decoration: none !important;
}

.nav-link.active, a.nav-link.active {
  color: var(--primary-dark);
  background: #ecfdf5;
  font-weight: 700;
  text-decoration: none !important;
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lang-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-select-wrap .lang-icon {
  position: absolute;
  left: 0.6rem;
  font-size: 0.85rem;
  pointer-events: none;
  color: #64748b;
}

.lang-select {
  padding: 0.45rem 0.65rem 0.45rem 1.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: white;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.lang-select:hover, .lang-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

/* Mobile Toggle & Drawer */
.mobile-toggle-btn {
  display: none;
  background: white;
  border: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.mobile-toggle-btn:hover {
  background: #f8fafc;
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .nav-menu {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }
  
  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
  }

  .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
    background: #f0fdf4;
    border-color: #d1fae5;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }
}

/* Buttons */
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none !important;
}

.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  text-decoration: none !important;
}

.btn-primary:hover, a.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-sm {
  padding: 0.425rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-secondary, a.btn-secondary {
  background: white;
  color: var(--text-main) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
}

.btn-secondary:hover, a.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  text-decoration: none !important;
}

.btn-icon {
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-icon:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-icon:hover {
  background: #f8fafc;
}

/* Main Container */
.main-wrapper {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  width: 100%;
  flex: 1;
}

/* Merchant Status Banner */
.merchant-banner {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(to right, #ffffff, #f0fdf4);
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .merchant-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .merchant-banner > div:last-child {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}

.merchant-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.merchant-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.merchant-details h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-word;
}

.merchant-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: monospace;
  word-break: break-all;
}

.badge-mdr {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* App Grid Layout */
.app-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Card Container */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body {
  padding: 1.25rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-sym {
  position: absolute;
  left: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.amount-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: #f8fafc;
  transition: all 0.2s ease;
}

.amount-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.text-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: all 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Quick Add Buttons */
.quick-add-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.quick-btn {
  padding: 0.45rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.quick-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* Strategy Segmented Selector */
.strategy-selector {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid var(--border);
}

.strategy-opt {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  user-select: none;
}

.strategy-opt.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* MDR Calculation Insight */
.mdr-insight-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: #1e40af;
}

.mdr-insight-icon {
  font-size: 1.25rem;
}

/* Right Panel: Split QR Section */
.split-summary-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.summary-stat {
  display: flex;
  flex-direction: column;
}

.summary-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.summary-stat .val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.progress-container {
  width: 100%;
  margin-top: 0.5rem;
}

.progress-bar-bg {
  background: #e2e8f0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary), #10b981);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: flex;
  justify-content: space-between;
}

/* QR Grid */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
}

/* Individual QR Card */
.qr-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.qr-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.qr-card.paid {
  border-color: var(--success);
  background: #f0fdf4;
}

.qr-card.paid .qr-container {
  opacity: 0.35;
  filter: grayscale(1);
}

.qr-card.paid .paid-stamp {
  display: flex;
}

.qr-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.qr-part-badge {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
}

.qr-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
}

.qr-status-badge.unpaid {
  background: #fffbeb;
  color: #b45309;
}

.qr-status-badge.paid {
  background: #dcfce7;
  color: #15803d;
}

.qr-amount-wrap {
  margin-bottom: 0.85rem;
}

.qr-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.qr-container-box {
  position: relative;
  background: white;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paid-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(16, 185, 129, 0.95);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  z-index: 10;
  pointer-events: none;
}

.qr-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pay-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}

.btn-paid-toggle {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-paid-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.qr-card.paid .btn-paid-toggle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* Empty State */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Celebration Banner */
.celebration-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin: 1rem;
  text-align: center;
  display: none;
  animation: bounceIn 0.5s ease;
}

.celebration-banner.active {
  display: block;
}

@keyframes bounceIn {
  0% { transform: scale(0.9); opacity: 0; }
  70% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #f8fafc;
}

/* Customer Facing POS Fullscreen View */
.customer-pos-mode {
  position: fixed;
  inset: 0;
  background: #0f172a;
  z-index: 200;
  display: none;
  flex-direction: column;
  color: white;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.customer-pos-mode.active {
  display: flex;
}

.pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.85rem;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.pos-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1rem 0;
  max-width: 500px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.pos-step-badge {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.pos-amount-display {
  font-size: clamp(2.4rem, 8vw, 3.75rem);
  font-weight: 900;
  color: #10b981;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pos-qr-card-box {
  background: white;
  padding: 1.25rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 290px;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.pos-qr-card-box #posQrTarget canvas,
.pos-qr-card-box #posQrTarget img {
  max-width: 100%;
  height: auto !important;
  display: block;
}

.pos-nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.pos-nav-controls .btn {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  min-height: 48px;
  border-radius: 12px;
}

/* History Section */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.history-table th, .history-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.history-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
}

/* Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  .print-area, .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   Modern Marketing, SEO Pages & UI Components
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--primary-dark);
}

.breadcrumbs span {
  color: #cbd5e1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 1.75rem 1rem 1.5rem 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.775rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.025rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 1.25rem auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-cta-group a {
  text-decoration: none !important;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 1.25rem 0.75rem 1rem 0.75rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-subtitle {
    font-size: 0.925rem;
  }
}

/* Stat Counters */
.stat-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.stat-counter-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-counter-card .num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-counter-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Feature Grid */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 3rem auto 2rem auto;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Step Flow */
.step-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-flow-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-flow-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.step-flow-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison Table */
.comparison-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th, .comp-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comp-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #0f172a;
}

.comp-badge-pro {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.comp-badge-con {
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Use Case Grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.usecase-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.usecase-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.usecase-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.usecase-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 860px;
  margin: 1.5rem auto 3rem auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--primary-dark);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

/* Call to Action Banner */
.cta-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3.5rem 0 2rem 0;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.btn-cta-white {
  background: white;
  color: #047857;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s, background-color 0.2s;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

/* Master Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 1.25rem 2rem 1.25rem;
  margin-top: auto;
  font-size: 0.875rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-brand h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-col-brand p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.85rem;
  max-width: 320px;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: #64748b;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #94a3b8;
}

