/* styles.css */
:root {
    --primary-color: #FF6C08;
    /* OpenTune Orange */
    --primary-hover: #CC5500;
    /* Darker Orange for hover */
    --secondary-color: #64748B;
    --text-main: #1E293B;
    --text-muted: #475569;
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #CBD5E1;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.logo .app-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a:not(.btn) {
    color: var(--text-main);
    font-weight: 600;
}

.nav a:not(.btn):hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 1.5rem;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image .mockup {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Sections Common */
.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

.bg-light {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

/* Features Slider */
.features-slider-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    align-items: center;
}

.features-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 1rem 0.5rem 3rem 0.5rem;
    margin: 0 -0.5rem;
    cursor: grab;
    user-select: none;
}

.features-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.features-grid:active {
    cursor: grabbing;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex: 0 0 calc((100% - 4rem) / 3);
    /* 3 items visible */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.features-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-color);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.features-slider-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.05);
}

.features-slider-btn.prev {
    left: -1.75rem;
}

.features-slider-btn.next {
    right: -1.75rem;
}

@media (max-width: 1250px) {
    .features-slider-btn.prev {
        left: 0.5rem;
    }

    .features-slider-btn.next {
        right: 0.5rem;
    }

    .features-slider-btn {
        background: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 1024px) {
    .feature-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        /* 2 items visible */
    }
}

@media (max-width: 768px) {
    .feature-card {
        flex: 0 0 85%;
        /* 1.15 items visible to show overflow */
        padding: 2rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .features-slider-btn {
        display: none;
    }
}


/* Screenshots / Slider */
/* Section Subtitles */
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.screenshots-intro {
    margin-bottom: 2rem;
}

.screenshots {
    padding: 5rem 1.5rem;
    position: relative;
    max-width: 960px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: #FFFFFF;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide img {
    width: 100%;
    aspect-ratio: 943 / 1027;
    display: block;
    object-fit: contain;
    background: #FFFFFF;
    margin: 0;
    padding: 0;
}

.slide-caption {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    color: var(--text-main);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-top: 1px solid var(--border-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: white;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Customization */
.customization {
    padding: 5rem 1.5rem;
}

.customization-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.customization-text {
    flex: 1;
}

.customization-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.color-picker-demo {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, outline 0.1s;
    border: 2px solid white;
    outline: 3px solid transparent;
    outline-offset: 2px;
}

.color-swatch:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.color-swatch.active {
    outline-color: var(--primary-color);
    transform: scale(1.12);
}

.theme-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.theme-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 36px;
}

.instruction-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.customization-image-wrapper {
    flex: 1.5;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.customization-image {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

/* Instructions */
/* Workflow Section (Instructions) */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.workflow-card {
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-5px);
}

.workflow-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.workflow-icon-bg {
    width: 60px;
    height: 60px;
    background: rgba(255, 108, 8, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.5rem;
}

.workflow-card-header h3 {
    font-size: 1.75rem;
    color: var(--text-main);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workflow-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.step-badge {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.step-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 968px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Download */
.download {
    padding: 5rem 1.5rem;
    text-align: center;
}

.download-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.download-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.download-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    width: 250px;
    transition: all 0.2s;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.download-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.download-card:hover i {
    color: var(--primary-color);
}

.download-card h3 {
    margin-bottom: 0.5rem;
}

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

.download-card.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
    background-color: var(--bg-light);
}

.download-card.disabled i {
    color: #94A3B8;
}


.source-code-link {
    background: var(--bg-light);
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text-main);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #334155;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo .app-icon {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #CBD5E1;
}

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

.copyright {
    color: #94A3B8;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }


    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .customization-content {
        flex-direction: column;
        text-align: center;
    }

    .customization .section-title {
        text-align: center !important;
    }

    .color-picker-demo {
        justify-content: center;
    }
}