/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #4A90E2;
    --dark-blue: #2C5AA0;
    --green-safe: #34C759;
    --yellow-caution: #FFD60A;
    --red-avoid: #FF3B30;
    --dark-bg: #1C1C1E;
    --gray-text: #8E8E93;
    --light-bg: #F2F2F7;
    --white: #FFFFFF;
    --gradient-start: #5B9FED;
    --gradient-end: #3A7BD5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.traffic-lights {
    display: flex;
    gap: 30px;
    margin: 2.5rem 0;
}

.light-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.light-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.light-item.green .light-circle {
    background: var(--green-safe);
    box-shadow: 0 4px 30px rgba(52, 199, 89, 0.5);
}

.light-item.yellow .light-circle {
    background: var(--yellow-caution);
    box-shadow: 0 4px 30px rgba(255, 214, 10, 0.5);
}

.light-item.red .light-circle {
    background: var(--red-avoid);
    box-shadow: 0 4px 30px rgba(255, 59, 48, 0.5);
}

.light-item span {
    font-weight: 600;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
}

.cta-button img {
    height: 60px;
    transition: transform 0.3s ease;
}

.cta-button:hover img {
    transform: scale(1.05);
}

.cta-button.large img {
    height: 70px;
}

/* Phone Mockup */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1C1C1E;
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 40px 20px 20px;
    color: var(--white);
}

.preview-header {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.preview-status {
    background: rgba(52, 199, 89, 0.15);
    border-radius: 20px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-safe);
    flex-shrink: 0;
    box-shadow: 0 0 30px rgba(52, 199, 89, 0.5);
}

.status-text {
    flex: 1;
    min-width: 0;
}

.status-text h3 {
    font-size: 1.5rem;
    color: var(--green-safe);
    margin-bottom: 0.25rem;
}

.status-text p {
    color: var(--gray-text);
    font-size: 0.75rem;
}

.status-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-safe);
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 4rem;
}

.steps {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 30px auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-icon.camera {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step-icon.analyze {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.step-icon.result {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.step-icon::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 8px;
}

.step-icon.camera::before {
    width: 60px;
    height: 45px;
    border-radius: 10px;
}

.step-icon.camera::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--white);
}

.step-icon.analyze::before {
    background: none;
    border: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.step-icon.result::before {
    width: 30px;
    height: 50px;
    border-radius: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.step h3 {
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 4rem;
}

.feature {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon.instant {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.feature-icon.shield {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.feature-icon.truth {
    background: linear-gradient(135deg, #F7971E 0%, #FFD200 100%);
}

.feature-icon.nutrition {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
}

.feature-icon.tailored {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
}

.feature-icon.privacy {
    background: linear-gradient(135deg, #30CFD0 0%, #330867 100%);
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 8px;
}

.feature h3 {
    color: #333;
    margin-bottom: 1rem;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* Profiles Section */
.profiles {
    padding: 100px 0;
    background: var(--white);
}

.profile-examples {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.profile-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.profile-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    transform: scale(1.05);
}

.profile-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.profile-card.highlight:hover {
    transform: translateY(-5px) scale(1.07);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-avatar.john {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.profile-avatar.allergic {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.profile-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.profile-age {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-card.highlight .profile-age {
    color: rgba(255, 255, 255, 0.8);
}

.profile-health {
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.profile-card.highlight .profile-health {
    color: rgba(255, 255, 255, 0.9);
}

.profile-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.profile-card.highlight .profile-score {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-safe);
}

.score-label {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.profile-card.highlight .score-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
}

.benefits h2 {
    color: var(--white);
    margin-bottom: 3rem;
}

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

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.check-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green-safe);
    flex-shrink: 0;
    position: relative;
}

.check-icon::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    opacity: 0.9;
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 3rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin: 1.5rem 0 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-note {
    margin-top: 1rem;
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #0A0A0A;
    color: var(--gray-text);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #FF6B47;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF8E6E;
    text-decoration: underline;
}

.copyright {
    color: #FF6B47;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .profile-examples {
        flex-direction: column;
        align-items: center;
    }

    .profile-card.highlight {
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .traffic-lights {
        gap: 20px;
    }

    .light-circle {
        width: 50px;
        height: 50px;
    }

    .light-item span {
        font-size: 0.9rem;
    }

    .cta-button img {
        height: 50px;
    }

    .cta-button.large img {
        height: 60px;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .how-it-works,
    .features,
    .profiles,
    .benefits,
    .cta {
        padding: 60px 0;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
}