/* Landing Page Specific Styles */
:root {
    --bg-color: #030303;
    /* Deep black */
    --text-color: #ffffff;
    --accent-color: #ff3333;
    /* Red accent from reference */
    --accent-glow: rgba(255, 51, 51, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body.landing-page {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 51, 51, 0.6));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Staggered hero entrance (skipped when prefers-reduced-motion) */
.hero h1, .hero .subtitle, .hero .demo-container, .hero .cta-btn {
    opacity: 0;
    animation: heroReveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero h1 { animation-delay: 0.1s; }
.hero .subtitle { animation-delay: 0.25s; }
.hero .demo-container { animation-delay: 0.45s; }
.hero .cta-btn { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
    .hero h1, .hero .subtitle, .hero .demo-container, .hero .cta-btn {
        opacity: 1;
        animation: none;
    }
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal sections */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Card premium refinement */
.card {
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.landing-nav .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.landing-nav .nav-links a {
    color: #888;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.landing-nav .nav-links a:hover {
    color: white;
}

.btn-primary {
    background-color: white;
    color: black;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 1rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
    font-size: 1.25rem;
    color: #888;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo/Preview Area */
.demo-container {
    max-width: 800px;
    margin: 0 auto 8rem;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.demo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.rsvp-display {
    position: relative;
    z-index: 1;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.rsvp-display .highlight {
    color: var(--accent-color);
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.control-btn.play {
    background: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Features Grid */
.features-section {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.card p {
    color: #888;
    font-size: 1rem;
}

/* Steps Section */
.steps-section {
    padding: 6rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    margin-right: 2rem;
    line-height: 1;
}

.step-content h3 {
    margin: 0 0 0.5rem;
}

.step-content p {
    margin: 0;
    color: #888;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 20, 20, 0.5) 100%);
}

.testimonials-carousel-wrap {
    overflow: hidden;
    margin: 0 -1rem;
    position: relative;
}

.testimonials-carousel-wrap::before,
.testimonials-carousel-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
    pointer-events: none;
}

.testimonials-carousel-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-color) 0%, transparent 100%);
}

.testimonials-carousel-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-color) 0%, transparent 100%);
}

.testimonials-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    animation: testimonialScroll 40s linear infinite;
}

.testimonials-carousel-wrap:hover .testimonials-carousel {
    animation-play-state: paused;
}

@keyframes testimonialScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    flex: 0 0 340px;
    background: #080808;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: border-color 0.2s;
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.quote {
    color: #ccc;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

.author-info span {
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 480px) {
    .testimonial-card {
        flex: 0 0 min(340px, 85vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-carousel {
        animation: none;
        justify-content: center;
        flex-wrap: wrap;
    }
    .testimonials-carousel .testimonial-card:nth-child(n+6) {
        display: none;
    }
}

/* Footer */
.landing-footer {
    text-align: center;
    padding: 4rem 1rem;
    color: #444;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-footer-links {
    margin-bottom: 1rem;
}

.landing-footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.landing-footer-links a:hover {
    color: white;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 1rem;
}

.cta-btn {
    background: white;
    color: black;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

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

    .nav-links {
        display: none;
    }
}