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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0a0f1c 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Enhanced animated background for glass effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: -2;
    animation: backgroundFloat 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 20%, rgba(255, 255, 255, 0.02) 50%, transparent 80%),
        linear-gradient(-45deg, transparent 20%, rgba(99, 102, 241, 0.05) 50%, transparent 80%);
    z-index: -1;
    animation: backgroundShift 30s ease-in-out infinite reverse;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) scale(1.1) rotate(2deg);
        opacity: 0.8;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateX(30px) rotate(-1deg);
    }
}

/* Enhanced grid pattern for glass depth */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -3;
    opacity: 0.6;
    animation: gridFloat 20s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Glass morphism header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #f1f5f9;
}

main {
    margin-top: 120px;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #94a3b8;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Glass buttons */
.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-button.primary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(168, 85, 247, 0.8));
    border-color: rgba(99, 102, 241, 0.5);
}

/* Glass cards */
.section {
    padding: 5rem 0;
    position: relative;
}

.section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #f1f5f9;
}

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

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.glass-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.glass-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Problem section */
.problem-section {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: 2rem 0;
    padding: 4rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
}

.problem-card .card-icon {
    color: #fca5a5;
}

/* Benefits section */
.benefits-card {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 3px solid #22c55e;
}

.benefits-card .card-icon {
    color: #86efac;
}

/* How it works section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(168, 85, 247, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(20px);
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Contact Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(50px) scale(0.9);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

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

.form-group label {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #64748b;
}

.form-submit {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(168, 85, 247, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #f1f5f9;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    margin-top: 1rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message,
.error-message {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.success-message.show,
.error-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Mobile styles */
    body { background-size: 200% 200%; }
    .grid-pattern { background-size: 30px 30px; opacity: 0.3; }
    header {
        top: 10px;
        width: calc(100% - 20px);
        padding: 1rem 1.5rem;
        border-radius: 15px;
    }
    .logo { font-size: 1.3rem; }
    .nav-links { display: none; }
    main { margin-top: 90px; }
    .container { padding: 0 15px; }
    .hero { padding: 3rem 0; }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    .cards-grid,
    .steps-grid { grid-template-columns: 1fr; }
    .glass-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    .cta-button {
        display: block;
        margin: 10px auto;
        width: calc(100% - 40px);
        max-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet styles */
    .container { padding: 0 30px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1400px) {
    /* Large desktop styles */
    .container { max-width: 1400px; }
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .glass-card:hover { transform: none; }
    .glass-card:active {
        transform: translateY(-2px);
        transition: transform 0.1s ease;
    }
    .cta-button:hover { transform: none; }
    .cta-button:active {
        transform: translateY(-1px);
        transition: transform 0.1s ease;
    }
}

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