/* General Reset & Variables */
:root {
  --primary: #ff5722;
  --primary-hover: #e04819;
  --primary-glow: rgba(255, 87, 34, 0.45);
  --dark-purple: #1f0036;
  --mid-purple: #2d004d;
  --light-bg: #fdfcff;
  --card-bg: rgba(255, 255, 255, 0.75);
  --border-color: rgba(224, 212, 235, 0.5);
  --text-dark: #2b0c3d;
  --text-muted: #6e5a75;
  --font-family: 'Fredoka', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--dark-purple);
}

/* Navbar with Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mid-purple);
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.cta-button {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.outline-button {
  border: 2px solid var(--mid-purple);
  color: var(--mid-purple);
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 700;
}

.outline-button:hover {
  background: rgba(45, 0, 77, 0.05);
  transform: translateY(-2px);
}

/* Hero Section with dot pattern */
.hero-section {
  padding: 160px 20px 80px 20px;
  text-align: center;
  background-image: 
    radial-gradient(rgba(123, 44, 191, 0.1) 1.5px, transparent 1.5px),
    linear-gradient(135deg, rgba(255, 235, 230, 0.4) 0%, rgba(240, 230, 255, 0.4) 100%);
  background-size: 24px 24px, 100% 100%;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-ctas .cta-button {
  padding: 15px 36px;
  font-size: 1.1rem;
}

.hero-ctas .outline-button {
  padding: 13px 34px;
  font-size: 1.1rem;
}

/* Category Pills selector */
.preview-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.tab-pill {
  background: white;
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.tab-pill:hover, .tab-pill.active {
  color: white;
  background: var(--mid-purple);
  border-color: var(--mid-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(45, 0, 77, 0.15);
}

/* Phone Mockup Preview */
.mockup-container {
  max-width: 320px;
  margin: 0 auto;
  border: 12px solid #2b0c3d;
  border-radius: 40px;
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  overflow: hidden;
  height: 520px;
  position: relative;
}

.mockup-header {
  background: var(--primary);
  color: white;
  padding: 20px 15px;
  text-align: center;
}

.mockup-logo {
  font-size: 1.1rem;
  font-weight: 800;
}

.mockup-categories {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
}

.mockup-cat-item {
  font-size: 0.8rem;
  background: #eee;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.mockup-cat-item.active {
  background: var(--primary);
  color: white;
}

.mockup-list {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  height: 380px;
}

.mockup-food-card {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 10px;
  text-align: left;
}

.mockup-food-card img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.mockup-food-details {
  flex-grow: 1;
}

.mockup-food-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.mockup-food-desc {
  font-size: 0.7rem;
  color: #777;
  margin: 2px 0;
}

.mockup-food-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 60px 40px;
  background: linear-gradient(to right, #fff5f2, #fbf7ff);
  border-top: 2px dashed rgba(45,0,77,0.1);
  border-bottom: 2px dashed rgba(45,0,77,0.1);
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mid-purple);
  margin-bottom: 5px;
}

.stat-label {
  font-weight: 600;
  color: var(--text-muted);
}

/* Steps Process Section */
.steps-section {
  padding: 80px 40px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

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

.steps-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 280px;
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  text-align: left;
  position: relative;
  transition: all 0.3s ease;
}

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

.step-num {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step-title {
  margin-top: 10px;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Page Styles */
.pricing-section {
  padding: 120px 20px 80px 20px;
  text-align: center;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  min-width: 280px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.premium {
  border: 2px solid var(--primary);
}

.pricing-card.premium::after {
  content: "Popular";
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.price-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.price-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--mid-purple);
  margin-bottom: 20px;
}

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

.price-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dark);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: "✓";
  color: #2ecc71;
  font-weight: bold;
}

.price-features li.disabled {
  color: #ccc;
}

.price-features li.disabled::before {
  content: "✗";
  color: #e74c3c;
}

.pricing-card button {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 30px;
  font-weight: 700;
}

/* Authentication Page Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1f0036 0%, #2d004d 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  text-align: center;
}

.auth-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--mid-purple);
  margin-bottom: 10px;
}

.auth-logo span {
  color: var(--primary);
}

.auth-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--text-muted);
}

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

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

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mid-purple);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-family);
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-submit-btn {
  background: var(--primary);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 15px var(--primary-glow);
  font-family: var(--font-family);
}

.auth-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.auth-footer {
  margin-top: 25px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Toast Message Utility */
.toast-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 10000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none;
  animation: slideUp 0.3s ease;
}

.toast-msg.success {
  background: #2ecc71;
}

.toast-msg.error {
  background: #e74c3c;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer Section */
footer {
  background: var(--dark-purple);
  color: white;
  padding: 60px 40px 20px 40px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  text-align: left;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-brand-desc {
  max-width: 300px;
  color: #ccc;
  font-size: 0.9rem;
}

.footer-links-col h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col ul a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-links-col ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: #888;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none; /* simple mobile drawer toggle or hidden for simplicity */
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .stats-section {
    padding: 40px 20px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand-desc {
    margin: 0 auto;
  }
}
