/* MotionNest Canada - Website Styles */

:root {
    /* Color Palette */
    --graphite: #1A2230;
    --electric-blue: #3AA7FF;
    --mint: #20C6B7;
    --slate: #6B7280;
    --soft-gray: #A7B0BD;
    --white: #FFFFFF;
    --black: #000000;

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3.1rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Layout */
    --max-width: 1200px;
    --gutter: 1.5rem;
    --border-radius: 1rem;
    --shadow: 0 12px 28px rgba(0,0,0,.24);
    --transition: 200ms ease;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Motion Grid Background */
.motion-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--graphite);
}

.motion-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(58, 167, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(32, 198, 183, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(58, 167, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(32, 198, 183, 0.1) 0%, transparent 50%);
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--electric-blue);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.dot:nth-child(2n) {
    background: var(--mint);
    animation-delay: 1.5s;
}

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

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--space-16) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

/* Typography */
h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

p {
    font-size: var(--text-base);
    color: var(--soft-gray);
    margin-bottom: var(--space-4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 34, 48, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(26, 34, 48, 0.98);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-link {
    color: var(--soft-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--electric-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--electric-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: var(--text-xl);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-text h1 {
    background: linear-gradient(135deg, var(--white), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-6);
}

.hero-text p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--electric-blue), var(--mint));
    color: var(--white);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(58, 167, 255, 0.3);
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.stat-item {
    text-align: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--mint);
    margin-bottom: var(--space-2);
}

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

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--white);
}

.card-excerpt {
    color: var(--soft-gray);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Advantages Section */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--electric-blue), var(--mint));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advantage-content h3 {
    margin-bottom: var(--space-2);
}

.advantage-content p {
    margin: 0;
    font-size: var(--text-sm);
}

/* Reviews */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.review {
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-text {
    font-style: italic;
    margin-bottom: var(--space-4);
    color: var(--soft-gray);
}

.review-author {
    font-weight: 600;
    color: var(--electric-blue);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, rgba(58, 167, 255, 0.1), rgba(32, 198, 183, 0.1));
    padding: var(--space-12);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: var(--space-12);
}

.newsletter-form {
    display: flex;
    gap: var(--space-4);
    max-width: 500px;
    margin: var(--space-6) auto 0;
}

.newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: var(--text-base);
}

.newsletter-input::placeholder {
    color: var(--soft-gray);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.newsletter-btn {
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-btn:hover {
    background: var(--mint);
}

/* Category Header */
.category-header {
    padding-top: 120px;
    padding-bottom: var(--space-12);
    text-align: center;
    background: linear-gradient(135deg, rgba(58, 167, 255, 0.1), rgba(32, 198, 183, 0.1));
}

.category-description {
    max-width: 800px;
    margin: var(--space-4) auto 0;
    font-size: var(--text-lg);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3 {
    margin-bottom: var(--space-4);
    color: var(--electric-blue);
}

.footer-section p,
.footer-section a {
    color: var(--soft-gray);
    text-decoration: none;
    margin-bottom: var(--space-2);
    display: block;
}

.footer-section a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--slate);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--electric-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--mint);
    transform: translateY(-4px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: var(--text-3xl);
    }

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

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

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .section {
        padding: var(--space-12) 0;
    }

    h1 {
        font-size: var(--text-3xl);
    }

    h2 {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .card-content {
        padding: var(--space-4);
    }

    .advantage-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.bg-gradient {
    background: linear-gradient(135deg, rgba(58, 167, 255, 0.1), rgba(32, 198, 183, 0.1));
}
