/**
 * ArtReel Design System & UI Styling
 * Branded with ArtReel Electric Cyan -> Royal Blue -> Indigo Violet Palette
 */

:root {
    /* Brand Colors derived from ArtReel Logo */
    --brand-cyan: #00a2ea;
    --brand-main: #166fe5;
    --brand-deep: #2e3192;
    --brand-content: #0d5bbd;
    --brand-bg: #eaf4fd;
    --brand-bg-soft: #f0f7fe;
    --brand-gradient: linear-gradient(115deg, #00a2ea 0%, #166fe5 52%, #2e3192 100%);
    --brand-btn-gradient: linear-gradient(90deg, #00a2ea 0%, #166fe5 100%);
    --brand-glow: rgba(0, 162, 234, 0.25);
    
    /* Neutrals */
    --bg-main: #f5f8fc;
    --card-bg: #ffffff;
    --card-border: #e1ebf6;
    --text-main: #0a1128;
    --text-soft: #556987;
    --text-muted: #8fa0b8;
    --positive: #02bc79;
    --positive-bg: #e6f9f2;
    --corner-card: 28px;
    --corner-pill: 36px;
    --shadow-soft: 0 10px 30px rgba(10, 17, 40, 0.05);
    --shadow-hover: 0 20px 45px rgba(0, 162, 234, 0.16);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Bricolage Grotesque', sans-serif;
    letter-spacing: -0.5px;
}

/* Header & Nav */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(225, 235, 246, 0.9);
    height: 74px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.credit-pill {
    background: var(--brand-bg);
    color: var(--brand-content);
    border: 1px solid rgba(0, 162, 234, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-header {
    background: var(--brand-btn-gradient);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: var(--corner-pill);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 162, 234, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 162, 234, 0.45);
}

/* Hero Section */
.hero-section {
    max-width: 1280px;
    margin: 36px auto 60px;
    padding: 0 24px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-bg);
    border: 1px solid rgba(0, 162, 234, 0.25);
    color: var(--brand-content);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 5.2vw, 56px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-title .gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-soft);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 740px;
    margin: 0 auto 38px;
}

/* Dual Card Hero App */
.app-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--corner-card);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1.12fr;
    gap: 30px;
    text-align: left;
    position: relative;
}

/* Left: Dropzone & Settings */
.upload-pane {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dropzone-box {
    border: 2px dashed #b9d2ee;
    border-radius: 22px;
    background: #f8fbfe;
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
}

.dropzone-box:hover, .dropzone-box.dragover {
    border-color: var(--brand-cyan);
    background: var(--brand-bg);
    box-shadow: 0 0 25px var(--brand-glow);
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-bg);
    color: var(--brand-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(0, 162, 234, 0.15);
}

.dropzone-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.dropzone-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Scale & Quality Selector */
.controls-row {
    margin-top: 22px;
}

.control-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.scale-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.scale-btn {
    background: #eef4fb;
    border: 1px solid transparent;
    padding: 11px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.scale-btn:hover {
    background: #e2ecf9;
}

.scale-btn.active {
    background: var(--brand-bg);
    border-color: var(--brand-cyan);
    color: var(--brand-content);
    box-shadow: 0 2px 10px rgba(0, 162, 234, 0.15);
}

.btn-upload-cta {
    margin-top: 20px;
    width: 100%;
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: var(--corner-pill);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 162, 234, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-upload-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(0, 162, 234, 0.45);
}

/* Right: Before / After Split Slider */
.preview-pane {
    display: flex;
    flex-direction: column;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 22px;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 6px 24px rgba(10, 17, 40, 0.1);
    background: #e1ebf6;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.slider-before {
    z-index: 1;
}

.slider-after-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

/* Floating Corner Badges */
.slider-badge {
    position: absolute;
    top: 14px;
    z-index: 5;
    background: rgba(10, 17, 40, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-left { left: 14px; }
.badge-right { 
    right: 14px; 
    background: var(--brand-gradient);
    box-shadow: 0 4px 12px rgba(0, 162, 234, 0.4);
}

/* Drag Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 12px rgba(0, 162, 234, 0.6);
}

.slider-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 162, 234, 0.3);
    color: var(--brand-main);
    font-size: 14px;
    font-weight: 800;
    border: 2px solid var(--brand-cyan);
}

/* Sample Presets Selector */
.presets-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.preset-thumb {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.75;
}

.preset-thumb:hover {
    opacity: 1;
}

.preset-thumb.active {
    opacity: 1;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(0, 162, 234, 0.25);
}

/* Loading & Progress Overlay */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: var(--corner-card);
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.processing-spinner {
    width: 58px;
    height: 58px;
    border: 4px solid var(--brand-bg);
    border-top: 4px solid var(--brand-cyan);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Features Grid */
.section-wrapper {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--text-soft);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 162, 234, 0.4);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-bg);
    color: var(--brand-main);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 162, 234, 0.15);
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 38px 30px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}

.price-card.featured {
    border-color: var(--brand-cyan);
    box-shadow: 0 15px 40px rgba(0, 162, 234, 0.18);
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 162, 234, 0.3);
}

.price-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.price-amount {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.price-amount span {
    font-size: 16px;
    color: var(--text-soft);
    font-weight: 500;
}

.price-features {
    list-style: none;
    margin: 26px 0;
    text-align: left;
    font-size: 14px;
}

.price-features li {
    padding: 9px 0;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-price {
    width: 100%;
    background: #eef4fb;
    color: var(--text-main);
    border: none;
    padding: 14px;
    border-radius: var(--corner-pill);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-price:hover {
    background: #e1ebf6;
}

.price-card.featured .btn-price {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 162, 234, 0.35);
}

/* FAQ Accordion */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
}

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

.faq-answer {
    padding: 0 26px 22px;
    color: var(--text-soft);
    font-size: 14px;
    display: none;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Footer */
footer {
    background: #070d1e;
    color: #8fa0b8;
    padding: 60px 24px 40px;
    margin-top: 100px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #1a2540;
    padding-bottom: 30px;
}

.copyright {
    font-size: 13px;
    text-align: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 860px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    .slider-wrapper {
        height: 320px;
    }
    .nav-links {
        display: none;
    }
}
