/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #059669;
    --primary-hover: #047857;
    --secondary-color: #f0fdf4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    --border-color: #dcfce7;
    --background: #ffffff;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

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

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero demo */
.hero-demo {
    animation: slideInRight 1s ease-out 0.2s both;
}

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

.demo-board {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    box-shadow: var(--shadow-xl);
}

.demo-column {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    min-height: 350px;
    position: relative;
    transition: all 0.3s ease;
}

.demo-column-header {
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.demo-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.demo-card:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Removed conflicting animations for smoother card cycling */

.demo-card-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.demo-card-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.demo-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Features section */
.features {
    padding: 6rem 2rem;
    background: var(--background);
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.feature-card {
    background: var(--background);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Feature demos */
.feature-demo {
    margin-top: 2rem;
}

.browser-mockup {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.browser-bar {
    background: #f1f5f9;
    padding: 0.75rem;
    display: flex;
    align-items: center;
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-dots span:first-child { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:last-child { background: #10b981; }

.browser-content {
    padding: 2rem;
    text-align: center;
}

.storage-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

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

.storage-icon {
    font-size: 2rem;
}

.storage-text {
    font-weight: 500;
    color: var(--text-primary);
}

.devices-mockup {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
}

.device {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: deviceFloat 3s ease-in-out infinite;
}

.device.phone {
    width: 60px;
    height: 120px;
    background: #1f2937;
}

.device.tablet {
    width: 100px;
    height: 80px;
    background: #374151;
    animation-delay: 0.5s;
}

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

.device-screen {
    background: white;
    margin: 4px;
    height: calc(100% - 8px);
    border-radius: 4px;
    padding: 4px;
}

.mini-board {
    display: flex;
    gap: 2px;
    height: 100%;
}

.mini-column {
    flex: 1;
    background: var(--secondary-color);
    border-radius: 2px;
}

.workflow-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 12px;
    animation: workflowPulse 3s ease-in-out infinite;
}

.workflow-step[data-step="2"] { animation-delay: 0.5s; }
.workflow-step[data-step="3"] { animation-delay: 1s; }

@keyframes workflowPulse {
    0%, 100% { 
        transform: scale(1);
        background: var(--secondary-color);
    }
    33% { 
        transform: scale(1.1);
        background: var(--gradient-primary);
        background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    }
}

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

.step-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* CTA section */
.cta {
    background: var(--gradient-primary);
    padding: 6rem 2rem;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideUp 1s ease-out;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.2s both;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-demo {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .demo-board {
        grid-template-columns: repeat(3, 1fr);
        padding: 0.75rem;
        max-width: 340px;
        margin: 0 auto;
        gap: 0.5rem;
        min-height: auto;
    }
    
    .demo-column {
        min-height: 140px;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .demo-column-header {
        font-size: 0.7rem;
        padding: 0.25rem 0;
        margin-bottom: 0.5rem;
        text-align: center;
        font-weight: 600;
    }
    
    .demo-card {
        padding: 0.4rem;
        margin-bottom: 0.4rem;
        font-size: 0.7rem;
        animation: none !important;
        transition: none !important;
        border-radius: 6px;
        flex-shrink: 0;
        min-height: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .demo-card:hover {
        transform: none !important;
    }
    
    .demo-card-title {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        text-align: center;
    }
    
    .demo-card-tags {
        margin-top: 0.2rem;
        text-align: center;
    }
    
    .demo-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
        transform: none !important;
    }
    
    .feature-card:hover {
        transform: none !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .workflow-demo {
        flex-direction: column;
    }
    
    /* Disable heavy animations on mobile for better performance */
    .btn-primary:hover, .btn-secondary:hover {
        transform: none !important;
    }
    
    .hero::before {
        animation: none !important;
    }
    
    .hero {
        transform: none !important;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    .devices-mockup {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .demo-board {
        max-width: 320px;
        padding: 0.5rem;
    }
    
    .demo-column {
        min-height: 130px;
        padding: 0.4rem;
    }
    
    .demo-card {
        min-height: 35px;
        padding: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .features {
        padding: 4rem 1rem;
    }
    
    .cta {
        padding: 4rem 1rem;
    }
}