* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    scroll-behavior: smooth
}

body {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a, #111);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: #eee;
    overflow-x: hidden;
    transition: .5s;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(77, 166, 255, 0.7);
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-120px) scale(1.3); opacity: .5; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    background: rgba(17,17,17,0.9);
    backdrop-filter: blur(8px);
    z-index: 50;
    transition: .5s
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold
}

.navbar a {
    margin: 0 .8rem;
    color: inherit;
    text-decoration: none;
    transition: .3s;
    font-size: .95rem
}

.navbar a:hover {
    color: #4da6ff;
    text-shadow: 0 0 8px #4da6ff, 0 0 16px #1a75ff;
}

#theme-toggle {
    font-size: 1.3rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: 1rem
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #eee;
    border-radius: 3px;
    transition: .4s
}

@media(max-width:768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 20px;
        background: #111;
        flex-direction: column;
        display: none;
        padding: 1.5rem;
        border-radius: 1rem;
        gap: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, .5)
    }

    .nav-links.active {
        display: flex;
        animation: fadeInMenu .4s ease forwards
    }

    .hamburger {
        display: flex
    }

    .hamburger span {
        background: #eee
    }

    body.light-mode .hamburger span {
        background: #111
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px)
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px)
    }

    body.light-mode .nav-links {
        background: #fff;
        color: #111
    }
}

@keyframes fadeInMenu {
    0% { opacity: 0; transform: translateY(-10px) }
    100% { opacity: 1; transform: translateY(0) }
}

.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    min-height: 100vh;
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media(min-width:768px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        padding: 5rem 4rem;
        text-align: left
    }
}

.hero-content {
    max-width: 600px;
    animation: slideUp 1s ease forwards
}

.hero-content h2 {
    font-size: 2.2rem;
    background: linear-gradient(90deg, #4da6ff, #ff66cc, #00ffcc);
    background-size: 300% 300%;
    animation: gradientShift 6s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeIn 1.2s ease forwards
}

@media(min-width:768px) {
    .hero-content h2 { font-size: 3rem }
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem
}

@media(min-width:768px) {
    .hero-content p { font-size: 1.2rem }
}

.btn {
    display: inline-block;
    padding: .8rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #4da6ff, #1a75ff);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: .3s;
    animation: pulse 2s infinite
}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #1a75ff, #4da6ff);
    box-shadow: 0 0 20px #4da6ff, 0 0 40px #1a75ff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 166, 255, .6) }
    70% { box-shadow: 0 0 0 15px rgba(77, 166, 255, 0) }
    100% { box-shadow: 0 0 0 0 rgba(77, 166, 255, 0) }
}

.hero-image img {
    max-width: 85%;
    transition: transform .8s ease-out, box-shadow .4s ease;
}

.hero-image img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(77, 166, 255, .7), 0 0 50px rgba(255, 102, 204, .5);
}

.features,
.testimonials,
.pricing,
.cta {
    padding: 3rem 1.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all .9s ease, opacity 1s ease
}

.features h2,
.testimonials h2,
.pricing h2,
.cta h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #4da6ff;
    margin-bottom: 2rem
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center
}

@media(min-width:640px) {
    .feature-cards { grid-template-columns: repeat(2, 1fr) }
}

@media(min-width:1024px) {
    .feature-cards { grid-template-columns: repeat(4, 1fr) }
}

.card {
    padding: 2rem;
    background: #222;
    border-radius: 1rem;
    transition: .4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 20px #4da6ff, 0 0 40px #1a75ff;
}

.card i { font-size: 2rem; margin-bottom: .5rem }

.feature-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 1rem;
    flex-direction: column;
    text-align: center
}

.feature-detail.reverse { flex-direction: column }

@media(min-width:768px) {
    .feature-detail { flex-direction: row; text-align: left }
    .feature-detail.reverse { flex-direction: row-reverse }
}

.feature-text { flex: 1 }

.feature-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ff66cc
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.6
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center
}

.feature-mockup {
    max-width: 70%;
    opacity: 0;
    transform: translateY(50px) scale(.95);
    transition: all 1s ease, box-shadow .4s ease;
}

.feature-mockup:hover {
    transform: translateY(0) scale(1.08);
    box-shadow: 0 0 25px rgba(77, 166, 255, .7), 0 0 50px rgba(255, 102, 204, .5);
}

.testimonial-list {
    display: grid;
    gap: 1.5rem;
    text-align: center
}

@media(min-width:768px) {
    .testimonial-list { grid-template-columns: 1fr 1fr }
}

.testimonial {
    padding: 2rem;
    background: #222;
    border-radius: 1rem;
    transition: .4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.testimonial:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px #ff66cc, 0 0 40px #4da6ff;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center
}

@media(min-width:640px) {
    .pricing-cards { grid-template-columns: repeat(2, 1fr) }
}

@media(min-width:1024px) {
    .pricing-cards { grid-template-columns: repeat(3, 1fr) }
}

.price-card {
    padding: 2rem;
    background: #222;
    border-radius: 1rem;
    transition: .4s;
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.price-card.highlight {
    border: 2px solid #ffcc00;
    transform: scale(1.05)
}

.price-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px #4da6ff, 0 0 50px #ff66cc;
}

.price-card ul {
    list-style: none;
    margin-top: 1rem
}

.cta { text-align: center }

footer {
    padding: 2rem;
    text-align: center;
    background: #111
}

footer .social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem
}

footer a {
    color: inherit;
    font-size: 1.2rem;
    transition: .3s
}

footer a:hover {
    color: #4da6ff;
    text-shadow: 0 0 10px #4da6ff;
}

body.light-mode {
    background: #fafafae1;
    color: #111
}

body.light-mode .navbar { background: #f9f9f9 }

body.light-mode .card,
body.light-mode .testimonial,
body.light-mode .price-card {
    background: #fff;
    color: #111
}

body.light-mode footer {
    background: #f9f9f9;
    color: #111
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100
}

.popup-content {
    background: #222;
    color: #fff;
    padding: 2rem 3rem;
    border-radius: 1rem;
    text-align: center;
    animation: popupAnim .5s ease forwards
}

.popup-content i {
    font-size: 3rem;
    color: #4da6ff;
    margin-bottom: 1rem
}

.popup-content button {
    margin-top: 1rem;
    padding: .5rem 1.5rem;
    border: none;
    background: #4da6ff;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: .3s
}

.popup-content button:hover { background: #1a75ff }

@keyframes popupAnim {
    0% { transform: scale(.5); opacity: 0 }
    100% { transform: scale(1); opacity: 1 }
}

@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0 }
    100% { transform: translateY(0); opacity: 1 }
}

@keyframes fadeIn {
    0% { opacity: 0 }
    100% { opacity: 1 }
}
