:root {
    --primary-action: #FBCC50;
    --accent: #EF914A;
    --success: #4C8E33;
    --primary-text: #4A171C;
    --secondary-text: #743C41;
    --primary-background: #FFFBF5;
    --secondary-background: #FFF8EE;
    --tertiary-background: #F5EBE0;
    --white: #FFFFFF;
}

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

body {
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--primary-background);
    color: var(--primary-text);
    line-height: 1.6;
}

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

/* Header */
header {
    padding: 20px 0;
    background-color: var(--secondary-background);
    border-bottom: 1px solid var(--tertiary-background);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-text);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links a {
    color: var(--secondary-text);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.store-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.store-badge-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.store-badge-link:hover {
    transform: translateY(-2px);
}

.store-badge {
    height: 48px;
}

.cta-button {
    background-color: var(--primary-action);
    color: var(--primary-text);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    color: var(--white);
}

/* Hero Section - Simplified for Scroll Layout */
.hero {
    padding: 120px 0 60px; /* More top padding */
    text-align: center;
    background: var(--secondary-background);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-text);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Sticky Scroll Tour Section */
.app-tour {
    position: relative;
    background: linear-gradient(180deg, var(--secondary-background) 0%, var(--primary-background) 100%);
    padding-bottom: 100px;
}

.tour-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.tour-content {
    width: 50%;
    padding-right: 40px;
}

.tour-step {
    height: 100vh; /* Each step is a full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateX(-20px);
}

.tour-step.active {
    opacity: 1;
    transform: translateX(0);
}

.tour-step h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.tour-step p {
    font-size: 1.25rem;
    color: var(--secondary-text);
}

.tour-visual {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-frame {
    width: 300px;
    height: 600px; /* Approximate iPhone ratio */
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(74, 23, 28, 0.2);
    border: 8px solid var(--white);
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.05);
}

.tour-image.active {
    opacity: 1;
    transform: scale(1);
}

/* Floating Bees Decoration */
.bee-decoration {
    position: absolute;
    width: 120px;
    pointer-events: none;
    z-index: 5;
    transition: top 1s ease-out;
}
.bee-top-right { top: 10%; right: -5%; animation: float 5s infinite ease-in-out; }
.bee-bottom-left { bottom: 10%; left: -5%; animation: float 7s infinite ease-in-out; }


/* Features Grid Section */
.features {
    padding: 100px 0;
    background-color: var(--primary-background);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

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

.feature-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(74, 23, 28, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(74, 23, 28, 0.15);
}

.feature-icon {
    height: 80px;
    margin-bottom: 25px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-text);
}

.feature-card p {
    color: var(--secondary-text);
}

/* Privacy Section */
.privacy-section {
    background-color: var(--secondary-background);
    padding: 100px 0;
    text-align: center;
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: var(--primary-text);
    color: var(--tertiary-background);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--primary-action);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-brand p {
    max-width: 300px;
    opacity: 0.8;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--tertiary-background);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer; /* Ensure pointer for onclick actions */
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-action);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    
    .nav-links { display: none; }
    
    /* Disable sticky scroll for mobile */
    .tour-container {
        flex-direction: column;
    }
    .tour-content { width: 100%; padding: 0 20px; }
    .tour-visual {
        position: relative;
        width: 100%;
        height: 500px; /* Fixed height for image area */
        top: 0;
        margin-bottom: 40px;
    }
    .tour-step {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        opacity: 1;
        transform: none;
        text-align: center;
    }
    .phone-frame {
        width: 250px;
        height: 500px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    height: 85vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--secondary-text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-text);
}

.modal-body {
    flex: 1;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 20px 20px;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 0;
    }
    
    .modal-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        max-width: 100%;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    .modal-body iframe {
        border-radius: 0;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
}