/* ========== i3compras Design System ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --surface: #1e1e2a;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #9a9ab0;
  --text-muted: #5c5c72;
  --accent: #25D366;
  --accent-dark: #1da851;
  --accent-glow: rgba(37,211,102,0.15);
  --accent-glow-strong: rgba(37,211,102,0.3);
  --gradient-accent: linear-gradient(135deg, #25D366, #128C7E);
  --gradient-hero: linear-gradient(160deg, #0a0a0f 0%, #0f1a14 50%, #0a0a0f 100%);
  --gradient-card: linear-gradient(145deg, rgba(37,211,102,0.05), transparent);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(37,211,102,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); font-size: 1.05rem; }

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Layout ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-label svg { width: 14px; height: 14px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header p { margin-top: 16px; font-size: 1.1rem; }

/* ========== Navbar ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { padding: 10px 0; background: rgba(10,10,15,0.92); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-size: 1.5rem; font-weight: 800;
  text-decoration: none; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-accent); color: #fff !important;
  padding: 10px 24px; border-radius: 100px;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,0.25);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.35); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,211,102,0.08), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow); border: 1px solid rgba(37,211,102,0.2);
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { margin-bottom: 20px; animation: fadeInUp 0.8s ease 0.1s both; }
.hero p { font-size: 1.15rem; margin-bottom: 32px; animation: fadeInUp 0.8s ease 0.2s both; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.3s both; }

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gradient-accent);
  color: #fff; padding: 14px 32px; border-radius: 100px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--text-primary); padding: 14px 32px; border-radius: 100px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid var(--border-hover);
  cursor: pointer; transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); }

/* ========== Hero Visual (WhatsApp mockup) ========== */
.hero-visual { position: relative; z-index: 2; animation: fadeInUp 1s ease 0.4s both; }
.phone-mockup {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 16px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  max-width: 380px; margin: 0 auto;
}
.phone-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #075e54;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.phone-avatar { width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; }
.phone-header-info h4 { font-size: 0.9rem; color: #fff; font-weight: 600; }
.phone-header-info span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chat-body { background: #0b141a; padding: 16px; min-height: 320px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  max-width: 85%; padding: 10px 14px;
  border-radius: 12px; font-size: 0.85rem; line-height: 1.5;
  animation: msgIn 0.5s ease both;
}
.chat-msg.received { background: #1f2c34; color: #e9edef; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.sent { background: #005c4b; color: #e9edef; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg .time { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.45); text-align: right; margin-top: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg:nth-child(2) { animation-delay: 0.8s; }
.chat-msg:nth-child(3) { animation-delay: 1.6s; }
.chat-msg:nth-child(4) { animation-delay: 2.4s; }
.chat-msg:nth-child(5) { animation-delay: 3.2s; }
.order-extracted {
  background: var(--accent-glow); border: 1px solid rgba(37,211,102,0.3);
  border-radius: var(--radius-md); padding: 12px 16px;
  margin-top: 8px; animation: msgIn 0.6s ease 4s both;
}
.order-extracted .label { font-size: 0.7rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.order-extracted .items { font-size: 0.8rem; color: var(--text-primary); margin-top: 6px; }
.order-extracted .total { font-size: 0.95rem; color: var(--accent); font-weight: 700; margin-top: 8px; }

/* ========== Features Section ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent); opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--accent); }
.feature-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { font-size: 0.92rem; line-height: 1.6; }

/* ========== How It Works ========== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 48px; left: 12.5%; right: 12.5%;
  height: 2px; background: linear-gradient(90deg, var(--accent), rgba(37,211,102,0.1));
  z-index: 0;
}
.step-card { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: #fff;
  margin: 0 auto 20px; position: relative;
  box-shadow: 0 0 24px rgba(37,211,102,0.25);
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; }

/* ========== Metrics ========== */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric-card {
  text-align: center; padding: 36px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.metric-card:hover { border-color: rgba(37,211,102,0.2); box-shadow: var(--shadow-glow); }
.metric-value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.metric-label { font-size: 0.9rem; color: var(--text-secondary); }

/* ========== Testimonials ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.testimonial-stars { color: #f5b731; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.testimonial-info h4 { font-size: 0.9rem; font-weight: 600; }
.testimonial-info span { font-size: 0.8rem; color: var(--text-muted); }

/* ========== CTA Section ========== */
.cta-section {
  text-align: center; padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-primary), #0d1a12, var(--bg-primary));
  position: relative;
}
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,211,102,0.08), transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { margin-bottom: 32px; font-size: 1.1rem; }

/* ========== Footer ========== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== WhatsApp FAB ========== */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition); text-decoration: none;
  animation: fabPulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab svg { width: 30px; height: 30px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 60px rgba(37,211,102,0.15); }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { max-width: 320px; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,10,15,0.97); flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .features-grid, .testimonials-grid, .metrics-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
