/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Klosa Brand Colors */
    --primary: #14B8A6;
    --primary-dark: #0F766E;
    --primary-light: #5EEAD4;
    --accent: #F97316;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --gradient-start: #0F766E;
    --gradient-end: #14B8A6;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 120px;
    background: #0F172A;
    position: relative;
    overflow: hidden;
    height: 1000px;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #F8FAFC, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.store-badge {
    display: inline-block;
}

.store-badge img {
    height: 50px;
    width: 150px;
    object-fit: contain;
    transition: transform 0.3s;
}

.store-badge.app-store img {
    height: 50px;
    width: 150px;
}

.store-badge.play-store img {
    height: 50px;
    width: 150px;
}

.store-badge:hover img {
    transform: scale(1.05);
}

/* Phone Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-image-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screenshot {
    position: relative;
    width: 140%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: transparent;
    transform: scale(1.4);
}

.phone-screenshot.active {
    opacity: 1;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--dark-card);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

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

.feature-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--dark-card);
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    margin-top: 60px;
    align-items: center;
}

.user-image-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    left: 29px;
    top: 70px;
    width: 2px;
    height: calc(100% + 30px);
    background: linear-gradient(180deg, var(--primary), transparent);
}

.step:last-child::after {
    display: none;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.step-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Footer */
.footer {
    background: var(--dark-card);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

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

.social-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--dark-card);
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.waitlist-form input,
.waitlist-form select {
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 1rem;
}

.waitlist-form input:focus,
.waitlist-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22C55E;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.success-message p {
    color: #22C55E;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .user-image-container {
        order: 2;
    }

    .steps-list {
        order: 1;
    }

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

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

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .phone-image-container {
        max-width: 280px;
    }

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

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

    .how-it-works-content {
        grid-template-columns: 1fr;
    }

    .user-image {
        max-width: 300px;
    }
}
