/* Base styles and reset */
:root {
    --primary: #5c6bc0;
    --primary-dark: #3f51b5;
    --primary-light: #e3f2fd;
    --accent: #ffca28;
    --text: #2d3748;
    --text-light: #718096;
    --bg-light: #f5f7ff;
    --bg-dark: #1a1a2e;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(92, 107, 192, 0.3);
    --shadow-lg: 0 6px 30px rgba(92, 107, 192, 0.2);
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

img, svg {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

p {
    margin-bottom: 20px;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.button.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(92, 107, 192, 0.5);
}

.button.primary:active {
    transform: translateY(1px) scale(0.98);
}

/* White button for increased contrast */
.button.white {
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow-md);
}

.button.white:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.button.white:active {
    transform: translateY(1px) scale(0.98);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-dark);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        gap: 15px;
        justify-content: center;
        margin-top: 10px;
    }
    
    nav {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 10px;
    }
}

/* Hero section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c6bc0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 650px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    width: 100%;
    max-width: 350px;
    animation: floatUp 1.2s ease-out forwards;
    position: relative;
}

/* Feature sections */
.feature {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature:nth-child(even) {
    background-color: var(--bg-light);
}

.feature .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.feature-image {
    width: 100%;
    max-width: 350px;
    margin-bottom: 40px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.feature-content {
    max-width: 600px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.feature-content.animated, .feature-image.animated {
    transform: translateY(0);
    opacity: 1;
}

/* CTA section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta h2, .cta p {
    color: white;
    position: relative;
    z-index: 1;
}

.cta .container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.trust-elements {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.rating, .users, .testimonial {
    flex: 1 1 300px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.rating.animated, .users.animated, .testimonial.animated {
    transform: translateY(0);
    opacity: 1;
}

.rating:hover, .users:hover, .testimonial:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.stars::after {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
    width: 100%;
    z-index: -1;
}

.user-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.user-icon::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s infinite;
}

.testimonial p {
    font-style: italic;
    position: relative;
}

.testimonial p::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(255, 255, 255, 0.2);
    font-family: serif;
}

.author {
    font-weight: 600;
    text-align: right;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: #ececec;
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #ececec;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.copyright {
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* SVG mockup styling */
.mockup {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.hero .mockup {
    animation: float 6s ease-in-out infinite;
}

.feature:hover .mockup {
    transform: translateY(-10px) scale(1.02);
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.25));
}

/* Responsive design for larger screens */
@media screen and (min-width: 768px) {
    .hero .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero-content {
        margin-right: 40px;
        margin-bottom: 0;
    }
    
    .feature .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .feature.reverse .container {
        flex-direction: row-reverse;
    }
    
    .feature-image {
        margin-bottom: 0;
        margin-right: 40px;
    }
    
    .feature.reverse .feature-image {
        margin-right: 0;
        margin-left: 40px;
    }
    
    .feature-content {
        text-align: left;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Mouse trail animation */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
    mix-blend-mode: screen;
} 