/* Eatnote Website - Shared Styles */
/* Color scheme: White/Blue (matching Figma app design) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --primary-blue: #007AFF;
    --primary-blue-dark: #155DFC;
    --primary-blue-light: #50A2FF;
    --page-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #1d1d1f;
    --text-secondary: #666;
    --blue-tint: rgba(0, 122, 255, 0.1);
    --blue-tint-strong: rgba(0, 122, 255, 0.15);
}

/* SVG Icon System */
.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.icon-svg svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-svg.filled svg {
    fill: currentColor;
    stroke: none;
}
.icon-svg.gradient svg {
    stroke: url(#icon-gradient);
}
/* Logo icon special styling */
.logo-icon-svg {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #50A2FF 0%, #155DFC 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}
.logo-icon-svg svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}
/* Feature icon sizing */
.feature-icon-svg {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}
.feature-icon-svg svg {
    width: 32px;
    height: 32px;
    stroke: #007AFF;
    fill: none;
    stroke-width: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #F8FAFC;
}

/* Navigation */
nav {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(248,250,252,0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3em;
    text-decoration: none;
    color: #1d1d1f;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #50A2FF 0%, #155DFC 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: #007AFF;
}

/* Floating Food Icons Background */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.06;
    z-index: 0;
}
.floating-icon {
    position: absolute;
    font-size: 56px;
    animation: float 8s ease-in-out infinite;
}
.floating-icon svg {
    stroke: #007AFF !important;
}
.floating-icon:nth-child(1) { top: 8%; left: 5%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 15%; right: 8%; animation-delay: 1.2s; }
.floating-icon:nth-child(3) { top: 55%; left: 3%; animation-delay: 2.4s; }
.floating-icon:nth-child(4) { top: 75%; right: 5%; animation-delay: 0.6s; }
.floating-icon:nth-child(5) { top: 35%; left: 12%; animation-delay: 1.8s; }
.floating-icon:nth-child(6) { top: 85%; left: 15%; animation-delay: 3s; }
.floating-icon:nth-child(7) { top: 25%; right: 18%; animation-delay: 2s; }
.floating-icon:nth-child(8) { top: 65%; right: 12%; animation-delay: 0.8s; }
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* Common Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    color: #007AFF;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 122, 255, 0.15);
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 16px;
}
.section-header p {
    color: #666;
    font-size: 1.15em;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 40px;
    background: linear-gradient(180deg, #F8FAFC 0%, #ffffff 100%);
}
.how-it-works .section-header {
    margin-bottom: 48px;
}
.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.step {
    text-align: center;
    flex: 0 0 200px;
    position: relative;
}
.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #50A2FF 0%, #155DFC 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    margin: 0 auto 16px;
}
.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(0, 122, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover .step-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}
.step-icon svg {
    width: 36px;
    height: 36px;
}
.step h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}
.step p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}
.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 60px;
}
.step-arrow svg {
    width: 24px;
    height: 24px;
    opacity: 0.4;
}

@media (max-width: 900px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    .step-arrow {
        display: none;
    }
    .step {
        flex: 0 0 auto;
        max-width: 280px;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #50A2FF 0%, #155DFC 100%);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
}
.btn-secondary {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.btn-secondary:hover {
    color: #007AFF;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 122, 255, 0.1);
}
.feature-card h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 12px;
}
.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Page Hero */
.page-hero {
    padding: 140px 40px 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.page-hero h1 span {
    background: linear-gradient(135deg, #50A2FF 0%, #155DFC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: 1.25em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 80px 40px;
    position: relative;
    z-index: 1;
}
.content-section.white {
    background: white;
}
.content-section.gray {
    background: #f8f8f8;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.two-col.reverse {
    direction: rtl;
}
.two-col.reverse > * {
    direction: ltr;
}
.two-col-text h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 16px;
}
.two-col-text p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 16px;
}
.two-col-visual {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    font-size: 80px;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 24px;
}
.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: #444;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007AFF;
    font-weight: 700;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-section h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 1.15em;
    opacity: 0.8;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-primary {
    background: white;
    color: #007AFF;
}
.cta-section .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 50px 60px;
    background: #F8FAFC;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-links {
    display: flex;
    gap: 32px;
}
.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #007AFF;
}

/* Responsive */
@media (max-width: 900px) {
    nav {
        padding: 16px 20px;
    }
    .nav-links {
        display: none;
    }
    .container {
        padding: 0 20px;
    }
    .page-hero {
        padding: 120px 20px 60px;
    }
    .page-hero h1 {
        font-size: 2.2em;
    }
    .content-section {
        padding: 60px 20px;
    }
    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .two-col.reverse {
        direction: ltr;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 2em;
    }
    footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 40px 20px;
    }
    .floating-icons {
        opacity: 0.04;
    }
}
