/* Custom CSS for Super Savings Clone */
:root {
    --bg-dark: #071a14; /* Deep premium emerald/slate instead of pure black */
    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Enhancements */
.text-transparent {
    background: linear-gradient(90deg, #10b981 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 26, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.nav-brand img.logo {
    height: 32px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-btn {
    background: #10b981;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}
.nav-btn:hover {
    background: #0ea5e9;
    color: white;
}

@media (max-width: 1100px) {
    .nav-menu {
        gap: 1rem;
    }
    .navbar {
        padding: 1rem;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 0.5rem;
    }
    .nav-link {
        font-size: 0.8rem;
    }
    .nav-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    .nav-brand {
        font-size: 1.1rem;
    }
}

/* Background Gradients */
@keyframes meshBreathing {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-50%) translateY(-3%) scale(1.05);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.gradient-mesh {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 40% 10%, rgba(16, 185, 129, 0.25), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.2), transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: meshBreathing 12s ease-in-out infinite;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero-heading {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 4rem;
    position: relative;
    height: 400px;
}

.hero-img {
    width: 300px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: absolute;
    transition: transform 0.5s ease;
}

.hero-img.left {
    transform: translateX(-140px) scale(0.9) rotate(-2deg);
    z-index: 1;
    filter: brightness(0.7);
}

.hero-img.left:hover {
    transform: translateX(-160px) scale(1) rotate(-4deg);
    filter: brightness(1);
    z-index: 4;
}

.hero-img.center {
    z-index: 3;
    width: 340px;
    top: -20px;
}

.hero-img.center:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 4;
    filter: brightness(1.1);
}

.hero-img.right {
    transform: translateX(140px) scale(0.9) rotate(2deg);
    z-index: 2;
    filter: brightness(0.8);
}

.hero-img.right:hover {
    transform: translateX(160px) scale(1) rotate(4deg);
    filter: brightness(1);
    z-index: 4;
}

/* --- Sticky Products Section --- */
.products-section {
    padding: 100px 0;
    position: relative;
}

.grid-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.products-sticky {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.products-images-stack {
    position: relative;
    width: 100%;
    height: 500px;
}

.products-images-stack img {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.products-images-stack img.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 5;
    pointer-events: auto;
}

.products-images-stack img.active:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 6;
    filter: brightness(1.1);
}

.product-block {
    margin-bottom: 6rem;
}

.product-block h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.product-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-block a {
    color: var(--text-muted);
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.product-block a:hover {
    opacity: 1;
    color: #fff;
}

/* --- Security / Functions Section --- */
.security-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.security-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.security-card,
.small-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: visible;
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.security-card::before,
.small-card::before,
.testimonial-card::before,
.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0);
    transition: box-shadow 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.security-card:hover,
.small-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

.security-card:hover::before,
.small-card:hover::before {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.security-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-card-content {
    max-width: 50%;
}

.security-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.security-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.circle-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.circle-btn:hover {
    transform: translateX(5px);
}

.circle-btn .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.circle-btn:hover .icon {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.security-card img.proven {
    max-width: 45%;
    border-radius: 16px;
}

.small-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.small-card {
    padding: 2.5rem 2rem;
}

.small-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.small-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Features Section --- */
.features-section {
    padding: 100px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-8px);
}

.feature-item:hover::before {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.feature-item .icon-bg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(251, 191, 36, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-item:hover .icon-bg {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(251, 191, 36, 0.3));
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.feature-item .icon-bg img {
    width: 28px;
    filter: invert(65%) sepia(45%) saturate(600%) hue-rotate(100deg) brightness(95%) contrast(90%);
}

.feature-item h5 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.testimonials-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
}

.testimonial-card:hover::before {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.testimonial-card p {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h6 {
    text-transform: capitalize;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* --- Footer --- */
.footer-section {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-top h2 {
    font-size: 2.5rem;
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.footer-top p {
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-brand {
    font-weight: 600;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {

    .grid-products,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .products-sticky {
        position: relative;
        top: 0;
        margin-bottom: 4rem;
    }

    .security-card-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .security-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .security-card img.proven {
        max-width: 100%;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-img.left,
    .hero-img.right {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Content Pages (About, Terms, etc.) --- */
.content-page {
    max-width: 800px;
    margin: 150px auto 100px;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    line-height: 1.8;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #10b981 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.content-page p, .content-page ul {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.content-page ul {
    padding-left: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

.content-page a {
    color: #10b981;
    text-decoration: underline;
}