/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    color-scheme: dark;
    color: #f1f5f9;
    background: var(--dark);
}

body.dark-mode #navbar {
    background: rgba(15, 23, 42, 0.95) !important;
}

body.dark-mode .nav-menu a {
    color: #f1f5f9;
}

body.dark-mode section {
    background: var(--dark-light) !important;
    color: #f1f5f9;
}

body.dark-mode section.hero,
body.dark-mode .problem-section,
body.dark-mode .cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

body.dark-mode .problem-section,
body.dark-mode .data-sources,
body.dark-mode .features-section,
body.dark-mode .how-it-works,
body.dark-mode .target-users,
body.dark-mode .pricing-section,
body.dark-mode .testimonials {
    background: var(--dark-light) !important;
}

body.dark-mode .section-header h2,
body.dark-mode .step h3,
body.dark-mode .user-card h3,
body.dark-mode .feature-content h3,
body.dark-mode .pricing-header h3,
body.dark-mode .testimonial-card {
    color: #f1f5f9;
}

body.dark-mode .section-header p,
body.dark-mode .feature-content p,
body.dark-mode .step p {
    color: #cbd5e1;
}

body.dark-mode .feature-list li,
body.dark-mode .feature-list li a {
    color: #f1f5f9;
}

body.dark-mode .problem-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .step {
    background: var(--dark) !important;
    color: #f1f5f9;
}

body.dark-mode .source-card {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}

body.dark-mode .source-card.featured-source {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25)) !important;
}

body.dark-mode .source-card p {
    color: #cbd5e1;
}

body.dark-mode .footer {
    background: #0f0f1a !important;
}

body.dark-mode .testimonial-card {
    background: var(--dark) !important;
    color: #f1f5f9;
}

body.dark-mode .testimonial-text {
    color: #cbd5e1;
}

body.dark-mode .author-role {
    color: #94a3b8;
}

body.dark-mode .pricing-card {
    background: var(--dark) !important;
    color: #f1f5f9;
}

body.dark-mode .pricing-card.featured {
    background: var(--gradient-purple) !important;
}

body.dark-mode .allergy-profile {
    background: var(--dark) !important;
}

body.dark-mode .allergy-item {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* ===================================
   NAVIGATION
   =================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    display: none;
}

@media (min-width: 768px) {
    .logo-text {
        display: inline;
    }
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 3px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    padding: 0.5rem;
    margin-left: 1rem;
}

.theme-toggle-btn:hover {
    transform: rotate(20deg);
}

.theme-icon {
    display: inline-block;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 20s infinite;
}

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(100px, -100px); }
    50% { transform: translate(-50px, -200px); }
    75% { transform: translate(-100px, -100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

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

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Phone Mockup */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.phone-mockup {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.phone-frame {
    width: 100%;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    width: 100%;
    height: 100%;
    background: white;
    animation: screen-glow 2s infinite;
}

@keyframes screen-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float-card 3s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    right: -80px;
    animation-delay: 0s;
}

.card-2 {
    top: 250px;
    left: -80px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    right: -80px;
    animation-delay: 2s;
}

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

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

.card-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

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

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--gradient-purple);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   PROBLEM SECTION
   =================================== */
.problem-section {
    background: var(--dark);
    color: white;
}

.problem-section .section-header h2,
.problem-section .section-header p {
    color: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.problem-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    background: white;
    padding: 100px 0 0 0;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-row {
    padding: 5rem 0;
}

.feature-row > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Vibrant backgrounds for each feature */
.feature-row:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.feature-row:nth-child(2) {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.feature-row:nth-child(3) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.feature-row:nth-child(4) {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.feature-row:nth-child(5) {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.feature-row:nth-child(6) {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.feature-row:nth-child(1) .feature-content h3,
.feature-row:nth-child(1) .feature-content p,
.feature-row:nth-child(1) .feature-list li {
    color: white;
}

.feature-row:nth-child(2) .feature-content h3,
.feature-row:nth-child(2) .feature-content p,
.feature-row:nth-child(2) .feature-list li {
    color: white;
}

.feature-row:nth-child(3) .feature-content h3 {
    color: #2d3436;
}

.feature-row:nth-child(3) .feature-content p,
.feature-row:nth-child(3) .feature-list li {
    color: #636e72;
}

.feature-row:nth-child(4) .feature-content h3 {
    color: #2d3436;
}

.feature-row:nth-child(4) .feature-content p,
.feature-row:nth-child(4) .feature-list li {
    color: #636e72;
}

.feature-row:nth-child(5) .feature-content h3,
.feature-row:nth-child(5) .feature-content p,
.feature-row:nth-child(5) .feature-list li {
    color: white;
}

.feature-row:nth-child(6) .feature-content h3,
.feature-row:nth-child(6) .feature-content p,
.feature-row:nth-child(6) .feature-list li {
    color: white;
}

.feature-row.reverse .container {
    direction: rtl;
}

.feature-row.reverse .container > * {
    direction: ltr;
}

.feature-badge {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: rotate-badge 10s linear infinite;
}

@keyframes rotate-badge {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(5deg); }
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Feature Visuals */
.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated Scanner */
.animated-scanner {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--gradient-purple);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-2xl);
}

.scanner-frame {
    width: 250px;
    height: 250px;
    border: 3px dashed white;
    border-radius: 10px;
    position: relative;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 3px); }
}

.barcode-sample {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.barcode-line {
    width: 3px;
    height: 40px;
    background: black;
}

.barcode-line:nth-child(even) {
    width: 5px;
}

/* Safety Meter */
.safety-meter {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.meter-arc {
    width: 250px;
    height: 125px;
    position: relative;
    overflow: hidden;
}

.arc-section {
    position: absolute;
    bottom: 0;
    width: 250px;
    height: 125px;
    border-radius: 250px 250px 0 0;
    border: 30px solid;
}

.arc-section.green {
    border-color: var(--success);
    clip-path: polygon(0% 0%, 33% 0%, 33% 100%, 0% 100%);
}

.arc-section.yellow {
    border-color: var(--warning);
    clip-path: polygon(33% 0%, 67% 0%, 67% 100%, 33% 100%);
}

.arc-section.red {
    border-color: var(--danger);
    clip-path: polygon(67% 0%, 100% 0%, 100% 100%, 67% 100%);
}

.meter-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 100px;
    background: var(--dark);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-60deg);
    animation: needle-swing 3s ease-in-out infinite;
}

@keyframes needle-swing {
    0%, 100% { transform: translateX(-50%) rotate(-60deg); }
    50% { transform: translateX(-50%) rotate(60deg); }
}

.meter-label {
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.score {
    color: var(--success);
}

/* Allergy Profile */
.allergy-profile {
    position: relative;
    width: 350px;
    height: 350px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allergy-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    transition: var(--transition);
    opacity: 0.4;
}

.allergy-item.active {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid var(--primary);
    opacity: 1;
}

.allergy-item .icon {
    font-size: 2rem;
}

.allergy-item .label {
    font-weight: 600;
    color: var(--dark);
}

.alert-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--danger);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-xl);
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Family Avatars */
.family-avatars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
}

.avatar-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
}

.avatar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.avatar-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.avatar {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

/* UI Showcase */
.ui-showcase {
    position: relative;
    width: 300px;
    height: 300px;
    background: var(--dark);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
}

.theme-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.theme-option {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.theme-option.active {
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.ui-elements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ui-card {
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: card-pulse 2s ease-in-out infinite;
}

.ui-card:nth-child(1) { animation-delay: 0s; }
.ui-card:nth-child(2) { animation-delay: 0.3s; }
.ui-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes card-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how-it-works {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.step {
    flex: 1;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    font-size: 4rem;
    margin: 1rem 0;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    line-height: 1.8;
}

.step-arrow {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 800;
}

/* ===================================
   DATA SOURCES SECTION
   =================================== */
.data-sources {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.data-sources .section-header h2,
.data-sources .section-header p {
    color: white;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.source-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.source-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.source-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.source-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.source-card p {
    color: var(--gray);
    line-height: 1.6;
}

.source-card.featured-source {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--warning);
    position: relative;
}

.source-card.featured-source::before {
    content: '⚠️ Backup Only';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===================================
   MENU SCANNER SECTION
   =================================== */
.menu-scanner {
    position: relative;
    width: 300px;
    height: 350px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.menu-frame {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: var(--gray-light);
    transform: translateX(5px);
}

.menu-item.checked {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--dark);
    font-weight: 600;
}

.scan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===================================
   APP SCREENSHOT SECTION
   =================================== */
.app-screenshot {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-2xl);
    animation: fadeInUp 1s ease 0.5s backwards;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}
.target-users {
    background: linear-gradient(135deg, #ff7675 0%, #fab1a0 100%);
}

.target-users .section-header h2,
.target-users .section-header p {
    color: white;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.user-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.user-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.user-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.user-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ===================================
   PRICING
   =================================== */
.pricing-section {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
    background: var(--gradient-purple);
    color: white;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card.featured .pricing-header h3 {
    color: white;
}

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

.currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0.25rem;
}

.period {
    color: var(--gray);
    font-size: 1rem;
}

.pricing-card.featured .period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card.featured .pricing-features li {
    color: white;
}

.check {
    color: var(--success);
    font-weight: 800;
    font-size: 1.25rem;
}

.pricing-card.featured .check {
    color: white;
}

/* ===================================
   TESTIMONIALS
   =================================== */
.testimonials {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stars {
    color: var(--warning);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 3rem;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
}

.author-role {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    background: var(--gradient-purple);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-button {
    transition: var(--transition);
}

.store-button:hover {
    transform: translateY(-5px);
}

.store-button img {
    height: 60px;
    border-radius: 10px;
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   BACK TO TOP
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-left"] {
    transform: perspective(1000px) rotateY(30deg);
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(1000px) rotateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        margin-top: 3rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .step-arrow {
        display: none;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .pricing-cards,
    .users-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Download Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-button-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.store-button-large:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.store-button-large svg {
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
}

.store-name {
    font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 700;
}

body.dark-mode .modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .store-button-large {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-mode .store-button-large:hover {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-mode .store-label {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .store-name {
    color: white;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Phone Content */
.phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    gap: 1rem;
}

.phone-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

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

.phone-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.phone-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.scanning-indicator {
    position: relative;
    width: 80px;
    height: 80px;
    margin-top: 1rem;
}

.scan-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

.scan-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.scan-ring:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        width: 60px;
        height: 60px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}
