/* flimmr Brand Styling & Design System */

:root {
    --bg-primary: #f8f0e3;      /* Warm Off-White / Logo Background */
    --bg-secondary: #ffffff;    /* Pure White for Cards */
    --bg-dark: #101010;         /* Night Black for dark sections (Footer, mockups) */
    --bg-charcoal: #181818;     /* Secondary Dark */
    --text-primary: #101010;    /* Dark text for light background */
    --text-muted: #6e6a64;      /* Muted text */
    --text-light: #ffffff;      /* Light text for dark background */
    
    /* Brand Accents */
    --color-orange: #FF5A1F;    /* Flimmr Flash Orange */
    --color-orange-hover: #e04b15;
    --color-blue: #397CFF;      /* Electric Blue Accent */
    --color-lime: #D7FF3F;      /* Acid Lime Accent */
    --color-yellow: #FFE66D;    /* Timestamp Yellow */
    
    /* Borders & Radia */
    --border-color: rgba(16, 16, 16, 0.08);
    --border-color-dark: #2A2A2A;
    --border-warm: #d0a17f;
    --radius-standard: 8px;
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Layout Sections */
section {
    padding: 80px 0;
}

/* Navigation Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(248, 240, 227, 0.85); /* backdrop blur compatibility */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: background-color var(--transition-fast);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-nav {
    background-color: var(--text-primary);
    color: var(--bg-primary) !important;
    padding: 8px 16px;
    border-radius: var(--radius-standard);
    font-weight: 600;
    font-size: 14px;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-nav:hover {
    transform: scale(1.03);
    background-color: var(--color-orange);
}

/* Hero Section */
.hero {
    padding: 60px 0 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    align-self: flex-start;
    background-color: rgba(255, 90, 31, 0.1);
    color: var(--color-orange);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 56px;
    line-height: 1.05;
}

.hero-title span {
    color: var(--color-orange);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.coming-soon-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 24px;
    margin-top: 16px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(16, 16, 16, 0.03);
}

.coming-soon-badge {
    align-self: flex-start;
    background-color: rgba(255, 90, 31, 0.1);
    color: var(--color-orange);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.coming-soon-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}


.btn-download {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: var(--radius-standard);
    font-weight: 600;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn-download .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-download .btn-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
}

.btn-download .btn-store {
    font-size: 16px;
    font-weight: 700;
}

.btn-download:hover {
    transform: translateY(-2px);
    background-color: var(--color-orange);
    box-shadow: 0 8px 20px rgba(255, 90, 31, 0.2);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-container {
    width: 100%;
    max-width: 360px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 16, 16, 0.15);
    background-color: var(--bg-dark);
    transition: transform var(--transition-normal);
}

.mockup-container:hover {
    transform: rotate(2deg) scale(1.02);
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-size: 38px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-orange);
    box-shadow: 0 16px 32px rgba(200, 118, 58, 0.08);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-standard);
    background-color: rgba(255, 90, 31, 0.1);
    color: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 20px;
}

.feature-card p {
    font-size: 15px;
}

/* Workflow Section (Timeline) */
.workflow {
    background-color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.step-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255, 90, 31, 0.15);
    line-height: 1;
    font-feature-settings: "tnum";
}

.workflow-step h3 {
    font-size: 20px;
}

.workflow-step p {
    font-size: 15px;
}

/* Visual Section with Party Vibe */
.vibe-section {
    padding: 0;
}

.vibe-banner {
    position: relative;
    height: 400px;
    border-radius: var(--radius-standard);
    overflow: hidden;
    margin: 0 24px;
    box-shadow: 0 16px 40px rgba(16, 16, 16, 0.1);
}

.vibe-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.65);
}

.vibe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.vibe-title {
    font-size: 42px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.vibe-text {
    max-width: 600px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-standard);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item[open] {
    border-color: var(--color-orange);
}

.faq-question {
    padding: 24px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 500;
    color: var(--color-orange);
    transition: transform var(--transition-fast);
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid rgba(16, 16, 16, 0.04);
    padding-top: 16px;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 40px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--border-color-dark);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-text {
    color: var(--text-light);
}

.footer-brand p {
    color: #8f8b86;
    font-size: 14px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8f8b86;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-column a {
    color: #c9c5be;
}

.footer-column a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6e6a64;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #6e6a64;
}

.footer-bottom-links a:hover {
    color: var(--text-light);
}

/* Legal Pages Styling */
.legal-page {
    background-color: var(--bg-primary);
}

.legal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.legal-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-header .logo-img {
    width: 28px;
    height: 28px;
}

.legal-header .logo-text {
    font-size: 20px;
    font-weight: 800;
}

.back-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--text-primary);
}

.legal-content {
    padding: 60px 24px;
    max-width: 760px;
}

.legal-content h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.legal-content .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-content section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-content h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 16px;
    margin: 16px 0 8px 0;
}

.legal-content p, .legal-content ul {
    margin-bottom: 16px;
    font-size: 15px;
    color: #403e3a;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--color-orange);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-orange-hover);
}

.legal-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Animations (Scroll-Driven Reveals) */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes reveal {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .scroll-reveal {
            animation: reveal auto linear forwards;
            animation-timeline: view();
            animation-range: entry 10% cover 30%;
        }
    }
}

/* Scroll Animation Fallback via JS class */
.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsiveness (Media Queries) */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .badge {
        align-self: center;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .site-header .btn-nav {
        display: none; /* Keep clean mobile header */
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
