/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10B981;
  --secondary: #3B82F6;
  --accent: #D4AF37;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
}

html.dark {
  --bg: #0F172A;
  --surface: #1E293B;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.25);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.btn-outline .btn-badge {
  background: var(--primary);
  color: #fff;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img { width: 36px; height: 36px; border-radius: 10px; }
.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.lang-icon { width: 18px; height: 18px; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-icon-dark { display: none; }
html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #ECFDF5 0%, #F5F7FA 50%, #EFF6FF 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-highlight {
  color: var(--primary);
  display: block;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  border-radius: 40px;
  background: #111827;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(5,150,105,0.15);
  padding: 12px 10px 16px;
  position: relative;
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  width: 100px;
  height: 24px;
  background: #111827;
  border-radius: 0 0 16px 16px;
  margin: -12px auto 0;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: #F5F7FA;
  border-radius: 28px;
  padding: 20px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 480px;
}
.phone-home-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin: 10px auto 0;
}

.phone-screen-header { margin-bottom: 4px; }
.phone-greeting { font-size: 11px; color: #6B7280; font-weight: 500; }
.phone-bizname { font-size: 17px; font-weight: 800; color: #111827; }

.phone-hero-card {
  background: linear-gradient(135deg, #059669, #047857);
  border-radius: 16px;
  padding: 16px;
  color: white;
}
.phone-revenue-label { font-size: 10px; opacity: 0.75; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.phone-revenue { font-size: 22px; font-weight: 800; margin: 4px 0 2px; }
.phone-growth { font-size: 11px; color: #6EE7B7; font-weight: 600; }
.phone-stats-row { display: flex; gap: 20px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.15); }
.phone-stat { display: flex; flex-direction: column; }
.phone-stat-num { font-size: 16px; font-weight: 700; }
.phone-stat-lbl { font-size: 10px; opacity: 0.7; }

.phone-quick-row { display: flex; gap: 8px; }
.phone-quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.phone-quick-green { background: #059669; }
.phone-quick-blue { background: #3B82F6; }

.phone-activity { background: white; border-radius: 12px; padding: 12px; border: 1px solid #E5E7EB; }
.phone-activity-title { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.phone-activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #F3F4F6;
}
.phone-activity-item:last-child { border-bottom: none; }
.phone-act-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.phone-act-info { flex: 1; display: flex; flex-direction: column; }
.phone-act-name { font-size: 11px; font-weight: 600; color: #111827; }
.phone-act-time { font-size: 9px; color: #9CA3AF; }
.phone-act-amount { font-size: 11px; font-weight: 700; color: #111827; }

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}
.pricing-card-featured:hover {
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.pricing-header { margin-bottom: 28px; }

.pricing-tier {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 8px;
}
.pricing-currency { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.pricing-amount { font-size: 40px; font-weight: 800; }
.pricing-period { font-size: 14px; color: var(--text-secondary); }

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pricing-features li:last-child { border-bottom: none; }

.check-icon {
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ===== Download ===== */
.download { background: linear-gradient(135deg, #ECFDF5 0%, #EFF6FF 100%); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.download-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #05966915;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.download-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.download-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.download-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: #F59E0B15;
  color: #F59E0B;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== Multi-Store Feature ===== */
.multistore { background: var(--surface); overflow: hidden; }

.multistore-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.multistore-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: #D4AF3715;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.multistore-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.multistore-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.multistore-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.store-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s ease;
}
.store-card:hover {
  transform: translateX(-6px);
  box-shadow: var(--shadow-lg);
}
.store-card-1 { transform: translateX(0); }
.store-card-2 { transform: translateX(16px); }
.store-card-3 { transform: translateX(32px); }
.store-card-1:hover { transform: translateX(-6px); }
.store-card-2:hover { transform: translateX(10px); }
.store-card-3:hover { transform: translateX(26px); }

.store-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.store-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.store-card-revenue {
  font-size: 12px;
  color: var(--text-secondary);
}

.store-card-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.store-badge-active { background: #05966915; color: #059669; }
.store-badge-pending { background: #F59E0B15; color: #F59E0B; }

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo { width: 48px; height: 48px; border-radius: 12px; }
.footer-name { font-size: 22px; font-weight: 800; }
.footer-tagline { font-size: 14px; color: #9CA3AF; }

.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  font-size: 14px;
  color: #9CA3AF;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #374151;
  width: 100%;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: #6B7280; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .download-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .multistore-layout { grid-template-columns: 1fr; gap: 40px; }
  .multistore-content { order: 2; }
  .multistore-visual { order: 1; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-title { font-size: 36px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }
  .phone-screen { min-height: 400px; }
  .phone-revenue { font-size: 18px; }

  .section-title { font-size: 28px; }

  .features-grid { grid-template-columns: 1fr; }

  .download-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }

  .footer-links { gap: 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .section { padding: 60px 0; }
  .store-card-1, .store-card-2, .store-card-3 { transform: none; }
}

/* ===== Dark Mode Overrides ===== */
html.dark .hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}
html.dark .hero-badge { background: rgba(5,150,105,0.2); }
html.dark .phone-activity { background: var(--surface); border-color: var(--border); }
html.dark .phone-activity-title { color: var(--text); }
html.dark .phone-act-name { color: var(--text); }
html.dark .phone-act-time { color: var(--text-secondary); }
html.dark .phone-act-amount { color: var(--text); }
html.dark .phone-greeting { color: var(--text-secondary); }
html.dark .phone-bizname { color: var(--text); }
html.dark .footer { background: #0B1120; }
html.dark .download-card { background: var(--surface); }
html.dark .pricing-card { background: var(--surface); }
html.dark .pricing-features li { border-color: var(--border); }
html.dark .store-card { background: var(--bg); border-color: var(--border); }
html.dark .multistore { background: var(--surface); }
html.dark .features { background: var(--surface); }
html.dark .phone-mockup { background: #0B1120; }
html.dark .nav.active { background: var(--surface); }
html.dark .header { background: rgba(15,23,42,0.85); }
html.dark .download-icon-wrap { background: rgba(5,150,105,0.15); }
html.dark .phone-activity-item { border-color: var(--border); }
