/* VideoSlicer Landing Page Styles */

:root {
    color-scheme: light;
    --blue-primary: #4F46E5;
    --blue-muted: #6B7EB5;
    --purple-muted: #8B6B9B;
    --gradient-start: #2d2b8a;
    --gradient-end: #7C3AED;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --faq-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    --footer-bg: #1a1a1a;
}

html[data-theme="dark"] {
    --blue-primary: #818CF8;
    --blue-muted: #6B7EB5;
    --purple-muted: #A78BBA;
    --gradient-start: #1a1854;
    --gradient-end: #402a55;
    --text-dark: #f0f0f0;
    --text-muted: #a0a0a0;
    --bg-light: #1c1c1e;
    --bg-white: #2c2c2e;
    --card-bg: #2c2c2e;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --faq-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    --footer-bg: #111111;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        --blue-primary: #818CF8;
        --blue-muted: #6B7EB5;
        --purple-muted: #A78BBA;
        --gradient-start: #1a1854;
        --gradient-end: #402a55;
        --text-dark: #f0f0f0;
        --text-muted: #a0a0a0;
        --bg-light: #1c1c1e;
        --bg-white: #2c2c2e;
        --card-bg: #2c2c2e;
        --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        --faq-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        --footer-bg: #111111;
        color-scheme: dark;
    }
}

html[data-theme="light"] {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Flying Emojis Background */
.flying-emojis {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.flying-emoji {
    position: absolute;
    opacity: 0;
    animation: flyUp linear infinite;
    will-change: transform, opacity;
}

@keyframes flyUp {
    0% {
        opacity: 0;
        transform: translateY(100%) rotate(0deg);
    }
    10% {
        opacity: 0.18;
    }
    90% {
        opacity: 0.18;
    }
    100% {
        opacity: 0;
        transform: translateY(-120%) rotate(25deg);
    }
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-white));
    pointer-events: none;
    z-index: 1;
}

.hero h1,
.hero .tagline,
.hero .download-badge {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .flying-emoji {
        animation: none;
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.hero-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    perspective: 600px;
}

.hero-icon img {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease-out;
}

.download-badge {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    background: #ffffff;
    color: #2d2b8a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-download svg {
    width: 22px;
    height: 22px;
}

.hero-note {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.75;
    position: relative;
    z-index: 1;
}

/* Intro Section */
.intro {
    padding: 3rem 2rem;
    background: var(--bg-white);
    text-align: center;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.intro strong {
    color: var(--text-dark);
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Privacy Highlight */
.privacy-highlight {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
}

.privacy-highlight h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.privacy-highlight p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* FAQ Section */
.faq {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--faq-shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

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

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gradient-end);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
}

.cookie-content p {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-btn:hover {
    transform: scale(1.05);
}

.cookie-btn.accept {
    background: var(--blue-primary);
    color: white;
}

.cookie-btn.reject {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.reject:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: var(--footer-bg);
    color: #f0f0f0;
    text-align: center;
}

footer a {
    color: var(--blue-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

footer .links a {
    margin: 0 1rem;
}

footer .copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

footer .powered-by {
    opacity: 0.5;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Privacy Policy Page */
.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.privacy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.privacy-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.privacy-page h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gradient-end);
}

.privacy-page p,
.privacy-page ul {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.privacy-page ul {
    padding-left: 1.5rem;
}

.privacy-page li {
    margin-bottom: 0.5rem;
}

.privacy-page a {
    color: var(--gradient-end);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--gradient-end);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 100;
}

.theme-toggle-group {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 2px;
    gap: 2px;
}

.theme-toggle-group button {
    background: none;
    border: none;
    padding: 5px 7px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
}

.theme-toggle-group button:hover {
    opacity: 0.7;
}

.theme-toggle-group button.active {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.theme-toggle-group svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-group .icon-mobile {
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle-group .icon-desktop {
        display: none;
    }
    .theme-toggle-group .icon-mobile {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 1.5rem;
    }

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

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

    .features,
    .how-it-works {
        padding: 3rem 1rem;
    }

    .features h2,
    .how-it-works h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .step {
        max-width: 100%;
    }

    .privacy-highlight {
        padding: 3rem 1.5rem;
    }

    .privacy-highlight h2 {
        font-size: 1.5rem;
    }

    .privacy-page {
        padding: 2rem 1rem;
    }

    .privacy-page h1 {
        font-size: 1.75rem;
    }

    .privacy-page h2 {
        font-size: 1.25rem;
    }

    .intro {
        padding: 2rem 1rem;
    }

    .intro p {
        font-size: 1rem;
    }

    .faq {
        padding: 3rem 1rem;
    }

    .faq h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .faq-item summary {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0 1.25rem 1rem;
        font-size: 0.9rem;
    }

    .hero .hero-subtitle {
        font-size: 0.95rem;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-content p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .hero-icon img {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

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

    .hero .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-download {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .features h2,
    .how-it-works h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-card .icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

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

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    footer .links a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }

    .hero-icon img {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }
}
