/* YOKI Camera Promotion Page Styles - Refined for Conversion */
:root {
    --yoki-bg: #050505;
    --yoki-text: #e0e0e0;
    --yoki-accent: #ff3300;
    /* LED Red/Orange */
    --yoki-accent-secondary: #00ccff;
    /* LED Blue */
    --yoki-surface: #111111;
    --yoki-surface-border: #222;
    --font-stack: "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Courier New", monospace;
}

body.yoki-body {
    background-color: var(--yoki-bg);
    color: var(--yoki-text);
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    /* Hide scrollbar for immersive feel but allow scrolling */
    scrollbar-width: none;
}

body.yoki-body::-webkit-scrollbar {
    display: none;
}

/* Sticky CTA - Thumb Zone */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    background: rgba(10, 10, 10, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(16px);
    border: 1px solid var(--yoki-surface-border);
    padding: 8px 8px 8px 16px;
    /* Adjusted padding */
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: slideUp 1s ease-out 2s backwards;
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sticky-cta-text {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

.sticky-cta-btn {
    background: #fff;
    color: #000;
    font-weight: bold;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.sticky-cta-btn:hover {
    transform: scale(1.05);
    color: #000;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Hero Section with Video Placeholder */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Changed from -1 to ensure visibility */
    background: #050505;
    overflow: hidden;
}

/* Dynamic Light Leaks (Aurora/Signal) */
.hero-video-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 51, 0, 0.5), transparent 50%),
        /* 0.15 -> 0.5 */
        radial-gradient(circle at 20% 80%, rgba(0, 204, 255, 0.5), transparent 40%),
        /* 0.15 -> 0.5 */
        radial-gradient(circle at 80% 20%, rgba(200, 50, 255, 0.4), transparent 40%);
    /* 0.1 -> 0.4 */
    filter: blur(80px);
    /* Soft, diffuse light */
    animation: lightDrift 30s infinite alternate-reverse ease-in-out;
    opacity: 0.8;
}

/* Technical Grid Overlay */
.hero-video-bg::after {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    /* Increased size for distortion buffer */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        /* 0.03 -> 0.08 */
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    /* 0.03 -> 0.08 */
    background-size: 60px 60px;
    /* Vignette mask to fade grid at edges */
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    pointer-events: none;
    /* Distortion Effect */
    filter: url('#grid-distortion');
    transform: scale(1.1);
    /* Ensure edges don't show blank space during warp */
}

@keyframes lightDrift {
    0% {
        transform: rotate(0deg) translate(0, 0) scale(1);
    }

    33% {
        transform: rotate(5deg) translate(20px, -20px) scale(1.1);
    }

    66% {
        transform: rotate(-5deg) translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: rotate(0deg) translate(0, 0) scale(1);
    }
}

/* Updated Hero Title: Signal Pulse / Chromatic Aberration */
/* Updated Hero Title: Signal Pulse / Chromatic Aberration (Extreme) */
.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    color: #fff;
    position: relative;
    z-index: 1;
    /* Chromatic Aberration / Signal Effect */
    text-shadow:
        4px 0px 2px rgba(255, 51, 0, 0.8),
        /* Red Accent (Stronger) */
        -4px 0px 2px rgba(0, 204, 255, 0.8),
        /* Blue Accent (Stronger) */
        0 0 40px rgba(255, 255, 255, 0.5);
    /* Bloom (Stronger) */
    animation: signalPulse 3s infinite alternate;
    /* Faster cycle */
    mix-blend-mode: hard-light;
    letter-spacing: -3px;
    filter: contrast(130%);
}

/* Breathing / Signal Pulse Animation (Intense) */
@keyframes signalPulse {
    0% {
        text-shadow:
            4px 0px 2px rgba(255, 51, 0, 0.8),
            -4px 0px 2px rgba(0, 204, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.3);
        filter: blur(0px) contrast(130%);
        transform: scale(1);
    }

    10% {
        /* Sudden Jitter */
        text-shadow:
            6px 1px 4px rgba(255, 51, 0, 0.9),
            -5px -1px 4px rgba(0, 204, 255, 0.9),
            0 0 50px rgba(255, 255, 255, 0.6);
        filter: blur(1px) contrast(150%);
        transform: scale(1.02);
    }

    15% {
        /* Return to base */
        text-shadow:
            4px 0px 2px rgba(255, 51, 0, 0.8),
            -4px 0px 2px rgba(0, 204, 255, 0.8),
            0 0 30px rgba(255, 255, 255, 0.3);
        filter: blur(0px) contrast(130%);
        transform: scale(1);
    }

    45% {
        /* Calm drift */
        text-shadow:
            3px 0px 2px rgba(255, 51, 0, 0.7),
            -3px 0px 2px rgba(0, 204, 255, 0.7),
            0 0 20px rgba(255, 255, 255, 0.3);
        opacity: 0.9;
    }

    50% {
        /* Large Pulse */
        text-shadow:
            8px 0px 4px rgba(255, 51, 0, 1),
            -8px 0px 4px rgba(0, 204, 255, 1),
            0 0 60px rgba(255, 255, 255, 0.8);
        opacity: 1;
        filter: blur(2px) contrast(140%);
    }

    55% {
        /* Post Pulse */
        text-shadow:
            3px 0px 2px rgba(255, 51, 0, 0.7),
            -3px 0px 2px rgba(0, 204, 255, 0.7),
            0 0 20px rgba(255, 255, 255, 0.3);
        opacity: 0.9;
    }

    80% {
        /* Calm */
        transform: scale(1);
    }

    90% {
        /* Pre-glitch */
        transform: skewX(2deg);
        opacity: 0.95;
    }

    92% {
        /* Glitch Snap */
        transform: skewX(-2deg);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.hero-subtitle {
    margin-top: 24px;
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    padding: 0 20px;
    font-family: var(--font-mono);
}

/* Bento Grid */
.bento-section {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

/* Bento Card Styles */
.bento-card {
    background: #111;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    transition: all 0.4s ease;
}

.bento-card:hover {
    border-color: #555;
    transform: translateY(-5px);
}

.bento-card h3 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #fff;
    font-family: var(--font-mono);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.bento-card p {
    color: #ddd;
    margin: 0 0 16px 0;
    /* Added margin for knobs */
    font-size: 0.9rem;
    z-index: 2;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Knob List Styling */
.knob-list {
    display: flex;
    gap: 8px;
    z-index: 2;
    flex-wrap: wrap;
}

.knob-list span {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
}

/* Card Variants */
.card-large {
    grid-column: span 2;
    /* Spans 2 columns on wide screens */
}

@media (max-width: 768px) {
    .card-large {
        grid-column: span 1;
    }
}

.card-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.4s;
    background-size: cover;
    background-position: center;
}

.bento-card:hover .card-bg-visual {
    opacity: 0.7;
}

/* Styling for specific cards */
.card-eq .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_eq_1769710467921.JPG');
}

.card-distort .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_distortion_v2_1769710683413.JPG');
}

.card-reverb .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_reverb_1769710451345.JPG');
}

.card-bitcrusher .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_bit_crusher_v3_1769525388438.jpg');
}

.card-chorus .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_chorus_v4_1769527407947.jpg');
}

.card-delay .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_delay_v3_1769525114402.jpg');
}

.card-fuzz .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_fuzz_v3_1769524762878.jpg');
}

.card-noisegate .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_noisegate_v3_1769525898983.jpg');
}

.card-phaser .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_phaser_v3_1769526196009.jpg');
}

.card-vibrato .card-bg-visual {
    background-image: url('../assets/YOKI/effector/iap_icon_vibrato_v3_1769443889859.jpg');
}

/* Chaos Gallery */
.chaos-section {
    padding: 120px 24px;
    background: #000;
    overflow: hidden;
}

.chaos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 120%;
    /* Wider than screen to allow offset */
    margin-left: -10%;
}

.chaos-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chaos-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.5s;
}

.chaos-item:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
}

.chaos-item:hover img {
    filter: grayscale(0%) contrast(100%);
}

/* Chaos offsets */
.chaos-item:nth-child(2n) {
    transform: translateY(40px) rotate(2deg);
}

.chaos-item:nth-child(3n+1) {
    transform: translateY(-30px) rotate(-1deg);
}

.chaos-item:nth-child(4n) {
    transform: translateY(20px) scale(0.9);
}

@media (max-width: 768px) {
    .chaos-grid {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        gap: 80px;
    }

    .chaos-item {
        transform: none !important;
    }
}

/* Content Container for Text */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px;
}

.philosophy-text {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

.highlight {
    color: #fff;
    font-weight: bold;
}

/* App Store Link in Footer (Standard) */
.store-section {
    text-align: center;
    padding: 120px 24px;
    background: radial-gradient(circle at center, #222 0%, #050505 70%);
}

.store-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #fff;
}

/* Modal Inner Typography */
.detail-title {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 24px 0;
    /* border-bottom: 1px solid #333; */
    padding-bottom: 8px;
    font-family: var(--font-mono);
}

.detail-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--yoki-accent-secondary);
    margin-top: 4px;
    font-weight: normal;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h5 {
    font-size: 1rem;
    color: #aaa;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.detail-section p {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.8;
    margin: 0;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-section li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    padding-left: 16px;
    border-left: 2px solid #444;
}

.detail-section strong {
    color: #fff;
    font-family: var(--font-mono);
    margin-right: 8px;
}

/* Card Interaction clue */
.bento-card {
    cursor: pointer;
}

/* Playing Light Section (Feature Strip) */
.feature-strip-section {
    padding: 120px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 0;
    /* Reset negative margin */
    margin-bottom: 80px;
    font-family: var(--font-stack);
    letter-spacing: 0.05em;
}

/* Feature Strip Layout */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 160px;
    gap: 80px;
    opacity: 0.9;
    transition: opacity 0.5s;
}

.feature-item:hover {
    opacity: 1;
}

/* Alternating Layout */
.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-visual {
    flex: 1.5;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Glass / High-end feel */
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid #222;
}

.feature-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-item:hover .feature-visual img {
    transform: scale(1.03);
}

.feature-text {
    flex: 1;
    padding: 20px;
}

.feature-text h3 {
    font-size: 2rem;
    color: #fff;
    font-family: var(--font-mono);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 3px solid var(--yoki-accent-secondary);
    padding-left: 20px;
    text-shadow: 0 0 30px rgba(0, 204, 255, 0.3);
}

.feature-text p {
    font-size: 1.15rem;
    color: #ccc;
    line-height: 1.9;
    margin: 0;
    font-weight: 300;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .feature-item {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 100px;
        text-align: center;
    }

    .feature-text h3 {
        border-left: none;
        padding-left: 0;
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}