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

body {
    overscroll-behavior: none;
    min-width: 0;
}

:root {
    /* Mosaics Labs Brand Colors - Derived from Logo */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(200, 20%, 15%);

    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(200, 20%, 15%);

    /* Primary: Deep Teal from logo */
    --primary: hsl(195, 65%, 25%);
    --primary-foreground: hsl(0, 0%, 98%);

    /* Secondary: Turquoise from logo */
    --secondary: hsl(186, 100%, 42%);
    --secondary-foreground: hsl(0, 0%, 98%);

    /* Muted: Soft background tones */
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(195, 15%, 45%);

    /* Accent: Emerald Green from logo */
    --accent: hsl(174, 56%, 47%);
    --accent-foreground: hsl(0, 0%, 98%);

    /* Success: Lime Green from logo */
    --success: hsl(88, 50%, 55%);
    --success-foreground: hsl(0, 0%, 98%);

    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(195, 65%, 25%);

    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(195, 65%, 25%), hsl(186, 100%, 42%));
    --gradient-secondary: linear-gradient(135deg, hsl(174, 56%, 47%), hsl(88, 50%, 55%));
    --gradient-hero: linear-gradient(135deg, hsl(195, 65%, 25%) 0%, hsl(186, 100%, 42%) 35%, hsl(174, 56%, 47%) 70%, hsl(88, 50%, 55%) 100%);

    /* Shadows */
    --shadow-brand: 0 10px 40px -10px hsl(186, 100%, 42%, 0.3);
    --shadow-elegant: 0 20px 60px -10px hsl(195, 65%, 25%, 0.15);

    /* Animation Values */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --radius: 0.5rem;
}

body {
    font-family: 'Inter', 'system-ui', sans-serif;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
    min-height: 100vh;
}

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

/* Typography */
.font-display {
    font-family: 'Space Grotesk', 'system-ui', sans-serif;
}

.form-input.error,
.form-textarea.error {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}

.form-error {
    color: #b91c1c;
    font-size: .9rem;
    margin-top: .375rem;
}

.form-status {
    margin-top: .75rem;
    font-size: .95rem;
}

.form-status.ok {
    color: #0a7a56;
}

.form-status.err {
    color: #b00020;
}

button[disabled] {
    opacity: .7;
    cursor: not-allowed;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(214, 219, 233, 0.5);
    transition: var(--transition-smooth);
}

.header:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
}

.logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--foreground);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.navigation {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .navigation {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('../src/assets/hero-bg-pattern.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
}

.hero-tech-pattern {
    position: absolute;
    inset: 0;
    background-image: url('../src/assets/hero-tech-pattern.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.1;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out;
}

.hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sparkles-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--secondary);
    margin-right: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.hero-tagline span {
    color: var(--secondary);
    font-weight: 500;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-secondary {
    background: var(--gradient-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-hero {
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 3s ease-in-out infinite;
}

.floating-element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background-color: rgba(0, 191, 255, 0.2);
}

.floating-element-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(64, 224, 208, 0.2);
    animation-delay: 1s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-lg {
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
}

.btn-full {
    width: 100%;
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-brand {
    background: var(--gradient-primary);
    color: white;
}

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

.btn-outline-accent {
    border: 1px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: hsl(186, 100%, 35%);
}

.btn-hero {
    background: var(--gradient-hero);
    color: white;
}

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

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Sections */
.section-header {
    max-width: 48rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: rgba(247, 248, 251, 0.3);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-elegant);
}

.value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.value-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

.stats-card {
    max-width: 64rem;
    margin: 0 auto;
}

.stats-card>div {
    background: var(--gradient-hero);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
}

@media (min-width: 768px) {
    .stats-card>div {
        padding: 1rem !important;
    }
}

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

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 1.25rem;
        font-weight: 500;
    }

}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Products Section */
.products-section {
    padding: 6rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    box-shadow: var(--shadow-brand);
}

.feature-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .product-buttons {
        flex-direction: row;
    }
}

.product-image {
    display: flex;
    justify-content: center;
}

.mockup-container {
    position: relative;
}

.mockup-img {
    max-width: 24rem;
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-smooth);
}

.mockup-img:hover {
    box-shadow: var(--shadow-brand);
}

.floating-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 3s ease-in-out infinite;
}

.floating-bg-1 {
    top: -1.5rem;
    right: -1.5rem;
    width: 6rem;
    height: 6rem;
    background-color: rgba(139, 195, 74, 0.2);
}

.floating-bg-2 {
    bottom: -1.5rem;
    left: -1.5rem;
    width: 8rem;
    height: 8rem;
    background-color: rgba(0, 191, 255, 0.2);
    animation-delay: 2s;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background-color: rgba(247, 248, 251, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-elegant);
}

.service-card:hover .service-icon {
    animation: float 3s ease-in-out infinite;
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

.why-choose-card {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    text-align: center;
}

@media (min-width: 768px) {
    .why-choose-card {
        padding: 3rem;
    }
}

.why-choose-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-choose-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    box-shadow: var(--shadow-brand);
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-text {
    color: var(--muted-foreground);
}

.contact-form-container {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--foreground);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 2rem;
    width: auto;
}

.footer-logo-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-logo-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-foreground);
}

.footer-cin {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-foreground);
}

.social-link i {
    width: 1.25rem;
    height: 1.25rem;
}

/* Icons */
.icon {
    width: 2rem;
    height: 2rem;
}

.icon-primary {
    color: var(--primary);
}

.icon-secondary {
    color: var(--secondary);
}

.icon-accent {
    color: var(--accent);
}

.icon-success {
    color: var(--success);
}

/* Toast */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: var(--success);
    color: var(--success-foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elegant);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

/* Animations */
@keyframes float {

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

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

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

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

    .hero-description {
        font-size: 1.125rem;
    }

    .section-description {
        font-size: 1.125rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.mobile-menu-toggle {
    display: inline-flex;
    background: none;
    border: none;
    margin-left: 1rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.navigation.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 1rem;
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(20, 40, 80, 0.14);
    border-radius: 1rem;
    z-index: 100;
    gap: 2rem;
}

@media (max-width: 767px) {
    .navigation {
        position: absolute;
        top: 70px;
        right: 1rem;
        background: white;
        box-shadow: 0 8px 32px rgba(20, 40, 80, 0.14);
        border-radius: 1rem;
        padding: 1.5rem 2rem;
        gap: 2rem;
    }
}