/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #1a202c;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

/* Typography */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary.large,
.btn-secondary.large {
  padding: 20px 40px;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Problem Section */
.problem-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.problem-card {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.problem-card:hover::before {
  transform: scaleX(1);
}

.problem-card.warning {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  border-color: #feb2b2;
}

.problem-card.success {
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
  border-color: #9ae6b4;
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 25px 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-card.warning .stat {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.problem-card.success .stat {
  background: linear-gradient(135deg, #38a169, #2f855a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-proposition {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.value-proposition h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.value-proposition p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* Calculator Section */
.calculator-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.calculator-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #4a5568;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.calculator-container {
  max-width: 1100px;
  margin: 0 auto;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-group {
  text-align: center;
}

.input-group label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2d3748;
}

.input-group input {
  font-size: 1.8rem;
  padding: 18px 24px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  width: 100%;
  max-width: 250px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
  transform: scale(1.02);
}

.comparison-results {
  display: grid;
  gap: 50px;
}

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

.platform-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  transition: all 0.4s ease;
}

.platform-card.competitor::before {
  background: linear-gradient(90deg, #e53e3e, #c53030);
}

.platform-card.foodcruz::before {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.platform-card h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #2d3748;
}

.calculation-breakdown {
  margin-top: 25px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
}

.calc-row.commission span:last-child {
  color: #e53e3e;
  font-weight: 600;
}

.calc-row.total {
  border-bottom: none;
  border-top: 2px solid #2d3748;
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 15px;
  padding-top: 20px;
}

.calc-row.profit {
  border-top: 1px solid #e2e8f0;
  margin-top: 10px;
  padding-top: 15px;
  font-weight: 600;
  font-size: 1.1rem;
}

.calc-row.profit.success span:last-child {
  color: #38a169;
}

.platform-card.foodcruz .calc-row.total span:last-child {
  color: #38a169;
}

.savings-summary {
  display: flex;
  justify-content: center;
}

.savings-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  min-width: 450px;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.savings-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
}

.savings-card h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
}

.savings-amount {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 25px 0;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.savings-details {
  margin-top: 35px;
  position: relative;
  z-index: 1;
}

.savings-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
}

.savings-row:last-child {
  border-bottom: none;
}

/* Benefits Section */
.benefits-section {
  padding: 100px 0;
  background: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.benefit-card {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.4s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-icon svg {
  width: 40px;
  height: 40px;
}

.benefit-card h3 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.benefit-card p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* How It Works Section */
.how-it-works-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 60px;
}

.step-card {
  text-align: center;
  position: relative;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.step-card h3 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.step-card p {
  color: #4a5568;
  line-height: 1.7;
  font-size: 1rem;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  color: #1f2937;
  margin-bottom: 15px;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.guarantee {
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 50px 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: #f9fafb;
}

.footer-section p {
  margin-bottom: 10px;
  color: #d1d5db;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-section a:hover {
  color: #f9fafb;
}

/* Highlight animation for savings */
@keyframes highlight {
  0% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(255, 255, 255, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

.highlight-savings {
  animation: highlight 1s ease-in-out;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 80px 0;
  }

  .problem-section,
  .calculator-section,
  .benefits-section,
  .how-it-works-section {
    padding: 60px 0;
  }

  .platform-comparison {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .calculator-inputs {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 20px;
  }

  .input-group input {
    max-width: 100%;
    font-size: 1.5rem;
  }

  .savings-card {
    min-width: auto;
    width: 100%;
    padding: 40px 30px;
  }

  .savings-amount {
    font-size: 2.8rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat {
    font-size: 3rem;
  }

  .benefit-card,
  .step-card {
    padding: 30px 25px;
  }

  .preset-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .container {
    padding: 0 16px;
  }

  .savings-amount {
    font-size: 2.4rem;
  }

  .platform-card {
    padding: 30px 20px;
  }

  .calc-row {
    font-size: 0.9rem;
  }

  .calc-row.total {
    font-size: 1.1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Animation for calculator updates */
.calculation-breakdown {
  transition: all 0.4s ease;
}

.savings-amount {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation for inputs */
.input-group input {
  position: relative;
}

.input-group input:focus::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Floating animation for hero elements */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-content {
  animation: float 6s ease-in-out infinite;
}

/* Fade in animation for scroll elements */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
}

.btn-primary {
  animation: pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
  animation: none;
}
