/* style.css — Landing Page Brand styling for ZaGo Website */

:root {
  --bg-main: #FFFFFF;
  --bg-dark: #0B2545;       /* Deep Navy */
  --primary: #1B5EA6;       /* Sapphire */
  --primary-light: #4D8DC9; /* Sky */
  --frost: #E8EDF5;         /* Frost */
  --text-dark: #0B2545;
  --text-muted: #62758D;
  --white: #FFFFFF;
  --border: rgba(27, 94, 166, 0.12);
  --shadow-sm: 0 4px 6px rgba(11, 37, 69, 0.05);
  --shadow-lg: 0 16px 32px rgba(11, 37, 69, 0.1);
  --radius-lg: 20px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, system-ui, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement Banner */
.announcement-banner {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: var(--white);
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.banner-slide {
  display: none;
  animation: fadeEffect 1s ease-in-out;
}

.banner-slide.active {
  display: block;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Header */
header {
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 40px;
  left: 0;
  z-index: 998;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(11, 37, 69, 0.15);
}

.logo-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.btn-pricing {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(27, 94, 166, 0.2);
  transition: all 0.3s !important;
}

.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 94, 166, 0.35);
  background: var(--bg-dark);
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, #F3F7FC 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(77, 141, 201, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-block;
  background: var(--frost);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid rgba(27, 94, 166, 0.1);
}

h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(27, 94, 166, 0.25);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(27, 94, 166, 0.4);
}

.btn-secondary {
  padding: 14px 28px;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(27, 94, 166, 0.25);
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn-secondary:hover {
  background: var(--frost);
  border-color: var(--primary);
}

.download-badge-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-store-badge {
  height: 48px;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-store-badge:hover {
  transform: scale(1.03);
}

.download-badge-container span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features Section */
.features, .benefits, .pricing, .faq {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

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

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 94, 166, 0.3);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

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

/* Benefits Section */
.benefits {
  background-color: #F8FAFC;
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-item {
  position: relative;
  padding-left: 20px;
}

.benefit-item .number {
  font-size: 48px;
  font-weight: 800;
  color: rgba(27, 94, 166, 0.12);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.benefit-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Pricing Section */
.pricing {
  background-color: var(--white);
}

.package-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.loading-packages {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}

.package-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  width: 100%;
  max-width: 320px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.package-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.package-card.popular:hover {
  transform: scale(1.03) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(27, 94, 166, 0.2);
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.package-duration {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.package-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.package-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.package-features {
  list-style: none;
  width: 100%;
  margin: 24px 0 36px;
  text-align: left;
  border-top: 1px dashed var(--border);
  padding-top: 24px;
}

.package-features li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-features li::before {
  content: "✓";
  color: var(--primary-light);
  font-weight: bold;
}

.package-card button {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.package-card.popular button, .package-card button:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border: none;
  padding: 13px;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(11, 37, 69, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

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

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: var(--text-muted);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--primary);
}

.modal-content h3 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--frost);
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 10px rgba(27, 94, 166, 0.15);
}

.error-text {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.package-preview-card {
  background: var(--frost);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  margin-bottom: 24px;
  border: 1px solid rgba(27, 94, 166, 0.08);
}

.package-preview-card div {
  margin-bottom: 6px;
}

.package-preview-card div:last-child {
  margin-bottom: 0;
}

/* QR and Payment table styling */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--frost);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px dashed var(--primary-light);
  margin-bottom: 20px;
  position: relative;
}

.qr-container img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  border: 4px solid var(--white);
  display: block;
}

.qr-info-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.qr-loading-spin {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(11,37,69,0.1);
  border-top: 3px solid var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.bank-details-box {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--frost);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row span {
  color: var(--text-muted);
}

.bank-row.clickable {
  cursor: pointer;
  transition: opacity 0.2s;
}

.bank-row.clickable:hover {
  opacity: 0.75;
}

.warning-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 11px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

/* Toast Notification */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-md);
  padding: 16px;
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from { bottom: 0; opacity: 0; }
  to { bottom: 30px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 30px; opacity: 1; }
  to { bottom: 0; opacity: 0; }
}

/* Footer styling */
footer {
  background: var(--bg-dark);
  color: var(--frost);
  padding: 60px 0;
  border-top: none;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand p {
  font-size: 13px;
  color: #7A8BA8;
  margin-top: 16px;
}

.footer-contact h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-contact p {
  font-size: 13px;
  color: #7A8BA8;
  margin-bottom: 8px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  header {
    top: 40px;
  }
  
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .btn-pricing {
    width: 80%;
    text-align: center;
  }

  h1 {
    font-size: 32px;
  }

  .hero {
    padding-top: 150px;
    padding-bottom: 60px;
  }
}
