:root {
    /* Colors from style guide - adapted for light theme */
    --primary: #22C55E;
    --primary-50: #F0FDF4;
    --primary-100: #DCFCE7;
    --primary-200: #BBF7D0;
    --primary-300: #86EFAC;
    --primary-400: #4ADE80;
    --primary-500: #22C55E;
    --primary-600: #16A34A;
    --primary-700: #15803D;
    --primary-800: #166534;
    --primary-900: #14532D;

    --secondary: #3B82F6;
    --secondary-50: #EFF6FF;
    --secondary-100: #DBEAFE;
    --secondary-200: #BFDBFE;
    --secondary-500: #3B82F6;
    --secondary-600: #2563EB;

    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --white: #FFFFFF;
    --black: #000000;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
}

/* Animated Background */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -20px); }
    50% { transform: translate(20px, -10px); }
    75% { transform: translate(-10px, 20px); }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--primary-400));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-200));
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-300), var(--primary-100));
    bottom: 20%;
    left: 30%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-200), var(--secondary-100));
    top: 40%;
    right: 40%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: 'Teamke';
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-200) 0%, var(--secondary-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Hero Countdown */
.hero-countdown {
    margin-top: 40px;
}

.countdown-header {
    margin-bottom: 25px;
    position: relative;
}

.countdown-label {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(22, 163, 74, 0.08) 100%);
    -webkit-text-fill-color: var(--primary-600);
    position: relative;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 12px;
    min-width: 80px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.time-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.time-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Hero Download Buttons */
.hero-download-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
    flex-wrap: wrap;
}

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

.phone-mockup {
    position: relative;
    transform: perspective(1000px) rotateY(-10deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-10deg) translateY(-20px); }
}

.phone-frame {
    width: 360px;
    height: 780px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 40px 80px rgba(0, 0, 0, 0.1);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 22px;
    background: #f5f5f5;
    border-radius: 12px;
    z-index: 10;
}

.phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
}

.demo-placeholder {
    text-align: center;
    color: var(--gray-400);
    cursor: pointer;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.app-screenshot-modal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
}

.demo-video, .modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 20px;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.25);
}

.video-overlay i {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    animation: playPulse 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.video-overlay p {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}


.phone-mockup {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-10deg) scale(1.02);
}

.demo-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.phone-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.2) 0%, transparent 70%);
    filter: blur(20px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--gray-50);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-200), transparent);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--gray-900);
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-200);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 3px var(--primary-100);
}

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

.feature-card.featured {
    background: linear-gradient(135deg, var(--white), var(--primary-50));
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

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

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
    transform: translateY(-10px);
}

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


.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-600);
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: iconShine 3s linear infinite;
}

@keyframes iconShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gray-900);
    font-weight: 700;
}

.feature-list {
    list-style: none;
    margin-bottom: 20px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--primary);
    font-size: 0.875rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.download-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary-100) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, var(--secondary-100) 0%, transparent 30%);
    opacity: 0.5;
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 50px;
}

.download-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-900);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.download-btn.disabled {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    opacity: 0.6;
}

.download-btn.disabled i {
    color: var(--gray-400);
}

.download-btn.disabled .btn-large,
.download-btn.disabled .btn-small {
    color: var(--gray-400);
}

.download-btn.disabled:hover {
    transform: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-color: var(--gray-200);
    background: var(--gray-100);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
    background: var(--primary-50);
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn i {
    font-size: 2rem;
}

.ios-btn i {
    color: var(--gray-900);
}

.android-btn i {
    color: #0F9D58;
}

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

.btn-small {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.btn-large {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.coming-soon {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.125rem;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

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

/* Contact Footer */
.contact {
    padding: 60px 0 30px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.contact-content {
    text-align: center;
    margin-bottom: 40px;
}

.contact-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.contact-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-email:hover {
    transform: translateX(5px);
    color: var(--primary-600);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Phone Modal */
.phone-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: var(--white);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-phone-frame {
    width: 390px;
    height: 845px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.3);
}

.modal-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.modal-phone-notch {
    position: absolute;
    top: 12px;
    left: 49%;
    transform: translateX(-50%);
    width: 164px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 12px;
    z-index: 10;
}

.modal-phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
}

/* Medium devices - tablets */
@media (max-width: 992px) {
    .hero-countdown {
        text-align: center;
    }
    
    .countdown-header {
        text-align: center;
    }
    
    .countdown-timer {
        justify-content: center;
    }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-phone-frame {
        width: 90vw;
        max-width: 350px;
        height: calc(90vw * 2.1667);
        max-height: 758px;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-phone {
        margin-top: 40px;
    }

    .phone-mockup {
        transform: perspective(1000px) rotateY(0deg);
    }

    @keyframes phoneFloat {
        0%, 100% { transform: perspective(1000px) rotateY(0deg) translateY(0); }
        50% { transform: perspective(1000px) rotateY(0deg) translateY(-20px); }
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

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

    .feature-card.featured {
        transform: scale(1);
    }

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

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .phone-frame {
        width: 300px;
        height: 650px;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 15px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .hero-countdown {
        margin-top: 30px;
    }
    
    .countdown-timer {
        gap: 8px;
        justify-content: center;
    }
    
    .time-unit {
        padding: 10px 8px;
        min-width: 60px;
    }
    
    .time-value {
        font-size: 1.75rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .countdown-label {
        text-align: center;
        font-size: 1.1rem;
    }

    .shape {
        display: none;
    }
}