:root {
    --primary-green: #4CAF50;
    --secondary-green: #66BB6A;
    --light-green: #E8F5E8;
    --dark-green: #2E7D32;
    --primary-blue: #4A90E2;
    --secondary-blue: #5B9EF5;
    --light-blue: #E3F2FD;
    --dark-blue: #1976D2;
    --primary-purple: #8E44AD;
    --light-purple: #B974D1;
    --purple-tint: rgba(185,116,209,0.08);
    --primary-orange: #FF9800;
    --light-orange: #FFF3E0;
    --amber: #FFC107;
    --primary-red: #f44336;
    --dark-red: #d32f2f;
    --light-red: #FFEBEE;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #888888;
    --very-light-gray: #999999;
    --background-gray: #f8f9fa;
    --border-gray: #E5E5EA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: var(--dark-gray);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100vh;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
        position: relative;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(76, 175, 80, 0.03) 0%, rgba(74, 144, 226, 0.03) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.4"><defs><pattern id="map-grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%234CAF50" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23map-grid)"/><circle cx="200" cy="150" r="3" fill="%234CAF50" opacity="0.6"/><circle cx="400" cy="200" r="2" fill="%234A90E2" opacity="0.5"/><circle cx="600" cy="180" r="3" fill="%234CAF50" opacity="0.6"/><circle cx="800" cy="250" r="2" fill="%234A90E2" opacity="0.5"/><circle cx="300" cy="350" r="2" fill="%234CAF50" opacity="0.6"/><circle cx="500" cy="400" r="3" fill="%234A90E2" opacity="0.5"/><circle cx="700" cy="380" r="2" fill="%234CAF50" opacity="0.6"/><circle cx="900" cy="450" r="3" fill="%234A90E2" opacity="0.5"/></svg>');
    background-size: 1200px 800px;
    background-position: center;
    background-repeat: repeat;
    z-index: -1;
    filter: blur(1px);
}

.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(74, 144, 226, 0.1));
    border-radius: 50% 50% 0 0;
    animation: wave 8s ease-in-out infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    animation-delay: -2s;
    opacity: 0.7;
}

.wave:nth-child(3) {
    bottom: 20px;
    animation-delay: -4s;
    opacity: 0.5;
}

@keyframes wave {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

.header {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    backdrop-filter: blur(20px);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-content .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-content .header-buttons {
    position: absolute;
    right: 40px;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-button {
    background: #FFD700;
    color: #333333;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.nav-button:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

.nav-button.restaurant {
    background: white;
    color: var(--primary-green);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.nav-button.restaurant:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    width: 100%;
    overflow-x: hidden;
}

.hero {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-blue) 100%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: -1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.save-money {
    color: var(--primary-green);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.hero p {
    font-size: 1.4rem;
    color: var(--medium-gray);
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.instagram-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    min-height: 44px;
    min-width: 200px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #5B9EF5 0%, #44B2D8 100%);
    transition: opacity 0.15s ease;
    text-decoration: none;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(91, 158, 245, 0.3);
    animation: popIn 0.6s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

.instagram-button:hover {
    opacity: 0.85;
    box-shadow: 0 12px 32px rgba(91, 158, 245, 0.4);
}

.instagram-button:active {
    opacity: 0.75;
}

.instagram-icon {
    width: 20px;
    height: 20px;
    color: white;
    margin-right: 8px;
}

.instagram-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* Instagram button in nav header */
.nav-button.instagram-nav {
    background: linear-gradient(135deg, #5B9EF5 0%, #44B2D8 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(91, 158, 245, 0.3);
}

.nav-button.instagram-nav:hover {
    background: linear-gradient(135deg, #4A8FE6 0%, #33A1C7 100%);
    box-shadow: 0 6px 16px rgba(91, 158, 245, 0.4);
}

.instagram-nav-icon {
    width: 20px;
    height: 20px;
    color: white;
}

.instagram-nav-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
}

/* App Store download button */
.app-store-button {
    display: inline-block;
    text-decoration: none;
    margin: 0 auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
    animation: subtleFadeIn 0.5s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.app-store-button:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.app-store-button:active {
    transform: scale(0.98);
}

.app-store-badge {
    height: 60px;
    width: auto;
    display: block;
}

.demo-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 120px;
    position: relative;
    pointer-events: none;
}

.phone-container {
    position: relative;
    width: 330px;
    height: 718px;
    pointer-events: none;
    user-select: none;
    touch-action: none;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
}

.screen.active {
    opacity: 1;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    overflow: hidden;
}

.screenshot-img.full-height {
    height: 100%;
    margin-top: 0;
    object-fit: cover;
    object-position: center;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    margin-bottom: 120px;
}

.feature {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.feature p {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.waitlist-section {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--light-blue) 100%);
    padding: 80px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 80px;
}

.waitlist-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.waitlist-section p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-group .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.form-group .checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 600;
    display: none;
}

.footer {
    position: relative;
    margin: 40px auto 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    color: var(--dark-gray);
    padding: 20px 40px;
    text-align: center;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 15px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header {
        padding: 20px 0;
        width: 95%;
    }
    
    .header-content {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-content .logo {
        position: static;
        transform: none;
        left: auto;
    }
    
    .logo-img {
        height: 30px !important;
    }
    
    .logo-text {
        font-size: 1.4rem !important;
    }
    
    .header-content .header-buttons {
        position: static;
        right: auto;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .nav-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
        font-weight: 500;
        white-space: nowrap;
    }
}

/* Extra small devices (iPhone 12 Pro and similar - 390px wide) */
@media (max-width: 430px) {
    .header {
        padding: 15px 0;
    }
    
    .header-content {
        padding: 0 10px;
        gap: 10px;
    }
    
    .logo-img {
        height: 25px !important;
    }
    
    .logo-text {
        font-size: 1.2rem !important;
    }
    
    .header-content .header-buttons {
        gap: 4px;
    }
    
    .nav-button {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .nav-button.instagram-nav {
        padding: 5px 8px;
    }
    
    .instagram-nav-icon {
        width: 14px;
        height: 14px;
    }
    
    .instagram-nav-text {
        font-size: 0.75rem;
    }
    
    .app-store-badge {
        height: 36px;
    }
}

/* Ultra small devices (iPhone SE, older phones - 375px and below) */
@media (max-width: 380px) {
    .logo-text {
        display: none !important;
    }
    
    .nav-button {
        padding: 5px 8px;
        font-size: 0.7rem;
    }

    .main {
        padding: 100px 20px 60px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero {
        width: 100%;
        overflow-x: hidden;
    }

    .hero h1 {
        font-size: 2.8rem;
        width: 100%;
        word-wrap: break-word;
    }

    .hero p {
        font-size: 1.2rem;
        width: 100%;
        word-wrap: break-word;
    }

    .phone-container {
        width: 280px;
        height: 610px;
        pointer-events: none;
        touch-action: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .demo-section {
        pointer-events: none;
        touch-action: pan-y;
    }
    
    .progress-dots,
    .progress-dots .dot {
        pointer-events: auto;
        touch-action: manipulation;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .waitlist-section {
        padding: 60px 20px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .waitlist-form {
        padding: 30px 24px;
        width: 100%;
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    * {
        touch-action: pan-y;
    }

    section, .hero, .demo-section, .features, .waitlist-section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .wave-bg, body::before {
        max-width: 100vw;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .nav-button {
        padding: 6px 14px;
        font-size: 0.85rem;
        border-radius: 6px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
    }
    
    .nav-button.instagram-nav {
        padding: 6px 10px;
    }
    
    .instagram-nav-icon {
        width: 16px;
        height: 16px;
    }
    
    .instagram-nav-text {
        font-size: 0.85rem;
    }
    
    .app-store-badge {
        height: 40px;
    }
    
    .header-buttons {
        gap: 6px;
    }
}

.android-device .header-buttons {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.android-device .nav-button {
    min-width: 120px;
}

.android-device .nav-button.restaurant {
    order: -1;
}

.ios-device .header-buttons {
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.ios-device .nav-button {
    min-width: auto;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes subtleFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-popIn {
    animation: popIn 0.6s ease-out forwards;
    opacity: 0;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}