/* ===== CSS VARIABLES ===== */
:root {
    --red: #c60b1e;
    --yellow: #ffc400;
    --gray: #f7f7f7;
    --dark: #222;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: white;
    color: var(--dark);
    scroll-behavior: smooth;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 193, 0, 0.6) 0%, rgba(198, 11, 30, 0.6) 100%), url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2074&q=80') center/cover;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-card {
    background: rgba(255,255,255,0.25);
    border-radius: 2rem;
    border: 1.5px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
    backdrop-filter: blur(12px);
}

.animated-cta {
    transition: transform 0.2s, box-shadow 0.2s;
}

.animated-cta:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 8px 32px 0 rgba(198,11,30,0.18);
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    animation: floatY 3.5s ease-in-out infinite;
}

.digital-menu-showcase {
    position: relative;
    display: inline-block;
}

.phone-mockup {
    width: 280px;
    height: 500px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.restaurant-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.menu-items-showcase {
    margin-bottom: 20px;
}

.menu-item-showcase {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.menu-item-showcase:hover {
    background: rgba(198,11,30,0.05);
    transform: translateX(5px);
}

.item-emoji {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.item-price {
    color: var(--red);
    font-weight: 600;
    font-size: 0.8rem;
}

.qr-code-placeholder {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(198,11,30,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    font-size: 1.2rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.analytics-icon {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.loyalty-icon {
    bottom: 50px;
    left: -40px;
    animation-delay: 1s;
}

.profit-icon {
    top: 50%;
    right: -50px;
    animation-delay: 2s;
}

/* Hero Background Circles */
.hero-bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-circles .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(8px);
    z-index: 0;
    animation: moveCircle 12s linear infinite alternate;
}

.hero-bg-circles .circle-1 {
    width: 320px; height: 320px; background: var(--red); left: -80px; top: -80px; animation-delay: 0s;
}

.hero-bg-circles .circle-2 {
    width: 220px; height: 220px; background: var(--yellow); right: -60px; top: 60px; animation-delay: 2s;
}

.hero-bg-circles .circle-3 {
    width: 180px; height: 180px; background: #fff; left: 40%; bottom: -90px; animation-delay: 4s;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--red);
    position: absolute;
    left: 0;
    bottom: -12px;
    border-radius: 5px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== HOW IT WORKS SECTION ===== */
#how-it-works .how-step {
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid #f7f7f7;
}

#how-it-works .how-step:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(198,11,30,0.10);
}

#how-it-works .step-icon {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--red) 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(198,11,30,0.08);
}

/* ===== ENHANCED FEATURES SECTION ===== */
.enhanced-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.enhanced-feature {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(247,247,247,0.95) 100%);
    border: 1.5px solid rgba(198,11,30,0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 992px) {
    .enhanced-features-row > [class*='col-'] {
        display: flex;
    }
    .enhanced-feature {
        height: 100%;
    }
}

.enhanced-feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(198,11,30,0.15);
    border-color: rgba(198,11,30,0.3);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 8px 25px rgba(198,11,30,0.25);
    transition: all 0.3s ease;
    border: 3px solid var(--yellow);
}

.enhanced-feature:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(198,11,30,0.35);
}

.feature-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,193,0,0.05) 0%, rgba(198,11,30,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.enhanced-feature:hover .feature-hover-overlay {
    opacity: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials .testimonial-card {
    border: 1.5px solid #f7f7f7;
    background: rgba(255,255,255,0.97);
    transition: transform 0.2s, box-shadow 0.2s;
}

#testimonials .testimonial-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(198,11,30,0.10);
}

/* ===== STATISTICS SECTION ===== */
#stats .stat-card {
    border: 1.5px solid #f7f7f7;
    background: rgba(255,255,255,0.97);
    transition: transform 0.2s, box-shadow 0.2s;
}

#stats .stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(198,11,30,0.10);
}

#stats .stat-value {
    font-variant-numeric: tabular-nums;
}

/* ===== ENHANCED PRICING SECTION ===== */
.enhanced-pricing-card {
    position: relative;
    border: none;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(247,247,247,0.95) 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.enhanced-pricing-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(198,11,30,0.15);
}

.enhanced-pricing-card.highlighted {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,246,230,0.98) 100%);
    border: 2px solid var(--red);
    transform: scale(1.05);
}

.enhanced-pricing-card.highlighted:hover {
    transform: translateY(-15px) scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--red) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(198,11,30,0.3);
}

.pricing-header {
    text-align: center;
}

.price-tag {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin: 1rem 0;
}

.price-tag .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
}

.price-tag .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
}

.price-tag .period {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.feature-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.feature-item:hover {
    color: var(--red);
    transform: translateX(5px);
}

.enhanced-btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198,11,30,0.3);
}

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

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

/* ===== FEATURE COMPARISON TABLE ===== */
#feature-comparison .comparison-table {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    background: white;
}

#feature-comparison .comparison-table th {
    background: var(--yellow); /* matches UI accent color */
    color: var(--dark); /* strong contrast, matches UI */
    font-weight: 600;
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--red);
    box-shadow: 0 2px 8px rgba(198,11,30,0.04);
}

#feature-comparison .comparison-table td {
    padding: 1rem;
    vertical-align: middle;
}

#feature-comparison .comparison-table tbody tr:hover {
    background-color: rgba(198,11,30,0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* ===== FAQ SECTION ===== */
#faq .row.justify-content-center {
    justify-content: unset !important;
}
#faq .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
}
#faq .accordion {
    width: 100%;
}

#faq .accordion-item {
    background: rgba(255,255,255,0.97);
    border: 1.5px solid #f7f7f7;
    transition: transform 0.2s, box-shadow 0.2s;
}

#faq .accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(198,11,30,0.08);
}

#faq .accordion-button {
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
}

#faq .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--red) 100%);
    color: white;
    box-shadow: none;
}

#faq .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(198,11,30,0.25);
}

#faq .accordion-body {
    padding: 1.5rem;
    background: rgba(255,255,255,0.95);
}

/* ===== CONTACT SECTION ===== */
#contact .contact-info,
#contact .contact-form {
    border: 1.5px solid #f7f7f7;
    background: rgba(255,255,255,0.97);
    transition: box-shadow 0.2s;
}

#contact .contact-info:hover,
#contact .contact-form:hover {
    box-shadow: 0 8px 32px rgba(198,11,30,0.10);
}

#contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
#contact .contact-info h6 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#contact .contact-info p {
    margin-bottom: 0;
    color: #333;
    font-size: 1rem;
}
#contact .contact-info .mb-3 {
    margin-bottom: 1.25rem !important;
}
#contact .contact-info .mb-3:last-child {
    margin-bottom: 0 !important;
}

#contact .form-control,
#contact .form-select {
    border: 1.5px solid #f7f7f7;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#contact .form-control:focus,
#contact .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 0.2rem rgba(198,11,30,0.25);
}

/* ===== SOCIAL PROOF SECTION ===== */
#social-proof .partner-logo {
    border: 1.5px solid #f7f7f7;
    background: rgba(255,255,255,0.97);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#social-proof .partner-logo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 32px rgba(198,11,30,0.10);
}

#social-proof .fake-logo {
    text-align: center;
    transition: all 0.3s ease;
}

#social-proof .logo-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

#social-proof .partner-logo:hover .fake-logo i {
    color: var(--red) !important;
}

#social-proof .partner-logo:hover .logo-text {
    color: var(--red) !important;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--gray);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid rgba(0,0,0,0.1);
    width: 100%;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}
@media (max-width: 767.98px) {
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
    .footer .row > div {
        text-align: center !important;
    }
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--red);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ===== ANIMATIONS ===== */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

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

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes moveCircle {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.08) translateY(-30px); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh !important;
        padding: 60px 20px !important;
    }
    
    .glass-card {
        padding: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    .phone-mockup {
        width: 240px !important;
        height: 420px !important;
    }
    
    .floating-icon {
        display: none !important;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .enhanced-feature {
        padding: 1.5rem !important;
    }
    
    .feature-icon-wrapper {
        width: 60px !important;
        height: 60px !important;
    }
    
    .enhanced-pricing-card {
        margin-bottom: 2rem !important;
    }
    
    .price-tag .amount {
        font-size: 2.5rem !important;
    }
    
    .comparison-table {
        font-size: 0.9rem !important;
    }
    
    .accordion-button {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    .enhanced-pricing-card:hover,
    .enhanced-pricing-card.highlighted:hover,
    .enhanced-pricing-card.highlighted {
      transform: none !important;
      box-shadow: 0 8px 32px rgba(198,11,30,0.10) !important;
    }
    .table-responsive {
      width: 100% !important;
      overflow-x: auto !important;
    }
    .comparison-table {
      width: 100% !important;
      min-width: 0 !important;
      table-layout: auto !important;
    }
    #feature-comparison .comparison-table th,
    #feature-comparison .comparison-table td {
      white-space: normal !important;
      padding-left: 0.5rem !important;
      padding-right: 0.5rem !important;
      font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh !important;
        padding: 40px 15px !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .phone-mockup {
        width: 200px !important;
        height: 360px !important;
    }
    
    .menu-item-showcase {
        padding: 8px 0 !important;
    }
    
    .item-name {
        font-size: 0.8rem !important;
    }
    
    .item-price {
        font-size: 0.7rem !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.btn:focus,
.form-control:focus,
.form-select:focus,
.accordion-button:focus {
    outline: 2px solid var(--red) !important;
    outline-offset: 2px !important;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--red) !important;
    outline-offset: 2px !important;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --red: #d32f2f;
        --yellow: #f57c00;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero-bg-circles .circle {
    will-change: transform;
}

.enhanced-feature,
.enhanced-pricing-card {
    will-change: transform;
}

/* ===== LAZY LOADING ===== */
img {
    loading: lazy;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s;
}
.scroll-to-top-btn:focus {
    outline: 2px solid var(--yellow);
}
.scroll-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}
.scroll-to-top-btn:hover {
    background: var(--yellow);
    color: var(--red);
}

@media (max-width: 768px) {
  .how-step:hover,
  .how-step,
  .enhanced-feature:hover,
  .enhanced-feature,
  .testimonial-card:hover,
  .testimonial-card,
  .stat-card:hover,
  .stat-card,
  .partner-logo:hover,
  .partner-logo {
    transform: none !important;
    box-shadow: 0 8px 32px rgba(198,11,30,0.10) !important;
  }
}
