/* 
   MesaViva Promotional Page Stylesheet
   Vanilla CSS - Premium Aesthetic
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Amatic+SC:wght@700&display=swap');

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.6);
  --border-card: rgba(255, 255, 255, 0.06);
  --primary: #10b981; /* Emerald Green */
  --primary-glow: rgba(16, 185, 129, 0.15);
  --secondary: #f59e0b; /* Amber/Gold */
  --text-main: #f3f4f6; /* Off white */
  --text-muted: #9ca3af; /* Gray */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 30px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.1);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #060a12;
  box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.5);
  border: none;
}

.btn-primary:hover {
  background-color: #059669;
  box-shadow: 0 10px 25px -4px rgba(16, 185, 129, 0.7);
  transform: scale(1.02);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Amatic SC', sans-serif;
  font-size: 2.2rem;
  color: var(--secondary);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 120px;
  background: radial-gradient(circle at 50% -20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Floating devices in Hero */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-mockup {
  position: absolute;
  border-radius: 24px;
  border: 4px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  background-color: #0b0f19;
}

.mockup-tablet {
  width: 380px;
  height: 250px;
  top: 60px;
  left: 20px;
  transform: rotate(-3deg);
  z-index: 2;
  border-radius: 16px;
}

.mockup-phone {
  width: 145px;
  height: 290px;
  bottom: 40px;
  right: 40px;
  transform: rotate(5deg);
  z-index: 3;
}

.mockup-desktop {
  width: 320px;
  height: 200px;
  top: 180px;
  left: -20px;
  transform: rotate(-1deg);
  z-index: 1;
  opacity: 0.65;
  border-radius: 8px;
}

/* Mockup inner details built with pure CSS */
.mockup-screen {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mockup-body {
  flex: 1;
}

/* Tablet KDS Mockup */
.kds-mockup .kds-tickets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  height: 100%;
}

.kds-ticket {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kds-ticket-header {
  font-weight: bold;
  color: var(--secondary);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 2px;
  margin-bottom: 4px;
}

.kds-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.kds-btn {
  background: var(--primary);
  color: #000;
  text-align: center;
  border-radius: 4px;
  padding: 2px 0;
  font-weight: bold;
  font-size: 0.55rem;
  margin-top: 4px;
}

.kds-ticket.late {
  border-color: #ef4444;
  animation: pulse-border 2s infinite;
}

/* Phone Menu Mockup */
.phone-mockup .menu-title {
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
  text-align: center;
}

.phone-mockup .menu-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.phone-mockup .product-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
  font-size: 0.5rem;
  text-align: center;
}

.phone-mockup .product-img {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
  border-radius: 4px;
  margin-bottom: 4px;
}

.phone-mockup .product-price {
  color: var(--primary);
  font-weight: bold;
  margin-top: 2px;
}

.phone-mockup .cart-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: var(--primary);
  color: #000;
  border-radius: 99px;
  padding: 4px 8px;
  font-size: 0.55rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

/* Chaos vs Control Section */
.old-vs-new {
  background-color: rgba(17, 24, 39, 0.3);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.split-col {
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.split-col.old {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.08);
}

.split-col.new {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(16, 185, 129, 0.1);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.02);
}

.split-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.split-badge {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: bold;
  font-family: var(--font-title);
  text-transform: uppercase;
}

.old .split-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.new .split-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}

.split-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.pain-points, .value-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.point-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.old .point-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.new .point-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}

.point-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.point-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Interactive Flow Steps */
.flow-interactive {
  max-width: 900px;
  margin: 0 auto;
}

.flow-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.flow-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}

.flow-tab:hover {
  color: var(--text-main);
}

.flow-tab.active {
  color: var(--primary);
}

.flow-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.flow-content-wrapper {
  position: relative;
}

.flow-step-panel {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

.flow-step-panel.active {
  display: grid;
}

.flow-step-text h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: #fff;
}

.flow-step-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.flow-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flow-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-item {
  position: relative;
  overflow: hidden;
}

.bento-1 {
  grid-column: span 2;
}

.bento-2 {
  grid-column: span 1;
}

.bento-3 {
  grid-column: span 1;
}

.bento-4 {
  grid-column: span 2;
}

.bento-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.bento-item h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #fff;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ROI Interactive Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
}

.slider-header .val {
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results {
  text-align: center;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 80%);
  border: 1px solid rgba(16, 185, 129, 0.15) !important;
}

.results-header {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.results-savings {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-title);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.results-breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-item span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.15);
  position: relative;
}

.pricing-card.popular::before {
  content: 'RECOMENDADO';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.price-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.price-value {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-title);
  line-height: 1;
  margin-bottom: 6px;
}

.price-value span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-features {
  margin: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.price-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.price-features li i {
  color: var(--primary);
}

/* Contact Lead Form */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control-input:focus {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.02);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-card);
  padding: 60px 0;
  background-color: #06090f;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Amatic SC', sans-serif;
  font-size: 2.2rem;
  color: var(--secondary);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-border {
  0% { border-color: rgba(239, 68, 68, 0.4); }
  50% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.3); }
  100% { border-color: rgba(239, 68, 68, 0.4); }
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    height: 400px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-1 {
    grid-column: span 2;
  }
  
  .bento-2 {
    grid-column: span 1;
  }
  
  .bento-3 {
    grid-column: span 1;
  }
  
  .bento-4 {
    grid-column: span 2;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .split-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .flow-step-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-1, .bento-2, .bento-3, .bento-4 {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-links {
    display: none; /* Hide nav links on tablet/mobile for simplicity or toggle */
  }
}
