@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600&family=Outfit:wght@200;400;600&display=swap');

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
    /* Firefox */
}

body {
    -ms-overflow-style: none;
    /* IE and Edge */
    background-color: #000;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography Basics */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

p {
    font-weight: 200;
    line-height: 1.5;
    opacity: 0.8;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- 3D BACKGROUND --- */
#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    outline: none;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#canvas3d.loaded {
    opacity: 1;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
}

/* --- UTILITIES --- */
#smooth-wrapper {
    position: relative;
    z-index: 1;
    /* Ensures content sits above the 3D canvas (z-index: 0) */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.vh-100 {
    height: 100vh;
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Typography sizing (Elegant & Premium) */
.t-hero {
    font-size: clamp(2rem, 6vw, 5.5rem);
    letter-spacing: -0.03em;
}

.t-h2 {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    letter-spacing: -0.02em;
}

.t-body {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    line-height: 1.7;
}

.t-small {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.t-accent {
    color: #cabeff;
}

/* GSAP ANIMATION PRESETS */
/* Elements start slightly hidden and rotated if they have text split */
.char {
    display: inline-block;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.btn:hover {
    background: #fff;
    color: #000;
}

/* --- SECTIONS --- */
.landing {
    align-items: flex-start;
    padding-top: 20vh;
}

.introduction {
    align-items: flex-start;
}

.manifesto {
    margin-top: 10vh;
}

.team {
    text-align: center;
    padding: 10vh 0;
}

.footer {
    text-align: center;
    justify-content: flex-end;
    padding-bottom: 10vh;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

/* ==========================================================================
   Storytelling SVG Animations (Isometric & Z-Pattern Grid)
   ========================================================================== */

.storytelling-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 2rem;
}

.story-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.story-copy,
.story-graphics {
    width: 100%;
}

@media (min-width: 1024px) {
    .story-row {
        flex-direction: row;
        gap: 6rem;
        align-items: center;
    }

    .story-copy {
        flex: 1;
        padding-right: 2rem;
    }

    .story-graphics {
        flex: 1.2;
    }

    /* Z-Pattern specific ordering */
    .row-reverse {
        flex-direction: row-reverse;
    }

    .row-reverse .story-copy {
        padding-right: 0;
        padding-left: 2rem;
    }
}

.storytelling-container {
    width: 100%;
}

.story-svg {
    border-radius: 8px;
    display: block;
    /* transition: transform 0.5s ease; */
}

/* Glowing Elements for Isometric effect */
.iso-base {
    transition: all 0.3s ease;
}

.story-caption,
.story-caption-success {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .glass-panel-inner {
        padding: 1rem 0 !important;
        overflow-x: hidden;
    }

    .story-svg {
        min-width: 100%;
    }

    /* Strong explicit ordering for mobile */
    .mobile-order-1 {
        order: 1;
    }

    .mobile-order-2 {
        order: 2;
    }
}

/* ==========================================================================
   Methodology Soft 3D Glass Icons
   ========================================================================== */
.methodology-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glass-icon-container {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.glass-icon-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-icon-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-icon-front svg {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Micro-interactions (CSS Parallax) */
.glass-icon-container:hover .glass-icon-front {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.glass-icon-container:hover .glass-icon-bg {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.glass-icon-container:hover .glass-icon-front svg {
    transform: scale(1.05);
}

/* ==========================================================================
   Pricing Bento Grid & Spotlight Interactions
   ========================================================================== */
.pricing-grid-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    /* Align columns from the bottom so the taller Setup card visually centers after badge space */
    margin-top: 3rem;
    max-width: 1000px;
    /* Reduced for viewport harmony */
    margin-left: auto;
    margin-right: auto;
}

/* Structural Wrappers */
.pricing-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.col-featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers the badge above the card */
}

.pricing-card {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Reflective border */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    /* Deep drop shadow */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease, border-color 0.5s ease, filter 0.5s ease;
    border-radius: 20px;
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(237, 111, 143, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 5;
}

/* Base Cards Focus Dimming */
@media (hover: hover) and (pointer: fine) {
    .pricing-grid-wrapper:has(.pricing-card:hover) .pricing-card:not(:hover) {
        transform: scale(0.96);
        opacity: 0.6;
        filter: blur(2px);
    }
}

/* Art Zone */
.card-art-zone {
    width: 100%;
    height: 160px;
    /* Reduced for viewport harmony */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Apply radius here since parent lost overflow: hidden */
    overflow: hidden;
    /* Keep image inside these specific bounds */
}

/* Gradient Overlay to blend art into the dark card */
.art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.6) 70%, rgba(10, 10, 12, 1) 100%);
}

/* Content Zone */
.card-content-zone {
    padding: 1.5rem;
    /* Drastically tighter for elegance */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content-zone h3 {
    font-size: 1.1rem;
    /* Locked header sizes locally */
}

/* Spotlight Effect via Pseudo-element */
.pricing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    border-radius: inherit;
    /* Inherit the 20px from .glass-panel to constrain spotlight */
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Ensure text and content elements stay positioned underneath spotlight but keep interaction */
.card-content-zone,
.card-art-zone,
.featured-badge {
    position: relative;
    z-index: 1;
}

/* The Featured Core Product */
.featured-card {
    transform: scale(1.05);
    /* Set Base Vertical supremacy */
    z-index: 2;
    border-color: rgba(237, 111, 143, 0.4);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(237, 111, 143, 0.15);
}

.featured-card:hover {
    transform: scale(1.07) translateY(-20px);
    /* Combined Levitation and Scaling matrix */
    border-color: rgba(237, 111, 143, 0.7);
    box-shadow: 0 50px 80px -15px rgba(237, 111, 143, 0.4), 0 0 50px rgba(237, 111, 143, 0.4);
    z-index: 10;
}

/* Featured Badge - Repositioned outside structure */
.featured-badge {
    position: relative;
    margin-bottom: 15px;
    background: rgba(237, 111, 143, 0.15);
    color: #ed6f8f;
    border: 1px solid rgba(237, 111, 143, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 3;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
}

/* Glowing Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    /* Bright Green */
    display: inline-block;
    margin-right: 6px;
    animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

/* Full Width CTA Buttons */
.btn-full {
    width: 100%;
    text-align: center;
    margin-top: auto;
    /* Pushes the button to the bottom of the flex column container */
}

/* Media Query for Mobile to disable scaling */
@media (max-width: 768px) {
    .pricing-grid-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }

    .featured-card {
        transform: scale(1);
    }

    .featured-card:hover {
        transform: translateY(-4px);
    }
}

/* --- TEAM BENTO SECTION (PHASE 16) --- */
.team-section {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    margin-top: 15vh;
    /* Massive white space injection */
    z-index: 5;
}

.team-bento-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Vertical Stacking */
    justify-content: center;
    /* Center horizontally/vertically depends on container height */
    align-items: center;
    text-align: center;
}

.team-text-col {
    width: 100%;
    max-width: 800px;
    /* Optimal reading width */
    position: relative;
    z-index: 2;
}

.team-info-panel {
    padding: 3rem;
    background: rgba(10, 10, 12, 0.5);
    /* Stronger glass */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-image-col {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    margin-top: 3rem;
    z-index: 3;
    display: flex;
    justify-content: center;
}

@keyframes etherealFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.ceo-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    padding: 1rem;
    filter: drop-shadow(0 25px 50px rgba(237, 111, 143, 0.25));
    /* Coral glow */
    animation: etherealFloat 8s ease-in-out infinite;
}

/* Glass panel backing the image */
.ceo-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(237, 111, 143, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(237, 111, 143, 0.4);
    border-radius: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 0;
    transform: rotate(-4deg) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ceo-image-wrapper:hover::before {
    transform: rotate(0deg) scale(1.02);
    border-color: rgba(237, 111, 143, 0.7);
    box-shadow: 0 0 40px rgba(237, 111, 143, 0.3);
}

.ceo-image-mask {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('https://pub-d063946349764ccdba15b0aa993356ba.r2.dev/CEO_HELOU_v2.png');
    background-size: cover;
    background-position: center top;
    /* Soft Geometric mask (modern pill/squircle) */
    border-radius: 35px;
    clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
    transition: clip-path 0.5s ease;
}

.ceo-image-wrapper:hover .ceo-image-mask {
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

/* Mobile First Responsiveness for Team Bento */
@media (max-width: 768px) {
    .team-bento-container {
        align-items: stretch;
    }

    .team-image-col {
        max-width: 250px;
        margin: 3rem auto 0 auto;
    }

    .team-info-panel {
        padding: 2rem;
    }
}

/* --- FRICTIONLESS INTAKE MODAL (PHASE 18) --- */
.glass-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.glass-modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.glass-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 40px rgba(237, 111, 143, 0.15), inset 0 0 20px rgba(255, 237, 161, 0.05);
    border-radius: 20px;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* MODAL LARGO CSS */
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* --- SECURITY SHIELD (HONEYPOT) --- */
.helou-shield {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Custom Scrollbar for Modal Content */
.glass-modal .modal-content::-webkit-scrollbar {
    width: 6px;
}

/* --- INSTITUTIONAL FOOTER --- */
.glass-footer {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 20px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-social a,
.footer-email {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-email {
    margin-top: 1rem;
    display: inline-block;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-email:hover {
    color: #ed6f8f;
    /* Helou Coral */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}

.glass-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.glass-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.glass-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.glass-modal.hidden .modal-content {
    transform: translateY(20px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.input-group {
    margin-bottom: 15px;
    width: 100%;
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

/* Custom Select Dropdown Styling */
select.glass-input option {
    background-color: #1a1a1a;
    color: #fff;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass-input:focus {
    border-color: rgba(237, 111, 143, 0.6);
    /* Coral glow */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(237, 111, 143, 0.2);
}

/* Success Message override */
#intake-success.hidden {
    display: none;
}