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

:root {
    /* Brand Colors */
    --primary-red: #ff3131;
    --primary-orange: #ff914d;
    --bg-cream: #fff9ef;
    --bg-pink: #ffefef;
    
    /* Extended Palette */
    --primary-red-dark: #cc0000;
    --primary-red-light: #ff3333;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    
    /* Utilities */
    --border-subtle: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-red: rgba(255, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: 
        linear-gradient(135deg, 
            rgba(255, 49, 49, 0.02) 0%, 
            rgba(255, 255, 255, 1) 20%,
            rgba(255, 255, 255, 1) 40%,
            rgba(255, 145, 77, 0.015) 60%,
            rgba(255, 255, 255, 1) 80%,
            rgba(255, 49, 49, 0.01) 100%
        );
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Full-screen gradient backgrounds are applied per section */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Navbar when scrolled */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 20px var(--shadow-light);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 
        0 4px 12px var(--shadow-red),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.navbar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
}

.navbar-subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 80px;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 100px 20px 80px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 1200px 600px at 70% 20%, rgba(255, 49, 49, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 1000px 500px at 30% 80%, rgba(255, 145, 77, 0.05) 0%, transparent 50%),
        var(--bg-white);
    pointer-events: none;
    z-index: 0;
}

/* Demo Section */
.demo-section {
    margin-bottom: 100px;
    padding: 100px 20px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 1500px 800px at 20% 30%, rgba(255, 145, 77, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 1200px 700px at 80% 70%, rgba(255, 49, 49, 0.03) 0%, transparent 50%),
        var(--bg-white);
    pointer-events: none;
    z-index: 0;
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Comparison Area */
.demo-comparison {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 30px var(--shadow-light);
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    user-select: none;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.after-image {
    position: relative;
}

.comparison-slider {
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-button::before,
.slider-button::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: #333;
}

.slider-button::before {
    transform: rotate(45deg) translateX(-4px);
}

.slider-button::after {
    transform: rotate(-45deg) translateX(4px);
}

.comparison-badge {
    position: absolute;
    top: 20px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    z-index: 4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.before-badge {
    left: 20px;
}

.after-badge {
    right: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
}

/* Photo Selector */
.demo-selector {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 30px var(--shadow-light);
}

.selector-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.selector-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.selector-description {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.photo-item {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

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

.photo-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 0, 0, 0.5);
}

.photo-item.active {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 1px var(--primary-red);
}

.style-me-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-red);
}

.style-me-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 38, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
}

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

.coming-soon-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px var(--shadow-red);
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
    padding: 100px 20px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 1400px 900px at 10% 20%, rgba(255, 49, 49, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse 1300px 800px at 90% 80%, rgba(255, 145, 77, 0.035) 0%, transparent 50%),
        var(--bg-white);
    pointer-events: none;
    z-index: 0;
}

.features > * {
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    width: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--shadow-light);
}

/* Gradient overlay - starts from bottom with 50% opacity, ends at 40% height with 0% opacity */
.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0) 20%,
        rgba(10, 10, 10, 0.5) 100%
    );
    filter: blur(50px);
    transition: all 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* Hover effect - slightly enhanced */
.feature-card:hover::before {
    filter: blur(60px);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 
        0 25px 70px var(--shadow-red),
        0 0 0 1px rgba(255, 0, 0, 0.2);
}

/* Content wrapper - max 40% height */
.feature-content {
    position: relative;
    z-index: 2;
    padding: 24px 28px;
    width: 100%;
    max-height: 40%;
    background: transparent;
    transition: all 0.4s ease;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-white);
    letter-spacing: 0px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    padding: 80px 40px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 49, 49, 0.02) 0%, transparent 30%, rgba(255, 145, 77, 0.03) 100%),
        var(--bg-white);
    pointer-events: none;
    z-index: 0;
}

.stats > * {
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* CTA */
.cta {
    text-align: center;
    margin-bottom: 100px;
    padding: 120px 20px;
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 1600px 900px at 50% 50%, rgba(255, 145, 77, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 1200px 700px at 30% 20%, rgba(255, 49, 49, 0.025) 0%, transparent 50%),
        var(--bg-white);
    pointer-events: none;
    z-index: 0;
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    font-weight: 500;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px var(--shadow-red),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

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

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(255, 38, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
}

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

.download-btn svg {
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 80px 20px 40px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 1000px 400px at 80% 50%, rgba(255, 145, 77, 0.025) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(255, 49, 49, 0.015) 100%),
        var(--bg-white);
    pointer-events: none;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.separator {
    color: var(--text-light);
    font-size: 0.875rem;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 3rem;
    }

    .features {
        padding: 60px 20px;
    }
    
    .features::before {
        background: 
            radial-gradient(ellipse 600px 500px at 50% 30%, rgba(255, 49, 49, 0.03) 0%, transparent 50%),
            radial-gradient(ellipse 600px 450px at 50% 70%, rgba(255, 145, 77, 0.04) 0%, transparent 50%),
            var(--bg-white);
    }
    
    .stats {
        padding: 60px 20px;
        gap: 30px;
    }
    
    .cta {
        padding: 80px 20px;
    }
    
    .cta::before {
        background: 
            radial-gradient(ellipse 800px 600px at 50% 50%, rgba(255, 145, 77, 0.05) 0%, transparent 50%),
            radial-gradient(ellipse 600px 450px at 50% 30%, rgba(255, 49, 49, 0.03) 0%, transparent 50%),
            var(--bg-white);
    }
    
    footer {
        padding: 60px 20px 40px;
    }
    
    footer::before {
        background: 
            radial-gradient(ellipse 500px 300px at 50% 50%, rgba(255, 145, 77, 0.03) 0%, transparent 50%),
            linear-gradient(180deg, transparent 0%, rgba(255, 49, 49, 0.02) 100%),
            var(--bg-white);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .navbar-content {
        padding: 12px 20px;
    }

    .navbar-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .navbar-title {
        font-size: 1.25rem;
    }

    .navbar-subtitle {
        font-size: 0.75rem;
    }

    .container {
        padding: 40px 20px;
    }

    header {
        margin-bottom: 60px;
    }

    .hero {
        margin-bottom: 40px;
        padding: 60px 20px 40px;
    }
    
    .hero::before {
        background: 
            radial-gradient(ellipse 600px 400px at 50% 20%, rgba(255, 49, 49, 0.05) 0%, transparent 50%),
            radial-gradient(ellipse 500px 350px at 50% 80%, rgba(255, 145, 77, 0.06) 0%, transparent 50%),
            var(--bg-white);
    }

    .demo-section {
        padding: 60px 20px;
    }
    
    .demo-section::before {
        background: 
            radial-gradient(ellipse 700px 500px at 50% 30%, rgba(255, 145, 77, 0.04) 0%, transparent 50%),
            radial-gradient(ellipse 600px 450px at 50% 70%, rgba(255, 49, 49, 0.04) 0%, transparent 50%),
            var(--bg-white);
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .demo-selector {
        padding: 24px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .demo-section {
        margin-bottom: 60px;
    }

    .hero h2 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .feature-card {
        aspect-ratio: 16 / 9;
    }

    .feature-content {
        padding: 20px 24px;
        max-height: 40%;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 2px;
    }

    .feature-card p {
        font-size: 0.9375rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta {
        margin-bottom: 60px;
    }

    .download-btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 68px;
    }

    .navbar-content {
        padding: 10px 16px;
    }

    .navbar-brand {
        gap: 12px;
    }

    .navbar-logo {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .navbar-title {
        font-size: 1.125rem;
    }

    .navbar-subtitle {
        font-size: 0.6875rem;
    }

    .hero h2 {
        font-size: 1.875rem;
    }

    .coming-soon-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .feature-card {
        aspect-ratio: 16 / 9;
    }

    .feature-content {
        padding: 18px 20px;
        max-height: 40%;
    }

    .feature-card h3 {
        font-size: 1.125rem;
        margin-bottom: 2px;
    }

    .feature-card p {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header,
.hero,
.features,
.stats,
.cta {
    animation: fadeInUp 0.8s ease-out;
}

.features {
    animation-delay: 0.1s;
}

.stats {
    animation-delay: 0.2s;
}

.cta {
    animation-delay: 0.3s;
}
