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

:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --primary: #2563EB;
  --secondary: #1D4ED8;
  --text: #111827;
  --text-muted: #6B7280;
  --success: #10B981;
  --border: #E5E7EB;
  --shadow-soft: 0 4px 20px -2px rgba(37,99,235,0.1);
  --shadow-hover: 0 10px 25px -5px rgba(37,99,235,0.15), 0 8px 10px -6px rgba(37,99,235,0.1);
  --shadow-btn: 0 4px 14px 0 rgba(37,99,235,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 12px rgba(37,99,235,0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  text-decoration: none; color: var(--text);
  display: flex; align-items: center;
}
.nav-links { display: none; gap: 32px; list-style: none; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.938rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.938rem;
  padding: 12px 28px; border-radius: 9999px; border: none; cursor: pointer;
  transition: all 0.2s ease-out; text-decoration: none; line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: #F1F5F9; border-color: #CBD5E1; }
.btn-white {
  background: #fff; color: var(--primary); font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== SECTION SHARED ===== */
section { position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary); background: rgba(37,99,235,0.08); padding: 6px 16px;
  border-radius: 9999px; margin-bottom: 16px;
}
.section-title {
  font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; max-width: 640px;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.75rem; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.05) 0%, transparent 70%),
              radial-gradient(circle at 10% 80%, rgba(29, 78, 216, 0.03) 0%, transparent 50%);
}
@media (min-width: 768px) { .hero { padding: 120px 0 80px; } }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.hero h1 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .hero h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { perspective: 2000px; }
.hero-card {
  background: var(--surface); border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(226,232,240,0.6);
  transform: rotateX(5deg) rotateY(-8deg);
  transition: transform 0.5s ease-out;
}
.hero-card:hover { transform: rotateX(2deg) rotateY(-4deg); }
.hero-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.hero-card-title { font-weight: 700; font-size: 1rem; }
.hero-card-badge {
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 9999px;
  background: rgba(251, 188, 2, 0.08);
}
.hero-metric { margin-bottom: 20px; }
.hero-metric-value { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-metric-change {
  display: inline-flex; align-items: center; gap: 4px; color: #059669;
  font-weight: 600; font-size: 0.875rem; margin-left: 8px;
}
.hero-metric-label { font-size: 0.875rem; color: var(--text-muted); }
.hero-bar-chart { display: flex; align-items: end; gap: 6px; height: 80px; margin-top: 16px; }
.hero-bar {
  flex: 1; border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  opacity: 0.7; transition: opacity 0.2s;
}
.hero-bar:hover { opacity: 1; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.mini-card {
  background: #F8FAFC; border-radius: 12px; padding: 14px; border: 1px solid var(--border);
}
.mini-card-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.mini-card-value { font-size: 1.15rem; font-weight: 700; }

/* Background blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1;
}
.blob-1 { width: 500px; height: 500px; background: rgba(37,99,235,0.12); top: -100px; right: -150px; }
.blob-2 { width: 400px; height: 400px; background: rgba(29,78,216,0.1); bottom: -100px; left: -100px; }

/* ===== STATS ===== */
.stats {
  padding: 64px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; transition: transform 0.3s; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }
.stats-grid > div:hover .stat-value { transform: scale(1.1); }

/* ===== FEATURES ===== */
.features { padding: 80px 0; }
@media (min-width: 768px) { .features { padding: 100px 0; } }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-subtitle { margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--surface); border-radius: 16px; padding: 32px;
  border: 1px solid rgba(226,232,240,0.6); box-shadow: var(--shadow-soft);
  transition: all 0.2s ease-out;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: #EEF2FF;
  color: var(--primary);
  border: 1px solid #E0E7FF;
  transition: all 0.3s ease;
}
.feature-icon svg {
  width: 24px; height: 24px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.938rem; color: var(--text-muted); line-height: 1.65; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 80px 0; background: linear-gradient(180deg, #F9FAFB 0%, #EFF6FF 50%, #F9FAFB 100%); }
@media (min-width: 768px) { .how-it-works { padding: 100px 0; } }
.how-header { text-align: center; margin-bottom: 64px; }
.how-header .section-subtitle { margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--surface); border-radius: 16px; padding: 36px 28px;
  text-align: center; border: 1px solid rgba(226,232,240,0.5);
  box-shadow: var(--shadow-soft); position: relative; transition: all 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.step-number {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.938rem; color: var(--text-muted); line-height: 1.65; }

/* ===== STORES ===== */
.stores { padding: 80px 0; }
@media (min-width: 768px) { .stores { padding: 100px 0; } }
.stores-header { text-align: center; margin-bottom: 64px; }
.stores-header .section-subtitle { margin: 0 auto; }
.stores-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .stores-grid { grid-template-columns: repeat(3, 1fr); } }
.store-card {
  background: var(--surface); border-radius: 16px; padding: 36px 28px;
  text-align: center; border: 1px solid rgba(226,232,240,0.5);
  box-shadow: var(--shadow-soft); transition: all 0.2s;
}
.store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.store-logo {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.store-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.store-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ===== PRICING ===== */
.pricing { padding: 80px 0; background: linear-gradient(180deg, #F9FAFB 0%, #EFF6FF 50%, #F9FAFB 100%); }
@media (min-width: 768px) { .pricing { padding: 120px 0; } }
.pricing-header { text-align: center; margin-bottom: 64px; }
.pricing-header .section-subtitle { margin: 0 auto; }

/* ===== PRICING (Alternative Layout) ===== */
.pricing-alt-layout { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.pricing-main-card {
  background: var(--surface); border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  padding: 48px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-main-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.pmc-badge {
  display: inline-block; background: rgba(37,99,235,0.1); color: var(--primary);
  padding: 6px 16px; border-radius: 9999px; font-weight: 700; font-size: 0.875rem;
  margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase;
}
.pmc-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.pmc-desc { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }

.pmc-split {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px;
}
@media (min-width: 768px) { .pmc-split { grid-template-columns: 1fr 1fr; gap: 24px; } }

.pmc-block {
  background: #F8FAFC; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 24px; display: flex; flex-direction: column; justify-content: center;
}
.pmc-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(29,78,216,0.02));
  border-color: rgba(37,99,235,0.2);
}

.pmc-value { font-size: 3rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.pmc-value span { font-size: 1.125rem; color: var(--text-muted); font-weight: 600; }
.pmc-highlight .pmc-value { color: var(--primary); }
.pmc-label { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.pmc-footer { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pmc-disclaimer { font-size: 0.875rem; color: var(--text-muted); }

/* Enterprise Banner */
.pricing-enterprise-banner {
  background: #F8FAFC; border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 40px; display: flex; flex-direction: column; align-items: center; gap: 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .pricing-enterprise-banner { flex-direction: row; text-align: left; justify-content: space-between; }
}
.peb-content h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.peb-content p { color: var(--text-muted); font-size: 0.938rem; margin: 0; max-width: 500px; line-height: 1.6; }

/* ===== FAQ ===== */
.faq { padding: 80px 0; }
@media (min-width: 768px) { .faq { padding: 100px 0; } }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header .section-subtitle { margin: 0 auto; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem;
  list-style: none; transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-item summary .chevron {
  transition: transform 0.3s; font-size: 1.25rem; color: var(--text-muted); flex-shrink: 0;
}
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 0 20px; font-size: 0.938rem; color: var(--text-muted); line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
}
@media (min-width: 768px) { .cta { padding: 100px 0; } }
.cta-box {
  background: linear-gradient(135deg, #1E3A8A 0%, #172554 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.4);
}
@media (min-width: 768px) { .cta-box { padding: 80px 48px; } }
.cta-box h2 { color: #ffffff; font-size: 2rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
@media (min-width: 768px) { .cta-box h2 { font-size: 2.75rem; } }
.cta-highlight {
  background: linear-gradient(135deg, #38BDF8, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-box p { color: #94A3B8; font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: 0.8;
}
.cta-blob-1 { width: 300px; height: 300px; background: rgba(59,130,246,0.3); top: -80px; right: -60px; }
.cta-blob-2 { width: 250px; height: 250px; background: rgba(56,189,248,0.25); bottom: -80px; left: -60px; }

/* ===== FOOTER ===== */
footer {
  padding: 48px 0 32px; border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.powered-by { display: flex; align-items: center; text-decoration: none; color: inherit; transition: opacity 0.2s; }
.powered-by:hover { opacity: 0.8; }
.powered-by img { transition: transform 0.2s; }
.powered-by:hover img { transform: translateY(-1px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll { 
  opacity: 0; 
  transform: translateY(20px); 
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Floating animation for hero */
@keyframes float {
  0%, 100% { transform: rotateX(5deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(5deg) rotateY(-8deg) translateY(-10px); }
}
.hero-card { animation: float 6s ease-in-out infinite; }
.hero-card:hover { animation-play-state: paused; }
