:root {
    /* Baseline from style1.css */
    --bg-dark: #020202;
    --text-main: #e0e0e0;
    --text-muted: #888899;
    --primary-accent: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold-muted: #d4af37;

    /* Font Families */
    --font-hebrew: 'Heebo', sans-serif;
    --font-english: 'Outfit', sans-serif;

    /* Easing */
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Force custom cursor */
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    /* Subtle Open Gradient */
    background: radial-gradient(circle at 50% 50%, #0a0a12 0%, #020202 70%);
    color: var(--text-main);
    font-family: var(--font-hebrew);
    overflow: hidden;
    /* Scroll handled by container */
}

/* FLUID SIMULATION LAYER */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Between background and text */
    pointer-events: auto;
    /* Needs mouse events */
    transition: opacity 0.4s ease;
    opacity: 1;
}

/* Smoke Suppression on UI Focus */
body.ui-focus canvas {
    opacity: 0.12 !important;
    /* Drastic reduction */
}

/* READABILITY OVERLAY */
#readability-overlay {
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    pointer-events: none;
    z-index: 5;
    /* Above canvas, below text */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: left, top, width, height, opacity;
}

/* SCROLL CONTAINER */
.scroll-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    z-index: 10;
    /* Content above canvas */
    scroll-behavior: smooth;
}

/* Hide Scrollbar */
.scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* SECTIONS - OPEN LAYOUT */
section {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Stronger snap intent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    text-align: center;
    overflow: hidden;
    /* Prevent overflow animations */
}

/* STICKY / VISCOUS CONTENT TRANSITIONS */
/* Default State: Heavy, sunken, blurry */
.atmospheric-text,
.grid-layout,
.footer-copyright {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(4px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    /* Long ease-out = viscous feel */
    will-change: transform, opacity, filter;
}

/* Active State: Crispy, settled */
section.in-view .atmospheric-text,
section.in-view .grid-layout,
section.in-view .footer-copyright {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Stagger for grid items if needed, or keep whole grid moving as one heavy unit */

/* ATMOSPHERIC TEXT (No Boxes - Open Cinematic Typography) */
.atmospheric-text {
    position: relative;
    padding: 0;
    /* No visible containers - open layout only */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

/* NO hover effects that create visible boxes */

/* Typography */
.premium-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    /* Tighter layout */
    line-height: 1.1;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-title.small {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.subtitle-accent {
    font-family: var(--font-english);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-desc,
.promise-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    /* Responsive text */
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    /* Wider for open feel */
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* GRID LAYOUT - RESPONSIVE */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin-top: 50px;
    padding: 0 2rem;
}

/* Tablet (Portrait/Small Landscape) */
@media (max-width: 1200px) {
    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
        padding: 0 1rem;
    }

    .grid-card {
        padding: 25px 10px;
        /* Reduced padding */
    }

    .grid-icon {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .grid-card h3 {
        font-size: 0.8rem;
    }

    /* Intro text scaling on mobile */
    .intro-text {
        font-size: 1.5rem;
        /* Smaller than desktop */
    }
}

/* Extra Small Mobile (e.g. iPhone SE) */
@media (max-width: 380px) {
    .grid-layout {
        grid-template-columns: 1fr;
        /* Single column for very narrow */
        max-width: 280px;
    }
}

.grid-card {
    position: relative;
    /* Minimalist Tile */
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Removed transition/hover effects as requested (static glass) */
}

/* No hover transform here - handled by magnetic cursor logic?
   Actually, keep subtle lift for visual feedback even without cursor logic perfection. */
/* .grid-card:hover {
    background: rgba(255, 255, 255, 0.04);
} */

.grid-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.6;
}

.grid-card h3 {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.grid-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* CTA BUTTON (Legacy - see group styles below) */
/* .cta-btn styles moved to group block at bottom of file */

/* MAGIC CURSOR */
#magic-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    /* Extremely high z-index */
    transition:
        width 0.2s cubic-bezier(0.19, 1, 0.22, 1),
        height 0.2s cubic-bezier(0.19, 1, 0.22, 1),
        border-radius 0.2s cubic-bezier(0.19, 1, 0.22, 1),
        background-color 0.2s,
        transform 0.1s linear;
    transform: translate3d(-50%, -50%, 0);
    will-change: width, height, transform;
    mix-blend-mode: difference;
    box-sizing: border-box;
    /* Important for exact border matching */
    display: block !important;
    /* Force visibility */
}

/* Focused State (Magnetic) */
#magic-cursor.locked {
    background: transparent;
    /* No fill, just hug */
    border-color: rgba(255, 255, 255, 0.9);
    border-width: 2px;
    mix-blend-mode: normal;
    /* Dimensions applied via JS */
}

/* TOUCH DEVICES: HIDE CUSTOM CURSOR, RESTORE NATIVE POINTER */
@media (hover: none) and (pointer: coarse) {

    #magic-cursor,
    #magic-pointer {
        display: none !important;
    }

    body,
    .is-interactive,
    button,
    a {
        cursor: pointer !important;
    }

    .cta-btn,
    #enter-site-btn {
        cursor: pointer !important;
    }
}


/* Inner pointer always follows mouse */
#magic-pointer {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.2s;
}

#magic-cursor.locked~#magic-pointer {
    opacity: 0;
    /* Hide dot when locked */
}

/* AUDIO TOGGLE */
#audio-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s;
    color: #fff;
}

#audio-toggle:hover {
    opacity: 1;
}

/* INTRO OVERLAY */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    /* Below cursor */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1s var(--ease-out), opacity 1s ease;
}

#intro-overlay.hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

.intro-content {
    display: flex;
    /* Centering wrapper */
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    justify-content: center;
    /* Center text by default */
}

/* The Intro Text - stays relatively centered */
.intro-text {
    font-family: var(--font-english);
    font-size: 3rem;
    letter-spacing: 5px;
    font-weight: 300;
    margin-bottom: 0;
    /* Handled by spacing */
    opacity: 0;
    background: linear-gradient(90deg, #555, #fff, #555);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200%;
    animation: shine 3s linear infinite, fadeUp 1.5s ease forwards 0.5s;
    position: absolute;
    top: 40%;
    /* Visually optical center */
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
}

@keyframes shine {
    to {
        background-position: 200%;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enter Button (Fallback) */
/* Enter Button (Fallback) */
#enter-site-btn {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-hebrew);
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.5s var(--ease-out);
    box-sizing: border-box;
    /* Ensure no layout shift from border */
}

#enter-site-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

#enter-site-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(1.05);
    /* Stable scale */
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.4;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* Responsive Grid */
@media (max-width: 1400px) {
    .grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

/* FOOTER COPYRIGHT */
.footer-copyright {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-english);
    letter-spacing: 1px;
}

/* --- CTA BUTTON GROUP --- */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

/* Override existing CTA for group usage */
.cta-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    margin-top: 0;
    position: relative;
    cursor: none;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    letter-spacing: 1px;
    transform: translateY(-2px);
}

/* Secondary Button (Oukitel Theme) */
.cta-btn.oukitel {
    border-color: rgba(255, 102, 0, 0.5);
    background: rgba(255, 102, 0, 0.05);
    color: #FF6600;
}

.cta-btn.oukitel:hover {
    background: rgba(255, 102, 0, 0.1);
    border-color: #FF6600;
    color: #FFF;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
}

/* Disabled Button (Coming Soon) */
.cta-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: default;
}

/* Mobile Stack */
@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}