/* ===================================
   Design Tokens & CSS Variables
   =================================== */

/* Site Logo */
.site-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.site-logo img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    /* Optional: adds subtle rounding */
}

.site-logo:hover {
    opacity: 0.9;
}

:root {
    /* Colors */
    --primary-amber: #F59E0B;
    --primary-amber-dark: #D97706;
    --accent-green: #10B981;
    --accent-yellow: #FCD34D;
    --brown-warm: #92400E;
    --background-light: #FFFBEB;
    --background-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #6B7280;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 251, 235, 0.9) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ===================================
   Global Styles & Reset
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Background Elements & Animations
   =================================== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.honeycomb-pattern {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background-image:
        repeating-linear-gradient(30deg, transparent, transparent 50px, rgba(245, 158, 11, 0.03) 50px, rgba(245, 158, 11, 0.03) 100px),
        repeating-linear-gradient(150deg, transparent, transparent 50px, rgba(252, 211, 77, 0.03) 50px, rgba(252, 211, 77, 0.03) 100px);
    animation: float 20s ease-in-out infinite;
    opacity: 0.6;
}

.bee {
    position: absolute;
    font-size: 2rem;
    animation: fly 15s linear infinite;
    opacity: 0.7;
}

.bee-1 {
    top: 20%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.bee-2 {
    top: 50%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.bee-3 {
    top: 70%;
    animation-delay: 12s;
    animation-duration: 20s;
}

@keyframes fly {
    0% {
        left: -5%;
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(30px) rotate(-5deg);
    }

    100% {
        left: 105%;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
    z-index: 1;
}

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

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.badge-container {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.badge-free {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.badge-beta {
    background: white;
    color: var(--primary-amber-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-title .highlight {
    color: var(--brown-warm);
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-sm);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.hero-tagline {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.hero-tagline strong {
    font-weight: 700;
    color: white;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-amber-dark);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-yellow);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===================================
   App Showcase Section
   =================================== */
.apps-showcase {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--background-light);
    z-index: 1;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.app-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-card:hover::before {
    opacity: 1;
}

.app-screenshot {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--background-white);
    border-bottom: 3px solid var(--primary-amber);
    position: relative;
}

.screenshot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 10;
}

.app-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.app-card:hover .app-screenshot img {
    transform: scale(1.05);
}

.app-content {
    padding: var(--spacing-md);
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-amber-dark);
    margin-bottom: var(--spacing-sm);
}

.app-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.app-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.app-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--text-dark);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.app-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary-amber);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.app-button:hover {
    background: var(--primary-amber-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.app-button:active {
    transform: translateY(0);
}

/* ===================================
   Benefits Section
   =================================== */
.benefits {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: white;
    z-index: 1;
}

.benefits-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-amber-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--background-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    animation: bounce 2s ease-in-out infinite;
}

.benefit-card:nth-child(1) .benefit-icon {
    animation-delay: 0s;
}

.benefit-card:nth-child(2) .benefit-icon {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) .benefit-icon {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(4) .benefit-icon {
    animation-delay: 0.6s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.benefit-card p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Workflow */
.workflow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.workflow-step {
    text-align: center;
}

.workflow-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-hero);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--spacing-xs);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.workflow-step:hover .workflow-number {
    transform: scale(1.1) rotate(5deg);
}

.workflow-step p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.workflow-arrow {
    font-size: 2rem;
    color: var(--primary-amber);
    font-weight: 700;
}

/* ===================================
   Beta CTA Section
   =================================== */
.beta-cta {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-amber-dark) 100%);
    z-index: 1;
}

.beta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.beta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.beta-content>p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.beta-benefits {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.beta-benefits span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.beta-benefits span:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.beta-note {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.85;
}

/* ===================================
   Footer
   =================================== */
.footer {
    position: relative;
    padding: var(--spacing-lg) 0;
    background: var(--text-dark);
    color: white;
    text-align: center;
    z-index: 1;
}

.footer p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: var(--spacing-lg) 0;
    }

    .apps-grid {
        gap: var(--spacing-md);
    }

    .app-screenshot {
        height: 250px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .workflow {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .bee {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .app-content {
        padding: var(--spacing-sm);
    }

    .app-features li {
        font-size: 0.95rem;
    }
}

/* ===================================
   Accessibility & Performance
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-amber);
    outline-offset: 2px;
}