/* ============================================
   CreatorFlow Homepage Hero — Creator-Native Editorial
   All locales (dark hero design)
   ============================================ */

/* --- Grain/noise texture overlay on black --- */
.cf-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 512px 512px;
    mix-blend-mode: soft-light;
}

/* --- Lime glow behind phone mockup (on black) --- */
.cf-home-hero__visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(209,254,23,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation: Creator-Native (on dark hero) --- */
.navbar {
    border: none !important;
    box-shadow: none !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

/* Force all navbar text elements white on dark hero */
.navbar .nav-link,
.navbar .nav-item-text,
.navbar .nav-menu a,
.navbar .nav-menu span,
.navbar .nav-container a:not(.btn):not(.lang-option),
.navbar .nav-container span:not(.btn-text-full):not(.btn-text-short):not(.language-dropdown span):not(.nav-brand-text) {
    color: #fff !important;
}
.navbar .nav-link:hover,
.navbar .nav-item-text:hover {
    color: #d1fe17 !important;
}
.navbar .nav-brand-box {
    background: transparent !important;
}
.navbar:not(.scrolled) .nav-brand-box .nav-brand-text {
    color: #ffffff !important;
}
.navbar .dropdown-arrow,
.navbar .nav-chevron,
.navbar svg:not(.btn svg):not(.nav-brand-sparkle):not(.dropdown-menu svg) {
    color: rgba(255,255,255,0.6) !important;
}
.navbar .language-switcher,
.navbar .language-btn,
.navbar .language-btn *,
.navbar .mobile-menu-btn,
.navbar .mobile-menu-btn svg {
    color: #fff !important;
}

.navbar .nav-actions .btn-primary {
    background: #d1fe17 !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0 1.25rem !important;
    height: 36px !important;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out !important;
}
.navbar .nav-actions .btn-primary:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 4px 16px rgba(209,254,23,0.3) !important;
    background: #d1fe17 !important;
}

.navbar .nav-actions .btn-secondary {
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 37px !important;
    padding: 0 1.25rem !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: color 0.15s ease !important;
    font-weight: 600 !important;
}
.navbar .nav-actions .btn-secondary:hover {
    color: #d1fe17 !important;
    border: none !important;
    background: transparent !important;
    transform: none !important;
}

/* --- Dropdown menus: restore dark text on white bg --- */
/* Fixes: white-on-white text in dropdowns, invisible icons, invisible language options */
.navbar .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}
.navbar .dropdown-menu a,
.navbar .dropdown-menu span,
.navbar .dropdown-menu .dropdown-item-title {
    color: #000000 !important;
}
.navbar .dropdown-menu .dropdown-item-desc {
    color: #6b7280 !important;
}
.navbar .dropdown-menu .dropdown-column-title {
    color: #6b7280 !important;
}
.navbar .dropdown-menu .dropdown-item-icon {
    background: rgba(0,0,0,0.05) !important;
    color: #000000 !important;
}
.navbar .dropdown-menu .dropdown-item-icon svg {
    color: #000000 !important;
}
.navbar .dropdown-menu svg {
    color: #000000 !important;
}
.navbar .dropdown-menu a:hover {
    background: #d1fe17 !important;
}
.navbar .dropdown-menu a:hover .dropdown-item-icon {
    background: rgba(0,0,0,0.08) !important;
}
.navbar .dropdown-menu a:hover .dropdown-item-desc {
    color: #374151 !important;
}

/* --- Language dropdown: restore dark text on white bg --- */
.navbar .language-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
}
.navbar .language-dropdown .lang-option,
.navbar .language-dropdown .lang-option span {
    color: #374151 !important;
}
.navbar .language-dropdown .lang-option:hover {
    background: #d1fe17 !important;
    color: #000000 !important;
}
.navbar .language-dropdown .lang-option:hover span {
    color: #000000 !important;
}
.navbar .language-dropdown .lang-option.active {
    background: #d1fe17 !important;
    color: #000000 !important;
}
.navbar .language-dropdown .lang-option.active span {
    color: #000000 !important;
}

/* --- Nav link hover: lime text stays visible on dark bg --- */
.navbar .nav-menu > .nav-item > a:hover {
    color: #d1fe17 !important;
}

/* --- Hero background: black with noise texture --- */
.cf-home-hero {
    background-color: #000000 !important;
    background-image: none !important;
    overflow: visible !important;
}

/* --- Social Proof Badge (dark bg) --- */
.cf-home-hero__trust-bar {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: none !important;
    border-radius: 100px !important;
    padding: 8px 20px !important;
}
.cf-home-hero__meta-badge {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.75rem !important;
}
.cf-home-hero__meta-logo {
    color: rgba(255,255,255,0.6) !important;
}
.cf-home-hero__trust-divider {
    background: rgba(255,255,255,0.2) !important;
}
.cf-home-hero__loved-avatar img {
    border-color: rgba(0,0,0,0.5) !important;
}
.cf-home-hero__loved-text {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.75rem !important;
}
.cf-home-hero__loved-text strong {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

/* --- Category label (dark bg) --- */
.cf-home-hero__badge {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: rgba(255,255,255,0.4) !important;
    margin-bottom: 16px !important;
}

/* --- Title + subtitle on dark bg --- */
.cf-home-hero__title {
    color: #FFFFFF !important;
}
.cf-home-hero__subtitle {
    color: #e5e7eb !important;
}
.cf-home-hero__microcopy {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.8125rem !important;
    margin-top: 0.75rem !important;
}

/* --- Title highlights: lime bg with explicit black text --- */
.cf-home-hero__title-highlight {
    background: #d1fe17 !important;
    color: #000 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    border: none !important;
    box-shadow: none !important;
}
.cf-home-hero__title-highlight--1 {
    transform: rotate(-0.5deg);
}
.cf-home-hero__title-highlight--2 {
    transform: rotate(0.3deg);
}
.cf-home-hero__title-highlight--3 {
    transform: rotate(-0.8deg);
}

/* --- CTA Primary: lime, 8px radius, prominent --- */
.cf-home-hero__cta-primary {
    background: #d1fe17 !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 15px !important;
    padding: 18px 48px !important;
    font-weight: 700 !important;
    font-size: 1.1875rem !important;
    letter-spacing: -0.01em !important;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease-out !important;
}
.cf-home-hero__cta-primary:hover,
.cf-home-hero .cf-home-hero__cta-primary:hover {
    transform: scale(1.03) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(209,254,23,0.3) !important;
    background: #d1fe17 !important;
    color: #000 !important;
}
.cf-home-hero__cta-primary:active {
    transform: scale(0.97) !important;
    box-shadow: none !important;
    transition-duration: 0.1s !important;
}
.cf-home-hero__cta-primary svg path {
    stroke: #000 !important;
}

/* --- CTA Secondary: clean (dark bg) --- */
.cf-home-hero__cta-secondary {
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.8) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    transition: border-color 0.2s ease, transform 0.15s ease !important;
}
.cf-home-hero__cta-secondary:hover {
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* --- Phone Mockup: subtle 3D tilt (dark bg) --- */
.cf-hero-iphone-frame {
    background: #000 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 40px !important;
    transform: perspective(800px) rotateX(2deg) rotateY(-2deg) !important;
    transform-style: preserve-3d !important;
    transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1) !important;
    padding: 10px !important;
}
.cf-hero-iphone-frame:hover {
    transform: perspective(800px) rotateX(1deg) rotateY(-1deg) translateY(-4px) !important;
}

.cf-hero-iphone-screen {
    border: none !important;
    border-radius: 30px !important;
}

.cf-hero-iphone-notch {
    top: 12px !important;
}

.cf-hero-dm__header {
    border-bottom: 1px solid #efefef !important;
}

/* --- DM Messages: Instagram-native look --- */
.cf-hero-dm__message--sent p {
    background: #3797f0 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    border-radius: 18px 18px 4px 18px !important;
    display: inline-block !important;
}

.cf-hero-dm__message--received p {
    background: #efefef !important;
    color: #262626 !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    border-radius: 18px !important;
}

.cf-hero-dm__sent-bubble {
    background: #3797f0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 18px 18px 4px 18px !important;
}
.cf-hero-dm__sent-bubble p {
    border: none !important;
    box-shadow: none !important;
    font-weight: 400 !important;
    color: #fff !important;
    background: transparent !important;
}

.cf-hero-dm__link-card {
    background: rgba(255,255,255,0.18) !important;
    border: none !important;
    box-shadow: none !important;
    border-left: 4px solid #d1fe17 !important;
    border-radius: 10px !important;
}
.cf-hero-dm__link-card-title {
    color: #fff !important;
    font-weight: 600 !important;
}
.cf-hero-dm__link-card-domain {
    color: rgba(255,255,255,0.6) !important;
}
.cf-hero-dm__link-card-icon {
    background: rgba(255,255,255,0.22) !important;
    border: none !important;
}
.cf-hero-dm__link-card-icon svg path {
    stroke: #fff !important;
}

/* --- Animated DM messages --- */
.cf-hero-dm__messages {
    min-height: 280px !important;
}

.cf-hero-dm__message[data-anim] {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s cubic-bezier(0.34,1.56,0.64,1), transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.cf-hero-dm__message[data-anim].cf-msg-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.cf-hero-dm__message[data-anim].cf-msg-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Typing indicator */
.cf-hero-dm__typing {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #efefef;
    border-radius: 18px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cf-hero-dm__typing.cf-msg-visible {
    opacity: 1;
    transform: translateY(0);
}
.cf-hero-dm__typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #999;
    animation: cfTypingPulse 1.2s infinite;
}
.cf-hero-dm__typing-dot:nth-child(2) { animation-delay: 0.1s; }
.cf-hero-dm__typing-dot:nth-child(3) { animation-delay: 0.2s; }

@keyframes cfTypingPulse {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); }
    30% { opacity: 1; transform: scale(1); }
}

/* Success indicator at bottom */
.cf-hero-dm__success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    font-size: 11px;
    color: #22c55e;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.cf-hero-dm__success.cf-msg-visible {
    opacity: 1;
}
.cf-hero-dm__success svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Page Load Entrance Animations
   ============================================ */
.cf-home-hero .cf-anim-entrance {
    opacity: 0;
    transform: translateY(16px);
}
.cf-home-hero .cf-anim-entrance.cf-anim-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

.cf-home-hero .cf-anim-entrance--phone {
    opacity: 0;
    transform: translateX(40px);
}
.cf-home-hero .cf-anim-entrance--phone.cf-anim-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* Social proof badge entrance */
.cf-home-hero .cf-anim-entrance--badge {
    opacity: 0;
    transform: translateY(8px);
}
.cf-home-hero .cf-anim-entrance--badge.cf-anim-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* ============================================
   Responsive: Tablet (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .cf-hero-iphone-frame {
        transform: rotate(1deg) !important;
    }
    .cf-home-hero__visual::before {
        width: 350px;
        height: 350px;
    }
}

/* ============================================
   Subtle 3D Phone Animation
   ============================================ */
@keyframes cfPhoneFloat {
    0%, 100% { transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(0px); }
    50% { transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-8px); }
}

/* ============================================
   Responsive: Mobile (<768px) — 3D Hero
   ============================================ */
@media (max-width: 767px) {
    /* --- Grid: single column, tighter gaps --- */
    .cf-home-hero__container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        padding: 0 1.25rem !important;
    }

    /* --- Content: centered text --- */
    .cf-home-hero__content {
        align-items: center !important;
        text-align: center !important;
    }

    /* --- Badge: hidden on mobile --- */
    .cf-home-hero__badge {
        display: none !important;
    }

    /* --- H1: large, tight, impactful --- */
    .cf-home-hero__title {
        font-size: clamp(2.25rem, 8.5vw, 3.25rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em !important;
        text-align: center !important;
    }

    /* --- Subtitle: readable --- */
    .cf-home-hero__subtitle {
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
        color: #d1d5db !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }

    /* --- CTA: full width, prominent --- */
    .cf-home-hero__cta-primary {
        width: 100% !important;
        text-align: center !important;
        padding: 16px 24px !important;
        font-size: 1.0625rem !important;
        border-radius: 12px !important;
    }
    .cf-home-hero__cta-row {
        width: 100% !important;
    }

    /* --- Trust bar: compact --- */
    .cf-home-hero__trust-bar {
        padding: 6px 12px !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        align-self: center !important;
    }
    .cf-home-hero__meta-badge {
        font-size: 0.625rem !important;
        white-space: nowrap !important;
    }
    .cf-home-hero__meta-badge span {
        font-size: 0.625rem !important;
    }
    .cf-home-hero__loved-text {
        font-size: 0.625rem !important;
        white-space: nowrap !important;
    }
    .cf-home-hero__loved-text strong {
        font-size: 0.625rem !important;
    }
    .cf-home-hero__loved-avatar {
        width: 18px !important;
        height: 18px !important;
    }

    /* --- 3D Phone Visual (subtle, like solution pages) --- */
    .cf-home-hero__visual {
        perspective: 800px !important;
        perspective-origin: 50% 40% !important;
        padding-bottom: 2rem !important;
        overflow: visible !important;
    }

    /* Subtle lime glow reflection beneath phone */
    .cf-home-hero__visual::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 0);
        width: 60%;
        height: 60px;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(209,254,23,0.2) 0%, rgba(209,254,23,0.06) 50%, transparent 75%);
        filter: blur(20px);
        pointer-events: none;
        z-index: 0;
    }

    /* Ambient glow behind phone */
    .cf-home-hero__visual::before {
        width: 300px !important;
        height: 300px !important;
        background: radial-gradient(circle, rgba(209,254,23,0.08) 0%, transparent 55%) !important;
    }

    /* Subtle 3D tilt + gentle float (matching solution page style) */
    .cf-hero-iphone-frame {
        transform: perspective(800px) rotateX(2deg) rotateY(-2deg) !important;
        transform-style: preserve-3d !important;
        animation: cfPhoneFloat 6s ease-in-out infinite !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        border-top: 1px solid rgba(255,255,255,0.2) !important;
        border-left: 1px solid rgba(255,255,255,0.15) !important;
        transition: none !important;
    }

    .cf-hero-iphone-frame:hover {
        transform: perspective(800px) rotateX(1deg) rotateY(-1deg) translateY(-4px) !important;
    }

    /* --- Nav: mobile fixes --- */
    .mobile-menu-btn {
        color: #fff !important;
    }
    .mobile-menu-btn .hamburger-line {
        background-color: #fff !important;
    }
    .navbar .language-switcher {
        display: none !important;
    }
    .navbar .nav-actions .btn-primary {
        height: 34px !important;
        padding: 0 1rem !important;
        font-size: 0.8125rem !important;
    }
    .navbar .nav-actions .btn-secondary {
        display: none !important;
    }
}

/* ============================================
   Responsive: Small Mobile (<480px)
   ============================================ */
@media (max-width: 480px) {
    .cf-home-hero__title {
        font-size: clamp(2rem, 8vw, 2.75rem) !important;
    }
    .cf-home-hero__subtitle {
        font-size: 0.875rem !important;
        padding: 0 !important;
    }
    .cf-home-hero__trust-bar {
        padding: 5px 10px !important;
        gap: 5px !important;
    }
    .cf-home-hero__meta-badge,
    .cf-home-hero__meta-badge span {
        font-size: 0.5625rem !important;
    }
    .cf-home-hero__loved-text,
    .cf-home-hero__loved-text strong {
        font-size: 0.5625rem !important;
    }
    .cf-home-hero__loved-avatar {
        width: 16px !important;
        height: 16px !important;
        margin-left: -4px !important;
    }
    .cf-home-hero__container {
        padding: 0 1rem !important;
        gap: 2rem !important;
    }

    /* Slightly reduce 3D intensity on small screens */
    .cf-home-hero__visual::after {
        width: 70% !important;
        height: 50px !important;
    }
}
