/* =============================================================================
   DINEOUT.PAGE - PUBLIC LANDING PAGE STYLES (v2)
   ============================================================================= */

/* =============================================================================
   VARIABLES
   ============================================================================= */

:root {
    /* Colors */
    --primary: #E63946;
    --primary-dark: #d62839;
    --primary-light: #ff6b7a;
    --bg-dark: #0f0f14;
    --bg-darker: #0a0a0e;
    --bg-card: #16161d;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --success: #22c55e;
    --warning: #f59e0b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E63946 0%, #ff6b7a 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f14 0%, #0a0a0e 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(230,57,70,0.3);
    
    /* Spacing */
    --section-spacing: 100px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   CONTAINER
   ============================================================================= */

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

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* =============================================================================
   SECTION HELPERS
   ============================================================================= */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230,57,70,0.15);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* =============================================================================
   NAVBAR
   ============================================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15,15,20,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border-color);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.navbar-links {
    display: flex;
    gap: 32px;
}

.navbar-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-actions {
    display: flex;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
}

.mobile-menu a {
    padding: 12px 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.mobile-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* =============================================================================
   HERO
   ============================================================================= */

.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(230,57,70,0.15);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}


.demo-image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.demo-screenshot {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(230,57,70,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    display: block;
}

.qr-float {
    position: absolute;
    top: 20px;
    right: -20px;
    background: white;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.qr-float img {
    width: 80px;
    height: 80px;
    display: block;
    margin-bottom: 8px;
}

.qr-float span {
    font-size: 0.75rem;
    color: #333;
    font-weight: 600;
}

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


/* Phone Mockup */
.hero-visual {
    position: relative;
}




@media (max-width: 900px) {
    .demo-image-container {
        max-width: 320px;
    }
    
    .qr-float {
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 768px) {
    .demo-image-container {
        max-width: 280px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    pointer-events: none;
}

/* =============================================================================
   PROBLEM SECTION
   ============================================================================= */

.problem-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-darker);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================================================
   SOLUTION SECTION
   ============================================================================= */

.solution-section {
    padding: var(--section-spacing) 0;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-text .section-badge {
    margin-bottom: 16px;
}

.solution-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.solution-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.solution-benefits {
    list-style: none;
    margin-bottom: 32px;
}

.solution-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.benefit-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Before/After */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.scenario {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid var(--border-color);
}

.scenario--before {
    border-color: #dc2626;
}

.scenario--before .scenario-label {
    color: #dc2626;
}

.scenario--after {
    border-color: #22c55e;
}

.scenario--after .scenario-label {
    color: #22c55e;
}

.scenario-label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.scenario-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scenario-step {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0;
}

.scenario-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.scenario-step.total-time {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
}

/* =============================================================================
   FEATURES
   ============================================================================= */

.features {
    padding: var(--section-spacing) 0;
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-card--highlight {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(230,57,70,0.1) 0%, transparent 100%);
    border-color: rgba(230,57,70,0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =============================================================================
   HOW IT WORKS
   ============================================================================= */

.how-it-works {
    padding: var(--section-spacing) 0;
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
}

.step-visual {
    min-width: 200px;
}

.step-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.mockup-input {
    background: var(--bg-darker);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.mockup-btn {
    background: var(--bg-darker);
    color: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.menu-mockup .mockup-category {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.menu-mockup .mockup-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.menu-mockup .mockup-add {
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 8px;
}

.qr-mockup {
    display: flex;
    gap: 12px;
}

.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-preview img {
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: block;
}

.qr-preview span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: var(--border-color);
    margin-left: 23px;
}

.steps-cta {
    text-align: center;
    margin-top: 48px;
}

/* =============================================================================
   PERSPECTIVES SECTION
   ============================================================================= */

.perspectives-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-darker);
}

.perspectives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.perspective-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 2px solid var(--border-color);
}

.perspective-card--guest {
    border-color: rgba(34,197,94,0.3);
}

.perspective-card--owner {
    border-color: rgba(59,130,246,0.3);
}

.perspective-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.perspective-icon {
    font-size: 2.5rem;
}

.perspective-header h3 {
    font-size: 1.25rem;
}

.perspective-list {
    list-style: none;
}

.perspective-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.perspective-list li:last-child {
    border-bottom: none;
}

.perspective-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.perspective-card--owner .perspective-list li::before {
    color: #3b82f6;
}

/* =============================================================================
   PRICING
   ============================================================================= */

.pricing {
    padding: var(--section-spacing) 0;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-darker);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.pricing-header {
    background: var(--bg-card);
    padding: 32px;
    text-align: center;
}

.pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-plan {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.pricing-amount .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.pricing-amount .period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 32px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin: 0 32px 24px;
    width: calc(100% - 64px);
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-bottom: 24px;
}

.pricing-comparison {
    max-width: 600px;
    margin: 48px auto 0;
    text-align: center;
    padding: 24px;
    background: var(--bg-darker);
    border-radius: var(--radius-md);
}

.pricing-comparison h4 {
    margin-bottom: 8px;
}

.pricing-comparison p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =============================================================================
   FAQ
   ============================================================================= */

.faq {
    padding: var(--section-spacing) 0;
    background: var(--bg-darker);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.faq-question {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================================================
   FINAL CTA
   ============================================================================= */

.final-cta {
    padding: var(--section-spacing) 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

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

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-feedback {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.footer-feedback a {
    color: var(--primary);
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .qr-float {
        right: 10px;
        top: 10px;
    }
    
    .solution-content {
        grid-template-columns: 1fr;
    }
    
    .solution-text {
        text-align: center;
    }
    
    .solution-text .section-title {
        text-align: center;
    }
    
    .before-after {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step {
        grid-template-columns: auto 1fr;
    }
    
    .step-visual {
        grid-column: 1 / -1;
        margin-top: 16px;
    }
    
    .perspectives-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 60px;
    }
    
    .navbar-links,
    .navbar-actions {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .mobile-menu.open {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    /* HIDE QR FLOAT ON MOBILE - Can't scan from same device */
    .qr-float {
        display: none;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* STACK BEFORE/AFTER VERTICALLY ON MOBILE */
    .before-after {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scenario {
        padding: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}


/* =============================================================================
   SCROLL ANIMATIONS - NO FOUC
   ============================================================================= */

.animate-ready {
    opacity: 0;
    transform: translateY(30px);
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
    .animate-ready {
        opacity: 1;
        transform: none;
    }
    
    .animate-in {
        animation: none;
    }
}