/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-color: #ffffff;
    color: #1c1c1e;
    line-height: 1.6;
}

/* CSS Variables (Theme Colors) */
:root {
    --primary: #55afef;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #1c1c1e;
    --muted: #f5f5f7;
    --muted-foreground: #6e6e73;
    --border: #e5e5e7;
    --card: #ffffff;
    --card-foreground: #1c1c1e;
    --radius: 8px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}

    .site-header .container {
        display: flex;
        height: 64px;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 63px;
    width: auto;
}

.logo-icon {
    display: inline-flex;
    height: 32px;
    width: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: -1; /* Move to the beginning */
}

    .mobile-menu-btn span {
        width: 20px;
        height: 2px;
        background-color: var(--foreground);
        transition: all 0.3s;
    }

@media (max-width: 767px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        display: none;
        z-index: 50;
    }

        .nav.show {
            display: flex;
        }

    .mobile-menu-btn {
        display: flex !important;
    }

    .site-header .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
    }
}

.nav-link {
    font-size: 1rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

    .nav-link:hover {
        color: var(--foreground);
    }

.header-actions {
    margin-left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .header-actions {
        margin-left: 0;
        justify-self: end;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .btn-primary.btn-wide {
        padding: 0.75rem 2rem;
        min-width: 150px;
    }

    .btn-primary:hover {
        background-color: #5a4fcf;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
}

.icon {
    height: 16px;
    width: 16px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hero-section {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0 0.25rem;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: linear-gradient(to bottom, rgba(11, 111, 233, 0.1), transparent, transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    padding: 0.5rem 0 4rem;
    align-items: center;
    margin-top: -2rem;
}

.hero-content {
    order: 2;
}

@media (max-width: 640px) {
    .hero-content {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 0.75rem;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background-color: rgba(108, 92, 231, 0.1);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.hero-title {
    margin-top: 1rem;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
}

.hero-description {
    margin-top: 1rem;
    max-width: 65ch;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

@media (max-width: 640px) {
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 0.875rem;
    }
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

        .hero-actions .btn {
            text-align: center;
            justify-content: center;
        }
}

.link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

    .link:hover {
        color: var(--foreground);
    }

.feature-list {
    margin-top: 2rem;
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

    .feature-item .check-icon {
        margin-top: 0.125rem;
    }

/* Coming Soon Banner */

.check-icon {
    height: 20px;
    width: 20px;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
    order: 1;
}

.hero-bg-blur {
    position: absolute;
    left: -2.5rem;
    top: -2.5rem;
    height: 18rem;
    width: 18rem;
    border-radius: 50%;
    background-color: rgba(108, 92, 231, 0.2);
    filter: blur(48px);
    display: none;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-img {
    height: 20rem;
    width: 100%;
    object-fit: contain;
    background-color: white;
    padding: 2rem;
}

@media (max-width: 640px) {
    .hero-img {
        height: 15rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-img {
        height: 12rem;
        padding: 0.5rem;
    }
}

/* About Section */
.about-section {
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(91, 190, 239, 0.1), transparent, transparent);
}

@media (max-width: 640px) {
    .about-section {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 0 0.25rem;
    }
}

.about-p {
    font-size: 1.25rem;
}


.about-grid {
    display: grid;
    gap: 2rem;
    padding: 3.5rem 0;
}

.about-title {
    font-size: 2.25rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .about-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 1.5rem;
    }
}

.about-description {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    color: var(--muted-foreground);
}

@media (max-width: 640px) {
    .about-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .about-description {
        font-size: 1rem;
    }
}

.features-grid {
    display: grid;
    gap: 1rem;
}

.feature-card {
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    margin: 0 0.25rem;
}

@media (max-width: 480px) {
    .feature-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.125rem;
    }
}

.card-description {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

@media (max-width: 640px) {
    .card-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card-description {
        font-size: 0.875rem;
    }
}

/* Tour Section */
.tour-section {
    padding: 4rem 0;
}

@media (max-width: 640px) {
    .tour-section {
        padding: 3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .tour-section {
        padding: 2.5rem 0.25rem;
    }
}

.tour-header {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.tour-title {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.tour-description {
    margin-top: 0.75rem;
    color: var(--muted-foreground);
}

.tour-content {
    max-width: 64rem;
    margin: 2.5rem auto 0;
}

.tour-card {
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 0.25rem;
}

@media (max-width: 480px) {
    .tour-card {
        margin: 0 0.5rem;
    }
}

.tour-card-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tour-icon {
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.play-icon {
    height: 20px;
    width: 20px;
}

.tour-card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.tour-card-description {
    margin-top: 0.5rem;
    color: var(--muted-foreground);
}

.tour-video {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

@media (max-width: 640px) {
    .tour-video {
        padding: 0 1rem 1rem;
        margin: 1rem 0;
    }

        .tour-video video {
            width: 100%;
            height: auto;
            max-width: 100%;
        }
}

@media (max-width: 480px) {
    .tour-video {
        padding: 0 0.5rem 0.5rem;
    }

        .tour-video .play-button {
            width: 60px;
            height: 60px;
        }

            .tour-video .play-button::before {
                border-left: 15px solid white;
                border-top: 9px solid transparent;
                border-bottom: 9px solid transparent;
            }
}

.tour-video .play-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

    .tour-video .play-button::before {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-left: 20px solid white;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 5px;
    }

.tour-video video {
    z-index: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    position: relative;
}

    .modal-header h2 {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .modal-header p {
        margin-top: 0.5rem;
        color: var(--muted-foreground);
        font-size: 0.875rem;
    }

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-foreground);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        color: var(--foreground);
    }

.login-form {
    padding: 0 1.5rem 1.5rem;
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

    .form-group label {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .form-group input {
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 0.875rem;
        transition: border-color 0.2s;
        font-family: inherit;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
        }

/* Responsive Design */
@media (min-width: 768px) {
    .nav {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .site-header .container {
        display: flex;
        justify-content: flex-end;
        position: relative;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 6rem 0;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-bg-blur {
        display: block;
    }

    .hero-img {
        height: 26.25rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr 2fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tour-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Demo Form Styles */
.demo-form-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, rgba(91, 190, 239, 0.1), transparent, transparent);
}

@media (max-width: 640px) {
    .demo-form-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .demo-form-card {
        padding: 1rem;
        margin: 0 0.5rem;
    }
}

.demo-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s;
    background-color: var(--background);
}

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.field-validation-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 2rem 0.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0.75rem 1.5rem;
    }
}

.footer-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 2rem;
}

.footer-section:first-child {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.footer-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 300px;
    text-align: justify;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    color: var(--primary);
    transition: all 0.2s;
    text-decoration: none;
}

    .social-link:hover {
        background-color: var(--primary);
        color: white;
        transform: translateY(-2px);
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .social-link.company-logo {
        width: 40px;
        height: 40px;
        padding: 4px;
    }

        .social-link.company-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

.footer-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

    .footer-link:hover {
        color: var(--primary);
    }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Additional Mobile Responsive Improvements */
@media (max-width: 480px) {
    .site-header .container {
        height: 56px;
        padding: 0 1rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }

    .hero-grid {
        padding: 2rem 1rem 3rem;
        gap: 2rem;
    }

    .about-grid {
        padding: 2.5rem 1rem;
    }

    .tour-section {
        padding: 2.5rem 1rem;
    }

    .tour-card-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .tour-info {
        text-align: center;
    }

    .feature-item {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    .feature-list {
        padding: 0 0.5rem;
    }

    .coming-soon-banner {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin: 1.5rem 0.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-section:first-child {
        grid-column: span 1;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .hero-description, .about-description {
        text-align: justify;
        line-height: 1.6;
        margin: 1rem 0.5rem;
    }

    .card-description {
        text-align: justify;
        line-height: 1.5;
    }
}

/* Tablet specific adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .demo-form-card {
        margin: 0 2rem;
    }
}

/* Animation for mobile menu */
@media (max-width: 767px) {
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
