/* === CLEAN SNES STYLE HERO === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-color: #f5f5f7;
    --text-color: #1a1a1a;
    --accent-color: #4A90E2;
    --dot-color: #e5e5e5;
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

.hero {
    min-height: auto;
    /* Allow natural height */
    padding-top: 120px;
    /* Space for fixed header */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    /* changed from hidden to allow tooltips if needed */
    background-color: #ffffff;
}

#dna-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above background pattern, below content */
    pointer-events: none;
    /* Let mouse interact with underlying elements if needed, but script tracks global mousemove anyway */
}

/* Premium Tech Grid Pattern */
/* Premium Tech Grid Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* Visible Gray Grid - Clean Theme */
    display: block;
    background-image:
        /* Horizontal lines */
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        /* Vertical lines */
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 100% 50px, 50px 100%;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
    pointer-events: none;
    opacity: 1;

    /* Gentle drift animation */
    animation: grid-drift 30s linear infinite;
}

/* Hide footer dots to clean up bottom area */
.hero-footer {
    display: none;
}

/* === HERO TEXT SHADOW EFFECT === */
.hero-title {
    text-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Dedicated shadow element below title */
.hero-title-shadow {
    width: 350px;
    height: 40px;
    margin: -5px auto 15px auto;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
    filter: blur(12px);
}

.hero-subtitle {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.text-gradient {
    text-shadow: none;
    /* Gradient text shouldn't have shadow */
}

@keyframes grid-flow {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 0 40px, 60px 0;
    }
}

@keyframes grid-drift {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 0 60px, 60px 0;
    }
}





/* === Aurora Gradients === */
.hero-aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-aurora::before,
.hero-aurora::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: aurora-float 20s infinite alternate;
}

.hero-aurora::before {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.3), rgba(139, 92, 246, 0.15), transparent 70%);
    top: -200px;
    left: -200px;
    animation-duration: 25s;
}

.hero-aurora::after {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 163, 245, 0.25), rgba(6, 182, 212, 0.15), transparent 70%);
    top: 100px;
    right: -100px;
    animation-duration: 20s;
    animation-direction: alternate-reverse;
}

@keyframes aurora-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

@keyframes dots-float {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

@keyframes grid-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

/* Crosshair Accents - DISABLED to remove dots */
.hero::after {
    display: none;
    /* Hidden to remove unwanted dots */
}

/* === HEADER / NAV === */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    position: relative;
    z-index: 100;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.nav-pills {
    display: flex;
    gap: 8px;
    background: rgba(235, 235, 235, 0.6);
    padding: 6px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.nav-pill {
    padding: 8px 20px;
    border-radius: 100px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-pill.active,
.nav-pill:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-button {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* === MAIN HERO CONTENT === */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 20px;
    /* Reduced from 60px */
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.status-pill-clean {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 16px;
    /* Reduced from 24px */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    /* Increased max size */
    font-weight: 800;
    /* Bolder */
    line-height: 1.0;
    color: #1a1a1a;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    /* Reduced from 24px */
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
    /* Gray-600 */
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-primary-clean {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid transparent;
}

.btn-primary-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #000;
}

.btn-ghost-clean {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: #fff;
    color: #1a1a1a;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: 10px;
}

.btn-ghost-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.hero-actions {
    display: flex;
    gap: 12px;
    gap: 12px;
    margin-bottom: 50px;
    /* Increased margin to give space before controller */
}

/* === CONTROLLER & CURSOR STYLES === */
.controller-container {
    position: relative;
    width: 600px;
    /* Restrict width */
    max-width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.snes-controller {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.snes-controller:hover {
    transform: translateY(-5px) scale(1.02);
}

.cursor-tag {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    pointer-events: none;
    /* Let clicks pass through */
}

.cursor-amirali {
    top: -40px;
    /* Moved further up */
    left: 0;
    /* Adjusted position */
    animation: floatCursor 4s ease-in-out infinite;
}

.cursor-sina {
    bottom: -20px;
    right: 0;
    /* Adjusted position */
    animation: floatCursor 4s ease-in-out infinite reverse;
}

@keyframes floatCursor {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cursor-label {
    padding: 6px 12px;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: -5px;
    /* Tweak spacing */
}

.cursor-tag svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.play-tooltip {
    position: absolute;
    top: -50px;
    background: white;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.controller-container:hover .play-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.clean-social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.avatar-stack {
    display: flex;
    margin-left: 10px;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.proof-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.stars {
    color: #F59E0B;
    margin-right: 6px;
}

.hero-footer {
    display: none;
    /* Hide footer links for cleaner look */
}

/* ===================================
   Super Creator Bros (Modern Tech Reskin)
   =================================== */
/* Using 'Inter' and 'Space Grotesk' from main import */

.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Darker sleek overlay */
    backdrop-filter: blur(12px);
}

.console-wrapper {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.monitor-casing {
    background: transparent;
    padding: 0;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Thin glass border */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.game-modal.active .monitor-casing {
    transform: scale(1);
}

.screen-bezel {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.crt-screen {
    position: relative;
    width: 800px;
    height: 500px;
    background: #0f172a;
    /* Tech Dark */
    overflow: hidden;
    border-radius: 12px;
}

/* No Scanlines - Clean Digital Look */
.scanlines {
    display: none;
}

canvas#superCreatorCanvas {
    width: 100%;
    height: 100%;
    /* No pixelation, smooth clean lines */
}

/* UI Layers */
.game-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.pixel-title {
    font-family: 'Space Grotesk', system-ui;
    /* Modern Font */
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* === Tech Stack Section === */
.tech-stack-section {
    padding: 80px 5%;
    background-color: #f8fafc;
    /* Slate-50 */
    text-align: center;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.tech-stack-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.tech-stack-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.tech-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    /* Slate-400 */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-logo-item i {
    font-size: 1.5rem;
}

.tech-logo-item:hover {
    color: #1a1a1a;
    transform: translateY(-2px);
}

.pixel-subtitle {
    font-family: 'Inter', system-ui;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pixel-score {
    font-family: 'Space Grotesk', system-ui;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
}

.text-red {
    color: #f87171;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.nes-btn {
    font-family: 'Inter', system-ui;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 32px;
    background: #4A90E2;
    /* Brand Blue */
    color: #fff;
    border: none;
    border-radius: 100px;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nes-btn:hover {
    transform: translateY(-2px);
    background: #5b9ff0;
    box-shadow: 0 15px 25px rgba(74, 144, 226, 0.3);
}

.nes-btn:active {
    transform: scale(0.98);
}

.controls-hint {
    margin-top: 30px;
    font-family: 'Inter', system-ui;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
}

/* === Services / What We Offer (Clean Style) === */
.services {
    background-color: #ffffff;
    padding: 100px 0;
}

.services .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.services .section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(74, 144, 226, 0.2);
}

/* Big Image Preview Structure */
.service-preview {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f8fafc;
}

.service-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-preview-img {
    transform: scale(1.05);
}

.service-card-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-card-inner p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #f8fafc;
    color: #1a1a1a;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.service-cta-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Make first two cards span 2 columns on large screens for emphasis if desired
   (Optional: only if grid columns match) */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide TV decorations */
.tv-logo,
.power-led {
    display: none;
}

.tv-power-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 30;
}

/* ===================================
   Premium Game Modal
   =================================== */

.game-hud-header,
.game-hud-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.game-hud-footer {
    border-top: 1px solid #f1f5f9;
    border-bottom: none;
}

.hud-item i {
    margin-right: 6px;
    color: #10b981;
}

.premium-start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
}

.game-logo-box {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.premium-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.03em;
}

.premium-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 20px;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Mission Report Card */
.mission-report-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.score-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.score-item .label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Space Grotesk', sans-serif;
}

/* Updated Buttons - Premium Tech Style */
.nes-btn {
    position: relative;
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

/* Primary "Start Building" - Cyber Black */
.nes-btn.is-primary {
    background: #0f172a;
    /* Slate 900 */
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nes-btn.is-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: -1;
}

.nes-btn.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

.nes-btn.is-primary:hover::before {
    transform: translateX(100%);
}

/* Secondary "Explore" - Glass/Clean */
.nes-btn.is-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.nes-btn.is-secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Restart Button - Tech Link */
.text-btn {
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    /* Pill shape */
    margin-top: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.text-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.02);
}

.text-btn i {
    transition: transform 0.5s ease;
}

.text-btn:hover i {
    transform: rotate(180deg);
}

/* ===================================
   Sonic Grid (Sequencer Styles)
   =================================== */

.sonic-grid-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    /* 8 Steps */
    grid-template-rows: repeat(8, 1fr);
    /* 8 Pitches */
    gap: 8px;
    background: #f8fafc;
    position: relative;
    z-index: 100;
}

.grid-cell {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.grid-cell:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(0.95);
}

.grid-cell.active {
    background: #3b82f6;
    /* Blue Note */
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.grid-cell.playing {
    border-color: #f59e0b;
    /* Amber Playhead Highlight */
    background: rgba(245, 158, 11, 0.1);
}

.grid-cell.active.playing {
    background: #fff;
    /* Flash white when played */
    box-shadow: 0 0 20px #3b82f6;
    transform: scale(1.1);
}

/* Playhead Overlay Effect */
.grid-column-highlight {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12.5%;
    /* 1/8th */
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: left 0.1s linear;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===================================
   Site Architect (Puzzle Styles)
   =================================== */

/* Action Buttons Stack - Fix Overlap */
.action-buttons-stack {
    display: flex;
    flex-direction: column;
    /* Stack vertically for clean look */
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.action-buttons-stack .nes-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================================
   In-Game HUD Overlay
   =================================== */
.game-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass to canvas */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hud-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hud-score-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hud-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.hud-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.hud-health-bar {
    width: 200px;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 5px;
}

.health-fill {
    width: 100%;
    height: 100%;
    background: #10b981;
    transition: width 0.2s ease;
}

.rank-badge {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    color: #eab308;
    text-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}


.puzzle-container {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 100;
    /* Ensure visibility */
}

.puzzle-card {
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    position: relative;
    user-select: none;
}

.puzzle-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.puzzle-card.selected {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    z-index: 10;
}

.puzzle-card.correct-pos {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.puzzle-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.puzzle-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.puzzle-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.puzzle-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Hide unused */
.tv-logo,
.power-led,
.mobile-controls,
.scanlines {
    display: none !important;
}

/* Controller Tooltip */
/* Controller Tooltip - High Engagement Action Badge */
@keyframes float-badge {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.play-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    white-space: nowrap;
    z-index: 20;
    scale: 0.9;

    /* Premium visual effects */
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 1);

    /* Initial state transition */
    transition: opacity 0.3s ease, scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    border: 2px solid #3b82f6;
    z-index: -1;
    animation: pulse-ring 2s infinite cubic-bezier(0.2, 0, 0, 1);
    opacity: 0;
    /* Hidden by default */
}

.play-tooltip i {
    margin-left: 10px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Hover State */
.controller-container:hover .play-tooltip {
    opacity: 1;
    scale: 1;
    animation: float-badge 2s ease-in-out infinite;
    /* Bobbing effect */
}

.controller-container:hover .play-tooltip::before {
    opacity: 1;
    /* Activate pulse */
}

.snes-controller {
    width: 100%;
    max-width: 850px;
    height: auto;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;
    cursor: pointer;
}

.snes-controller:hover {
    transform: translateY(-5px) scale(1.02);
}

/* === SOCIAL PROOF === */
.clean-social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar-stack {
    display: flex;
    justify-content: center;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: center;
}

.stars {
    color: #f59e0b;
}

/* === FLOATERS (Cursors, etc) === */
.floater {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.cursor-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    /* allow interaction */
    cursor: default;
    z-index: 25;
}

.cursor-tag svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.cursor-label {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Positions - Adjusted for new layout */
.cursor-amirali {
    top: 10%;
    left: 10%;
    /* Adjusted outward */
    animation: float 5s ease-in-out infinite;
}

.cursor-sina {
    top: 5%;
    right: 12%;
    /* Adjusted outward */
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* === BOTTOM NAV - STATIC LINKS === */
.hero-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-bottom: 40px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.footer-link:hover {
    color: #000;
    background: transparent;
}

.footer-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.footer-link:hover .footer-dot {
    transform: none;
}

/* Colors for dots */
.dot-green {
    background: #22c55e;
}

.dot-blue {
    background: #3b82f6;
}

.dot-yellow {
    background: #eab308;
}

.dot-red {
    background: #ef4444;
}

/* === FLOATING BOTTOM DOCK === */
.bottom-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
}

.bottom-nav-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 25px 30px -5px rgba(0, 0, 0, 0.12);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 64px;
    position: relative;
    border: 1px solid transparent;
}

.bottom-nav-item i {
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
}

.bottom-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

.bottom-nav-item.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
}

.bottom-nav-item:hover i,
.bottom-nav-item.active i {
    color: #0f172a;
    transform: translateY(-2px);
}

.bottom-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #0f172a;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 100px;
    text-decoration: none;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.bottom-nav-cta:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    color: #fff;
}


@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-pills {
        display: none;
        /* Hide pills on mobile */
    }

    .snes-controller {
        max-width: 90%;
    }

    .cursor-tag {
        display: none;
        /* Hide floaters on mobile to reduce clutter */
    }

    .hero-footer {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* ================================================
   SERVICE CARD "HOW?" BUTTON & BOTTOM SHEET MODAL
   ================================================ */

/* Light Premium Service Card Hover Interaction */
.service-preview {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px;
}

.service-preview-img {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
}

.service-preview:hover .service-preview-img {
    filter: blur(8px) brightness(0.9);
    transform: scale(1.08);
}

.service-how-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 20;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.service-how-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-preview:hover .service-how-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Light Premium Bottom Sheet Modal */
.service-bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
}

.service-bottom-sheet.active {
    pointer-events: all;
    visibility: visible;
}

.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-bottom-sheet.active .bottom-sheet-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 85vh;
    background: #ffffff;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-header {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 10px;
}

.bottom-sheet-close {
    position: absolute;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid #f0f0f0;
    background: #f8f8f8;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.2s ease;
}

.bottom-sheet-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #F5F5F0;
}

/* ===== CLEAN CORPORATE CARD MODAL ===== */

/* Hero Section */
.sheet-hero {
    padding: 50px 60px;
    max-width: 1000px;
    margin: 0 auto;
    background: #F5F5F0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

.hero-label {
    font-size: 0.85rem;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 16px;
}

.sheet-service-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sheet-service-title .accent {
    color: #FF6B35;
}

.sheet-service-tagline {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}

.stat-badge {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2C2C2C;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main Content Area */
.sheet-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px 60px;
}

/* Card Grid */
.service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 107, 53, 0.1);
    /* Light orange bg */
    border-radius: 12px;
    /* Soft square instead of circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon i {
    font-size: 1.5rem;
    color: #FF6B35;
    /* Orange icon */
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-bullet-list li {
    font-size: 0.9rem;
    color: #2C2C2C;
    padding-left: 24px;
    margin-bottom: 10px;
    position: relative;
}

.card-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #FF6B35;
    font-weight: 700;
}

/* Live Moodboard Section */
.moodboard-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.moodboard-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

/* Theme Controls */
.theme-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.theme-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theme-pill:hover,
.theme-pill.active {
    background: #fff;
    border-color: var(--theme-accent);
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.theme-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Live Preview Container (General) */
.live-preview-container {
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    position: relative;
    max-width: 100%;
}

/* --- BROWSER TYPE --- */
.live-preview-container.browser {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-height: 250px;
}

.browser-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}

.browser-dots span:nth-child(1) {
    background: #fee2e2;
}

.browser-dots span:nth-child(2) {
    background: #fef3c7;
}

.browser-dots span:nth-child(3) {
    background: #dcfce7;
}

.browser-url {
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
    font-family: monospace;
}

/* --- MOBILE IPHONE TYPE --- */
.live-preview-container.mobile {
    width: 280px;
    height: 520px;
    margin: 0 auto;
    border-radius: 40px;
    border: 12px solid #2d2d2d;
    box-shadow:
        0 0 0 2px #4b5563,
        0 20px 50px -10px rgba(0, 0, 0, 0.3);
    background: var(--p-bg);
    display: flex;
    flex-direction: column;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #2d2d2d;
    border-radius: 0 0 16px 16px;
    z-index: 20;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--p-text);
}

.home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--p-text);
    opacity: 0.2;
    border-radius: 10px;
}

/* Mobile App Layout */
.mini-app-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 20px;
    overflow: hidden;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.app-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--p-secondary);
    border: 2px solid var(--p-accent);
}

.app-title-group {
    display: flex;
    flex-direction: column;
}

.app-welcome {
    font-size: 0.65rem;
    color: var(--p-text);
    opacity: 0.6;
}

.app-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--p-text);
}

.app-card-hero {
    background: var(--p-accent);
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.2);
    transition: background 0.5s ease;
}

.app-card-title {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.app-card-val {
    font-size: 1.5rem;
    font-weight: 700;
}

.app-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--p-secondary);
    border-radius: 12px;
    transition: background 0.5s ease;
}

.app-icon.square {
    width: 32px;
    height: 32px;
    background: var(--p-bg);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.line {
    height: 4px;
    background: var(--p-text);
    opacity: 0.1;
    border-radius: 2px;
    transition: background 0.5s ease;
}

.app-nav {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--p-text);
    opacity: 0.1;
    transition: background 0.5s ease;
}

.nav-icon.active {
    background: var(--p-accent);
    opacity: 1;
}

/* --- WEB PORTAL (Advanced) --- */
.live-preview-container.web-portal {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-height: 250px;
}

.web-portal-layout {
    background: var(--p-bg);
    padding: 24px;
    min-height: 280px;
    transition: background 0.5s ease;
}

.wp-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wp-logo {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--p-text);
    transition: color 0.5s ease;
}

.wp-links {
    width: 60px;
    height: 6px;
    background: var(--p-text);
    opacity: 0.1;
    border-radius: 3px;
}

.wp-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--p-accent);
    opacity: 0.8;
}

.wp-hero {
    text-align: center;
    margin-bottom: 30px;
}

.wp-tag {
    display: inline-block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p-accent);
    margin-bottom: 8px;
    font-weight: 700;
}

.wp-title {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--p-text);
    margin-bottom: 16px;
    transition: color 0.5s ease;
}

.wp-cta {
    display: inline-block;
    padding: 10px 24px;
    background: var(--p-text);
    color: var(--p-bg);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.5s ease;
}

.wp-ticker {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--p-text);
    opacity: 0.6;
    letter-spacing: 1px;
}

.wp-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 80px 80px;
    gap: 12px;
}

.wp-grid-item {
    background: var(--p-secondary);
    border-radius: 8px;
    transition: background 0.5s ease;
}

.wp-grid-item.item-lg {
    grid-row: span 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.wp-icon {
    width: 32px;
    height: 32px;
    background: var(--p-accent);
    border-radius: 50%;
    margin-bottom: 12px;
}

.wp-txt {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--p-text);
}


/* --- FRAMER INTERACTIVE (App) --- */
.live-preview-container.framer-app {
    background: #0f172a;
    /* Force dark bg for framer vibe base */
    min-height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.framer-layout {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--p-bg);
    /* Use theme bg */
    transition: background 0.5s ease;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.framer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.f-logo {
    width: 20px;
    height: 20px;
    background: var(--p-text);
    border-radius: 4px;
}

.f-btn {
    width: 80px;
    height: 8px;
    background: var(--p-text);
    opacity: 0.2;
    border-radius: 4px;
}

.framer-hero {
    z-index: 10;
}

.f-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.f-icon {
    width: 8px;
    height: 8px;
    background: var(--p-accent);
    border-radius: 50%;
}

.f-check span {
    font-size: 0.7rem;
    color: var(--p-text);
    font-weight: 600;
}

.f-h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--p-text);
    line-height: 0.9;
    letter-spacing: -1px;
}

.f-h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--p-text);
    opacity: 0.3;
    line-height: 0.9;
    letter-spacing: -1px;
}

.framer-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    /* Glass base */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    transition: all 0.5s ease;
}

.framer-float-card.card-1 {
    width: 140px;
    height: 100px;
    right: 40px;
    top: 80px;
    transform: rotate(-5deg);
    padding: 16px;
}

.framer-float-card.card-2 {
    width: 180px;
    height: 60px;
    right: 60px;
    bottom: 60px;
    transform: rotate(3deg);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: var(--p-secondary);
    /* Solid override for card 2 */
}

.fc-graph {
    width: 100%;
    height: 40px;
    background: var(--p-accent);
    opacity: 0.5;
    border-radius: 4px;
    margin-bottom: 8px;
}

.fc-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--p-text);
}

.fc-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--p-text);
}

.fc-row {
    flex: 1;
    height: 6px;
    background: var(--p-text);
    opacity: 0.1;
    border-radius: 3px;
}

.framer-cursor {
    position: absolute;
    bottom: 40px;
    left: 40%;
    width: 20px;
    height: 20px;
    background: var(--p-accent);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* --- SOCIAL GRID (Graphics) --- */
.live-preview-container.social-grid {
    background: var(--p-bg);
    padding: 32px;
    display: flex;
    justify-content: center;
    min-height: 420px;
}

.social-layout {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--p-accent), var(--p-secondary));
    padding: 3px;
    border: 2px solid var(--p-bg);
    box-shadow: 0 0 0 2px var(--p-secondary);
}

.social-stats {
    display: flex;
    gap: 16px;
}

.stat {
    font-size: 0.75rem;
    color: var(--p-text);
    display: flex;
    flex-direction: column;
}

.stat .bold {
    font-weight: 800;
    font-size: 1rem;
}

.social-bio {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
}

.bio-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--p-text);
    margin-bottom: 4px;
}

.bio-text {
    font-size: 0.8rem;
    color: var(--p-text);
    opacity: 0.7;
}

.social-highlights {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.highlight {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--p-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.post {
    aspect-ratio: 1;
    background: var(--p-secondary);
    transition: background 0.5s ease;
    background-image: linear-gradient(45deg, transparent 50%, rgba(0, 0, 0, 0.03) 50%);
}

.post:nth-child(2) {
    background: var(--p-accent);
    opacity: 0.1;
}

.post:nth-child(5) {
    background: var(--p-text);
    opacity: 0.05;
}


/* --- BRAND SCATTER (Stationery) --- */
.live-preview-container.brand-scatter {
    background: #e5e5e5;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scatter-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scatter-card {
    position: absolute;
    background: var(--p-bg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.scatter-card.business-card {
    width: 200px;
    height: 120px;
    z-index: 30;
    transform: rotate(5deg)translateY(40px);
    display: flex;
    padding: 20px;
    justify-content: space-between;
    align-items: flex-end;
}

.sc-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--p-accent);
}

.sc-text {
    text-align: right;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--p-text);
}

.sc-tiny {
    opacity: 0.5;
    font-weight: 400;
}

.scatter-card.mobile-screen {
    width: 160px;
    height: 300px;
    z-index: 20;
    transform: rotate(-10deg) translateX(-80px);
    background: var(--p-text);
    /* Contrast screen */
    border-radius: 12px;
    padding: 12px;
}

.sc-header {
    height: 10px;
    width: 40%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.sc-hero {
    width: 100%;
    height: 120px;
    background: var(--p-accent);
    border-radius: 8px;
}

.scatter-card.poster {
    width: 240px;
    height: 340px;
    z-index: 10;
    transform: translateX(60px) translateY(-20px);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sc-poster-art {
    flex: 1;
    background: var(--p-secondary);
    margin-bottom: 12px;
}

.sc-poster-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--p-text);
    opacity: 0.1;
    line-height: 0.8;
}

/* --- PITCH DECK VIEW --- */
.live-preview-container.deck-view {
    background: #000;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.deck-layout {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--p-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    /* Glowing projector feel */
    position: relative;
    transition: background 0.5s ease;
}

.deck-slide {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.slide-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.slide-h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--p-text);
    margin-bottom: 20px;
}

.slide-body {
    flex: 1;
    display: flex;
    gap: 20px;
}

.slide-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--p-secondary);
}

.bar {
    width: 100%;
    background: var(--p-secondary);
    border-radius: 4px 4px 0 0;
    transition: all 0.5s ease;
}

.bar-1 {
    height: 30%;
}

.bar-2 {
    height: 50%;
}

.bar-3 {
    height: 40%;
}

.bar-4.active {
    height: 80%;
    background: var(--p-accent);
}

.slide-stats {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.slide-stat-item .ss-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--p-accent);
}

.slide-stat-item .ss-label {
    font-size: 0.7rem;
    color: var(--p-text);
    opacity: 0.6;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--p-text);
    opacity: 0.4;
    padding-top: 10px;
}

.deck-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    /* Show on hover usually, but let's keep it subtle */
    transition: opacity 0.3s ease;
}

.deck-layout:hover .deck-controls {
    opacity: 1;
}

.dc-btn {
    color: #fff;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.6;
}

.dc-btn.active {
    opacity: 1;
}


/* --- BUSINESS CARD STACK --- */
.live-preview-container.biz-stack {
    background: #e2e8f0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    /* 3D Perspective */
}

.biz-stack-layout {
    position: relative;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
}

.biz-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--p-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.card-back {
    transform: rotate(-5deg) translateZ(-20px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p-text);
    /* Contrast back */
}

.bc-logo-lg {
    font-size: 4rem;
    font-weight: 900;
    color: var(--p-bg);
    opacity: 0.1;
}

.card-front {
    transform: rotate(2deg) translateZ(0);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Card Texture Noise overlay */
.biz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.bc-top {
    display: flex;
    justify-content: flex-end;
}

.bc-logo-sm {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--p-accent);
}

.bc-mid {
    margin-bottom: 20px;
}

.bc-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--p-text);
    margin-bottom: 4px;
}

.bc-role {
    font-size: 0.7rem;
    color: var(--p-text);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bc-btm {
    border-top: 1px solid var(--p-secondary);
    padding-top: 12px;
}

.bc-contact {
    font-size: 0.7rem;
    gap: 12px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    background: #FFF5F2;
}

.tech-tag i {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tech-tag:hover i {
    color: #FF6B35;
}

/* CTA Section */
.sheet-cta-section {
    text-align: center;
    padding: 20px 0;
}

.sheet-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: #FF6B35;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.sheet-cta-btn:hover {
    background: #ea580c;
    /* Darker orange */
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

/* Responsive */
@media (max-width: 900px) {
    .sheet-hero {
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
    }

    .hero-stats {
        flex-direction: row;
        width: 100%;
    }

    .stat-badge {
        flex: 1;
    }

    .sheet-content {
        padding: 0 30px 50px;
    }

    .service-card-grid {
        grid-template-columns: 1fr;
    }

    .sheet-service-title {
        font-size: 2.2rem;
    }
}

/* --- LOGO LAB PRO --- */
.live-preview-container.logo-lab {
    background: #f8fafc;
    min-height: 480px;
    /* Taller for detail */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-lab-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Grid Background */
.lab-grid-bg {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(var(--p-secondary) 1px, transparent 1px),
        linear-gradient(90deg, var(--p-secondary) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.2;
    transform: rotate(45deg);
}

/* Spec Panel (Side) */
.lab-spec-panel {
    position: absolute;
    left: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
    width: 100px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--p-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 4px;
}

.spec-label {
    opacity: 0.6;
}

.spec-val {
    font-weight: 700;
}

.spec-swatches {
    display: flex;
    gap: 4px;
    padding-top: 4px;
}

.spec-s {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.spec-s:nth-child(1) {
    background: var(--p-text);
}

.spec-s:nth-child(2) {
    background: var(--p-accent);
}


/* Center Stage */
.lab-center {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.main-logo-mark {
    width: 100px;
    height: 100px;
    background: var(--p-text);
    border-radius: 50% 0 50% 50%;
    /* Abstract shape */
    transform: rotate(-15deg);
    transition: background 0.5s ease;
    z-index: 5;
    position: relative;
}

/* Vector Points */
.vector-p {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border: 1px solid #2563eb;
    border-radius: 50%;
    z-index: 10;
}

.p1 {
    top: 0;
    left: 0;
}

.p2 {
    bottom: 0;
    right: 0;
}

.p3 {
    top: 50%;
    right: 0;
}

/* Construction Guides */
.guide-circle,
.guide-line {
    position: absolute;
    border: 1px solid var(--p-accent);
    opacity: 0.3;
    pointer-events: none;
}

.guide-spiral {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid var(--p-accent);
    border-radius: 0 100% 0 0;
    opacity: 0.2;
    top: 30px;
    left: 30px;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-style: dashed;
}

.ring-2 {
    width: 61.8%;
    height: 61.8%;
    border-radius: 50%;
    opacity: 0.2;
}

/* Golden Ratio ish */
.line-v {
    width: 1px;
    height: 140%;
    background: var(--p-accent);
    top: -20%;
    border: none;
}

.line-h {
    height: 1px;
    width: 140%;
    background: var(--p-accent);
    left: -20%;
    border: none;
}

.line-d1 {
    height: 1px;
    width: 140%;
    background: var(--p-accent);
    left: -20%;
    transform: rotate(45deg);
    border: none;
}

.lab-footer {
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
}

.lf-meta {
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--p-text);
    opacity: 0.5;
}

.lf-coords {
    font-family: monospace;
    font-size: 0.6rem;
    color: var(--p-accent);
}


/* --- PACKAGING BOX MODEL (3D) --- */
.live-preview-container.box-model {
    background: #e5e7eb;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
}

.box-model-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.box-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(45deg);
    animation: boxRotate 12s infinite linear;
}

@keyframes boxRotate {
    0% {
        transform: rotateX(-20deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-20deg) rotateY(360deg);
    }
}

.box-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--p-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--p-text);
    backface-visibility: inherit;
    transition: background 0.5s ease;
}

.box-front {
    transform: translateZ(100px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.box-back {
    transform: rotateY(180deg) translateZ(100px);
    background: var(--p-secondary);
}

.box-right {
    transform: rotateY(90deg) translateZ(100px);
    background: var(--p-secondary);
}

.box-left {
    transform: rotateY(-90deg) translateZ(100px);
    background: var(--p-secondary);
}

.box-top {
    transform: rotateX(90deg) translateZ(100px);
    background: var(--p-bg);
}

.box-bottom {
    transform: rotateX(-90deg) translateZ(100px);
    background: #000;
    opacity: 0.1;
}

.box-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--p-text);
}

.box-prod-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--p-accent);
}

.box-lines {
    width: 80%;
    height: 4px;
    background: var(--p-text);
    opacity: 0.1;
    margin-bottom: 4px;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
}

.box-lid {
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.box-shadow {
    width: 200px;
    height: 40px;
    background: radial-gradient(rgba(0, 0, 0, 0.2), transparent);
    border-radius: 50%;
    margin-top: 60px;
    transform: rotateX(70deg);
}

/* --- VIBEA AI MODES (HIGH CONTRAST) --- */
.ai-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    width: fit-content;
    backdrop-filter: none;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ffffff;
    /* Pure White */
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    /* Pure Black */
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mode-btn i {
    font-size: 0.9rem;
    color: #000000;
    transition: transform 0.2s ease;
}

.mode-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mode-btn:hover i {
    transform: scale(1.1);
}

.mode-btn.active {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mode-btn.active i {
    color: #ffffff;
}

/* Accent borders for active state if needed, or keep simple black/white */
.mode-btn.active[data-mode="creative"] {
    border-bottom: 3px solid #a855f7;
}

.mode-btn.active[data-mode="prototype"] {
    border-bottom: 3px solid #3b82f6;
}

.mode-btn.active[data-mode="basic"] {
    border-bottom: 3px solid #f97316;
}

/* Subtle Glows for Active States */
.mode-btn.active[data-mode="creative"] {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mode-btn.active[data-mode="prototype"] {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mode-btn.active[data-mode="basic"] {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mode-btn.active[data-mode="creative"] i {
    color: #d8b4fe;
}

.mode-btn.active[data-mode="prototype"] i {
    color: #93c5fd;
}

.mode-btn.active[data-mode="basic"] i {
    color: #fdba74;
}

/* --- SETTINGS PANEL --- */
.vibea-settings-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 240px;
    background: rgba(23, 23, 33, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vibea-settings-panel.active {
    display: flex;
    opacity: 1;
}

.setting-group label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.setting-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.setting-select option {
    background: #1a1a2e;
}

.res-btn-group {
    display: flex;
    gap: 8px;
}

.res-btn {
    flex: 1;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}

.res-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.res-btn.active {
    background: #8B5CF6;
}