/* UpScrolled Video Downloader - Global Styles */
/* Colors: Black (#000000) and White (#FFFFFF) only */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--text-color);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--text-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Main Content */
main {
    flex: 1;
    padding-top: 80px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* Download Form */
.download-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    border: 2px solid var(--text-color);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-field {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    outline: none;
    transition: border-width 0.2s ease;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-field:focus {
    border-width: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--text-color);
}

.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-primary:hover:not(:disabled) {
    background-color: transparent;
    color: var(--text-color);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Progress Bar */
.progress-container {
    display: none;
    margin-top: 1.5rem;
}

.progress-container.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--text-color);
    width: 0%;
    animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% {
        width: 0%;
        margin-left: 0;
    }
    50% {
        width: 70%;
        margin-left: 15%;
    }
    100% {
        width: 0%;
        margin-left: 100%;
    }
}

.progress-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Status Messages */
.status-message {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
}

.status-message.active {
    display: block;
}

.status-message.success {
    border: 1px solid var(--text-color);
}

.status-message.error {
    border: 1px solid var(--text-color);
}

.status-message p {
    margin-bottom: 1rem;
}

.status-message p:last-child {
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--text-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Step Icon */
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.step-icon svg {
    color: #FFFFFF;
}

/* Trust Section */
.trust-section {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.trust-badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.25rem;
    letter-spacing: 3px;
}

/* Section Tagline */
.section-tagline {
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    text-align: left;
    cursor: pointer;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.8;
    margin-bottom: 0;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.content-section h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section ul,
.content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Steps List (How It Works Page) */
.steps-list {
    list-style: none;
    margin-left: 0;
    counter-reset: step-counter;
}

.steps-list li {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 2rem;
    border-left: 2px solid var(--text-color);
    margin-left: 1.5rem;
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 3rem;
    height: 3rem;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.steps-list li:last-child {
    border-left: none;
    padding-bottom: 0;
}

.steps-list h3 {
    margin-bottom: 0.5rem;
}

.steps-list p {
    opacity: 0.8;
    margin-bottom: 0;
}

/* Screenshot Placeholder */
.screenshot-placeholder {
    border: 1px dashed var(--text-color);
    padding: 3rem;
    text-align: center;
    margin: 1rem 0;
    opacity: 0.6;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-width: 2px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid var(--text-color);
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Legal Pages */
.legal-content {
    padding: 3rem 0 4rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    opacity: 0.9;
}

.last-updated {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--text-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-text {
    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .download-form {
        padding: 1.5rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .steps-list li {
        padding-left: 3rem;
    }

    .steps-list li::before {
        width: 2.5rem;
        height: 2.5rem;
        left: -1.25rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
