/* 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.22s; }
.hero .demo-container { animation-delay: 0.42s; }
.hero .cta-btn { animation-delay: 0.68s; }

@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: #a3a3a3;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Demo/Preview Area */
.demo-container {
    max-width: 800px;
    margin: 0 auto 5rem;
    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: 2.75rem 2rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.demo-eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.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--grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 500;
    line-height: 1;
    min-height: 1.15em;
    white-space: nowrap;
}

.rsvp-display--grid .word-left {
    text-align: right;
    color: #f0f0f0;
}

.rsvp-display--grid .word-orp {
    color: var(--accent-color);
    font-weight: 700;
    padding: 0 0.02em;
}

.rsvp-display--grid .word-right {
    text-align: left;
    color: #f0f0f0;
}

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

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

.demo-slider-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 220px;
    justify-content: center;
    min-width: 0;
}

.demo-speed-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.demo-slider-group .wpm-slider {
    flex: 1 1 120px;
    max-width: 200px;
    accent-color: var(--accent-color);
}

.demo-slider-group .wpm-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e8e8e8;
    min-width: 4.5rem;
    text-align: left;
}

.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: three cards, static grid */
.testimonials-section {
    padding: 6rem 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 20, 20, 0.5) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background: #080808;
    border: 1px solid var(--glass-border);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    transition: border-color 0.2s, transform 0.2s;
}

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

.quote {
    color: #ccc;
    font-size: 0.98rem;
    font-style: italic;
    margin: 0 0 1.35rem;
    line-height: 1.6;
    flex: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.author-info span {
    font-size: 0.82rem;
    color: #888;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* 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;
    }
}

/* Post-delete / server flashes (landing has no base_app shell) */
.landing-flash-container {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(32rem, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.landing-flash {
    pointer-events: auto;
    margin: 0;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 18, 20, 0.92);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.landing-flash--success {
    border-color: rgba(52, 199, 89, 0.45);
    background: rgba(24, 44, 32, 0.94);
}

.landing-flash--error {
    border-color: rgba(255, 69, 58, 0.5);
    background: rgba(44, 22, 22, 0.94);
}

.landing-flash--info {
    border-color: rgba(100, 180, 255, 0.4);
    background: rgba(22, 28, 44, 0.94);
}