/* 
   The Private Vault - White Paper Theme 
   Palette: deeply rooted in luxury, privacy, and confidence.
   Refined: Light Blue & Off-White, Acrylic texturing.
   Update: Netflix Sans, Darker Background, Stronger Glass Effect.
   Update 2: Video Content Boxes.
   Update 3: Layout Refinements (Play button centering, reduced section spacing).
*/

:root {
    --color-bg: #010a08;
    /* Darker Deep Forest */
    --color-text-primary: #f5f5f0;
    /* Off-White (Primary text now) */
    --color-text-highlight: #f5f5f0;
    /* Off-white for highlights too, as requested */
    --color-accent: #f5f5f0;
    /* Changed from Light Blue (#c1e5f6) to Off-White as requested */
    --font-heading: 'TT Slabs Trial', serif;
    --font-body: 'Zodiak', sans-serif;
    --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
    font-family: 'TT Slabs Trial';
    src: url('../SiteAssets/TT Slabs Trial 2-000/TT Slabs Trial Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TT Slabs Trial';
    src: url('../SiteAssets/TT Slabs Trial 2-000/TT Slabs Trial Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TT Slabs Trial';
    src: url('../SiteAssets/TT Slabs Trial 2-000/TT Slabs Trial Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Zodiak';
    src: url('../SiteAssets/Zodiak/Zodiak-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Zodiak';
    src: url('../SiteAssets/Zodiak/Zodiak-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Zodiak';
    src: url('../SiteAssets/Zodiak/Zodiak-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Zodiak';
    src: url('../SiteAssets/Zodiak/Zodiak-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor implementation */
}

/* Acrylic Glass Texture Overlay - Frosted/Patterned Glass Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Overlay everything slightly */
    pointer-events: none;
    /* High-frequency turbulence with diffuse lighting for textured frosted glass look */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='4' seed='15' stitchTiles='stitch' result='noise'/%3E%3CfeDiffuseLighting in='noise' lighting-color='white' surfaceScale='2' result='diffLight'%3E%3CfeDistantLight azimuth='45' elevation='60'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.06;
    mix-blend-mode: soft-light;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Spotlight Effect on Body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 600px at var(--cursor-x, 50%) var(--cursor-y, 50%),
            rgba(245, 245, 240, 0.05),
            /* Subtle blue glow */
            transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 20;
    /* Higher than glass overlay */
}

/* Three.js Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    /* Increased opacity for dots */
}

/* Enter Workshop Button (Sticky Top Right) */
.enter-workshop-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    padding: 12px 24px;
    border: 1px solid var(--color-accent);
    background: rgba(1, 10, 8, 0.6);
    /* Translucent dark */
    backdrop-filter: blur(20px);
    /* Acrylic Blur */
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    font-weight: 600;
}

.enter-workshop-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(245, 245, 240, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    /* Fade in animation target */
    animation: fadeInHero 2.5s ease-out forwards;
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 20px rgba(245, 245, 240, 0.2));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    /* BOLD as requested */
    margin-bottom: 20px;
    /* Reduced from 20 to check balance */
    color: var(--color-text-highlight);
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(245, 245, 240, 0.2);
    white-space: nowrap;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(245, 245, 240, 0.8);
}

/* Content Sections */
.content-section {
    min-height: auto;
    /* Allow shrinking */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    /* Reduced from 100px */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--transition-smooth);
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-box {
    position: relative;
    border: 2px solid var(--color-text-primary);
    /* White border */
    padding: 60px;
    /* Big padding */
    display: flex;
    justify-content: flex-start;
    /* Align start to control spacing precisely */
    align-items: center;
    overflow: hidden;
    /* For video containment */
    transition: border-color 0.3s;
    background: transparent;
    /* Initially transparent */
}

/* Inner content wrapper to keep z-index above video */
.box-content {
    position: relative;
    z-index: 2;
    /* Text above video */
    width: 65%;
    /* Fixed width for text part */
    transition: opacity 0.5s;
    pointer-events: none;
    /* Let clicks pass through if needed, but play btn is separate */
}

.video-bg {
    position: absolute;
    top: 0;
    right: 0;
    /* right aligned container */
    left: auto;
    /* reset left */
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background: transparent;
    /* Remove black bg to let blur work */
    pointer-events: none;
    /* Removed flex to rely on absolute positioning for child */
}

.video-bg video {
    position: absolute;
    right: 0;
    top: 0;
    width: auto !important;
    /* Do not scale by width */
    height: 100% !important;
    /* Fit by height */
    max-width: none !important;
    /* Prevent width constraint */
    object-fit: contain;
    /* Gradient mask for the blur effect on the left side */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

.content-box.has-played .video-bg {
    opacity: 0.3;
    /* Half-transparent when paused */
}

.content-box.playing .video-bg {
    opacity: 0.8 !important;
}

.content-box h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 30px;
    font-weight: 300;
}

.text-block {
    font-size: 1.5rem;
    line-height: 1.8;
    max-width: 800px;
}

.play-btn {
    position: relative;
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: transform 0.3s, opacity 0.3s;
    outline: none;
    /* Center in remaining space */
    margin-left: auto;
    margin-right: auto;
}

.play-btn svg {
    width: 60px;
    height: 60px;
    fill: var(--color-text-primary);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.play-btn:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

.play-btn:hover svg {
    fill: var(--color-accent);
    filter: drop-shadow(0 0 15px rgba(245, 245, 240, 0.6));
}

/* Hide play button when playing */
.content-box.playing .play-btn {
    opacity: 0;
    pointer-events: none;
}

.highlight {
    color: var(--color-text-highlight);
    border-bottom: 1px solid var(--color-accent);

    position: relative;
    transition: all 0.3s;
    font-weight: normal;
}



/* Footer of the White Paper */
.white-paper-footer {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}

.final-cta {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-highlight);
    text-decoration: none;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.final-cta:hover {
    color: var(--color-accent);
    padding-bottom: 10px;
    text-shadow: 0 0 15px rgba(245, 245, 240, 0.4);
}

@keyframes fadeInHero {
    0% {
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Section Title (standalone) */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 300;
}

/* Comparison Grid - Analysis vs Reality */
.comparison-section {
    padding: 80px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border: 2px solid var(--color-text-primary);
}

.comparison-side {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(1, 10, 8, 0.8);
    overflow: hidden;
}

.comparison-side .placeholder-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 1px dashed rgba(245, 245, 240, 0.3);
    color: rgba(245, 245, 240, 0.5);
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

.comparison-side .placeholder-img small {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.6;
}

.comparison-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    opacity: 0.8;
}

/* Our Aims Section */
.aims-section {
    padding: 100px 0;
    text-align: center;
}

.aims-content {
    max-width: 900px;
    margin: 0 auto;
}

.aims-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.2;
}

.aims-content .text-block {
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.9;
}

.aims-content .text-block p {
    margin-bottom: 30px;
}

.aims-mission {
    font-style: italic;
    color: rgba(245, 245, 240, 0.7);
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
    margin-top: 40px;
}

/* Interactive Hover Effect for Content Boxes */
.content-box[data-hover-effect] {
    transition: all 0.4s var(--transition-smooth);
}

.content-box[data-hover-effect]:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 40px rgba(245, 245, 240, 0.1);
}

/* Hover video activation (when videos are added) */
.content-box[data-hover-effect]:hover .video-bg {
    opacity: 0.3;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .content-section h2,
    .content-box h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-side {
        min-height: 250px;
    }

    .aims-content h2 {
        font-size: 2rem;
    }

    .aims-content .text-block {
        font-size: 1.1rem;
    }

    .content-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px;
    }

    .box-content {
        width: 100%;
    }

    .play-btn {
        align-self: center;
        margin: 20px auto;
    }

    .enter-workshop-btn {
        top: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Shine Effect - Ported from React ShinyText */
.shiny-text {
    display: inline-block;
    background-image: linear-gradient(120deg, #b5b5b5 0%, #b5b5b5 35%, #ffffff 50%, #b5b5b5 65%, #b5b5b5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shiny-animation 2s linear infinite;
}

@keyframes shiny-animation {
    0% {
        background-position: 150% center;
    }

    100% {
        background-position: -50% center;
    }
}

/* Fade Content with Blur - User Request */
.fade-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    /* Optional: slight slide up like FadeContent often does */
    transition: opacity 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, filter, transform;
}

.fade-blur.visible {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* ========== PLAN BOXES ========== */
.plans-section {
    padding: 60px 0 20px;
}

.plans-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-box {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 50px 40px !important;
    position: relative;
}

.plan-box-content {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto !important;
}

.plan-box .text-block {
    max-width: 100%;
    font-size: 1.1rem;
    line-height: 1.7;
}

.plan-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 245, 240, 0.1);
    font-size: 1rem;
    color: rgba(245, 245, 240, 0.8);
}

.plan-feature-list li:last-child {
    border-bottom: none;
}

.plan-box-price {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.plan-box-price span {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.6;
}

.plan-box-btn {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 36px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.plan-box-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: 0 8px 25px rgba(245, 245, 240, 0.2);
    transform: translateY(-2px);
}

.plan-box-featured {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 30px rgba(245, 245, 240, 0.08);
}

.plan-box-featured .plan-box-btn {
    background: var(--color-accent);
    color: var(--color-bg);
}

.plan-box-featured .plan-box-btn:hover {
    background: transparent;
    color: var(--color-accent);
}

.plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
}

@media (max-width: 768px) {
    .plans-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-box {
        padding: 30px 20px !important;
    }
}