/* Base Styles and Reset */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff5e62;
    --text-color: #333;
    --light-text: #fff;
    --background: #f7f9fc;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --gradient: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    --header-height: 80px;
    --footer-bg: #111827;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

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

img, svg {
    max-width: 100%;
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: #f0f4f8;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: var(--gradient);
    color: var(--light-text);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 0L50 50L0 100Z' fill='rgba(255,255,255,0.05)'/%3E%3Cpath d='M100 0L50 50L100 100Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--light-text);
    font-weight: 700;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(255, 94, 98, 0.4);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #ff4146;
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 98, 0.5);
}

.hero-graphic {
    flex: 0 0 45%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Features Section */
.features {
    background-color: var(--background);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

/* How It Works */
.how-it-works {
    text-align: center;
}

.steps {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    position: relative;
}

.steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--gradient);
    z-index: 0;
}

.step {
    flex: 1;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    color: var(--light-text);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.cta-container {
    margin-top: 3rem;
}

/* About Section */
.about {
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 1rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 0L50 50L0 100Z' fill='rgba(255,255,255,0.02)'/%3E%3Cpath d='M100 0L50 50L100 100Z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 2rem;
    margin-bottom: 2rem;
}

.footer-logo svg {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex: 1;
    justify-content: flex-end;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

.copyright {
    margin-top: 4rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-graphic {
        max-width: 400px;
    }
    
    .steps:before {
        display: none;
    }
    
    .steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    header {
        height: auto;
        padding: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light-text);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav.active {
        max-height: 300px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
        gap: 2rem;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
    
    .cta-button {
        width: 100%;
    }
}
