/* ── HexBuilder AI – Frontend Public Styles ─────────────────────────── */

:root {
    --hex-glass-bg: rgba(255, 255, 255, 0.7);
    --hex-glass-border: rgba(255, 255, 255, 0.3);
    --hex-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --hex-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --hex-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --hex-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --hex-shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.hex-page {
    font-family: var(--hex-font);
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hex-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hex-page a {
    text-decoration: none;
    color: inherit;
}

.hex-page .hex-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hex-page .hex-section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

.hex-page header.hex-section,
.hex-page footer.hex-section {
    padding: 0;
}

/* ── Modern Buttons ── */
.hex-page .hex-btn {
    width: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    white-space: nowrap;
}
.hex-page .hex-btn--primary {
    background: var(--hex-primary);
    color: #fff;
    border-color: var(--hex-primary);
    box-shadow: 0 4px 14px 0 rgba(var(--hex-primary-rgb), 0.39);
}
.hex-page .hex-btn--primary:hover {
    background: var(--hex-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--hex-primary-rgb), 0.23);
    filter: brightness(1.1);
}

.hex-page .hex-btn--outline {
    background: transparent;
    color: var(--hex-primary);
    border-color: var(--hex-primary);
}
.hex-page .hex-btn--outline:hover {
    background: var(--hex-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Premium Utilities ── */
.hex-glass {
    background: var(--hex-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hex-glass-border);
}

.hex-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--hex-shadow-md);
}
.hex-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--hex-shadow-premium);
    border-color: var(--hex-primary);
}

.hex-gradient-text {
    background: linear-gradient(135deg, var(--hex-primary), var(--hex-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ── Typography ── */
.hex-page .hex-section-label {
    display: inline-block;
    background: rgba(108, 92, 231, 0.08);
    color: var(--hex-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(108, 92, 231, 0.1);
}
.hex-page .hex-section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.hex-page .hex-section-sub {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 650px;
    line-height: 1.6;
}
.hex-page .hex-section-header {
    margin-bottom: 5rem;
}
.hex-page .hex-section-header.text-center {
    text-align: center;
}
.hex-page .hex-section-header.text-center .hex-section-sub {
    margin: 0 auto;
}

/* ── Dark Mode Elite ── */
.hex-page .hex-section--dark {
    background: #0f172a;
    color: #fff;
}
.hex-page .hex-section--dark .hex-section-title {
    color: #fff;
}
.hex-page .hex-section--dark .hex-section-sub {
    color: #94a3b8;
}
.hex-page .hex-section--dark .hex-section-label {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hex-page .hex-section {
        padding: 4rem 0;
    }
    .hex-page .hex-section-title {
        font-size: 2.25rem;
    }
}

/* ── Clip overflow only on pure content sections (no menu/dropdown widgets) ── */
.hex-page .hex-hero,
.hex-page .hex-features,
.hex-page .hex-testimonials,
.hex-page .hex-team,
.hex-page .hex-stats,
.hex-page .hex-pricing,
.hex-page .hex-faq,
.hex-page .hex-contact,
.hex-page .hex-cta {
    overflow: hidden;
}

/* ── Always allow overflow on header / menu-bearing sections ── */
.hex-page .hex-section:has(.hex-menu-links),
.hex-page .hex-section:has(.hex-menu),
.hex-page .hex-section:has([data-hea-type="menu"]),
.hex-page .hex-section:has(.hex-mobile-toggle),
.hex-page .hex-section.hex-section--menu-open,
.hex-page .hex-header {
    overflow: visible !important;
}

/* Layer the section above others when the responsive menu is open */
.hex-page .hex-section:has(.hex-menu-links.is-open),
.hex-page .hex-section.hex-section--menu-open {
    z-index: 1000 !important;
}

/* ── Screen Reader Text Failsafe Hiding ── */
.hex-page .screen-reader-text,
.screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    word-wrap: normal !important;
}

/* ── Spinning Animation ── */
@keyframes hex-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Scrolling Marquee Animation ── */
@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ── Lazysizes Progressive Blur-up Loading ── */
.hex-page img.lazyload {
    filter: blur(10px);
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: filter;
}
.hex-page img.lazyloaded {
    filter: blur(0);
}

/* ── Widget Child Typography Inheritance ── */
[data-hea-id] .hex-list-text,
[data-hea-id] .hex-list-text span {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    text-transform: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
    color: inherit;
}

[data-hea-id] .hex-text-content {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    text-transform: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    word-spacing: inherit;
    color: inherit;
}





