/* =====================================================
   VISIV PREMIUM REDESIGN - v2.1 (Refined)
   Unified, Mobile-First, Premium Dark Theme
   ===================================================== */

:root {
    /* --- COLOR PALETTE --- */
    --color-bg-main: #030303;
    --color-bg-card: rgba(20, 20, 20, 0.4);
    /* More transparent */
    --color-bg-card-hover: rgba(20, 20, 20, 0.4);
    /* No hover change */

    --color-primary: #D4A748;
    --color-primary-dim: rgba(212, 167, 72, 0.5);
    --color-primary-glow: rgba(212, 167, 72, 0.15);

    --color-secondary: #3B9BD9;
    --color-secondary-dim: rgba(59, 155, 217, 0.5);

    --color-text-main: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-dark: rgba(255, 255, 255, 0.3);

    --border-light: rgba(255, 255, 255, 0.08);

    /* --- TYPOGRAPHY --- */
    --font-display: 'Acumin Pro', sans-serif;
    --font-body: 'Acumin Pro', sans-serif;

    /* --- SPACING & LAYOUT --- */
    --container-max: 1400px;
    --section-pad-y: 120px;
    --section-pad-x: 4rem;
    /* Increased side padding */

    /* --- ANIMATION --- */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    :root {
        --section-pad-y: 80px;
        --section-pad-x: 1.5rem;
    }
}

/* =====================================================
   BASE & RESET
   ===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* =====================================================
   COMPONENTS
   ===================================================== */

/* --- HEADER / HERO --- */
.page-hero {
    position: relative;
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    /* Center vertically */
    padding: 0 var(--section-pad-x);
    overflow: hidden;
    padding-top: 80px;
    /* Space for navbar */
}

/* Background Effects */
.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 20%, var(--color-primary-glow), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 155, 217, 0.1), transparent 40%);
}

/* 2-Column Grid for Hero Content */
.page-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Text gets slightly more space, Asset gets right side */
    gap: 2rem;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: center;
}

/* .page-hero__content { } - Removed empty rule */

/* 3D ASSET WRAPPER - Right Column */
.asset-3d-wrapper {
    position: relative;
    width: 100%;
    /* Ensure it doesn't overflow */
    max-width: 600px;
    height: 600px;
    /* Fixed height for interaction area */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1.5s ease 0.5s forwards;
    justify-self: center;
    align-self: center;
    margin: 0 auto;
    /* Force horizontal centering */
}

.asset-3d-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-25deg);
    /* Default Pose */
    /* Visual Placeholder - Glowing Orb/Shape */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layers for creating the 3D visual without external images */
.layer-1,
.layer-2,
.layer-3 {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    top: 50%;
    left: 50%;
}

.layer-1 {
    width: 600px;
    height: 600px;
    margin: -300px 0 0 -300px;
    background: radial-gradient(circle at 30% 30%, var(--color-primary), transparent 70%);
    opacity: 0.15;
    filter: blur(20px);
    transform: translateZ(-50px);
}

.layer-2 {
    width: 400px;
    height: 400px;
    margin: -200px 0 0 -200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transform: translateZ(0px);
}

.layer-3 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    /* Border and animation moved to ::after to allow JS transform on parent */
    transform: translateZ(50px);
}

.layer-3::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed var(--color-primary-dim);
    animation: spinSlow 20s linear infinite;
}

/* Mobile Layer Scaling */
@media (max-width: 768px) {
    .layer-1 {
        width: 350px;
        height: 350px;
        margin: -175px 0 0 -175px;
    }

    .layer-2 {
        width: 240px;
        height: 240px;
        margin: -120px 0 0 -120px;
    }

    .layer-3 {
        width: 180px;
        height: 180px;
        margin: -90px 0 0 -90px;
        border-width: 1px;
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.page-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.page-hero__tag::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--color-primary);
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 7rem);
    /* Adjusted for 2-col layout */
    line-height: 0.95;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.4s forwards;
}

.page-hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 500px;
    font-weight: 300;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.6s forwards;
}

/* Scroll Indication */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-dark);
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    animation: bounce 2s infinite;
}

/* --- SECTIONS --- */
.section {
    padding: var(--section-pad-y) var(--section-pad-x);
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- INFO PANELS (Non-clickable Features) --- */
/* Replacing "card" with a flat, list-like informative design */
.stack-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Border separation */
}

@media (min-width: 1024px) {
    .stack-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        /* Spacing for grid */
    }
}

.feature-panel {
    /* No background, no button look */
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Desktop feature panel adjustments if needed */

/* Hover effect: Subtle highlight only */
.feature-panel:hover {
    border-color: var(--color-text-dark);
}

.feature-panel:hover .card__number {
    color: var(--color-primary);
}

.card__number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    /* Smaller, cleaner */
    font-weight: 400;
    color: var(--color-text-dark);
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.card__icon {
    width: 32px;
    height: 32px;
    stroke: var(--color-text-muted);
    stroke-width: 1.5;
    margin-bottom: 0.5rem;
}

.card__title {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card__text {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 450px;
}

/* --- CTA SECTION --- */
.cta-box {
    text-align: center;
    padding: 6rem 2rem;
    /* Removed box styling for cleaner look */
    background: transparent;
    border: none;
    margin: 4rem auto;
    max-width: 800px;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0;
    /* Sharp premium edges */
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.btn-premium:hover {
    background: var(--color-primary);
    color: #000;
}

/* Liquid Metal Button Sizing & Effect (CSS Only) */
.liquid-metal-btn {
    padding: 1.5rem 4rem;
    font-size: 1rem;
    min-width: 320px;
    /* Increased from 250px to fit text */
    width: fit-content;
    /* Ensure it fits content */
    white-space: nowrap;
    /* Prevent text wrapping */
    justify-content: center;
    background: linear-gradient(135deg, #333 0%, #000 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.liquid-metal-btn .liquid-container {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--color-primary) 0%, transparent 60%),
        conic-gradient(from 0deg, transparent 0%, var(--color-primary-dim) 50%, transparent 100%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
    animation: liquidSpin 4s linear infinite;
    pointer-events: none;
}

.liquid-metal-btn:hover {
    border-color: var(--color-primary);
    color: #fff;
}

.liquid-metal-btn:hover .liquid-container {
    opacity: 0.2;
    transform: scale(1);
}

@keyframes liquidSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

/* --- 3D ASSET VARIATIONS --- */

/* Theme: Marketing (Influencer, Advertising) - Pink/Gold Glow */
.theme-marketing .layer-1 {
    background: radial-gradient(circle at 30% 30%, #ff00cc, transparent 70%);
}

.theme-marketing .layer-2 {
    border-color: rgba(255, 0, 204, 0.3);
}

.theme-marketing .layer-3::after {
    border-color: #ff00cc;
    border-style: dotted;
}

/* Theme: Tech (Website, Systems, E-comm) - Blue/Cyan Grid */
.theme-tech .layer-1 {
    background: radial-gradient(circle at 70% 30%, #00f2ff, transparent 60%);
    opacity: 0.2;
}

.theme-tech .layer-2 {
    border: 1px solid rgba(0, 242, 255, 0.2);
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    border-radius: 0;
}

.theme-tech .layer-3::after {
    border: 1px solid #00f2ff;
    border-radius: 0;
    width: 240px;
    height: 240px;
    top: 30px;
    left: 30px;
    animation: spinReverse 15s linear infinite;
}

/* Theme: Media (Content, Press) - White/Clean */
.theme-media .layer-1 {
    background: radial-gradient(circle at 50% 50%, #ffffff, transparent 70%);
    opacity: 0.1;
}

.theme-media .layer-2 {
    border-color: rgba(255, 255, 255, 0.3);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
}

.theme-media .layer-3::after {
    border-color: rgba(255, 255, 255, 0.5);
    border-style: double;
}

/* Theme: Assist (Visiv Assist) - Soft Green/Teal */
.theme-assist .layer-1 {
    background: radial-gradient(circle at 30% 70%, #00ff88, transparent 60%);
}

.theme-assist .layer-2 {
    border-color: rgba(0, 255, 136, 0.3);
}

.theme-assist .layer-3::after {
    border-color: #00ff88;
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Mobile specific fixes */
@media (max-width: 900px) {
    .page-hero__grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: left;
        padding-top: 2rem;
    }

    .page-hero__tag {
        justify-content: flex-start;
    }

    .page-hero__subtitle {
        margin: 0 0 2rem 0;
    }

    .asset-3d-wrapper {
        height: 300px;
        /* Smaller asset on mobile */
        order: -1;
        /* Option: Move asset above text on mobile? Or keep below. 
                      Let's keep text first for readability, so default order. */
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .section-pad-x {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* =====================================================
   FEATURE CARDS (Slider/Icon Box Style) - REDESIGNED
   ===================================================== */

/* Update Grid */
.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Increased gap for overlap space */
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        /* More space for the floating boxes */
    }
}

/* Feature Card Container */
.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border for the main area */
    border-radius: var(--radius-lg);
    /* Larger radius like the example */
    padding: 2rem 2rem 2rem 3.5rem;
    /* Left padding space for the overlapping box */
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-left: 2rem;
    /* Offset for the box */
}

/* The "Little Box" (Icon Container) - Overlapping Left */
.feature-card__icon-box {
    position: absolute;
    top: 50%;
    left: -2.5rem;
    /* Pull it out to the left */
    transform: translateY(-50%);
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--color-primary), #FF8C00);
    /* VISIV Gold to Orange */
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Icon Styling */
.feature-card__icon-box i {
    font-size: 2rem;
    color: #fff;
    /* White icon on gold */
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Hover Effects */
.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    /* Slide right slightly */
}

.feature-card:hover .feature-card__icon-box {
    transform: translateY(-50%) scale(1.1) rotate(-3deg);
    /* Pop effect */
    box-shadow: 0 15px 30px rgba(212, 167, 72, 0.4);
    /* Glow matching brand */
}

/* Card Content alignment */
.feature-card .panel-content {
    position: relative;
    z-index: 1;
}

/* Date/Tag styling (optional, matches "code" in example) */
.feature-card .card__tag {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-card .card__title {
    font-size: 1.5rem;
    font-weight: 600;
    /* Bolder */
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.2;
}

.feature-card .card__text {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .feature-card {
        margin-left: 0;
        padding: 4rem 1.5rem 2rem 1.5rem;
        /* Add top padding for the box */
        margin-top: 2.5rem;
        /* Space for the top-overlapping box */
        text-align: center;
    }

    /* Move box to top center for mobile */
    .feature-card__icon-box {
        top: -2.5rem;
        left: 50%;
        transform: translateX(-50%);
        /* Center horizontally */
    }

    .feature-card:hover .feature-card__icon-box {
        transform: translateX(-50%) scale(1.1);
        /* Keep centered on hover */
    }

    .feature-card:hover {
        transform: translateY(-5px);
        /* Move up instead of right */
    }
}