@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

:root {
    --primary: #ff7e5f;
    --primary-hover: #ff6a44;
    --primary-soft: rgba(255, 126, 95, 0.1);
    --dark: #0f172a;
    --slate: #475569;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

h1,
h2,
h3,
.logo-text,
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Decorative Background Art */
.bg-art {
    position: fixed;
    z-index: -1;
    opacity: 0.1;
    filter: grayscale(1) blur(2px);
    width: 600px;
    height: 600px;
    object-fit: cover;
    border-radius: 50%;
}

.art-top-right {
    top: -100px;
    right: -100px;
}

.art-bottom-left {
    bottom: -100px;
    left: -100px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    padding: 1.5rem 8%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate);
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

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

.btn-auth {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-auth:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.2);
}

/* User Profile Pill */
.profile-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    padding: 8px 22px 8px 8px;
    border-radius: 60px;
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
}

.profile-pill:hover {
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 2000;
    display: none;
    transform-origin: top right;
    animation: dropIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}

.profile-dropdown a i {
    font-size: 1.1rem;
    color: #94a3b8;
}

.profile-dropdown a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.profile-dropdown a:hover i {
    color: var(--primary);
}

/* SaaS Hero */
.hero {
    padding: 4rem 8% 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.hero-blob-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
    animation: float 15s ease-in-out infinite;
}

.hero-blob-2 {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
    animation: float 20s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-soft);
    z-index: -1;
}

.hero p {
    font-size: 1.3rem;
    color: var(--slate);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    font-size: 1.1rem;
    color: var(--slate);
    opacity: 0.8;
}

.stat-item strong {
    color: var(--dark);
    font-size: 1.4rem;
    display: block;
}

.hero-visual {
    position: relative;
}

.hero-card-stack {
    position: relative;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-img {
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    position: absolute;
    border: 8px solid white;
    transition: 0.5s;
    object-fit: cover;
    height: 350px;
}

.img-1 {
    width: 380px;
    z-index: 1;
    transform: rotate(-6deg) translateX(-20px);
    top: 20px;
    left: 0;
    filter: brightness(0.9);
}

.img-2 {
    width: 380px;
    z-index: 2;
    transform: rotate(4deg) translateX(50px);
    top: 80px;
    left: 150px;
    box-shadow: 0 25px 50px -12px rgba(255, 126, 95, 0.4);
}

.hero-slide:hover .img-1 {
    transform: rotate(-8deg) translateX(-40px) scale(1.02);
}

.hero-slide:hover .img-2 {
    transform: rotate(6deg) translateX(70px) scale(1.05);
}

.ai-badge {
    position: absolute;
    top: 10px;
    right: 80px;
    z-index: 3;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-family: 'Baloo 2';
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Gallery Section */
.gallery-section-main {
    padding: 6rem 8%;
    background: var(--white);
}

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

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    font-size: 1.25rem;
    color: var(--slate);
}

.gallery-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.gallery-slider-container::before,
.gallery-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.gallery-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.gallery-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.gallery-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.8s cubic-bezier(0.45, 0.05, 0.55, 0.95);
    width: max-content;
}

.gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    width: 300px;
    /* Fixed width for slider items */
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    transition: 0.4s;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 1.2rem 1.4rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.88));
    transition: 0.3s;
    display: flex;
    align-items: flex-end;
}

.card-overlay span {
    display: inline-block;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 800;
    font-family: 'Baloo 2', 'Outfit', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.gallery-card:hover .card-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 60%, rgba(0, 0, 0, 0.95));
}

.gallery-card:hover .card-overlay span {
    background: rgba(255, 126, 95, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(255, 126, 95, 0.5);
}

/* App Section */
.app-section {
    padding: 8rem 5%;
    background: radial-gradient(circle at top right, #f8fafc 0%, #eff6ff 100%);
    position: relative;
}

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.5);
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 900px;
}

.app-sidebar {
    background: #fdfdfd;
    background-image: radial-gradient(at 0% 0%, rgba(255, 126, 95, 0.03) 0, transparent 50%), radial-gradient(at 50% 100%, rgba(0, 86, 179, 0.02) 0, transparent 50%);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-group h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.style-item {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.style-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-soft);
}

.style-item.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-soft), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.style-item img {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    transition: 0.3s;
    display: block;
}

.style-item.active img {
    transform: scale(1.05);
}

.style-item span {
    font-weight: 800;
    font-size: 13px;
    color: #1e293b;
    display: block;
    font-family: 'Inter';
    letter-spacing: -0.01em;
}

.style-item.active span {
    color: var(--primary);
}

.upload-card {
    background: var(--white);
    border: 3px dashed var(--border);
    border-radius: 20px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.upload-card:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.upload-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.btn-convert {
    width: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-hover));
    color: var(--white);
    padding: 1.4rem;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.3);
    font-family: 'Baloo 2';
    transition: 0.3s;
}

.btn-convert:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 126, 95, 0.4);
}

.btn-convert:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
}

/* Camera & WhatsApp Icon Buttons */
.btn-icon-media {
    flex: 1;
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter';
}

.btn-icon-media:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.3);
    transform: translateY(-2px);
}

.btn-icon-media:active {
    transform: translateY(0);
}

.app-canvas {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-controls {
    display: flex;
    background: var(--light);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.view-tab {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.view-tab.active {
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.main-stage {
    flex: 1;
    background: #ffffff;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 126, 95, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 86, 179, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(241, 245, 249, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 245, 249, 0.5) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.02);
}

/* When results are active, stack everything vertically and allow scroll */
.main-stage--active {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
    gap: 20px;
}

/* Adjustment slider track styling */
.adjust-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 36px;
    /* tall enough to click easily */
    background: transparent;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.adjust-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.adjust-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    margin-top: -7px;
    /* centre thumb on track: (20-6)/2 */
    box-shadow: 0 2px 6px rgba(255, 100, 60, 0.35);
    transition: transform 0.15s;
}

.adjust-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.adjust-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

.adjust-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 100, 60, 0.35);
}

.placeholder-view {
    text-align: center;
}

.placeholder-view h2 {
    font-size: 2.5rem;
    margin-top: 20px;
    color: var(--dark);
    opacity: 0.8;
}

.placeholder-view p {
    font-size: 1.2rem;
    color: var(--slate);
}

.comparison-view {
    display: none;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ffffff;
}

.compare-item {
    position: relative;
    background: #0f172a;
    /* Deep contrasting background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-label {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(15, 23, 42, 0.85);
    /* Proper Dark Glass */
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

/* Features Section with Images */
.features-section {
    padding: 10rem 8%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.feat-item {
    perspective: 1000px;
}

.feat-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: 35px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feat-card:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 40px 80px -15px rgba(255, 126, 95, 0.15);
    border-color: var(--primary-soft);
}

.feat-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    transition: 0.5s;
}

.feat-card:hover .feat-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.feat-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: 0.5s;
}

.feat-card:hover .feat-img {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 126, 95, 0.2);
}

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

.feat-card h3 {
    font-family: 'Baloo 2';
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    transition: 0.3s;
}

.feat-card:hover h3 {
    color: var(--primary);
}

.feat-card p {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feat-badge {
    margin-top: auto;
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.3s;
}

.feat-card:hover .feat-badge {
    background: var(--primary-soft);
    color: var(--primary);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feat-card {
        padding: 3rem 2rem;
    }
}

/* Pricing Section */
.pricing {
    padding: 8rem 8%;
    background: var(--light);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: var(--white);
    padding: 4rem 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    transition: 0.4s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.price-card.popular {
    border: 3px solid var(--primary);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 12px;
}

.price-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.price-card .amount {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--dark);
}

.price-card ul {
    list-style: none;
    margin-bottom: 3rem;
    text-align: left;
}

.price-card li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-card li i {
    color: var(--primary);
}

/* Slider Comparison View */
.slider-view {
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.img-after {
    clip-path: inset(0 0 0 50%);
    z-index: 1;
}

.slider-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--primary);
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::after {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slider-handle i {
    position: absolute;
    color: white;
    font-size: 14px;
    z-index: 6;
}

.slider-label {
    position: absolute;
    top: 24px;
    background: rgba(15, 23, 42, 0.85);
    /* Proper Dark Glass */
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    z-index: 20;
    pointer-events: none;
}

.img-before .slider-label {
    left: 20px;
}

.img-after .slider-label {
    right: 20px;
}

/* Footer */
.footer {
    padding: 6rem 8%;
    background: var(--dark);
    color: var(--white);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
}

.footer-logo {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-size: 1.1rem;
    opacity: 0.6;
    line-height: 1.8;
}

.footer h4 {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.footer ul {
    list-style: none;
}

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

.footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons i {
    font-size: 1.8rem;
    opacity: 0.6;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons i:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-5px);
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 5000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* Auth modal override — always centered, scrollable if needed */
#authModal {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.88) !important;
}

/* Scoped loader — contained inside .main-stage (position:relative) */
.stage-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 10;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: inherit;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid var(--primary-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .app-container {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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

    .footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 5%;
        height: auto;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f8fafc;
    }

    .auth-section {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .features-grid,
    .price-grid,
    .footer {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .app-sidebar {
        padding: 2rem;
    }

    .app-canvas {
        padding: 1.5rem;
    }

    .style-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    /* Mobile Auth Modal Fixes */
    .auth-card {
        flex-direction: column !important;
        max-width: 100% !important;
        width: 95% !important;
        min-height: auto !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .auth-left {
        display: none !important;
    }

    .auth-right {
        padding: 30px 25px !important;
    }

    .auth-right h1 {
        font-size: 2rem !important;
    }

    .auth-right h2 {
        font-size: 1.8rem !important;
    }

    .auth-right p {
        font-size: 0.95rem !important;
    }

    .auth-right input {
        padding: 14px !important;
        font-size: 0.95rem !important;
    }

    .auth-right button {
        padding: 14px !important;
        font-size: 1rem !important;
    }

    .close-modal {
        top: 15px !important;
        right: 15px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 1.1rem !important;
    }

    #googleBtnContainer {
        transform: scale(0.95);
    }
}

/* Mobile-only auth links in hamburger menu (hidden on desktop) */
.mobile-nav-auth {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-auth {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 0;
        border-top: 1px solid #f8fafc;
        font-weight: 600;
        width: 100%;
        color: var(--dark);
        text-decoration: none;
        font-size: 1rem;
    }
    /* Payment modal: better padding on small screens */
    #paymentModal .app-container {
        padding: 24px 20px !important;
        width: 92%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        display: none;
    }

    .hero {
        padding: 3rem 5% 4rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .btn-auth {
        width: 100%;
        text-align: center;
    }

    /* Extra small screen auth adjustments */
    .auth-card {
        width: 100% !important;
        border-radius: 16px !important;
    }

    .auth-right {
        padding: 25px 20px !important;
    }

    .auth-right h1 {
        font-size: 1.8rem !important;
    }

    .auth-right h2 {
        font-size: 1.6rem !important;
    }

    .auth-right input {
        padding: 12px !important;
        font-size: 0.9rem !important;
    }

    .app-container {
        border-radius: 20px !important;
    }

    .main-stage {
        border-radius: 15px !important;
    }

    .style-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .gallery-card {
        height: 300px;
        width: 250px;
    }
}

/* Batch Processing Styles */
.batch-item {
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

.batch-item:hover {
    border-color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.batch-item select:focus {
    color: var(--primary-hover);
}

/* Batch Processing UI Enhancements */
.batch-item.selected {
    border-color: var(--primary) !important;
    background: rgba(255, 126, 95, 0.08) !important;
    transform: translateX(5px);
    box-shadow: -5px 0 0 var(--primary), var(--shadow-sm);
}

.batch-result-card {
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.batch-result-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.batch-result-card:hover img {
    transform: scale(1.05);
}

#batchItems::-webkit-scrollbar {
    width: 4px;
}

#batchItems::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#batchResultsGrid {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-preview-small {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    object-fit: contain;
    margin-top: 10px;
}

/* Neural Canvas Crop Box Styles */
.canvas-crop-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 550px;
    margin: 0 auto;
}

.canvas-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: auto;
    width: 100%;
}

.canvas-image {
    max-width: 100%;
    max-height: 450px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.crop-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 10;
}

.crop-box {
    position: absolute;
    border: 3px solid var(--primary);
    background: rgba(255, 126, 95, 0.08);
    cursor: move;
    z-index: 15;
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.3);
    touch-action: none;
}

.crop-box-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 20;
    cursor: grab;
}

.crop-box-handle:active {
    cursor: grabbing;
}

.crop-handle-nw {
    top: -6px;
    left: -6px;
    cursor: nwse-resize;
}

.crop-handle-ne {
    top: -6px;
    right: -6px;
    cursor: nesw-resize;
}

.crop-handle-sw {
    bottom: -6px;
    left: -6px;
    cursor: nesw-resize;
}

.crop-handle-se {
    bottom: -6px;
    right: -6px;
    cursor: nwse-resize;
}

.crop-handle-n {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.crop-handle-s {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.crop-handle-w {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.crop-handle-e {
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.crop-box-controls {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    width: 100%;
    flex-wrap: wrap;
}

.crop-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
}

.crop-btn-apply {
    background: var(--primary);
    color: white;
    flex: 1;
    min-width: 200px;
}

.crop-btn-apply:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.crop-btn-reset {
    background: #e2e8f0;
    color: #475569;
}

.crop-btn-reset:hover {
    background: #cbd5e1;
}

/* =============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================= */

@media (max-width: 1024px) {

    /* Sidebar becomes horizontal scrollable strip on tablets */
    .app-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .app-sidebar {
        max-height: 480px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-stage {
        min-height: 420px;
    }
}

@media (max-width: 768px) {

    /* ---- Navbar ---- */
    .auth-section {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* ---- App container ---- */
    .app-section {
        padding: 3rem 3% 5rem;
    }

    .app-container {
        border-radius: 24px;
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        padding: 1.5rem;
        gap: 1.5rem;
        max-height: 400px;
        overflow-y: auto;
    }

    .app-canvas {
        padding: 1.25rem;
    }

    /* ---- Canvas header: stack title + tabs vertically ---- */
    .canvas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 1.25rem;
    }

    .canvas-header h3 {
        font-size: 1.1rem;
    }

    .view-controls {
        width: 100%;
        justify-content: stretch;
    }

    .view-tab {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    /* ---- Main stage ---- */
    .main-stage {
        min-height: 320px;
        border-radius: 18px;
    }

    .main-stage--active {
        padding: 16px;
        gap: 14px;
    }

    /* ---- Comparison view: stack to 1 column on mobile ---- */
    .comparison-view {
        grid-template-columns: 1fr !important;
    }

    .compare-item {
        min-height: 220px;
    }

    /* ---- Slider view ---- */
    .slider-view {
        padding: 12px;
    }

    /* ---- Stats panel grid: 1 column on mobile ---- */
    #statsPanelBody>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* ---- Download area: stack selects vertically ---- */
    #downloadArea>div:first-child {
        flex-direction: column;
    }

    /* ---- Batch results: tighter grid ---- */
    #batchResultsGrid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    /* ---- Crop box ---- */
    .canvas-crop-container {
        padding: 12px;
    }

    .canvas-image {
        max-height: 280px;
    }

    /* ---- Pricing ---- */
    .pricing {
        padding: 5rem 5%;
    }

    /* ---- Sections ---- */
    .features-section {
        padding: 5rem 5%;
    }
}

@media (max-width: 480px) {

    /* ---- Navbar logo ---- */
    .logo-text {
        font-size: 1.4rem !important;
    }

    /* ---- App section ---- */
    .app-section {
        padding: 2rem 2% 4rem;
    }

    .app-container {
        border-radius: 16px;
        margin: 0;
    }

    .app-sidebar {
        padding: 1rem;
        gap: 1rem;
        max-height: 360px;
    }

    .app-canvas {
        padding: 0.75rem;
    }

    /* ---- Canvas header ---- */
    .canvas-header h3 {
        font-size: 1rem;
    }

    .view-tab {
        font-size: 0.72rem;
        padding: 7px 8px;
    }

    /* ---- Main stage ---- */
    .main-stage {
        min-height: 260px;
        border-radius: 14px;
    }

    /* ---- Comparison: each item smaller ---- */
    .compare-item {
        min-height: 180px;
    }

    /* ---- Batch results: 2 columns max ---- */
    #batchResultsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ---- Download btn ---- */
    #downloadArea .btn-auth {
        font-size: 0.95rem;
        height: 52px;
    }

    /* ---- Stats adjust sliders: full width label row ---- */
    .adjust-slider {
        height: 40px;
    }

    /* ---- Crop controls ---- */
    .crop-btn-apply {
        min-width: 100%;
    }

    /* ---- Placeholder text ---- */
    .placeholder-view h2 {
        font-size: 1.6rem;
    }

    .placeholder-view p {
        font-size: 0.9rem;
    }

    /* ---- Section titles ---- */
    .section-title h2 {
        font-size: 2rem;
    }

    /* ---- Hero ---- */
    .hero {
        padding: 3rem 4% 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* ---- Footer ---- */
    .footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 5%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Snapchat Lens Carousel Styles */
.lens-carousel-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.lens-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lens-carousel::-webkit-scrollbar {
    display: none;
}

.lens-item {
    flex: 0 0 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lens-icon {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    transition: 0.3s;
}

.lens-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    transition: 0.3s;
}

.lens-item.active .lens-icon {
    border-color: var(--primary);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 126, 95, 0.3);
}

.lens-item.active span {
    color: var(--primary);
}

.lens-item:hover .lens-icon {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* Glassmorphism Enhancements */
.navbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
}

.app-sidebar {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.price-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.feat-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
}

/* Toonify Luxury Typography */
body {
    letter-spacing: -0.015em;
    font-family: 'Outfit', sans-serif;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
}

/* SaaS Footer */
.saas-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 100px 5% 40px;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 40px rgba(0,0,0,0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: white;
    font-size: 1.8rem;
    font-family: 'Baloo 2';
    font-weight: 800;
}

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

.footer-brand p {
    font-size: 1rem;
    line-height: 1.8;
}

.footer-links h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
}

/* AI Magic Background Options */
.bg-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bg-option.active {
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.05);
}

/* Toggle Switch Styling */
.switch .slider {
    background-color: #cbd5e1;
}

.switch input:checked+.slider {
    background-color: var(--primary);
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

/* DNA Style Item Animation */
#dnaStyleItem {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#dnaStyleItem:hover {
    transform: scale(1.05);
    background: rgba(99, 102, 241, 0.1) !important;
    border-style: solid !important;
}

#dnaStyleItem i {
    animation: dna-pulse 2s infinite ease-in-out;
}

@keyframes dna-pulse {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* NFT Button Glow */
.btn-nft {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-nft:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4) !important;
}

.btn-nft::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-nft:hover::after {
    left: 100%;
}

/* ═══════════════════════════════════════════
   AR CAMERA MODAL v2
═══════════════════════════════════════════ */
.cam-modal-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    max-width: 580px;
    width: 94%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    animation: camSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes camSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cam-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cam-viewport {
    position: relative;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 16/9;
}

.cam-viewport video,
.cam-viewport canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lens carousel scroll */
.lens-carousel-container {
    margin-bottom: 18px;
}

.lens-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.lens-carousel::-webkit-scrollbar {
    height: 4px;
}

.lens-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.lens-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 68px;
    background: #f8fafc;
}

.lens-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(255, 100, 60, 0.18);
}

.lens-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f0, #fff);
    box-shadow: 0 4px 14px rgba(255, 100, 60, 0.22);
    transform: translateY(-4px);
}

.lens-icon {
    font-size: 1.6rem;
    line-height: 1;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lens-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lens-item.active span {
    color: var(--primary);
}

/* Record button */
#recordBtn {
    transition: all 0.2s;
}

/* =============================================
   UI POLISH — HERO ANNOUNCEMENT BADGE
   ============================================= */
.hero-announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.1), rgba(254, 180, 123, 0.1));
    border: 1.5px solid rgba(255, 126, 95, 0.3);
    color: #c2410c;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    width: fit-content;
    letter-spacing: -0.01em;
    animation: fadeInDown 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ff7e5f;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   HERO DUAL CTA BUTTONS
   ============================================= */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    color: white;
    padding: 1rem 2.4rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 126, 95, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Baloo 2';
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 126, 95, 0.45);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1e293b;
    padding: 1rem 2.4rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Baloo 2';
}

.btn-cta-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.1);
}

/* =============================================
   HERO STATS ROW
   ============================================= */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-pill strong {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-pill span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.stat-stars {
    font-size: 0.9rem;
    color: #f59e0b;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: #e2e8f0;
}

/* =============================================
   SOCIAL PROOF TICKER STRIP
   ============================================= */
.social-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fef3ee, #fff);
    border: 1px solid rgba(255, 126, 95, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 126, 95, 0.2);
    flex-shrink: 0;
}

.ticker-track {
    overflow: hidden;
    flex: 1;
}

.ticker-content {
    display: flex;
    gap: 30px;
    align-items: center;
    animation: ticker 25s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =============================================
   IMPROVED SECTION TITLE UNDERLINE
   ============================================= */
.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #feb47b);
    border-radius: 3px;
    margin: 14px auto 0;
}

/* =============================================
   IMPROVED NAVBAR STYLING
   ============================================= */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 126, 95, 0.3), transparent);
}

/* =============================================
   IMPROVED PRICING CARD HOVER GLOW
   ============================================= */
.price-card.popular:hover {
    box-shadow: 0 30px 60px rgba(255, 126, 95, 0.2);
}

/* =============================================
   AUTH MODAL — left side dark theme
   ============================================= */
.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-row {
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }

    .social-ticker-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .ticker-label {
        border-right: none;
        padding-right: 0;
    }
}

/* =======================================================
   ★ MAJOR VISUAL UPGRADE — ATTRACTIVE UI POLISH v2
   ======================================================= */

/* ── 1. Body: animated mesh gradient background ── */
body {
    background: #fafbff;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(255, 126, 95, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 10%, rgba(99, 102, 241, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(254, 180, 123, 0.05) 0%, transparent 55%);
}

/* ── 2. Navbar: glass + gradient bottom line + glow login btn ── */
.navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 126, 95, 0.12) !important;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06) !important;
}

#loginHeaderBtn {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%) !important;
    box-shadow: 0 4px 18px rgba(255, 126, 95, 0.4) !important;
    padding: 0.75rem 1.8rem !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    transition: all 0.3s ease !important;
}

#loginHeaderBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(255, 126, 95, 0.5) !important;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #feb47b);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── 3. Hero Section: rich gradient mesh bg + gradient h1 ── */
.hero {
    background: linear-gradient(135deg, #fff8f6 0%, #faf5ff 40%, #f0f9ff 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 126, 95, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(254, 180, 123, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 5.2rem !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.05 !important;
    letter-spacing: -3px !important;
}

.hero h1 span {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 50%, #ff6a44 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero h1 span::after {
    display: none !important;
}

/* ── 4. CTA primary button: shimmer animation ── */
@keyframes btnShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.btn-cta-primary {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 40%, #ff6a44 80%, #feb47b 100%) !important;
    background-size: 200% auto !important;
    animation: btnShimmer 3s linear infinite !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.02em !important;
}

/* ── 5. Section titles: gradient text ── */
.section-title h2 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title h2 span {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── 6. Gallery section: dark immersive background ── */
.gallery-section-main {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%) !important;
    padding: 6rem 0 !important;
}

.gallery-section-main .section-title h2 {
    color: #1e293b;
}

.gallery-section-main .section-title p {
    color: rgba(255, 255, 255, 0.55) !important;
}

.gallery-section-main .section-title h2::after {
    background: linear-gradient(90deg, #ff7e5f, #feb47b) !important;
}

.gallery-slider-container::before {
    background: linear-gradient(to right, #0f172a, transparent) !important;
}

.gallery-slider-container::after {
    background: linear-gradient(to left, #0f172a, transparent) !important;
}

.gallery-card {
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 35px 80px rgba(255, 126, 95, 0.3) !important;
}

.card-overlay {
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9)) !important;
    padding: 2rem !important;
}

.card-overlay span {
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── 7. Features section: glassmorphism cards ── */
.features-section {
    background: linear-gradient(135deg, #f8faff 0%, #fef3ee 50%, #f8faff 100%) !important;
    position: relative;
    overflow: hidden;
}

.features-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 126, 95, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.feat-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border-radius: 28px !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.feat-card:hover {
    transform: translateY(-16px) !important;
    box-shadow: 0 30px 70px rgba(255, 126, 95, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 126, 95, 0.3) !important;
}

.feat-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.15), rgba(254, 180, 123, 0.15)) !important;
    border: 1px solid rgba(255, 126, 95, 0.2) !important;
    width: 76px !important;
    height: 76px !important;
    border-radius: 22px !important;
}

.feat-card:hover .feat-icon-wrapper {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
    border-color: transparent !important;
}

.feat-img {
    border-radius: 50% !important;
    box-shadow: 0 12px 40px rgba(255, 126, 95, 0.2) !important;
    border: 5px solid white !important;
}

.feat-badge {
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.1), rgba(254, 180, 123, 0.1)) !important;
    color: #c2410c !important;
    border: 1px solid rgba(255, 126, 95, 0.2) !important;
    font-weight: 800 !important;
}

.feat-card:hover .feat-badge {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
    color: white !important;
    border-color: transparent !important;
}

/* ── 8. Pricing section: light/airy background ── */
.pricing {
    background: linear-gradient(135deg, #f5f0ff 0%, #eef2ff 50%, #f0f8ff 100%) !important;
    padding: 8rem 8% !important;
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 126, 95, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pricing .section-title h2 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing .section-title p {
    color: #64748b !important;
}

.pricing .section-title h2::after {
    background: linear-gradient(90deg, #ff7e5f, #feb47b) !important;
}

.price-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
    color: #1e293b !important;
    border-radius: 28px !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08) !important;
    transition: all 0.4s ease !important;
}

.price-card:hover {
    transform: translateY(-12px) !important;
    border-color: rgba(255, 126, 95, 0.4) !important;
    box-shadow: 0 30px 60px rgba(255, 126, 95, 0.15) !important;
}

.price-card h4 {
    color: #64748b !important;
}

.price-card .amount {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.5rem !important;
}

.price-card li {
    color: #475569 !important;
}

.price-card li i {
    color: #34d399 !important;
}

.price-card.popular {
    background: white !important;
    border: 2px solid rgba(255, 126, 95, 0.5) !important;
    box-shadow: 0 20px 60px rgba(255, 126, 95, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.price-card.popular:hover {
    box-shadow: 0 35px 80px rgba(255, 126, 95, 0.25) !important;
}

.popular-badge {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
    box-shadow: 0 4px 16px rgba(255, 126, 95, 0.4) !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
}

/* Popular card buttons */
.price-card .btn-auth {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.4) !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    padding: 1rem !important;
    transition: all 0.3s !important;
    color: white !important;
}

.price-card .btn-auth:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(255, 126, 95, 0.5) !important;
}

/* ── 9. App section: nicer gradient ── */
.app-section {
    background: linear-gradient(135deg, #f8faff 0%, #fef3ee 40%, #f0f9ff 100%) !important;
}

/* ── 10. Educational section: subtle mesh ── */
.educational-section {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #fff8f6 100%) !important;
    position: relative;
}

.educational-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 0%, rgba(255, 126, 95, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 10% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ── 11. Announcement badge: more vibrant ── */
.hero-announcement-badge {
    background: linear-gradient(135deg, rgba(255, 126, 95, 0.12), rgba(254, 180, 123, 0.08)) !important;
    border: 1.5px solid rgba(255, 126, 95, 0.35) !important;
    box-shadow: 0 4px 20px rgba(255, 126, 95, 0.15) !important;
}

/* ── 12. Section generic: smooth reveal animation ── */
.gallery-section-main,
.features-section,
.pricing,
.educational-section,
.app-section {
    transition: background 0.5s ease;
}

/* ── 13. Quick nav section: gradient bg ── */
section[style*="f8fafc"] {
    background: linear-gradient(135deg, #fff8f6 0%, #f0f4ff 100%) !important;
}

/* ── 14. Hero stats row: glassmorphism pill ── */
.hero-stats-row {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 16px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ── 15. Scrollbar: branded ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6a44;
}

/* ── 16. Selection color ── */
::selection {
    background: rgba(255, 126, 95, 0.2);
    color: #c2410c;
}

/* ── 17. Social proof ticker: richer ── */
.social-ticker-wrap {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 245, 0.9)) !important;
    border: 1px solid rgba(255, 126, 95, 0.2) !important;
    box-shadow: 0 4px 24px rgba(255, 126, 95, 0.1) !important;
    backdrop-filter: blur(12px) !important;
}

/* ── 18. Saas footer: richer dark ── */
.saas-footer {
    background: linear-gradient(135deg, #0a0f1e 0%, #0f172a 50%, #1a0f2e 100%) !important;
    border-top: 1px solid rgba(255, 126, 95, 0.15) !important;
}

/* saas-footer social links hover */
.social-links a:hover i {
    color: #ff7e5f !important;
}

/* ── 19. Logo icon: gradient bg ── */
.navbar .logo>div {
    background: linear-gradient(135deg, #ff7e5f, #feb47b) !important;
    box-shadow: 0 4px 14px rgba(255, 126, 95, 0.35) !important;
    border-radius: 12px !important;
}

/* ── 20. Smooth page load fade-in ── */
@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageFadeIn 0.5s ease forwards;
}

#recordBtn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

#recordBtn.recording {
    background: linear-gradient(135deg, #7f1d1d, #ef4444) !important;
    animation: recordPulse 1s ease-in-out infinite;
}

@keyframes recordPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* LEGACY DARK SECTION FIXES REMOVED - BACKGROUNDS ARE NOW LIGHT */


/* =======================================================
   ★ COMPREHENSIVE UI OVERHAUL — v900
   Clean, properly scoped rules. No more -webkit-text-fill-color leaking.
   ======================================================= */

/* ── RESET global section-title gradient-text to light sections only ──
   The original rule applies to everything. Narrow it to specific sections. */
.hero .section-title h2,
#features .section-title h2,
#app .section-title h2 {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SECTION OVERRIDES CLEANED UP */


/* ── App/Neural Editor section styling ── */
#app {
    background: linear-gradient(160deg, #f8faff 0%, #fdf4f0 50%, #f4f8ff 100%);
    position: relative;
}

#app .section-title h2 {
    -webkit-text-fill-color: transparent;
}

/* ── APP section heading consistent style ── */
.app-section-title h2,
#app h2.section-heading {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Features section glassmorphism card hover refinements ── */
.feat-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.feat-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.feat-card:hover .feat-card h3 {
    color: #0f172a;
}

/* ── Price cards hover lift ── */
.price-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 30px 70px rgba(255, 126, 95, 0.25) !important;
}

/* ── Quick nav CTA button polish ──*/
.quick-nav-btn {
    border-radius: 14px !important;
    font-weight: 700 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* ── Global heading font consistency ── */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.02em;
}

p,
li,
label,
span {
    font-family: 'Inter', 'Outfit', sans-serif;
}

/* ── Navbar logo text ── */
.logo-text {
    font-family: 'Outfit', sans-serif;
}

/* ── Nav links typography ── */
.nav-links a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    color: #334155;
    text-decoration: none;
}

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

/* ── Hero announcement badge ── */
.hero-announcement-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

/* ── Hero h1 better ── */
.hero h1 {
    letter-spacing: -0.04em !important;
}

/* ── Hero sub-paragraph ── */
.hero>.hero-content>p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem !important;
    color: #475569;
    line-height: 1.7;
    -webkit-text-fill-color: initial;
}

/* ── Stats row text ── */
.stat-pill strong {
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    -webkit-text-fill-color: initial;
}

.stat-pill span {
    color: #64748b;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    -webkit-text-fill-color: initial;
}

#educational h3 {
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
}

#educational h3 span {
    -webkit-text-fill-color: transparent !important;
}

#educational p,
#educational li {
    font-family: 'Inter', sans-serif;
    -webkit-text-fill-color: #475569 !important;
    color: #475569 !important;
}

#educational strong {
    -webkit-text-fill-color: #1e293b !important;
    color: #1e293b !important;
}

/* ── Gallery card label ── */
.card-overlay span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ── Footer v900 ── */
.saas-footer {
    background: linear-gradient(170deg, #080d1a 0%, #0d1526 40%, #0f1a30 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 90px 8% 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 126, 95, 0.2);
}

.saas-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 5% 0%, rgba(255, 126, 95, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 95% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 126, 95, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Glowing top accent line */
.saas-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 126, 95, 0.6), rgba(254, 180, 123, 0.6), transparent);
    pointer-events: none;
}

.saas-footer .footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .saas-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .saas-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

.saas-footer .footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 18px;
    text-decoration: none;
}

.saas-footer .footer-brand .logo i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    -webkit-text-fill-color: white;
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.35);
    flex-shrink: 0;
}

.saas-footer .footer-brand .logo span {
    background: linear-gradient(135deg, #ffffff 30%, rgba(255, 180, 140, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.saas-footer .footer-brand p {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 280px;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
}

/* Newsletter badge */
.saas-footer .footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 126, 95, 0.12);
    border: 1px solid rgba(255, 126, 95, 0.25);
    border-radius: 50px;
    padding: 6px 16px 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff9a7a;
    -webkit-text-fill-color: #ff9a7a;
    margin-bottom: 24px;
}

.saas-footer .footer-badge i {
    color: #ff7e5f;
    -webkit-text-fill-color: #ff7e5f;
    font-size: 0.8rem;
}

.saas-footer .social-links {
    display: flex;
    gap: 10px;
}

.saas-footer .social-links a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.saas-footer .social-links a:hover {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border-color: transparent;
    color: white;
    -webkit-text-fill-color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(255, 126, 95, 0.4);
}

.saas-footer .footer-links h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 22px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-bottom: 12px;
}

.saas-footer .footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border-radius: 2px;
}

.saas-footer .footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 13px;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45);
}

.saas-footer .footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: #ff7e5f;
    transition: width 0.25s ease;
    flex-shrink: 0;
}

.saas-footer .footer-links a:hover {
    color: #ff9a7a;
    -webkit-text-fill-color: #ff9a7a;
    transform: translateX(6px);
}

.saas-footer .footer-links a:hover::before {
    width: 12px;
}

.saas-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 28px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 -8%;
    padding-left: 8%;
    padding-right: 8%;
}

.saas-footer .footer-bottom p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.saas-footer .footer-bottom p .heart {
    color: #ff7e5f;
    -webkit-text-fill-color: #ff7e5f;
    animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

/* ── Hide old duplicate footer.footer ── */
footer.footer {
    display: none !important;
}

/* bg lens */
.lens-bg {
    border-color: #a78bfa !important;
    background: linear-gradient(135deg, #f5f3ff, #fff) !important;
}

.lens-bg.active {
    border-color: #7c3aed !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.22) !important;
}

.lens-bg.active span {
    color: #7c3aed !important;
}

/* =======================================================
   ★ FINAL NUCLEAR VISIBILITY OVERRIDE ★
   Guarantees dark text on light backgrounds regardless of legacy rules.
   ======================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
}

#educational,
#strokes,
#gallery,
#pricing,
.educational-section,
.strokes-section,
.gallery-section-main,
.pricing {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

#educational h2,
#strokes h2,
#gallery h2,
#pricing h2,
#educational h3,
#strokes h3,
#gallery h3,
#pricing h3,
.section-title h2 {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

#educational p,
#educational li,
#strokes p,
#strokes li,
#gallery p,
#gallery li {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

#educational strong,
#strokes strong,
#gallery strong {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* ── Scroll To Top Button ── */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: #ff7a45;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
    background: #ff5a1f;
}

@media (max-width: 480px) {
    #scrollTopBtn {
        bottom: 18px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}