/* EasyMeal Enhanced Styles */
:root {
  --charcoal: #2C2C2C;
  --charcoal-light: #3A3A3A;
  --orange: #FF6B35;
  --orange-light: #FF8C5F;
  --orange-deep: #E85A2A;
  --red-accent: #D84A3C;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE3;
  --white: #FFFFFF;
  --slate: #5A5A5A;
  --slate-light: #8A8A8A;
  --success: #10B981;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(255,107,53,.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { 
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 800;
  color: var(--charcoal);
}

h1 { 
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: -.03em;
  margin: .5rem 0 1rem;
}

h2 { 
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1.5rem;
  letter-spacing: -.02em;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0 0 .8rem;
}

p.lead { 
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--slate);
  max-width: 65ch;
  line-height: 1.7;
}

.container { 
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Navigation */
nav { 
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 53, .1);
  box-shadow: var(--shadow-sm);
}

.navbar { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo { 
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--charcoal);
  text-decoration: none;
}

.logo img { 
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.nav-links {
  display: flex;
  gap: .5rem;
}

.nav-links a { 
  text-decoration: none;
  color: var(--charcoal);
  padding: .6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all .2s;
}

.nav-links a:hover { 
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 3px;
  transition: all .3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero { 
  padding: 5rem 0 6rem;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D9 50%, #FFF8F0 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid { 
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 960px) { 
  .hero-grid { 
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.badge { 
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 2px solid var(--orange);
  color: var(--charcoal);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: .95rem;
  margin-bottom: 1.5rem;
}

.badge .dot { 
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(1.1); }
}

.btn { 
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 1rem 1.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all .3s;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
}

.btn:active { 
  transform: translateY(1px);
  box-shadow: var(--shadow-md);
}

.btn-primary { 
  background: linear-gradient(135deg, var(--orange) 0%, var(--red-accent) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary { 
  background: var(--white);
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-3px);
}

.cta { 
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

/* Device Mock */
.device { 
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.device::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--orange), var(--red-accent));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: .3;
  filter: blur(20px);
}

.screen { 
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  border: 2px solid #404040;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  min-height: 220px;
  text-align: center;
}

.screen img {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.screen h3 {
  color: var(--white);
  margin: 1rem 0 .5rem;
}

.screen p {
  color: rgba(255,255,255,.7);
  margin: 0;
}

.progress { 
  height: 10px;
  background: #333;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1.2rem;
}

.progress > span { 
  display: block;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 999px;
  animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
  0% { width: 30%; }
  50% { width: 70%; }
  100% { width: 30%; }
}

/* Sections */
.section { 
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: var(--white);
}

.grid-3 { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 960px) { 
  .grid-3 { 
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.card { 
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--red-accent));
  transform: scaleX(0);
  transition: transform .3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--orange-light);
}

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

.card h3 {
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.card p {
  color: var(--slate);
  line-height: 1.7;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section > p.lead {
  text-align: center;
  margin: 0 auto 2rem;
}

/* Pills */
.pills { 
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 2rem;
}

.pill { 
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  border: 2px solid var(--orange-light);
  border-radius: 999px;
  padding: .7rem 1.3rem;
  font-weight: 800;
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}

.pill:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Contact Form */
form {
  display: grid;
  gap: 1.2rem;
  max-width: 700px;
  margin: 2rem auto 0;
}

label {
  display: block;
}

label span {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--charcoal);
}

input, textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--cream-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all .2s;
  background: var(--white);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

form .cta {
  margin-top: .5rem;
}

#formStatus {
  display: none;
}

button.btn {
  font-family: 'Poppins', sans-serif;
}

/* Footer */
footer { 
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  color: var(--white);
  padding: 3rem 0;
  border-top: 3px solid var(--orange);
}

.footer-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.footer-logo img {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

footer a { 
  color: var(--orange-light);
  text-decoration: none;
  font-weight: 700;
  transition: all .2s;
}

footer a:hover { 
  color: var(--orange);
  text-decoration: underline;
}

/* Accessibility */
.skip-link { 
  position: absolute;
  left: -9999px;
  background: var(--orange);
  color: var(--white);
  padding: .8rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.skip-link:focus { 
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  box-shadow: var(--shadow-xl);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -5px 0 25px rgba(0,0,0,.1);
    transition: right .3s ease;
    z-index: 100;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
  }
  
  .navbar {
    padding: .8rem 0;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .logo img {
    width: 36px;
    height: 36px;
  }
  
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .badge {
    font-size: .85rem;
    padding: .4rem .8rem;
  }
  
  .badge .dot {
    width: 10px;
    height: 10px;
  }
  
  .btn {
    padding: .85rem 1.4rem;
    font-size: .95rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .device {
    padding: 1.2rem;
  }
  
  .screen {
    padding: 1.5rem;
    min-height: 200px;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  
  .pills {
    gap: .6rem;
  }
  
  .pill {
    padding: .6rem 1rem;
    font-size: .9rem;
  }
}