/* EShoppingPedia — Main Stylesheet v1 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--nav-height);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--gray-600); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-decoration: none; }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 8px 20px; background: var(--primary); color: var(--white) !important;
  border-radius: var(--radius); font-weight: 600; font-size: 0.875rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }
.nav-login {
  color: var(--gray-600) !important; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-login:hover { color: var(--primary) !important; text-decoration: none; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: 0.3s; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-tiktok {
  background: #000; color: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; border: none;
  transition: opacity 0.2s;
}
.btn-tiktok:hover { opacity: 0.85; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--primary-light) 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--primary-light); color: var(--primary);
  border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: 2.75rem; line-height: 1.15; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  display: flex; justify-content: center; align-items: center;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 0;
  min-height: 380px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-image svg, .hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 0.85rem; color: var(--text-light); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; line-height: 1.6; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--primary);
}
.feature-card h3, .feature-card h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* How It Works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; padding: 32px 20px; position: relative; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; margin: 0 auto 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 18px 24px; text-align: left;
  background: var(--white); border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--gray-800);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question .arrow { transition: transform 0.3s; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px; color: var(--text-light); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-detail svg { flex-shrink: 0; color: var(--primary); }
.contact-detail div { font-size: 0.9rem; }
.contact-detail .label { font-weight: 600; color: var(--gray-800); }
.contact-detail .value { color: var(--text-light); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s;
  background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Auth Pages */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--gray-50), var(--white));
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px 40px;
  width: 100%; max-width: 420px;
  border: 1px solid var(--border);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); text-align: center; margin-bottom: 6px; }
.auth-card p.sub { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 32px; line-height: 1.5; }
.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--gray-400); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; font-family: inherit; width: 100%; box-sizing: border-box;
  transition: border-color 0.2s;
}
.auth-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.auth-form .btn { width: 100%; justify-content: center; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-light); }
.auth-footer a { font-weight: 600; }
.auth-form .field-group { display: flex; flex-direction: column; gap: 6px; }

/* Dashboard Preview */
.dashboard-preview {
  width: 100%; padding: 24px;
  background: #0f172a;
  min-height: 400px;
  display: flex; flex-direction: column; gap: 16px;
}
.dp-top { display: flex; gap: 12px; align-items: center; }
.dp-search { flex: 1; height: 36px; background: rgba(255,255,255,0.08); border-radius: 6px; }
.dp-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.dp-card {
  background: rgba(255,255,255,0.06); border-radius: 8px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.dp-card .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.dp-card .bar.w60 { width: 60%; } .dp-card .bar.w80 { width: 80%; }
.dp-card .bar.w40 { width: 40%; } .dp-card .bar.w50 { width: 50%; }
.dp-card .bar.w30 { width: 30%; } .dp-card .bar.w100 { width: 100%; }
.dp-card .bar.fill-primary { background: var(--primary); }
.dp-card .bar.fill-accent { background: #0ea5e9; }
.dp-card .bar.fill-green { background: #22c55e; }
.dp-card .bar.fill-orange { background: #f59e0b; }
.dp-row { display: flex; gap: 16px; }
.dp-row .dp-stat { flex: 1; }
.dp-stat .num { font-size: 1.4rem; font-weight: 700; color: var(--white); }
.dp-stat .lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.dp-connections {
  display: flex; flex-direction: column; gap: 8px; margin: 4px 0;
}
.dp-conn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 0.78rem; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
}
.dp-conn svg { flex-shrink: 0; opacity: 0.8; }
.dp-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 10px;
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  background: rgba(34,197,94,0.2); color: #22c55e;
}
.dp-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.dp-metric {
  background: rgba(255,255,255,0.06); border-radius: 8px;
  padding: 12px; display: flex; align-items: center; gap: 10px;
}
.dp-metric-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(37,99,235,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dp-metric-icon svg { color: var(--primary); }
.dp-metric-body { min-width: 0; }
.dp-metric-num { font-size: 1rem; font-weight: 700; color: var(--white); }
.dp-metric-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dp-bottom {
  display: flex; gap: 8px; height: 60px;
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 8px 12px;
  align-items: flex-end;
}
.dp-bottom .dp-chart-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--primary), rgba(37,99,235,0.4));
  min-height: 8px;
}

/* Page Header */
.page-header {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--gray-50), var(--white));
  text-align: center;
}
.page-header h1 { font-size: 2.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.page-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Content */
.content-page { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.content-page h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; color: var(--gray-900); }
.content-page h3 { font-size: 1.15rem; font-weight: 600; margin: 24px 0 8px; color: var(--gray-800); }
.content-page p { margin-bottom: 16px; color: var(--text-light); line-height: 1.7; }
.content-page ul { margin: 0 0 16px 24px; color: var(--text-light); }
.content-page li { margin-bottom: 8px; line-height: 1.6; }
.content-page strong { color: var(--gray-800); }

/* Footer */
footer {
  background: var(--gray-900); color: var(--gray-400); padding: 48px 0 24px;
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
footer p { font-size: 0.85rem; line-height: 1.6; }
footer a { color: var(--gray-400); font-size: 0.85rem; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--white); }
.footer-bottom {
  grid-column: 1 / -1; text-align: center;
  padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--gray-700);
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 24px;
    gap: 16px; border-bottom: 1px solid var(--border);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: 0.3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-image { min-height: 240px; padding: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .page-header h1 { font-size: 1.75rem; }
  .content-page { padding: 32px 16px; }
}