/* 
   Qarion Landing Page Styles 
   Premium, Dark, Minimal, Engineering-Driven 
*/

:root {
    /* Color Palette */
    --bg-primary: #111111;
    --bg-secondary: #1C1C1C;
    --bg-elevated: #2A2A2A;
    --accent: #1F6FFF;
    --accent-hover: #1456d3;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --container-small: 800px;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 600; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 500; }
h3 { font-size: 1.5rem; }

.text-accent { color: var(--accent); }
p { color: var(--text-secondary); }
.highlight-text { color: var(--text-primary); font-size: 1.2rem; font-weight: 500; }

.gradient-text {
    background: linear-gradient(135deg, #FFF 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-small {
    max-width: var(--container-small);
}

.section-padding { padding: 6rem 0; }
.section-padding-large { padding: 10rem 0; }

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 4rem; }
.pl-4 { padding-left: 2rem; }
.pr-4 { padding-right: 2rem; }
.spacer-2 { height: 2rem; }

.bg-secondary { background-color: var(--bg-secondary); }

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.align-center { align-items: center; }

/* Buttons & Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #FFF;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(31, 111, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-large { padding: 1.2rem 3rem; font-size: 1.1rem; }

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.desktop-nav a {
    margin: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.parallax-bg {
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transform: translateY(0);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-subheadline {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: var(--text-secondary);
    margin-top: 10px;
    animation: scrollLine 2s infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); opacity: 0; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* Insight Section */
.insight-copy p {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: var(--text-muted);
}
.insight-copy p:last-child {
    font-size: 2.2rem;
    color: #FFF;
}

.transition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 300px;
    gap: 1rem;
}

.transition-img {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition-smooth);
}

.transition-img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.02);
}

.transition-img span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Friction Section */
.pain-points-list {
    list-style: none;
    margin-top: 2rem;
}

.pain-points-list li {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,0,0,0.1);
    color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.split-comparison {
    display: flex;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.split-comparison > div {
    flex: 1;
    position: relative;
}

.good-state {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.bad-state .img-placeholder {
    filter: grayscale(80%) sepia(20%);
}

.img-placeholder .label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

/* Philosophy */
.philosophy-body p {
    font-size: 1.5rem;
}

/* Product Reveal */
.product-showcase {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: radial-gradient(circle at center, #222 0%, #111 70%);
    overflow: hidden;
}

.product-hero-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Innovation & Animation Simulation */
.compression-animation-box {
    width: 100%;
    height: 400px;
    background: var(--bg-elevated);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.animation-stage {
    position: relative;
    width: 200px;
    height: 300px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    border: 1px solid #333;
}

.clothing-stack {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: repeating-linear-gradient(0deg, #444, #444 10px, #555 10px, #555 20px);
    border-radius: 5px;
    transition: height 2s ease-in-out;
}

.clothing-stack.before { height: 250px; opacity: 1; }
.clothing-stack.after { height: 80px; opacity: 0; background: repeating-linear-gradient(0deg, var(--accent), var(--accent) 10px, #1456d3 10px, #1456d3 20px); }

/* Animation defined in JS to toggle classes */
.custom-compress-active .clothing-stack.before { opacity: 0; }
.custom-compress-active .clothing-stack.after { opacity: 1; height: 80px; }

.vacuum-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(31, 111, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(31, 111, 255, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(31, 111, 255, 0); }
}

.caption {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #333;
    border-color: rgba(255,255,255,0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* Personas */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.persona-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.persona-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    filter: brightness(0.6);
}

.persona-card:hover .persona-img {
    transform: scale(1.05);
    filter: brightness(0.4);
}

.persona-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.persona-card:hover .persona-content {
    transform: translateY(0);
}

.persona-content h3 {
    margin-bottom: 0.5rem;
}

.persona-content p {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: 0.1s;
}

.persona-card:hover .persona-content p {
    opacity: 1;
}

/* Lifestyle Scroll Storytelling */
.lifestyle-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.horizontal-scroll-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lifestyle-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.journey-track {
    display: flex;
    gap: 2rem;
    width: 100%;
    padding: 0 5vw;
    /* Simulated horizontal scroll effect for static layout, would be driven by JS mapping scroll Y to X */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.journey-track::-webkit-scrollbar { display: none; }

.journey-item {
    flex: 0 0 60vw;
    height: 50vh;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.journey-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    border-radius: 16px;
}

.journey-item span {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
}

/* Details Map */
.interactive-product-viewer {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.interactive-product-viewer .base-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.hotspot .dot {
    width: 16px;
    height: 16px;
    background: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
    transition: var(--transition-fast);
}

.hotspot:hover .dot {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(31, 111, 255, 0.3);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(20,20,20,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
}

.hotspot:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-20px);
}

.tooltip h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.tooltip p {
    font-size: 0.8rem;
    margin: 0;
}

/* Reviews */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-elevated);
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #FACC15;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.quote {
    font-size: 1.1rem;
    color: var(--text-primary);
    flex-grow: 1;
    margin-bottom: 2rem;
    font-style: italic;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info .name {
    font-weight: 600;
}

.author-info .title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Conversion */
.conversion-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 800px;
    margin: 0 auto;
}

.final-hero-img {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

.guarantee-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.main-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 0 2rem;
    background: var(--bg-primary);
}

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    max-width: 200px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

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

.copyright {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animation Classes */
.reveal-text, .fade-up, .fade-left, .fade-right, .fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-text { transform: translateY(20px); }
.fade-up { transform: translateY(30px); }
.fade-left { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }
.fade-in { transform: none; }

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pl-4, .pr-4 {
        padding: 0;
    }
    
    .friction-visual { grid-row: 1; }
    
    .persona-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    
    .transition-grid {
        grid-template-columns: repeat(2, 1fr);
        height: 400px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .split-comparison {
        flex-direction: column;
    }
    
    .good-state { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
    
    .journey-item { flex: 0 0 85vw; }
}
