*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2340;
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--indigo);
  color: var(--white);
}
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.btn-dark {
  background: var(--gray-700);
  color: var(--white);
}
.btn-dark:hover { background: var(--gray-900); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: #f0f9ff; }
.btn-lg { font-size: 16px; padding: 14px 28px; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 60%, #0ea5e9 100%);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(79,70,229,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #bae6fd;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.highlight {
  color: var(--blue);
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: #bae6fd;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-wave {
  position: relative;
  height: 80px;
  margin-bottom: -2px;
}
.hero-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* APPS SECTION */
.apps-section {
  padding: 64px 0 80px;
  background: var(--gray-50);
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--gray-500);
  font-size: 16px;
}

/* APP CARD */
.app-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  max-width: 860px;
  margin: 0 auto;
}
.app-card-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.app-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo), #7c3aed);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.app-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.app-desc {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 12px;
}
.feature-item {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pricing-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-featured {
  border-color: var(--indigo);
  background: #fafafe;
  position: relative;
}
.pricing-badge {
  display: inline-block;
  background: var(--indigo);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}
.pricing-badge-alt {
  background: var(--gray-700);
}
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.pricing-period {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: -10px;
}
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pricing-list li {
  font-size: 13px;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}
.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 700;
}

/* SCREENSHOTS */
.screenshots {
  margin-bottom: 32px;
}
.screenshots-row {
  margin-bottom: 24px;
}
.screenshots-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.screenshots-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.screenshot-item img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-item img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.screenshot-item span {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-height: 90vh;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

.more-apps-note {
  text-align: center;
  margin-top: 32px;
  color: var(--gray-400);
  font-size: 14px;
  font-style: italic;
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  line-height: 1;
}
.modal-close:hover { background: var(--gray-100); }
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal-sub {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 20px;
}
.gcash-qr {
  width: 220px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: var(--shadow);
}
.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
}
.step-num {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--indigo);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
.footer {
  background: var(--navy);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.footer-text {
  color: #94a3b8;
  font-size: 13px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

/* MESSENGER BUBBLE */
.messenger-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
  z-index: 150;
  transition: transform 0.2s;
  text-decoration: none;
}
.messenger-bubble:hover { transform: scale(1.1); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .app-card { padding: 24px 20px; }
  .app-card-header { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .app-features { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
}
