:root {
    --primary: #FF5A5F;
    --primary-dark: #cc484c;
    --secondary: #2C3E50;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Footer variables (Dark Footer for both modes) */
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-logo-filter: brightness(0) invert(1);
}

[data-theme="dark"] {
    --secondary: #ecf0f1;
    --bg-light: #121212;
    --bg-off-white: #252525;
    --card-bg: #2d2d2d;
    --text-main: #ecf0f1;
    --text-muted: #b2bec3;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);

    --glass-bg: rgba(45, 45, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Footer variables (Dark Mode) */
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-logo-filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --secondary: #ecf0f1;
        /* Lighter secondary for dark mode text if used */
        --bg-light: #121212;
        --bg-off-white: #1e1e1e;
        --card-bg: #2d2d2d;
        --text-main: #ecf0f1;
        --text-muted: #b2bec3;
        --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);

        /* Glassmorphism variables */
        --glass-bg: rgba(45, 45, 45, 0.6);
        --glass-border: rgba(255, 255, 255, 0.1);

        /* Footer variables (Dark Mode) */
        --footer-bg: #1a1a1a;
        --footer-text: #ffffff;
        --footer-text-muted: rgba(255, 255, 255, 0.7);
        --footer-border: rgba(255, 255, 255, 0.1);
        --footer-logo-filter: brightness(0) invert(1);
    }
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1300px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 100;
}

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

.logo i {
    color: var(--primary);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid #eee;
}

.btn-secondary:hover {
    border-color: var(--text-main);
}

/* Hero Split */
header {
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 5%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    padding-right: 2rem;
}

.badge-new {
    background: rgba(255, 90, 95, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 800;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-bg {
    position: absolute;
    width: 120%;
    height: 100%;
    background: var(--bg-off-white);
    border-radius: 50px 0 0 50px;
    right: -20%;
    z-index: -1;
    top: 0;
}

[data-theme="dark"] .visual-bg {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.15) 0%, rgba(18, 18, 18, 0) 80%);
    box-shadow: none;
    /* Soft glow doesn't need a hard shadow */
    filter: blur(40px);
    /* Enhance the atmospheric glow */
    width: 100%;
    /* Adjust width to not look like a hard shape */
    right: -10%;
}

.floating-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: absolute;
    max-width: 250px;
    animation: float 6s infinite ease-in-out;
}

[data-theme="dark"] .floating-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.card-1 {
    top: 20%;
    right: 10%;
    z-index: 2;
}

.card-2 {
    bottom: 20%;
    left: 10%;
    z-index: 3;
    animation-delay: -3s;
}

.main-img {
    width: 350px;
    height: 600px;
    background: #f1f2f6;
    border-radius: 40px;
    border: 8px solid var(--card-bg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background-image: url('https://images.unsplash.com/photo-1549465220-1a8b9238cd48?ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Stores */
.platforms-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

.store-links {
    display: flex;
    gap: 1rem;
}

.store-btn {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.store-btn:hover {
    opacity: 1;
}

.store-btn img {
    height: 40px;
}

/* Features */
section.features {
    padding: 6rem 5%;
    background: var(--bg-off-white);
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 90, 95, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery */
section.gallery {
    padding: 6rem 5%;
    background: var(--bg-light);
}

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.gallery-item {
    height: 500px;
    width: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
    border: 8px solid #f1f2f6;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Staggered effect */
.item-2 {
    margin-top: 4rem;
}

.item-3 {
    margin-top: 8rem;
}

@media (max-width: 768px) {
    .gallery-item {
        margin-top: 0 !important;
    }
}

/* Pricing */
section.pricing {
    padding: 6rem 5%;
    background: var(--bg-off-white);
}

.pricing-table {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    flex: 1;
    min-width: 300px;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.premium {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    /* Slightly bigger */
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--primary);
}

.features-list li.muted {
    color: var(--text-muted);
    opacity: 0.6;
}

.features-list li.muted i {
    color: var(--text-muted);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 968px) {
    header {
        grid-template-columns: 1fr;
        padding-top: 4rem;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .subtitle,
    .cta-group {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

/* Footer */
/* Footer */
/* Footer */
footer {
    background: var(--footer-bg);
    border-top: 4px solid var(--primary);
    color: var(--footer-text);
    padding: 5rem 5% 2rem;
    margin-top: 4rem;
    transition: background-color 0.3s, color 0.3s;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    filter: var(--footer-logo-filter);
    transition: filter 0.3s;
}

.footer-col p {
    color: var(--footer-text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--footer-text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text-muted);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-col p {
        margin: 0 auto;
    }
}